populse_mia.user_interface package¶
User interface module, encompass the main window and its tabs definition, as well as pop ups.
- Contains:
- Module:
main_window
pipeline_manager
data_browser
pop_ups
Subpackages¶
- populse_mia.user_interface.data_browser package
- Submodules
- populse_mia.user_interface.data_browser.advanced_search module
AdvancedSearch
AdvancedSearch.__init__()
AdvancedSearch.add_search_bar()
AdvancedSearch.apply_filter()
AdvancedSearch.displayConditionRules()
AdvancedSearch.displayValueRules()
AdvancedSearch.get_filters()
AdvancedSearch.launch_search()
AdvancedSearch.prepare_filters()
AdvancedSearch.refresh_search()
AdvancedSearch.remove_row()
AdvancedSearch.rows_borders_added()
AdvancedSearch.rows_borders_removed()
AdvancedSearch.show_search()
- populse_mia.user_interface.data_browser.count_table module
- populse_mia.user_interface.data_browser.data_browser module
DataBrowser
DataBrowser.__init__()
DataBrowser.add_tag_infos()
DataBrowser.add_tag_pop_up()
DataBrowser.clone_tag_infos()
DataBrowser.clone_tag_pop_up()
DataBrowser.connect_actions()
DataBrowser.connect_mini_viewer()
DataBrowser.connect_toolbar()
DataBrowser.count_table_pop_up()
DataBrowser.create_layout()
DataBrowser.create_toolbar_view()
DataBrowser.move_splitter()
DataBrowser.open_filter()
DataBrowser.open_filter_infos()
DataBrowser.remove_tag_infos()
DataBrowser.remove_tag_pop_up()
DataBrowser.reset_search_bar()
DataBrowser.run_advanced_search()
DataBrowser.search_str()
DataBrowser.send_documents_to_pipeline()
DataBrowser.update_database()
DateFormatDelegate
DateTimeFormatDelegate
NumberFormatDelegate
TableDataBrowser
TableDataBrowser.__init__()
TableDataBrowser.add_column()
TableDataBrowser.add_columns()
TableDataBrowser.add_path()
TableDataBrowser.add_rows()
TableDataBrowser.change_cell_color()
TableDataBrowser.clear_cell()
TableDataBrowser.context_menu_table()
TableDataBrowser.delete_from_brick()
TableDataBrowser.display_file()
TableDataBrowser.display_unreset_values()
TableDataBrowser.edit_table_data_values()
TableDataBrowser.fill_cells_update_table()
TableDataBrowser.fill_headers()
TableDataBrowser.get_current_filter()
TableDataBrowser.get_index_insertion()
TableDataBrowser.get_scan_row()
TableDataBrowser.get_tag_column()
TableDataBrowser.mouseReleaseEvent()
TableDataBrowser.multiple_sort_infos()
TableDataBrowser.multiple_sort_pop_up()
TableDataBrowser.remove_scan()
TableDataBrowser.reset_cell()
TableDataBrowser.reset_column()
TableDataBrowser.reset_row()
TableDataBrowser.section_moved()
TableDataBrowser.select_all_column()
TableDataBrowser.select_all_columns()
TableDataBrowser.selection_changed()
TableDataBrowser.show_brick_history()
TableDataBrowser.sort_column()
TableDataBrowser.sort_updated()
TableDataBrowser.update_colors()
TableDataBrowser.update_selection()
TableDataBrowser.update_table()
TableDataBrowser.update_visualized_columns()
TableDataBrowser.update_visualized_rows()
TableDataBrowser.visualized_tags_pop_up()
TimeFormatDelegate
- populse_mia.user_interface.data_browser.mini_viewer module
MiniViewer
MiniViewer.__init__()
MiniViewer.boxSlider()
MiniViewer.changePosValue()
MiniViewer.check_box_cursors_state_changed()
MiniViewer.clear()
MiniViewer.clearLayouts()
MiniViewer.createDimensionLabels()
MiniViewer.createFieldValue()
MiniViewer.createLayouts()
MiniViewer.create_slider()
MiniViewer.displayPosValue()
MiniViewer.enableSliders()
MiniViewer.image2DModifications()
MiniViewer.image_to_pixmap()
MiniViewer.indexImage()
MiniViewer.mem_release()
MiniViewer.navigImage()
MiniViewer.openTagsPopUp()
MiniViewer.setThumbnail()
MiniViewer.show_slices()
MiniViewer.update_nb_slices()
MiniViewer.update_visualization_method()
MiniViewer.verify_slices()
- populse_mia.user_interface.data_browser.modify_table module
- populse_mia.user_interface.data_browser.rapid_search module
- populse_mia.user_interface.data_viewer package
- Subpackages
- populse_mia.user_interface.data_viewer.anatomist package
- populse_mia.user_interface.data_viewer.anatomist_2 package
- Submodules
- populse_mia.user_interface.data_viewer.anatomist_2.anasimpleviewer2 module
- populse_mia.user_interface.data_viewer.anatomist_2.mia_anatomist module
- populse_mia.user_interface.data_viewer.anatomist_2.resources module
- populse_mia.user_interface.data_viewer.anatomist_2.resources_snd_window module
- populse_mia.user_interface.data_viewer.anatomist_2.snd_window module
- Submodules
- populse_mia.user_interface.data_viewer.data_viewer module
- populse_mia.user_interface.data_viewer.data_viewer_tab module
- Subpackages
- populse_mia.user_interface.pipeline_manager package
- Submodules
- populse_mia.user_interface.pipeline_manager.iteration_table module
IterationTable
IterationTable.__init__()
IterationTable.add_tag()
IterationTable.emit_iteration_table_updated()
IterationTable.fill_values()
IterationTable.filter_values()
IterationTable.iteration_table_updated
IterationTable.refresh_layout()
IterationTable.remove_tag()
IterationTable.select_iteration_tag()
IterationTable.select_visualized_tag()
IterationTable.update_iterated_tag()
IterationTable.update_selected_tag()
IterationTable.update_table()
- populse_mia.user_interface.pipeline_manager.node_controller module
AttributesFilter
CapsulNodeController
CapsulNodeController.__init__()
CapsulNodeController.display_parameters()
CapsulNodeController.filter_attributes()
CapsulNodeController.parameters_changed()
CapsulNodeController.release_process()
CapsulNodeController.rename_subprocesses()
CapsulNodeController.static_release()
CapsulNodeController.update_attributes_from_filter()
CapsulNodeController.update_node_name()
CapsulNodeController.update_parameters()
CapsulNodeController.value_changed
FilterWidget
NodeController
NodeController.__init__()
NodeController.clearLayout()
NodeController.display_filter()
NodeController.display_parameters()
NodeController.get_index_from_plug_name()
NodeController.release_process()
NodeController.rename_subprocesses()
NodeController.update_node_name()
NodeController.update_parameters()
NodeController.update_plug_value()
NodeController.update_plug_value_from_filter()
NodeController.value_changed
PlugFilter
values()
- populse_mia.user_interface.pipeline_manager.pipeline_editor module
PipelineEditor
PipelineEditor.__init__()
PipelineEditor.add_link()
PipelineEditor.add_named_process()
PipelineEditor.check_modifications()
PipelineEditor.del_node()
PipelineEditor.export_node_plugs()
PipelineEditor.get_current_filename()
PipelineEditor.pipeline_modified
PipelineEditor.pipeline_saved
PipelineEditor.save_pipeline()
PipelineEditor.update_history()
PipelineEditor.update_node_name()
PipelineEditor.update_plug_value()
PipelineEditorTabs
PipelineEditorTabs.__init__()
PipelineEditorTabs.check_modifications()
PipelineEditorTabs.close_tab()
PipelineEditorTabs.emit_node_clicked()
PipelineEditorTabs.emit_pipeline_saved()
PipelineEditorTabs.emit_switch_clicked()
PipelineEditorTabs.export_to_db_scans()
PipelineEditorTabs.get_capsul_engine()
PipelineEditorTabs.get_current_editor()
PipelineEditorTabs.get_current_filename()
PipelineEditorTabs.get_current_pipeline()
PipelineEditorTabs.get_current_tab_name()
PipelineEditorTabs.get_editor_by_file_name()
PipelineEditorTabs.get_editor_by_index()
PipelineEditorTabs.get_editor_by_tab_name()
PipelineEditorTabs.get_filename_by_index()
PipelineEditorTabs.get_index_by_editor()
PipelineEditorTabs.get_index_by_filename()
PipelineEditorTabs.get_index_by_tab_name()
PipelineEditorTabs.get_tab_name_by_index()
PipelineEditorTabs.has_pipeline_nodes()
PipelineEditorTabs.load_pipeline()
PipelineEditorTabs.load_pipeline_parameters()
PipelineEditorTabs.new_tab()
PipelineEditorTabs.node_clicked
PipelineEditorTabs.open_filter()
PipelineEditorTabs.open_sub_pipeline()
PipelineEditorTabs.pipeline_saved
PipelineEditorTabs.process_clicked
PipelineEditorTabs.reset_pipeline()
PipelineEditorTabs.save_pipeline()
PipelineEditorTabs.save_pipeline_parameters()
PipelineEditorTabs.set_current_editor_by_editor()
PipelineEditorTabs.set_current_editor_by_file_name()
PipelineEditorTabs.set_current_editor_by_tab_name()
PipelineEditorTabs.set_tab_index()
PipelineEditorTabs.switch_clicked
PipelineEditorTabs.update_current_node()
PipelineEditorTabs.update_history()
PipelineEditorTabs.update_iteration_checkbox()
PipelineEditorTabs.update_pipeline_editors()
PipelineEditorTabs.update_scans_list()
find_filename()
get_path()
save_pipeline()
values()
- populse_mia.user_interface.pipeline_manager.pipeline_manager_tab module
PipelineManagerTab
PipelineManagerTab.__init__()
PipelineManagerTab.add_plug_value_to_database()
PipelineManagerTab.ask_iterated_pipeline_plugs()
PipelineManagerTab.build_iterated_pipeline()
PipelineManagerTab.check_requirements()
PipelineManagerTab.cleanup_older_init()
PipelineManagerTab.complete_pipeline_parameters()
PipelineManagerTab.controller_value_changed()
PipelineManagerTab.displayNodeParameters()
PipelineManagerTab.finish_execution()
PipelineManagerTab.garbage_collect()
PipelineManagerTab.get_capsul_engine()
PipelineManagerTab.get_missing_mandatory_parameters()
PipelineManagerTab.get_pipeline_or_process()
PipelineManagerTab.init_pipeline()
PipelineManagerTab.initialize()
PipelineManagerTab.item_library_clicked
PipelineManagerTab.layout_view()
PipelineManagerTab.loadParameters()
PipelineManagerTab.loadPipeline()
PipelineManagerTab.postprocess_pipeline_execution()
PipelineManagerTab.redo()
PipelineManagerTab.register_completion_attributes()
PipelineManagerTab.remove_progress()
PipelineManagerTab.runPipeline()
PipelineManagerTab.saveParameters()
PipelineManagerTab.savePipeline()
PipelineManagerTab.savePipelineAs()
PipelineManagerTab.show_status()
PipelineManagerTab.stop_execution()
PipelineManagerTab.undo()
PipelineManagerTab.updateProcessLibrary()
PipelineManagerTab.update_auto_inheritance()
PipelineManagerTab.update_inheritance()
PipelineManagerTab.update_node_list()
PipelineManagerTab.update_project()
PipelineManagerTab.update_scans_list()
PipelineManagerTab.update_user_buttons_states()
PipelineManagerTab.update_user_mode()
RunProgress
RunWorker
StatusWidget
- populse_mia.user_interface.pipeline_manager.process_library module
DictionaryTreeModel
DictionaryTreeModel.__init__()
DictionaryTreeModel.columnCount()
DictionaryTreeModel.data()
DictionaryTreeModel.flags()
DictionaryTreeModel.getNode()
DictionaryTreeModel.headerData()
DictionaryTreeModel.index()
DictionaryTreeModel.insertRows()
DictionaryTreeModel.mimeData()
DictionaryTreeModel.mimeTypes()
DictionaryTreeModel.parent()
DictionaryTreeModel.removeRows()
DictionaryTreeModel.rowCount()
DictionaryTreeModel.setData()
DictionaryTreeModel.to_dict()
InstallProcesses
Node
PackageLibrary
PackageLibraryDialog
PackageLibraryDialog.__init__()
PackageLibraryDialog.add_package()
PackageLibraryDialog.add_package_with_text()
PackageLibraryDialog.del_list
PackageLibraryDialog.delete_package()
PackageLibraryDialog.delete_package_with_text()
PackageLibraryDialog.install_processes_pop_up()
PackageLibraryDialog.load_config()
PackageLibraryDialog.load_packages()
PackageLibraryDialog.ok_clicked()
PackageLibraryDialog.remove_package()
PackageLibraryDialog.remove_package_with_text()
PackageLibraryDialog.reset_action()
PackageLibraryDialog.save()
PackageLibraryDialog.save_config()
PackageLibraryDialog.signal_save
PackageLibraryDialog.update_config()
ProcessHelp
ProcessLibrary
ProcessLibraryWidget
import_file()
node_structure_from_dict()
- populse_mia.user_interface.pipeline_manager.process_mia module
MIAProcessCompletionEngine
MIAProcessCompletionEngine.__init__()
MIAProcessCompletionEngine.complete_attributes_with_database()
MIAProcessCompletionEngine.complete_nipype_common()
MIAProcessCompletionEngine.complete_parameters()
MIAProcessCompletionEngine.complete_parameters_mia()
MIAProcessCompletionEngine.get_attribute_values()
MIAProcessCompletionEngine.get_path_completion_engine()
MIAProcessCompletionEngine.get_project()
MIAProcessCompletionEngine.path_attributes()
MIAProcessCompletionEngine.remove_switch_observer()
MIAProcessCompletionEngineFactory
ProcessMIA
ProcessMIA.__init__()
ProcessMIA.ignore
ProcessMIA.ignore_node
ProcessMIA.init_default_traits()
ProcessMIA.init_process()
ProcessMIA.key
ProcessMIA.list_outputs()
ProcessMIA.load_nii()
ProcessMIA.make_initResult()
ProcessMIA.relax_nipype_exists_constraints()
ProcessMIA.requirements()
ProcessMIA.run_process_mia()
ProcessMIA.tags_inheritance()
- populse_mia.user_interface.pipeline_manager.type_editors module
PopulseDirectoryControlWidget
PopulseFileControlWidget
PopulseOffscreenListFileControlWidget
PopulseUndefinedControlWidget
PopulseUndefinedControlWidget.check()
PopulseUndefinedControlWidget.connect()
PopulseUndefinedControlWidget.create_widget()
PopulseUndefinedControlWidget.disconnect()
PopulseUndefinedControlWidget.is_valid()
PopulseUndefinedControlWidget.update_controller()
PopulseUndefinedControlWidget.update_controller_widget()
Submodules¶
populse_mia.user_interface.main_window module¶
Module to define main window appearance, functions and settings.
Initialize the software appearance and defines interactions with the user.
- Contains:
- Class:
MainWindow
_ProcDeleter
- class populse_mia.user_interface.main_window.MainWindow(project, test=False, deleted_projects=None)[source]¶
Bases:
QMainWindow
Initialize software appearance and define interactions with the user.
- __init__(project, test=False, deleted_projects=None)[source]¶
Main window class, initializes the software appearance and defines interactions with the user.
- Parameter:
- project:
current project in the software
- test:
boolean if the widget is launched from unit tests or not
- deleted_projects:
projects that have been deleted
- check_unsaved_modifications()[source]¶
Check if there are differences between the current project and the database.
- Returns:
Boolean. True if there are unsaved modifications, False otherwise
- closeEvent(event)[source]¶
Override the QWidget closing event to check if there are unsaved modifications
- Parameters:
event – closing event
Create the menu-bar view.
- get_controller_version()[source]¶
Gives the value of the controller_version_changed attribute.
- Returns:
Boolean
- import_data()[source]¶
Call the import software (MRI File Manager), reads the imported files and loads them into the database.
- install_processes_pop_up(folder=False)[source]¶
Open the install processes pop-up.
- Parameters:
folder – boolean, True if installing from a folder
- static last_window_closed()[source]¶
Force exit the event loop after ipython console is closed.
If the ipython console has been run, something prevents Qt from quitting after the window is closed. The cause is not known yet. So: force exit the event loop.
- remove_raw_files_useless()[source]¶
Remove the useless raw files of the current project, close the database connection. The project is not valid any longer after this call.
- set_controller_version()[source]¶
Reverses the value of the controller_version_changed attribute.
From False to True and vice versa
- switch_project(file_path, name)[source]¶
Check if it’s possible to open the selected project and quit the current one.
- Parameters:
file_path – raw file_path
name – project name
- Returns:
Boolean
populse_mia.user_interface.pop_ups module¶
Module that defines all the pop-ups used across the software
- Contains:
- Class:
ClickableLabel
DefaultValueListCreation
DefaultValueQLineEdit
PopUpAddPath
PopUpAddTag
PopUpCloneTag
PopUpClosePipeline
PopUpDataBrowserCurrentSelection
PopUpDeletedProject
PopUpDeleteProject
PopUpFilterSelection
PopUpInformation
PopUpInheritanceDict
PopUpMultipleSort
PopUpNewProject
PopUpOpenProject
PopUpPreferences
PopUpProperties
PopUpQuit
PopUpRemoveScan
PopUpRemoveTag
PopUpSaveProjectAs
PopUpSeeAllProjects
PopUpSelectFilter
PopUpSelectIteration
PopUpTagSelection (must precede PopUpSelectTag)
PopUpSelectTag
PopUpSelectTagCountTable
PopUpShowHistory
PopUpVisualizedTags
QLabel_clickable
- class populse_mia.user_interface.pop_ups.ClickableLabel[source]¶
Bases:
QLabel
QLabel with a clicked signal
- clicked¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.DefaultValueListCreation(parent, type)[source]¶
Bases:
QDialog
Widget that is called when to create a list’s default value.
- class populse_mia.user_interface.pop_ups.DefaultValueQLineEdit(parent)[source]¶
Bases:
QLineEdit
Overrides the QLineEdit for the default value.
We need to override the mousePressEvent.
- class populse_mia.user_interface.pop_ups.PopUpAddPath(project, databrowser)[source]¶
Bases:
QDialog
- Is called when the user wants to add a document to the project
without importing from MRI Files Manager (File > Import).
- class populse_mia.user_interface.pop_ups.PopUpAddTag(databrowser, project)[source]¶
Bases:
QDialog
Is called when the user wants to add a tag to the project.
- __init__(databrowser, project)[source]¶
Initialization.
- Parameters:
project – current project in the software
databrowser – data browser instance of the software
type – type of the tag to add
- signal_add_tag¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpCloneTag(databrowser, project)[source]¶
Bases:
QDialog
Is called when the user wants to clone a tag to the project.
- __init__(databrowser, project)[source]¶
Initialization.
- Parameters:
project – current project in the software
databrowser – data browser instance of the software
- ok_action(project)[source]¶
- Verifies the specified name is correct and send the
information to the data browser.
- Parameters:
project – current project
- search_str(project, str_search)[source]¶
Matches the searched pattern with the tags of the project.
- Parameters:
project – current project
str_search – string pattern to search
- signal_clone_tag¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpClosePipeline(pipeline_name)[source]¶
Bases:
QDialog
Is called when the user closes a pipeline editor that has been modified.
- Parameters:
bool_save_as – boolean to True if the pipeline needs to be saved
bool_exit – boolean to True if we can exit the editor
save_as_signal – signal emitted to save the pipeline under another name
do_not_save_signal – signal emitted to close the editor
cancel_signal – signal emitted to cancel the action
- __init__(pipeline_name)[source]¶
Initialization.
- Parameters:
pipeline_name – name of the pipeline (basename)
- cancel_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- do_not_save_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- save_as_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpDataBrowserCurrentSelection(project, databrowser, filter, main_window)[source]¶
Bases:
QDialog
Is called to display the current data_browser selection.
- class populse_mia.user_interface.pop_ups.PopUpDeleteProject(main_window)[source]¶
Bases:
QDialog
Is called when the user wants to delete a project.
- class populse_mia.user_interface.pop_ups.PopUpDeletedProject(deleted_projects)[source]¶
Bases:
QMessageBox
Indicate the names of deleted project when the software starts.
- class populse_mia.user_interface.pop_ups.PopUpFilterSelection(project)[source]¶
Bases:
QDialog
- Is called when the user wants to open a filter that has already been
saved.
- Methods:
cancel_clicked: closes the pop-up
ok_clicked: actions when the “OK” button is clicked
search_str: matches the searched pattern with the saved filters
- class populse_mia.user_interface.pop_ups.PopUpInformation(project)[source]¶
Bases:
QWidget
Is called when the user wants to display the current project’s information.
- signal_preferences_change¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpInheritanceDict(values, node_name, plug_name, iterate)[source]¶
Bases:
QDialog
Is called to select from which input the output will inherit the tags.
- Methods:
on_clicked: event when radiobutton is clicked
ok_clicked: event when ok button is clicked
okall_clicked: event when Ok all button is clicked
ignore_clicked: event when ignore button is clicked
ignoreall_clicked:event when ignore all plugs button is clicked
ignore_node_clicked: event when ignore all nodes button is clicked
- class populse_mia.user_interface.pop_ups.PopUpMultipleSort(project, table_data_browser)[source]¶
Bases:
QDialog
Is called to sort the data browser’s table depending on multiple tags.
- __init__(project, table_data_browser)[source]¶
Initialization.
- Parameters:
project – current project in the software
table_data_browser – data browser’s table of the software
- fill_values(idx)[source]¶
Fills the values list when a tag is added or removed.
- Parameters:
idx – index of the pressed push button
- refresh_layout()[source]¶
Updates the layouts (especially when a tag push button is added or removed).
- class populse_mia.user_interface.pop_ups.PopUpNewProject[source]¶
Bases:
QFileDialog
Is called when the user wants to create a new project.
- get_filename(file_name_tuple)[source]¶
Sets the widget’s attributes depending on the selected file name.
- Parameters:
file_name_tuple – tuple obtained with the selectedFiles method
- Returns:
real file name
- signal_create_project¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpOpenProject[source]¶
Bases:
QFileDialog
Is called when the user wants to open project.
- get_filename(file_name_tuple)[source]¶
Sets the widget’s attributes depending on the selected file name.
- Parameters:
file_name_tuple – tuple obtained with the selectedFiles method
- signal_create_project¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpPreferences(main_window)[source]¶
Bases:
QDialog
Is called when the user wants to change the software preferences.
- __init__(main_window)[source]¶
Initialization.
- Parameters:
main_window – main window object of the software
- change_admin_psswd(status)[source]¶
Method to change the admin password.
- Parameters:
status – String
- control_checkbox_toggled(main_window)[source]¶
Check if the user really wants to change the controller version.
- Parameters:
main_window – main window object of the software
- edit_capsul_config()[source]¶
Capsul engine edition
This method is used when user hit the Edit CAPSUL config button (File > MIA preferences, Pipeline tab).
- findChar()[source]¶
Highlights characters in red when using the Find button’ when editing configuration.
- not_use_clinical_mode_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- signal_preferences_change¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- use_clinical_mode_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- validate_and_save(OK_clicked=False)[source]¶
Saves the modifications to the config file and apply them.
- Parameters:
OK_clicked – a boolean. If False, only make a minimal backup of the settings to allow synchronisation with capsul config. If True, should only correspond to the moment when we finally exit the Mia config, all parameters are saved and tested.
- Returns:
True if all is fine, False if a problem has been encountered
- class populse_mia.user_interface.pop_ups.PopUpProperties(project, databrowser, old_tags)[source]¶
Bases:
QDialog
- Is called when the user wants to change the current project’s
properties (File > properties).
- __init__(project, databrowser, old_tags)[source]¶
Initialization
- Parameters:
project – current project in the software
databrowser – data browser instance of the software
old_tags – visualized tags before opening this dialog
- signal_settings_change¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpQuit(database)[source]¶
Bases:
QDialog
- Is called when the user closes the software and the current project has
been modified.
- cancel_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- do_not_save_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- save_as_signal¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpRemoveScan(scan, size)[source]¶
Bases:
QDialog
- Is called when the user wants to remove a scan that was previously sent
to the pipeline manager.
- Parameters:
scan – The scan that may be removed
size –
The number of scan the user wants to remove
- class populse_mia.user_interface.pop_ups.PopUpRemoveTag(databrowser, project)[source]¶
Bases:
QDialog
- Is called when the user wants to remove a user tag from
populse_mia project.
- __init__(databrowser, project)[source]¶
Initialization
- Parameters:
databrowser – current project in the software
project – data browser instance of the software
- search_str(str_search)[source]¶
Matches the searched pattern with the tags of the project
- Parameters:
str_search – string pattern to search
- signal_remove_tag¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpSaveProjectAs[source]¶
Bases:
QDialog
Is called when the user wants to save a project under another name.
- return_value()[source]¶
Sets the widget’s attributes depending on the selected file name.
- Returns:
new project’s file name
- signal_saved_project¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.PopUpSeeAllProjects(saved_projects, main_window)[source]¶
Bases:
QDialog
Is called when the user wants to create a see all the projects.
- __init__(saved_projects, main_window)[source]¶
Initialization.
- Parameters:
saved_projects – List of saved projects
main_window – Main window
- checkState(path)[source]¶
- Checks if the project still exists and returns the corresponding
icon.
- Parameters:
path – path of the project
- Returns:
either a green “v” or a red cross depending on the existence of the project
- class populse_mia.user_interface.pop_ups.PopUpSelectFilter(project, databrowser)[source]¶
Bases:
PopUpFilterSelection
- Is called when the user wants to open a filter that has already been
saved.
- class populse_mia.user_interface.pop_ups.PopUpSelectIteration(iterated_tag, tag_values)[source]¶
Bases:
QDialog
Is called when the user wants to run an iterated pipeline.
- class populse_mia.user_interface.pop_ups.PopUpSelectTag(project)[source]¶
Bases:
PopUpTagSelection
- Is called when the user wants to update the tag to display in the mini
viewer.
- class populse_mia.user_interface.pop_ups.PopUpSelectTagCountTable(project, tags_to_display, tag_name_checked=None)[source]¶
Bases:
PopUpTagSelection
- Is called when the user wants to update a visualized tag of the count
table.
- class populse_mia.user_interface.pop_ups.PopUpShowHistory(project, brick_uuid, scan, databrowser, main_window)[source]¶
Bases:
QDialog
Class to display the history of a document.
- __init__(project, brick_uuid, scan, databrowser, main_window)[source]¶
Prepares the brick history popup.
- Parameters:
project – current project in the software
scan – filename of the scan
databrowser – data browser instance of the software
main_window – main window of the software
- io_value_is_scan(value)[source]¶
Checks if the I/O value is a scan.
- Parameters:
value – I/O value
- Returns:
The scan corresponding to the value if it exists, None otherwise
- node_selected(node_name, process)[source]¶
Emit a signal when a node is clicked.
- Parameters:
node_name – node name
process – process of the corresponding node
- update_table(inputs, outputs, brick_name, init='', init_time=None, exec='', exec_time=None)[source]¶
Filling the table.
- Parameters:
inputs – inputs dictionary
outputs – outputs dictionary
brick_name – name of the brick
init – initialisation status
init_time – init date / time
exec – execution status
exec_time – execution date / time
- class populse_mia.user_interface.pop_ups.PopUpTagSelection(project)[source]¶
Bases:
QDialog
- Is called when the user wants to update the tags that are visualized in
the data browser.
- class populse_mia.user_interface.pop_ups.PopUpVisualizedTags(project, visualized_tags)[source]¶
Bases:
QWidget
Is called when the user wants to update the tags that are visualized.
- __init__(project, visualized_tags)[source]¶
Initialization.
- Parameters:
project – current project in the software
visualized_tags – project’s visualized tags before opening this widget
- search_str(str_search)[source]¶
Matches the searched pattern with the tags of the project.
- Parameters:
str_search – string pattern to search
- signal_preferences_change¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- class populse_mia.user_interface.pop_ups.QLabel_clickable(parent=None)[source]¶
Bases:
QLabel
Custom class to click on a QLabel
- clicked¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.