This module contains the implementation of the Qt4 toolkit.
Base class: BaseToolkit
The Toolkit class implements the toolkit that uses the Qt4 GUI library.
Create an action.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the action which will be a QAction. |
Create a singleton application.
Parameters: |
|
---|---|
Returns: | the application. Repeated calls must return the same application. |
Create an editor based on a check box.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QCheckBox. |
Create an action to handle closing an object.
Returns: | the action. |
---|
Create an editor based on a combo box.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QComboBox. |
Get an EditorFactory type object that will create a factory that creates views of a particular type.
Parameter: | view – is the view. |
---|---|
Returns: | the EditorFactory sub-class. |
Load a file containing a user interface design.
Parameter: | ui_file_name – is the name of the file. |
---|---|
Returns: | an opaque object that will be passed to designer_view(). |
Create a view from a previously loaded user interface design.
Parameters: |
|
---|---|
Returns: | the view. |
Create a dialog view.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QDialog. |
Return a view that can be displayed as a top-level window.
Parameter: | view – is the view to be displayed. |
---|---|
Returns: | the view, possibly wrapped so that it can be displayed. |
Create a dock view.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QDockWidget. |
Create an editor that implements a filesystem file/directory location editor.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. Any factory properties will be applied to an internal QLineEdit. |
Find the view with a particular identifier.
Parameters: |
|
---|---|
Returns: | the view. An exception will be raised if the view could not be found. |
Create an editor for floats based on a spin box.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QDoubleSpinBox. |
Create a layout to contain a number of items arranged as a form.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the layout which will be an instance of QFormLayout. |
Get the name of a file to open from the user.
Parameters: |
|
---|---|
Returns: | the name of the file to open or an empty string if there was none. |
Get the name of a file to save from the user.
Parameters: |
|
---|---|
Returns: | the name of the file to save or an empty string if there was none. |
Create a layout to contain a number of items arranged in a grid.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the layout which will be an instance of QGridLayout. |
Create a group box view.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QGroupBox. |
Create a layout to contain a number of items arranged horizontally.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the layout which will be an instance of QHBoxLayout. |
Display a informational message to the user.
Parameters: |
|
---|
Create an editor for displaying a string.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QLabel. |
Create an editor based on a line editor.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QLineEdit. |
Create an editor for a list.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of DipListEditor. Any factory properties will be applied to an internal QTreeWidget. |
Create a main window view.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QMainWindow. |
Create a menu.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the menu which will be an instance of QMenu. |
Create a menu bar.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the menu bar which will be an instance of QMenuBar. |
Create a message area.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the message area which will be an instance of QLabel. |
Create an action to handle creating a new object.
Returns: | the action. |
---|
Create an action to handle opening an object.
Returns: | the action. |
---|
Create an editor used to select from a sequence of options.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QListWidget. |
Create an editor based on a push button.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QPushButton. |
Ask the user a question.
Parameters: |
|
---|---|
Returns: | The button that was pressed. |
Create an action to handle quitting the application.
Returns: | the action. |
---|
Create an editor that implements a set of radio buttons.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. Any factory properties will be applied to each of the buttons. |
Create an action to handle saving an object.
Returns: | the action. |
---|
Create an action to handle saving an object under a new name.
Returns: | the action. |
---|
Create an editor based on a spin box.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QSpinBox. |
Create a splitter view to contain a number of items.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QSplitter. |
Create an editor that implements a storage location editor.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. Any factory properties will be applied to an internal QLineEdit. |
Create a tab bar view.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QTabWidget. |
Create an editor for a table.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of DipTableEditor. Any factory properties will be applied to an internal QTableWidget. |
Create an editor based on a text editor.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QTextEdit. |
Create an editor based on a tool button.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor which will be an instance of QToolButton. |
Create a layout to contain a number of items arranged vertically.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the layout which will be an instance of QVBoxLayout. |
Create a layout to contain a stack of items such that only one is visible at a time.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the layout which will be an instance of QStackedLayout. |
Display a warning message to the user.
Parameters: |
|
---|
Create an action to handle “What’s This?”.
Returns: | the action. |
---|
Create a wizard view.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QWizard. |
Create a wizard page view.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view which will be an instance of QWizardPage. |