actionreportdialog¶
A Dialog Window to display the result of a jukeboxcore.action.ActionCollection.
- class jukeboxcore.gui.widgets.actionreportdialog.TextPopupButton(popuptitle, text, parent=None)[source]¶
Bases: PySide.QtGui.QPushButton
A abstract push button that will show a textedit as popup when you click on it
Intended to be used in the jukeboxcore.gui.widgetdelegate.WidgetDelegate. Subclass it and reimplement TextPopupButton.get_popup_text()
Parameters: Raises: None
- show_popup(*args, **kwargs)[source]¶
Show a popup with a textedit
Returns: None Return type: None Raises: None
- staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000009423A88>¶
- class jukeboxcore.gui.widgets.actionreportdialog.TracebackButton(parent=None)[source]¶
Bases: jukeboxcore.gui.widgets.actionreportdialog.TextPopupButton
A push button that will show the traceback of an jukeboxcore.action.ActionUnit.
Intended to be used in the jukeboxcore.gui.widgetdelegate.ActionUnitDelegate.
Initialize a new TracebackButton
Parameters: parent (QtGui.QWidget) – widget parent Raises: None - set_index(index)[source]¶
Display the data of the given index
Parameters: index (QtCore.QModelIndex) – the index to paint Returns: None Return type: None Raises: None
- staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000009423748>¶
- class jukeboxcore.gui.widgets.actionreportdialog.MessageButton(parent=None)[source]¶
Bases: jukeboxcore.gui.widgets.actionreportdialog.TextPopupButton
A push button that will show the message of an jukeboxcore.action.ActionUnit.
Intended to be used in the jukeboxcore.gui.widgetdelegate.ActionUnitDelegate.
Initialize a new MessageButton
Parameters: parent (QtGui.QWidget) – widget parent Raises: None - set_index(index)[source]¶
Display the data of the given index
Parameters: index (QtCore.QModelIndex) – the index to paint Returns: None Return type: None Raises: None
- staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000009423AC8>¶
- class jukeboxcore.gui.widgets.actionreportdialog.ActionUnitTracebackDelegate(parent=None)[source]¶
Bases: jukeboxcore.gui.widgetdelegate.WidgetDelegate
A delegate for drawing the tracebackcolumn of a jukeboxcore.gui.actionreport.ActionItenData.
Parameters: parent (QObject) – the parent object Raises: None - create_widget(parent=None)[source]¶
Return a widget that should get painted by the delegate
You might want to use this in WidgetDelegate.createEditor()
Returns: The created widget | None Return type: QtGui.QWidget | None Raises: None
- set_widget_index(index)[source]¶
Set the index for the widget. The widget should retrieve data from the index and display it.
You might want use the same function as for WidgetDelegate.setEditorData().
Parameters: index (QtCore.QModelIndex) – the index to paint Returns: None Return type: None Raises: None
- create_editor_widget(parent, option, index)[source]¶
Return the editor to be used for editing the data item with the given index.
Note that the index contains information about the model being used. The editor’s parent widget is specified by parent, and the item options by option.
Parameters: - parent (QtGui.QWidget) – the parent widget
- option (QtGui.QStyleOptionViewItem) – the options for painting
- index (QtCore.QModelIndex) – the index to paint
Returns: Widget
Return type: QtGui.QWidget
Raises: None
- setEditorData(editor, index)[source]¶
Sets the contents of the given editor to the data for the item at the given index.
Note that the index contains information about the model being used.Parameters: - editor (QtGui.QWidget) – the editor widget
- index (QtCore.QModelIndex) – the index to paint
Returns: None
Return type: None
Raises: None
- staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000009423708>¶
- class jukeboxcore.gui.widgets.actionreportdialog.ActionUnitMessageDelegate(parent=None)[source]¶
Bases: jukeboxcore.gui.widgetdelegate.WidgetDelegate
A delegate for drawing the tracebackcolumn of a jukeboxcore.gui.actionreport.ActionItenData.
Parameters: parent (QObject) – the parent object Raises: None - create_widget(parent=None)[source]¶
Return a widget that should get painted by the delegate
You might want to use this in WidgetDelegate.createEditor()
Returns: The created widget | None Return type: QtGui.QWidget | None Raises: None
- set_widget_index(index)[source]¶
Set the index for the widget. The widget should retrieve data from the index and display it.
You might want use the same function as for WidgetDelegate.setEditorData().
Parameters: index (QtCore.QModelIndex) – the index to paint Returns: None Return type: None Raises: None
- create_editor_widget(parent, option, index)[source]¶
Return the editor to be used for editing the data item with the given index.
Note that the index contains information about the model being used. The editor’s parent widget is specified by parent, and the item options by option.
Parameters: - parent (QtGui.QWidget) – the parent widget
- option (QtGui.QStyleOptionViewItem) – the options for painting
- index (QtCore.QModelIndex) – the index to paint
Returns: Widget
Return type: QtGui.QWidget
Raises: None
- setEditorData(editor, index)[source]¶
Sets the contents of the given editor to the data for the item at the given index.
Note that the index contains information about the model being used.Parameters: - editor (QtGui.QWidget) – the editor widget
- index (QtCore.QModelIndex) – the index to paint
Returns: None
Return type: None
Raises: None
- staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000009423FC8>¶
- class jukeboxcore.gui.widgets.actionreportdialog.ActionReportDialog(actioncollection, parent=None, flags=0)[source]¶
Bases: jukeboxcore.gui.main.JB_Dialog, jukeboxcore.gui.widgets.actionreportdialog_ui.Ui_ActionReportDialog
A dialog that can show the result of a jukeboxcore.action.ActionCollection
The dialog will ask the user to confirm the report or cancel.
The dialog uses the actionreportdialog.ui for it’s layout.
Construct a new dialog for the given action collection
Parameters: - actioncollection (jukeboxcore.action.ActionCollection) – the action collection to report
- parent (QWidget) – Optional - the parent of the window - default is None
- flags (QtCore.Qt.WindowFlags) – the window flags
Raises: None
- staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000009423788>¶