SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Provides a dialog for launching SMTK operations. More...
#include <qtOperationDialog.h>
Signals | |
void | operationExecuted (const smtk::operation::Operation::Result &result) |
Public Member Functions | |
qtOperationDialog (smtk::operation::OperationPtr operation, QSharedPointer< smtk::extension::qtUIManager > uiManager, QWidget *parentWidget=nullptr, bool showApplyAndClose=false) | |
qtOperationDialog (smtk::operation::OperationPtr operation, smtk::resource::ManagerPtr resourceManager, smtk::view::ManagerPtr viewManager, QWidget *parentWidget=nullptr, bool showApplyAndClose=false) | |
qtOperationDialog (smtk::operation::OperationPtr operation, smtk::resource::ManagerPtr resourceManager, smtk::view::ManagerPtr viewManager, bool scrollable, QWidget *parentWidget=nullptr) | |
Use this constructor to display the operation view in a vertically-scrolling area. More... | |
Protected Slots | |
void | onOperationExecuted (const smtk::operation::Operation::Result &result) |
Protected Member Functions | |
void | buildUI (smtk::operation::OperationPtr op, QSharedPointer< smtk::extension::qtUIManager > uiMManager, bool scrollable=false, bool showApplyAndClose=false) |
void | showEvent (QShowEvent *event) override |
Provides a dialog for launching SMTK operations.
The intended use is for modelbuilder plugins that use menu or similar actions to invoke SMTK operations. (For example, export operations are typically run from a modal dialog.) The dialog is created as a QTabWidget with 2 tabs. The first tab embeds a qtOperationView for the operation, and the second tab displays the operation's "info" content. The dialog replaces and hides the "Apply", "Info" and "Cancel" buttons and consumes their Qt connections. The dialog can be shown non-modal, to allow repeated running of an operation. In non-modal operation, an optional "Apply & Close" button can be shown.
qtOperationDialog::qtOperationDialog | ( | smtk::operation::OperationPtr | operation, |
smtk::resource::ManagerPtr | resourceManager, | ||
smtk::view::ManagerPtr | viewManager, | ||
bool | scrollable, | ||
QWidget * | parentWidget = nullptr |
||
) |
Use this constructor to display the operation view in a vertically-scrolling area.
You would generally only need this option if the operation parameters are lengthy and take up a significant amount of vertical display space. When setting the scrollable option, you would generally also want to call this class' setMinimumHeight() method.