SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
smtk::extension::qtOperationDialog Class Reference

Provides a dialog for launching SMTK operations. More...

#include <qtOperationDialog.h>

Inheritance diagram for smtk::extension::qtOperationDialog:
[legend]
Collaboration diagram for smtk::extension::qtOperationDialog:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ qtOperationDialog()

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.


The documentation for this class was generated from the following files: