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, i.e. an object that implements the IAction interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the action. The unadapted object will be an instance of QAction. |
Create a singleton application, i.e. an object that implements the IApplication interface.
Parameters: |
|
---|---|
Returns: | the application. Repeated calls must return the same application. The unadapted object will be an instance of QApplication. |
Create an editor that implements the ICheckBox interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QCheckBox. |
Create an action, i.e. an object that implements the IAction interface, to handle closing an object.
Returns: | the action. The unadapted object will be an instance of QAction. |
---|
Create an editor that implements the IComboBox interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QComboBox. |
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 view that implements the IDialog interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapated object 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 view that implements the IDock interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QDockWidget. |
Create an editor that implements the IFilesystemLocationEditor interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of DipFilesystemLocationEditor. Any factory properties will be applied to an internal QLineEdit. |
Find the toolkit view with a particular identifier.
Parameters: |
|
---|---|
Returns: | the toolkit view. An exception will be raised if the view could not be found. |
Create an editor that implements the IFloatSpinBox interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QDoubleSpinBox. |
Create a view that implements the IForm interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object 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 view that implements the IGrid interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QGridLayout. |
Create a view that implements the IGroupBox interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QGroupBox. |
Create a view that implements the IHBox interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QHBoxLayout. |
Display a informational message to the user.
Parameters: |
|
---|
Create an editor that implements the ILabel interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QLabel. |
Create an editor that implements the ILineEditor interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QLineEdit. |
Create an editor that implements the IListEditor interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of DipListEditor. Any factory properties will be applied to an internal QTreeWidget. |
Create a view that implements the IMainWindow interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QMainWindow. |
Create a view that implements the IMenu interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QMenu. |
Create a view that implements the IMenuBar interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QMenuBar. |
Create a view that implements the IMessageArea interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QLabel. |
Create an action, i.e. an object that implements the IAction interface, to handle creating a new object.
Returns: | the action. The unadapted object will be an instance of QAction. |
---|
Create an action, i.e. an object that implements the IAction interface, to handle opening an object.
Returns: | the action. The unadapted object will be an instance of QAction. |
---|
Create an editor that implements the IOptionList interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QListWidget. |
Create an that implements the IPushButton interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QPushButton. |
Ask the user a question.
Parameters: |
|
---|---|
Returns: | The button that was pressed. |
Create an action, i.e. an object that implements the IAction interface, to handle quitting the application.
Returns: | the action. The unadapted object will be an instance of QAction. |
---|
Create an editor that implements the IRadioButtons interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of DipRadioButtons. Any factory properties will be applied to each of the buttons. |
Create an action, i.e. an object that implements the IAction interface, to handle saving an object.
Returns: | the action. The unadapted object will be an instance of QAction. |
---|
Create an action, i.e. an object that implements the IAction interface, to handle saving an object under a new name.
Returns: | the action. The unadapted object will be an instance of QAction. |
---|
Create a settings object, i.e. an object that implements the ISettingsStorage interface.
Parameters: |
|
---|---|
Returns: | the settings object. |
Create an editor that implements the ISpinBox interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QSpinBox. |
Create a view that implements the ISplitter interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QSplitter. |
Create an editor that implements the IStorageLocationEditor interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of DipStorageLocationEditor. Any factory properties will be applied to an internal QLineEdit. |
Create a view that implements the ITabBar interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QTabWidget. |
Create a view that implements the ITabPage interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. |
Create an editor that implements the ITableEditor interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of DipTableEditor. Any factory properties will be applied to an internal QTableWidget. |
Create an editor that implements the ITextEditor interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QTextEdit. |
Create an editor that implements the IToolButton interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the editor. The unadapted object will be an instance of QToolButton. |
Create a view that implements the IVBox interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QVBoxLayout. |
Create a view that implements the IViewStack interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QStackedLayout. |
Display a warning message to the user.
Parameters: |
|
---|
Create an action, i.e. an object that implements the IAction interface, to handle “What’s This?”.
Returns: | the action. The unadapted object will be an instance of QAction. |
---|
Create a view that implements the IWizard interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QWizard. |
Create a view that implements the IWizardPage interface.
Parameter: | parent – is the optional parent view. |
---|---|
Returns: | the view. The unadapted object will be an instance of QWizardPage. |