brainvisa.data.qt4gui GUI Modules¶
brainvisa.data.qt4gui.databaseCheckGUI¶
- class brainvisa.data.qt4gui.databaseCheckGUI.ActionWidget(fileProcess, parent, after=None)[source]¶
Bases:
PyQt5.QtWidgets.QTreeWidgetItem
Item in an ActionsList. Shows a file with associated action.
- class brainvisa.data.qt4gui.databaseCheckGUI.ActionsWidget(processor, parent=None, uiFile='actions.ui')[source]¶
Bases:
PyQt5.QtWidgets.QDialog
A widget to present a list of file with suggested action associated. Each action is (de)selectable. The user can choose to run all actions now or later (= ok and cancel button of the dialog)
- class brainvisa.data.qt4gui.databaseCheckGUI.CheckFileWidget(fileProcess, parent, after=None)[source]¶
Bases:
PyQt5.QtWidgets.QTreeWidgetItem
Item in an CheckFilesWidget. For each checked file, show filename, type, format and associated action (or “ok” icon if there is no action).
- class brainvisa.data.qt4gui.databaseCheckGUI.CheckFilesWidget(processor, parent=None)[source]¶
Bases:
brainvisa.data.qt4gui.databaseCheckGUI.ActionsWidget
Widget to present checked database files. There are several columns to provide information about database items : filename, format, type, suggested action. If a file is correct, there is no action associated : an icon “ok” is displayed. This widget is based on check.ui qt designer file. The checked files are grouped by filters attributes : these attributes are displayed as directories in the listview.
@type processor: DBChecker @param processor: the database checker that checks database files and can suggest actions if some files are incorrect.
- class brainvisa.data.qt4gui.databaseCheckGUI.DirectoryWidget(name, parent, after=None, icon='folder.png')[source]¶
Bases:
PyQt5.QtWidgets.QTreeWidgetItem
- class brainvisa.data.qt4gui.databaseCheckGUI.UnknownFilesWidget(processor, parent=None)[source]¶
Bases:
brainvisa.data.qt4gui.databaseCheckGUI.ActionsWidget
Widget that presents a list of unknown files and proposes 2 actions on these files : remove and move. It is possible to choose the same action for each file with the buttons remove all and move all. It is possible to change the action for a partcular file with context menu. For move action, default destination is the database directory.
@type processor: DBCleaner @param processor: the database cleaner that find unknown files in the database.
Called when user choose to import unidentified file in the database.
- moveAll()[source]¶
Called when the user click on move all button. Set action Move on all unknown file.
brainvisa.data.qt4gui.diskItemBrowser¶
brainvisa.data.qt4gui.hierarchyBrowser¶
- class brainvisa.data.qt4gui.hierarchyBrowser.HierarchyBrowser[source]¶
Bases:
PyQt5.QtWidgets.QWidget
This widget enables to explore databases, get information about stored data, search and manage data. Data are shown in a list view with directories and files. The contextual menu offers some actions to perform on data : remove, view/hide (with Anatomist), convert (for graphs 3.0). The menu items shown in the contextual menu depend on the selected item in the list view. To add a menu item and a condition function to show it : idMenu=self.popupMenu.insertItem( qt.QIconSet(…), “menu text”, <function call back>) self.actionConditions[idMenu]=<condition function : QListViewItem -> boolean>
Callback for remove menu. Remove all the selected disk items.
- mouseMoveEvent(event)[source]¶
The QDrag object is shown during the drag. This method is called when the mouse moves, this can be the beginning of a drag if the left button is clicked and the distance between the current position and the dragStartPosition is sufficient. The QDrag object contains as a MimeData the urls of the files associated to items dragged. This enables diskitems to be dragged in the console or in a file explorer to move, copy or link files.
- openContextMenu(point)[source]¶
Called on contextMenuRequested signal. It opens the popup menu at cursor position if there is an item at this position. Menu items visible in the contextual menu depends on the conditions verified by the selection.
- remove(file, db=None)[source]¶
If the file is a directory, recursive call to remove all its content before removing the directory. Corresponding diskitem is removed from the database if it exists.
- requestDialogAccepted()[source]¶
Calls when the user has sent a data request. The search results are shown in the main listView.
brainvisa.data.qt4gui.history¶
- class brainvisa.data.qt4gui.history.DataHistoryWindow(data, bvproc_uuid, parent=None)[source]¶
Bases:
PyQt5.QtWidgets.QMainWindow
- Attributes
- data¶
The
DiskItem
whose history is displayed in this window.
- ui¶
The
QtGui.QMainWindow
loaded from a qt designer file that is the base of this window.
- bvproc_uuid¶
The uuid of the bvproc history file that is displayed in this window.
The “Process”
QtGui.QMenu
of the window in the menubar. It contains an action to open the process of the history in normal mode (not read only).
- process_view¶
The widget of the process described in the history bvproc file.
- closeEvent(event)[source]¶
Called when the window is closed. Cleans up the process view before closing.
- show_log(log, bvsession)[source]¶
Shows the given process and brainvisa session logs in a log window.
- Parameters
log – list of
Log.Item
that represent the log of the process in the history file.bvsession (string) – uuid of the brainvisa session mentionned in the history file.
Enables to retrieve the brainvisa session history file and display it in the log window.
brainvisa.data.qt4gui.labelSelectionGUI¶
@author: Dominique Geffroy @organization: U{NeuroSpin<http://www.neurospin.org>} and U{IFR 49<http://www.ifr49.org>} @license: U{CeCILL version 2<http://www.cecill.info/licences/Licence_CeCILL_V2-en.html>}
brainvisa.data.qt4gui.neuroDataGUI¶
- class brainvisa.data.qt4gui.neuroDataGUI.BooleanEditor(parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QCheckBox
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.BooleanListEditor(parameter, parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.ChoiceEditor(parameter, parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QComboBox
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.ChoiceListEditor(parameter, parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.GenericListSelection(parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
- class brainvisa.data.qt4gui.neuroDataGUI.ListOfListEditor(parameter, parent, name, context=None)[source]¶
Bases:
PyQt5.QtWidgets.QPushButton
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.NotImplementedEditor(parent)[source]¶
Bases:
PyQt5.QtWidgets.QLabel
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.ObjectsSelection(objects, names=None, parent=None, name=None)[source]¶
Bases:
PyQt5.QtWidgets.QListWidget
- class brainvisa.data.qt4gui.neuroDataGUI.OpenChoiceEditor(parameter, parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QComboBox
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.PointEditor(parameter, parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
- class brainvisa.data.qt4gui.neuroDataGUI.PointListEditor(parameter, parent, name)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
brainvisa.data.qt4gui.readdiskitemGUI¶
- class brainvisa.data.qt4gui.readdiskitemGUI.ComboBoxAction(parent, text=None, icon_file=None)[source]¶
Bases:
PyQt5.QtWidgets.QWidgetAction
- triggered(value)[source]¶
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 brainvisa.data.qt4gui.readdiskitemGUI.DiskItemEditor(parameter, parent, name, write=False, context=None, process=None)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
,brainvisa.data.qt4gui.neuroDataGUI.DataEditor
brainvisa.data.qt4gui.scalarFeaturesViewer¶
@author: Dominique Geffroy @organization: U{NeuroSpin<http://www.neurospin.org>} and U{IFR 49<http://www.ifr49.org>} @license: U{CeCILL version 2<http://www.cecill.info/licences/Licence_CeCILL_V2-en.html>}
brainvisa.data.qt4gui.updateDatabases¶
@author: Yann Cointepas @organization: U{NeuroSpin<http://www.neurospin.org>} and U{IFR 49<http://www.ifr49.org>} @license: U{CeCILL version 2<http://www.cecill.info/licences/Licence_CeCILL_V2-en.html>}