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)

addActions(self, Iterable[QAction])[source]
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.

addActions(parent, after, actions)[source]

This method is redefined because, item are different from ActionsWidget items (more columns to fill)

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.

menuImportEvent()[source]

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.

openContextMenu(pos)[source]

Called on contextMenuRequested signal. It opens the popup menu at cursor position.

removeAll()[source]

Called when the user click on remove all button. Set action Remove on all unknown file.

brainvisa.data.qt4gui.diskItemBrowser

class brainvisa.data.qt4gui.diskItemBrowser.DiskItemBrowser(database, parent=None, write=False, multiple=False, selection={}, required={}, enableConversion=False, exactType=False)[source]

Bases: PyQt5.QtWidgets.QDialog

getAllValues()[source]

Returns all diskitems currently in the list, not only the selected ones.

keyPressEvent(self, QKeyEvent)[source]
resizeEvent(self, QResizeEvent)[source]
showEvent(self, QShowEvent)[source]
sizeHint(self) QSize[source]
class brainvisa.data.qt4gui.diskItemBrowser.SignalNameComboBox(editable, parent, name)[source]

Bases: PyQt5.QtWidgets.QComboBox

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>

closeEvent(self, QCloseEvent)[source]
keyPressEvent(self, QKeyEvent)[source]
menuRemoveEvent()[source]

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.

mousePressEvent(self, QMouseEvent)[source]
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.

search()[source]

Opens a diskItemBrowser to set parameters to describe requested data.

searchItem(parentItem, searchedText)[source]

Searches a QListViewItem which text is searchedText among parentItem’s children

selectedItems()[source]

Gets items that are currently selected in the listview (as we are in extended selection mode).

@rtype: list of QListViewItem @return: items currently selected

class brainvisa.data.qt4gui.hierarchyBrowser.SearchResultItem(parent)[source]

Bases: PyQt5.QtWidgets.QTreeWidgetItem

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.

process_menu

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.

show_process(process)[source]

Shows the signature of the process in read only mode.

Parameters

process – Instance of Process.

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>}

class brainvisa.data.qt4gui.labelSelectionGUI.LabelSelectionEditor(parameter, parent, name)[source]

Bases: PyQt5.QtWidgets.QWidget, brainvisa.data.qt4gui.neuroDataGUI.DataEditor

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 BooleanListSelect(clEditor, name)[source]

Bases: PyQt5.QtWidgets.QWidget

class brainvisa.data.qt4gui.neuroDataGUI.ChoiceEditor(parameter, parent, name)[source]

Bases: PyQt5.QtWidgets.QComboBox, brainvisa.data.qt4gui.neuroDataGUI.DataEditor

releaseCallbacks()[source]

Unrgister all callbacks or references to self so that the editor can be destroyed

class brainvisa.data.qt4gui.neuroDataGUI.ChoiceListEditor(parameter, parent, name)[source]

Bases: PyQt5.QtWidgets.QWidget, brainvisa.data.qt4gui.neuroDataGUI.DataEditor

class ChoiceListSelect(clEditor, name)[source]

Bases: PyQt5.QtWidgets.QWidget

class brainvisa.data.qt4gui.neuroDataGUI.FloatEditor(parameter, parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.StringEditor

class brainvisa.data.qt4gui.neuroDataGUI.FloatListEditor(parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.NumberListEditor

class brainvisa.data.qt4gui.neuroDataGUI.GenericListSelection(parent, name)[source]

Bases: PyQt5.QtWidgets.QWidget

closeEvent(self, QCloseEvent)[source]
class brainvisa.data.qt4gui.neuroDataGUI.IntegerEditor(parameter, parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.StringEditor

class brainvisa.data.qt4gui.neuroDataGUI.IntegerListEditor(parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.NumberListEditor

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.ListOfVectorEditor(parameter, parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.StringEditor

class brainvisa.data.qt4gui.neuroDataGUI.MatrixEditor(parameter, parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.StringEditor

class brainvisa.data.qt4gui.neuroDataGUI.NotImplementedEditor(parent)[source]

Bases: PyQt5.QtWidgets.QLabel, brainvisa.data.qt4gui.neuroDataGUI.DataEditor

class brainvisa.data.qt4gui.neuroDataGUI.NumberEditor(parameter, parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.StringEditor

class brainvisa.data.qt4gui.neuroDataGUI.NumberListEditor(parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.StringListEditor

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

releaseCallbacks()[source]

Unrgister all callbacks or references to self so that the editor can be destroyed

class brainvisa.data.qt4gui.neuroDataGUI.PasswordEditor(parameter, parent, name)[source]

Bases: brainvisa.data.qt4gui.neuroDataGUI.StringEditor

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

class brainvisa.data.qt4gui.neuroDataGUI.StringEditor(parameter, parent, name)[source]

Bases: PyQt5.QtWidgets.QLineEdit, brainvisa.data.qt4gui.neuroDataGUI.DataEditor

class brainvisa.data.qt4gui.neuroDataGUI.StringListEditor(parent, name)[source]

Bases: PyQt5.QtWidgets.QLineEdit, 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

setText(self, str)[source]
setVisible(self, bool)[source]
text(self) str[source]
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

releaseCallbacks()[source]

Unrgister all callbacks or references to self so that the editor can be destroyed

class brainvisa.data.qt4gui.readdiskitemGUI.DiskItemListEditor(parameter, parent, name, write=0, context=None, process=None)[source]

Bases: PyQt5.QtWidgets.QWidget, brainvisa.data.qt4gui.neuroDataGUI.DataEditor

class DiskItemListSelect(dilEditor, name, write, context=None, databaseUserLevel=0, browseUserLevel=0)[source]

Bases: PyQt5.QtWidgets.QWidget

closeEvent(self, QCloseEvent)[source]
class brainvisa.data.qt4gui.readdiskitemGUI.RightClickablePushButton[source]

Bases: PyQt5.QtWidgets.QPushButton

mousePressEvent(self, QMouseEvent)[source]

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>}

class brainvisa.data.qt4gui.updateDatabases.UpdateDatabasesGUI(parent)[source]

Bases: PyQt5.QtWidgets.QWidget