def __init__(self, parent, conn, conn_id): WizardForm.__init__(self, parent) self.conn = conn self.conn_id = conn_id self.certificates_root = os.path.join(mforms.App.get().get_user_data_folder(), "certificates") self.results_path = os.path.join(self.certificates_root, self.conn_id) self.set_title("SSL Wizard") self.intro_page = SSLWizard_IntroPage(self) self.add_page(self.intro_page) self.options_page = SSLWizard_OptionsPage(self) self.add_page(self.options_page) self.generate_page = SSLWizard_GeneratePage(self) self.add_page(self.generate_page) self.results_page = SSLWizard_ResultsPage(self) self.add_page(self.results_page) # Set the default selection values self.generate_page.set_show_parameters(not self.options_page.use_default_parameters.get_active()) self.results_page.set_update_connection(self.options_page.update_connection.get_active()) self.generate_page.skip_page(not self.options_page.generate_files.get_active()) # Setup up the callbacks for the options self.options_page.use_default_parameters.add_clicked_callback(lambda: self.generate_page.set_show_parameters(not self.options_page.use_default_parameters.get_active())) self.options_page.update_connection.add_clicked_callback(lambda: self.results_page.set_update_connection(self.options_page.update_connection.get_active())) self.options_page.generate_files.add_clicked_callback(lambda: self.generate_files_changed())
def __init__(self, editor, owner, selection = {}, title = None): WizardForm.__init__(self, mforms.Form.main_form()) self.title = title self.set_title(title) self.editor = editor self.formats = [] self.formats.append(create_module("csv", editor, False)) self.formats.append(create_module("json", editor, False)) self.source_table = selection self.center() self.data_input_page = DataInputPage(self) self.add_page(self.data_input_page) self.select_file_page = SelectFilePage(self) self.add_page(self.select_file_page) self.export_progress_page = ExportProgressPage(self) self.add_page(self.export_progress_page) self.result_page = ResultsPage(self) self.add_page(self.result_page)
def __init__(self, editor, owner, selection = {}): WizardForm.__init__(self, mforms.Form.main_form()) self.editor = editor self.formats = [] self.formats.append(create_module("csv", editor, True)) self.formats.append(create_module("json", editor, True)) self.destination_table = selection self.center() self.select_file_page = SelectFileWizardPage(self) self.add_page(self.select_file_page) self.destination_page = SelectDestinationPage(self) self.add_page(self.destination_page) self.configuration_page = ConfigurationPage(self) self.add_page(self.configuration_page) self.import_progress_page = ImportProgressPage(self) self.add_page(self.import_progress_page) self.result_page = ResultsPage(self) self.add_page(self.result_page)
def __init__(self, sql_text): WizardForm.__init__(self, None) self.set_name('sqlite_export_wizard') self.set_title('SQLite Export Wizard') self.preview_page = ExportSQLiteWizard_PreviewPage(self, sql_text) self.add_page(self.preview_page)
def __init__(self, sql_text): WizardForm.__init__(self, None) self.set_name('generate_userfrosting_migration_wizard') self.set_title('Generate UserFrosting Migration Wizard') self.preview_page = GenerateUserFrostingMigrationWizardPreviewPage(self, sql_text) self.add_page(self.preview_page)
def __init__(self, sql_text): WizardForm.__init__(self, None) self.set_name('generate_laravel_5_migration_wizard') self.set_title('Generate Laravel 5 Migration Wizard') self.preview_page = GenerateLaravel5MigrationWizard_PreviewPage(self, sql_text) self.add_page(self.preview_page)
def __init__(self, sql_text): WizardForm.__init__(self, None) self.set_name('generate_laravel_5_migration_wizard') self.set_title('Generate Laravel 5 Migration Wizard') self.preview_page = GenerateLaravel5MigrationWizardPreviewPage(self, sql_text) self.add_page(self.preview_page)
def __init__(self, sql_text): WizardForm.__init__(self, None) self.set_name('generate_adonisjs_migration_wizard') self.set_title('Generate AdonisJS Migration Wizard') self.preview_page = GenerateAdonisJSMigrationWizardPreviewPage( self, sql_text) self.add_page(self.preview_page)
def __init__(self, editor): WizardForm.__init__(self, mforms.Form.main_form()) self.editor = editor self.selected_schema = None self.set_title("Load Spatial Data") self.center() self.select_file_page = SelectFileWizardPage(self) self.add_page(self.select_file_page) self.content_preview_page = ContentPreviewPage(self) self.add_page(self.content_preview_page) self.import_page = ImportProgressPage(self) self.add_page(self.import_page) self.results_page = ResultsPage(self) self.add_page(self.results_page)