Workspace 6.21.5
Public Slots | Signals | Public Member Functions | Properties | List of all members
OperationEditor Class Reference

Container for an OperationWidget with an association to a WorkspaceController.

#include <Workspace/Presentation/operationeditor.h>

Inherits QWidget.

Public Slots

void setController (CSIRO::Presentation::WorkspaceController *controller)
 

Signals

void titleChanged (const QString &title)
 

Public Member Functions

 OperationEditor (QWidget *parent=nullptr)
 
 OperationEditor (WorkspaceController &controller, QWidget *parent=nullptr)
 
 ~OperationEditor () override
 
bool getReadOnly () const
 
void setReadOnly (bool b)
 

Properties

bool readOnly
 

Constructor & Destructor Documentation

◆ OperationEditor() [1/2]

OperationEditor ( WorkspaceController controller,
QWidget *  parent = nullptr 
)
Parameters
controllerThe 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.
parentThe parent of this widget.

◆ OperationEditor() [2/2]

OperationEditor ( QWidget *  parent = nullptr)

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()

~OperationEditor ( )
override

Member Function Documentation

◆ getReadOnly()

bool getReadOnly ( ) const

◆ setController

void setController ( CSIRO::Presentation::WorkspaceController controller)
slot
Parameters
controllerThe 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

Property Documentation

◆ readOnly

bool readOnly
readwrite