Workspace 6.21.5
Public Member Functions | List of all members
OperationPropertiesDialog Class Reference

#include <Workspace/Presentation/operationpropertiesdialog.h>

Inherits QDialog.

Public Member Functions

 OperationPropertiesDialog (DataExecution::Operation &op, QWidget *parent=nullptr)
 
int addPropertyPage (QWidget *widget, const QString &label)
 
void enableOkButton (bool enable)
 
void setFocusOnWidget (const QString &objectName)
 
void setReadOnly ()
 Disables the individual pages, but lets the user change page.
 
void showLastPage ()
 
void showPage (int index)
 

Constructor & Destructor Documentation

◆ OperationPropertiesDialog()

OperationPropertiesDialog ( DataExecution::Operation op,
QWidget *  parent = nullptr 
)

Member Function Documentation

◆ addPropertyPage()

int addPropertyPage ( QWidget *  widget,
const QString &  label 
)
Parameters
widgetThe widget to be added as a new page to the properties. The dialog takes ownership of the widget.
labelThe label to use for the new page. It will typically be used as the text shown on a tab of a tab widget, so it should be kept short.

If the operation is part of a workspace that comes from an external source URL, the widget will be made read-only by marking it a disabled. This is to prevent the user from trying to change something that they cannot save.

Returns
The page number of the new property page. This can be used to tell the dialog to show that page when an error is encountered, for example.
See also
showPage()

◆ enableOkButton()

void enableOkButton ( bool  enable)
Parameters
enableEnable or disable the Ok button

◆ setFocusOnWidget()

void setFocusOnWidget ( const QString &  objectName)
Parameters
objectNameQObject name of the widget that we wish to focus on.

◆ setReadOnly()

void setReadOnly ( )

◆ showLastPage()

void showLastPage ( )
See also
showPage()

◆ showPage()

void showPage ( int  index)
Parameters
indexThe page index as returned from addPropertyPage(). Index 0 is always the general properties page.
See also
addPropertyPage(), showLastPage()