Container for an OperationWidget with an association to a WorkspaceController.
#include <Workspace/Presentation/operationeditor.h>
Inherits QWidget.
◆ OperationEditor() [1/2]
- Parameters
-
controller | The workspace controller that this editor should use. The first operation in the selection model provided by controller will be the operation that is shown. If there is no selection, then this widget will effectively be a blank QWidget. |
parent | The parent of this widget. |
◆ OperationEditor() [2/2]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
This constructor would not normally be used in client code. It exists primarily to facilitate the use of OperationEditor in Qt Designer. You will generally need to call setController() after construction to give the widget the controller you want. This constructor creates an internal controller object which will be deleted if setController() is called.
- See also
- setController()
◆ ~OperationEditor()
◆ getReadOnly()
bool getReadOnly |
( |
| ) |
const |
◆ setController
- Parameters
-
controller | The workspace controller that this widget should use. If it is a null pointer, the function call has no effect. |
Normally, this function is only ever called once or not at all. The only time it is generally needed is if an OperationEditor has been created in Qt Designer and it needs to share a workspace controller with another widget. That association has to be done by creating a controller outside of the widget and calling this function with that controller. The other widget would also use the same controller too.
◆ setReadOnly()
void setReadOnly |
( |
bool |
b | ) |
|
◆ titleChanged
void titleChanged |
( |
const QString & |
title | ) |
|
|
signal |
◆ readOnly