SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Properties | List of all members
smtk::extension::qtUIManager Class Reference

Container for managers whose content is presented via Qt widgets. More...

#include <qtUIManager.h>

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

Public Member Functions

 qtUIManager (const smtk::attribute::ResourcePtr &resource)
 
 qtUIManager (const smtk::operation::OperationPtr &operation, const smtk::resource::ManagerPtr &resourceManager, const smtk::view::ManagerPtr &viewManager)
 
 qtUIManager (const smtk::resource::ManagerPtr &resourceManager, const smtk::view::ManagerPtr &viewManager)
 
void initializeUI (QWidget *pWidget, bool useInternalFileBrowser=false)
 
void initializeUI (const smtk::view::Information &v, bool useInternalFileBrowser=false)
 
smtk::view::ConfigurationPtr findOrCreateOperationView () const
 If this instance was constructed with an operation, return an appropriate view for it.
 
smtk::operation::OperationPtr operation () const
 If this instance was constructed with an operation, return it.
 
qtBaseViewsetSMTKView (const smtk::view::ConfigurationPtr &v)
 
qtBaseViewsetSMTKView (const smtk::view::ConfigurationPtr &v, QWidget *pWidget, bool useInternalFileBrowser=true)
 
qtBaseViewsetSMTKView (const smtk::view::Information &v, bool useInternalFileBrowser=true)
 
smtk::view::ConfigurationPtr smtkView () const
 
const smtk::view::Configuration::ComponentfindStyle (const smtk::attribute::DefinitionPtr &def, const std::string &styleName="") const
 
smtk::resource::ManagerPtrresourceManager ()
 }@
 
void setResourceManager (const smtk::resource::ManagerPtr &mgr)
 
smtk::operation::ManagerPtroperationManager ()
 
void setOperationManager (const smtk::operation::ManagerPtr &mgr)
 
smtk::view::ManagerPtrviewManager ()
 
void setViewManager (const smtk::view::ManagerPtr &mgr)
 
const smtk::common::TypeContainermanagers () const
 
smtk::common::TypeContainermanagers ()
 
void setDefaultValueColor (const QColor &color)
 
void setDefaultValueColorRgbF (const QVariantList &color)
 
QColor defaultValueColor () const
 
QVariantList defaultValueColorRgbF () const
 
void setInvalidValueColor (const QColor &color)
 }@ More...
 
void setInvalidValueColorRgbF (const QVariantList &color)
 
QColor invalidValueColor () const
 
QVariantList invalidValueColorRgbF () const
 
QColor correctedInvalidValueColor () const
 }@Get color values corrected based on the text color - this allows the system to change color themes and the resulting GUI can still be legible
 
QColor correctedNormalValueColor () const
 
QColor correctedDefaultValueColor () const
 

Properties

QColor defaultValueColor
 
QVariantList defaultValueColorRgbF
 
QColor invalidValueColor
 
QVariantList invalidValueColorRgbF
 
class qtBaseView
 
class qtAssociationWidget
 
void setAdvanceFontStyleBold (bool val)
 
bool advanceFontStyleBold () const
 
void setAdvanceFontStyleItalic (bool val)
 
bool advanceFontStyleItalic () const
 
void setAdvancedBold (bool b)
 
bool advancedBold ()
 
void setAdvancedItalic (bool i)
 
bool advancedItalic ()
 
int maxValueLabelLength () const
 }@ More...
 
void setMaxValueLabelLength (int w)
 
int minValueLabelLength () const
 
void setMinValueLabelLength (int w)
 
bool hasViewConstructor (const std::string &vtype) const
 }@ More...
 
void registerItemConstructor (const std::string &vtype, qtItemConstructor f)
 Registers a qtItem construction function with a qtItem type string.
 
bool hasItemConstructor (const std::string &vtype) const
 Check if view type string has a registered view construction function.
 
qtBaseViewtopView ()
 
std::string currentCategory ()
 
bool categoryEnabled ()
 
void clearRoot ()
 
bool passAdvancedCheck (int level)
 
const QFont & advancedFont ()
 
int advanceLevel () const
 
void initAdvanceLevels (QComboBox *combo)
 
void setWidgetColorToInvalid (QWidget *widget)
 
void setWidgetColorToDefault (QWidget *widget)
 
void setWidgetColorToNormal (QWidget *widget)
 
bool getExpressionArrayString (smtk::attribute::GroupItemPtr dataItem, QString &strValues)
 
bool updateTableItemCheckState (QTableWidgetItem *labelitem, smtk::attribute::ItemPtr attItem)
 
virtual int getWidthOfAttributeMaxLabel (smtk::attribute::DefinitionPtr def, const QFont &font)
 
virtual int getWidthOfItemsMaxLabel (const QList< smtk::attribute::ItemDefinitionPtr > &itemDefs, const QFont &font)
 
virtual int getWidthOfText (const std::string &text, const QFont &font)
 
qtBaseViewcreateView (const smtk::view::Information &info)
 Mechanism for creating new GUI view based on registered factory functions.
 
qtItemcreateItem (const qtAttributeItemInfo &info)
 Mechanism for creating new GUI item based on registered factory functions.
 
const smtk::view::SelectionPtrselection () const
 Methods for dealing with selection process.
 
void setSelection (const smtk::view::SelectionPtr &newSel)
 
int selectionBit () const
 
void setSelectionBit (int val)
 
int hoverBit () const
 
void setHoverBit (int val)
 
bool highlightOnHover () const
 
void setHighlightOnHover (bool val)
 
const QPixmap & alertPixmap () const
 Return the pixmap used for alert icons.
 
static QString clipBoardText ()
 
static void setClipBoardText (QString &text)
 
static QColor contrastWithText (const QColor &)
 The default colors defined in smtk::attribute::Definition presuppose the use of a dark font. More...
 
static void updateArrayTableWidget (smtk::attribute::GroupItemPtr dataItem, QTableWidget *widget)
 
static void updateTableColRows (smtk::attribute::ItemPtr dataItem, int col, QTableWidget *widget)
 
static void updateArrayDataValue (smtk::attribute::GroupItemPtr dataItem, QTableWidgetItem *item)
 
static void addNewTableValues (smtk::attribute::GroupItemPtr dataItem, QTableWidget *table, double *vals, int numVals)
 
static void removeSelectedTableValues (smtk::attribute::GroupItemPtr dataItem, QTableWidget *table)
 
static qtItemdefaultItemConstructor (const qtAttributeItemInfo &info)
 
void onFileItemCreated (smtk::extension::qtFileItem *)
 
void onModelEntityItemCreated (smtk::extension::qtModelEntityItem *)
 
void onViewUIModified (smtk::extension::qtBaseView *, smtk::attribute::ItemPtr)
 
void setAdvanceLevel (int b)
 
void onOperationFinished ()
 
void fileItemCreated (smtk::extension::qtFileItem *fileItem)
 
void modelEntityItemCreated (smtk::extension::qtModelEntityItem *entItem)
 
void viewUIChanged (smtk::extension::qtBaseView *, smtk::attribute::ItemPtr)
 
void highlightOnHoverChanged (bool)
 Emitted by the UI manager when the user setting has changed so that children can reset any active hovers and update themselves.
 
void defaultValueColorChanged ()
 Emitted by the UI manager when the defaultValueColor property is changed internally. More...
 
void invalidValueColorChanged ()
 Emitted by the UI manager when the invalidValueColor property is changed internally. More...
 
void refreshEntityItems ()
 
void commonConstructor ()
 
virtual void internalInitialize ()
 

Detailed Description

Container for managers whose content is presented via Qt widgets.

This class serves as a clearing-house where Qt widgets that present SMTK attributes can fetch content such as operations and resources.

Member Function Documentation

◆ addNewTableValues()

void qtUIManager::addNewTableValues ( smtk::attribute::GroupItemPtr  dataItem,
QTableWidget *  table,
double *  vals,
int  numVals 
)
static

Set the advanced values font to be bold and/or italic

◆ advancedBold()

bool smtk::extension::qtUIManager::advancedBold ( )
inline

Set the advanced values font to be bold and/or italic

◆ advancedFont()

const QFont& smtk::extension::qtUIManager::advancedFont ( )
inline

Set the advanced values font to be bold and/or italic

◆ advancedItalic()

bool smtk::extension::qtUIManager::advancedItalic ( )
inline

Set the advanced values font to be bold and/or italic

◆ advanceFontStyleBold()

bool qtUIManager::advanceFontStyleBold ( ) const

Set the advanced values font to be bold and/or italic

◆ advanceFontStyleItalic()

bool qtUIManager::advanceFontStyleItalic ( ) const

Set the advanced values font to be bold and/or italic

◆ advanceLevel()

int smtk::extension::qtUIManager::advanceLevel ( ) const
inline

Set the advanced values font to be bold and/or italic

◆ categoryEnabled()

bool qtUIManager::categoryEnabled ( )

Set the advanced values font to be bold and/or italic

◆ clearRoot()

void qtUIManager::clearRoot ( )

Set the advanced values font to be bold and/or italic

◆ clipBoardText()

QString qtUIManager::clipBoardText ( )
static

Set the advanced values font to be bold and/or italic

◆ commonConstructor()

void qtUIManager::commonConstructor ( )
protected

Set the advanced values font to be bold and/or italic

◆ contrastWithText()

QColor qtUIManager::contrastWithText ( const QColor &  color)
static

The default colors defined in smtk::attribute::Definition presuppose the use of a dark font.

This method tests the font lightness and, if the font color is light, it adapts the input color to contrast with it.

◆ correctedDefaultValueColor()

QColor qtUIManager::correctedDefaultValueColor ( ) const

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ correctedNormalValueColor()

QColor qtUIManager::correctedNormalValueColor ( ) const

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ currentCategory()

std::string qtUIManager::currentCategory ( )

Set the advanced values font to be bold and/or italic

◆ defaultItemConstructor()

qtItem * qtUIManager::defaultItemConstructor ( const qtAttributeItemInfo info)
static

Set the advanced values font to be bold and/or italic

◆ defaultValueColor()

QColor smtk::extension::qtUIManager::defaultValueColor ( ) const
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ defaultValueColorChanged

void smtk::extension::qtUIManager::defaultValueColorChanged ( )
signal

Emitted by the UI manager when the defaultValueColor property is changed internally.

This is currently a dummy signal required by pqPropertyLinks to synchronize the vtkSMProperty (used by ParaView to store user preferences) and the QColor value (used by the UI manager). Since UI components never change the default color, only responding to changes in user preferences, this signal is unused but must be present.

◆ defaultValueColorRgbF()

QVariantList smtk::extension::qtUIManager::defaultValueColorRgbF ( ) const

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ fileItemCreated

void smtk::extension::qtUIManager::fileItemCreated ( smtk::extension::qtFileItem fileItem)
signal

Set the advanced values font to be bold and/or italic

◆ findStyle()

const smtk::view::Configuration::Component & qtUIManager::findStyle ( const smtk::attribute::DefinitionPtr def,
const std::string &  styleName = "" 
) const

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ getExpressionArrayString()

bool qtUIManager::getExpressionArrayString ( smtk::attribute::GroupItemPtr  dataItem,
QString &  strValues 
)

Set the advanced values font to be bold and/or italic

◆ getWidthOfAttributeMaxLabel()

int qtUIManager::getWidthOfAttributeMaxLabel ( smtk::attribute::DefinitionPtr  def,
const QFont &  font 
)
virtual

Set the advanced values font to be bold and/or italic

◆ getWidthOfItemsMaxLabel()

int qtUIManager::getWidthOfItemsMaxLabel ( const QList< smtk::attribute::ItemDefinitionPtr > &  itemDefs,
const QFont &  font 
)
virtual

Set the advanced values font to be bold and/or italic

◆ getWidthOfText()

int qtUIManager::getWidthOfText ( const std::string &  text,
const QFont &  font 
)
virtual

Set the advanced values font to be bold and/or italic

◆ hasViewConstructor()

bool qtUIManager::hasViewConstructor ( const std::string &  vtype) const

}@

Check if view type string has a registered view construction function

◆ highlightOnHover()

bool smtk::extension::qtUIManager::highlightOnHover ( ) const
inline

Set the advanced values font to be bold and/or italic

◆ hoverBit()

int smtk::extension::qtUIManager::hoverBit ( ) const
inline

Set the advanced values font to be bold and/or italic

◆ initAdvanceLevels()

void qtUIManager::initAdvanceLevels ( QComboBox *  combo)

Set the advanced values font to be bold and/or italic

◆ internalInitialize()

void qtUIManager::internalInitialize ( )
protectedvirtual

Set the advanced values font to be bold and/or italic

◆ invalidValueColor()

QColor smtk::extension::qtUIManager::invalidValueColor ( ) const
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ invalidValueColorChanged

void smtk::extension::qtUIManager::invalidValueColorChanged ( )
signal

Emitted by the UI manager when the invalidValueColor property is changed internally.

This is currently a dummy signal required by pqPropertyLinks to synchronize the vtkSMProperty (used by ParaView to store user preferences) and the QColor value (used by the UI manager). Since UI components never change the invalid color, only responding to changes in user preferences, this signal is unused but must be present.

◆ invalidValueColorRgbF()

QVariantList smtk::extension::qtUIManager::invalidValueColorRgbF ( ) const

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ managers() [1/2]

smtk::common::TypeContainer& smtk::extension::qtUIManager::managers ( )
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ managers() [2/2]

const smtk::common::TypeContainer& smtk::extension::qtUIManager::managers ( ) const
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ maxValueLabelLength()

int smtk::extension::qtUIManager::maxValueLabelLength ( ) const
inline

}@

Set and Get Value Label Lengths

◆ minValueLabelLength()

int smtk::extension::qtUIManager::minValueLabelLength ( ) const
inline

Set the advanced values font to be bold and/or italic

◆ modelEntityItemCreated

void smtk::extension::qtUIManager::modelEntityItemCreated ( smtk::extension::qtModelEntityItem *  entItem)
signal

Set the advanced values font to be bold and/or italic

◆ onFileItemCreated

void qtUIManager::onFileItemCreated ( smtk::extension::qtFileItem fileItem)
slot

Set the advanced values font to be bold and/or italic

◆ onModelEntityItemCreated

void qtUIManager::onModelEntityItemCreated ( smtk::extension::qtModelEntityItem *  entItem)
slot

Set the advanced values font to be bold and/or italic

◆ onOperationFinished

void qtUIManager::onOperationFinished ( )
slot

Set the advanced values font to be bold and/or italic

◆ onViewUIModified

void qtUIManager::onViewUIModified ( smtk::extension::qtBaseView bview,
smtk::attribute::ItemPtr  item 
)
slot

Set the advanced values font to be bold and/or italic

◆ operationManager()

smtk::operation::ManagerPtr& smtk::extension::qtUIManager::operationManager ( )
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ passAdvancedCheck()

bool qtUIManager::passAdvancedCheck ( int  level)

Set the advanced values font to be bold and/or italic

◆ refreshEntityItems

void smtk::extension::qtUIManager::refreshEntityItems ( )
signal

Set the advanced values font to be bold and/or italic

◆ removeSelectedTableValues()

void qtUIManager::removeSelectedTableValues ( smtk::attribute::GroupItemPtr  dataItem,
QTableWidget *  table 
)
static

Set the advanced values font to be bold and/or italic

◆ selectionBit()

int smtk::extension::qtUIManager::selectionBit ( ) const
inline

Set the advanced values font to be bold and/or italic

◆ setAdvancedBold()

void smtk::extension::qtUIManager::setAdvancedBold ( bool  b)
inline

Set the advanced values font to be bold and/or italic

◆ setAdvancedItalic()

void smtk::extension::qtUIManager::setAdvancedItalic ( bool  i)
inline

Set the advanced values font to be bold and/or italic

◆ setAdvanceFontStyleBold()

void qtUIManager::setAdvanceFontStyleBold ( bool  val)

Set the advanced values font to be bold and/or italic

◆ setAdvanceFontStyleItalic()

void qtUIManager::setAdvanceFontStyleItalic ( bool  val)

Set the advanced values font to be bold and/or italic

◆ setAdvanceLevel

void qtUIManager::setAdvanceLevel ( int  b)
slot

Set the advanced values font to be bold and/or italic

◆ setClipBoardText()

void qtUIManager::setClipBoardText ( QString &  text)
static

Set the advanced values font to be bold and/or italic

◆ setDefaultValueColor()

void qtUIManager::setDefaultValueColor ( const QColor &  color)

Set/Get the color used for indicating items with default values

◆ setDefaultValueColorRgbF()

void qtUIManager::setDefaultValueColorRgbF ( const QVariantList &  color)

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setHighlightOnHover()

void qtUIManager::setHighlightOnHover ( bool  val)

Set the advanced values font to be bold and/or italic

◆ setHoverBit()

void smtk::extension::qtUIManager::setHoverBit ( int  val)
inline

Set the advanced values font to be bold and/or italic

◆ setInvalidValueColor()

void qtUIManager::setInvalidValueColor ( const QColor &  color)

}@

Set/Get the invalid value color

◆ setInvalidValueColorRgbF()

void qtUIManager::setInvalidValueColorRgbF ( const QVariantList &  color)

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setMaxValueLabelLength()

void smtk::extension::qtUIManager::setMaxValueLabelLength ( int  w)
inline

Set the advanced values font to be bold and/or italic

◆ setMinValueLabelLength()

void smtk::extension::qtUIManager::setMinValueLabelLength ( int  w)
inline

Set the advanced values font to be bold and/or italic

◆ setOperationManager()

void smtk::extension::qtUIManager::setOperationManager ( const smtk::operation::ManagerPtr mgr)
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setResourceManager()

void smtk::extension::qtUIManager::setResourceManager ( const smtk::resource::ManagerPtr mgr)
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setSelection()

void smtk::extension::qtUIManager::setSelection ( const smtk::view::SelectionPtr newSel)
inline

Set the advanced values font to be bold and/or italic

◆ setSelectionBit()

void smtk::extension::qtUIManager::setSelectionBit ( int  val)
inline

Set the advanced values font to be bold and/or italic

◆ setSMTKView() [1/3]

qtBaseView * qtUIManager::setSMTKView ( const smtk::view::ConfigurationPtr v)

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setSMTKView() [2/3]

qtBaseView * qtUIManager::setSMTKView ( const smtk::view::ConfigurationPtr v,
QWidget *  pWidget,
bool  useInternalFileBrowser = true 
)

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setSMTKView() [3/3]

qtBaseView * qtUIManager::setSMTKView ( const smtk::view::Information v,
bool  useInternalFileBrowser = true 
)

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setViewManager()

void smtk::extension::qtUIManager::setViewManager ( const smtk::view::ManagerPtr mgr)
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ setWidgetColorToDefault()

void qtUIManager::setWidgetColorToDefault ( QWidget *  widget)

Set the advanced values font to be bold and/or italic

◆ setWidgetColorToInvalid()

void qtUIManager::setWidgetColorToInvalid ( QWidget *  widget)

Set the advanced values font to be bold and/or italic

◆ setWidgetColorToNormal()

void qtUIManager::setWidgetColorToNormal ( QWidget *  widget)

Set the advanced values font to be bold and/or italic

◆ smtkView()

smtk::view::ConfigurationPtr smtk::extension::qtUIManager::smtkView ( ) const
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ topView()

qtBaseView* smtk::extension::qtUIManager::topView ( )
inline

Set the advanced values font to be bold and/or italic

◆ updateArrayDataValue()

void qtUIManager::updateArrayDataValue ( smtk::attribute::GroupItemPtr  dataItem,
QTableWidgetItem *  item 
)
static

Set the advanced values font to be bold and/or italic

◆ updateArrayTableWidget()

void qtUIManager::updateArrayTableWidget ( smtk::attribute::GroupItemPtr  dataItem,
QTableWidget *  widget 
)
static

Set the advanced values font to be bold and/or italic

◆ updateTableColRows()

void qtUIManager::updateTableColRows ( smtk::attribute::ItemPtr  dataItem,
int  col,
QTableWidget *  widget 
)
static

Set the advanced values font to be bold and/or italic

◆ updateTableItemCheckState()

bool qtUIManager::updateTableItemCheckState ( QTableWidgetItem *  labelitem,
smtk::attribute::ItemPtr  attItem 
)

Set the advanced values font to be bold and/or italic

◆ viewManager()

smtk::view::ManagerPtr& smtk::extension::qtUIManager::viewManager ( )
inline

Use the given smtk::view::Configuration to construct widgets matching the specification.

◆ viewUIChanged

void smtk::extension::qtUIManager::viewUIChanged ( smtk::extension::qtBaseView ,
smtk::attribute::ItemPtr   
)
signal

Set the advanced values font to be bold and/or italic

Friends And Related Function Documentation

◆ qtAssociationWidget

friend class qtAssociationWidget
friend

Set the advanced values font to be bold and/or italic

◆ qtBaseView

friend class qtBaseView
friend

Set the advanced values font to be bold and/or italic


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