SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Classes | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pqSMTKOperationParameterPanel Class Reference

A panel that displays available operations in a "toolbox". More...

#include <pqSMTKOperationParameterPanel.h>

Inheritance diagram for pqSMTKOperationParameterPanel:
[legend]
Collaboration diagram for pqSMTKOperationParameterPanel:
[legend]

Classes

struct  TabData
 

Public Slots

virtual void observeWrapper (pqSMTKWrapper *, pqServer *)
 Called when a new client-server connection is added.
 
virtual void unobserveWrapper (pqSMTKWrapper *, pqServer *)
 Called when a client-server connection is removed.
 
virtual void runOperationWithDefaults (smtk::operation::Operation::Index)
 Called in response to signals from the pqSMTKOperationToolboxPanel. More...
 
void runOperationWithParameters (const std::shared_ptr< smtk::operation::Operation > &operation)
 Queue the (potentially asynchronous) operation to be run immediately as specified.
 
virtual void editOperationParameters (smtk::operation::Operation::Index)
 Called in response to signals from the pqSMTKOperationToolboxPanel. More...
 
void editExistingOperationParameters (const std::shared_ptr< smtk::operation::Operation > &operation)
 Called in response to signals from pqSMTKOperationToolboxPanel. More...
 
virtual void cancelEditing (int tabIndex)
 Called when users close an operation-parameter's tab.
 
virtual void cancelTabFromSender ()
 Called when users click "Done" in a qtOperationView (uses signal sender to find tab).
 

Signals

void titleChanged (QString title)
 
void runOperation (smtk::operation::Operation::Index index)
 Queue the (potentially asynchronous) operation to be run immediately with default parameters.
 

Public Member Functions

 pqSMTKOperationParameterPanel (QWidget *parent=nullptr)
 

Protected Member Functions

void observeToolboxPanels ()
 

Protected Attributes

QPointer< QTabWidget > m_tabs
 
QPointer< QVBoxLayout > m_layout
 
pqSMTKWrapper * m_wrapper { nullptr }
 
std::multimap< smtk::operation::Operation::Index, TabDatam_views
 
int m_selectionValue { 1 }
 
bool m_selectionExactMatch { false }
 

Detailed Description

A panel that displays available operations in a "toolbox".

The panel emits signals when users request an operation be (a) immediately run or (b) run after editing parameters.

Member Function Documentation

◆ editExistingOperationParameters

void pqSMTKOperationParameterPanel::editExistingOperationParameters ( const std::shared_ptr< smtk::operation::Operation > &  operation)
slot

Called in response to signals from pqSMTKOperationToolboxPanel.

This method will raise the panel and create or switch to a tab for the given operation. Unlike the variant that takes an operation index, this variant accepts an operation which may have non-default parameters.

◆ editOperationParameters

void pqSMTKOperationParameterPanel::editOperationParameters ( smtk::operation::Operation::Index  opType)
virtualslot

Called in response to signals from the pqSMTKOperationToolboxPanel.

This method will raise the panel and create or switch to a tab for the given operation.

◆ runOperationWithDefaults

void pqSMTKOperationParameterPanel::runOperationWithDefaults ( smtk::operation::Operation::Index  opType)
virtualslot

Called in response to signals from the pqSMTKOperationToolboxPanel.

This method will create and launch an operation of the given type immediately (using default parameter values). If the operation cannot be run with defaults (i.e., ableToOperate() returns false), then editOperationParametrs is invoked.


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