Workspace 6.21.5
|
A container widget for showing a widget for a particular operation. More...
#include <Workspace/Widgets/operationwidget.h>
Inherits QWidget.
Public Slots | |
bool | getCustomDisplayButtonShown () const |
bool | getDefaultCustomDisplayButtonShown () const |
void | setCustomDisplayButtonShown (bool b) |
void | setDefaultCustomDisplayButtonShown (bool b) |
void | setOperation (DataExecution::Operation *op, const QString customUiFile={}) |
Signals | |
void | editRequested () |
void | titleChanged (const QString &title) |
Public Member Functions | |
OperationWidget (const OperationWidget &)=delete | |
OperationWidget (DataExecution::Operation *op=nullptr, bool readOnly=false, QWidget *parent=nullptr, const QString customUiFile={}) | |
OperationWidget (QWidget *parent) | |
~OperationWidget () override | |
QWidget * | getCustomWidget () |
DataExecution::Operation * | getOperation () |
bool | getReadOnly () const |
OperationWidget & | operator= (const OperationWidget &)=delete |
void | setReadOnly (bool b) |
Properties | |
bool | customDisplayButtonShown |
This class is more of a container for IOTreeWidget with some additional functionality to make it easy to create a widget with a custom .ui file for the operation.
OperationWidget | ( | DataExecution::Operation * | op = nullptr , |
bool | readOnly = false , |
||
QWidget * | parent = nullptr , |
||
const QString | customUiFile = {} |
||
) |
op | The operation this IOTreeWidget will represent, or a null pointer if no widget should be displayed initially (in which case setOperation() will need to be called later to make the use of this widget meaningful). |
readOnly | Set this to true if the widget (excluding the toggle-custom-display buttom) is to be read-only (default is false) |
parent | The parent of this widget. |
customUiFile | File to read for custom ui |
OperationWidget | ( | QWidget * | parent | ) |
parent | The parent of this widget |
Constructs an operation with no selected operation.
|
override |
|
delete |
|
signal |
|
slot |
QWidget * getCustomWidget | ( | ) |
|
slot |
Operation * getOperation | ( | ) |
bool getReadOnly | ( | ) | const |
|
delete |
|
slot |
b | Shows or hides the custom display button on the operation widget. |
|
slot |
|
slot |
param op The operation this widget should display, or a null pointer if it should display no widget at all
void setReadOnly | ( | bool | b | ) |
This is a delayed-action operation as the pimpl is not created when this is created.
|
signal |
|
readwrite |