SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Container for managers whose content is presented via Qt widgets. More...
#include <qtUIManager.h>
Properties | |
QColor | defaultValueColor |
QVariantList | defaultValueColorRgbF |
QColor | invalidValueColor |
QVariantList | invalidValueColorRgbF |
QColor | tempInvalidValueColor |
QVariantList | tempInvalidValueColorRgbF |
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. | |
qtBaseView * | topView () |
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) |
qtBaseView * | createView (const smtk::view::Information &info) |
Mechanism for creating new GUI view based on registered factory functions. | |
qtItem * | createItem (const qtAttributeItemInfo &info) |
Mechanism for creating new GUI item based on registered factory functions. | |
const smtk::view::SelectionPtr & | selection () 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. | |
void | setReadOnly (bool mode) |
bool | isReadOnly () const |
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 qtItem * | defaultItemConstructor (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 () |
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.
|
static |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
bool qtUIManager::advanceFontStyleBold | ( | ) | const |
Set the advanced values font to be bold and/or italic
bool qtUIManager::advanceFontStyleItalic | ( | ) | const |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
bool qtUIManager::categoryEnabled | ( | ) |
Set the advanced values font to be bold and/or italic
void qtUIManager::clearRoot | ( | ) |
Set the advanced values font to be bold and/or italic
|
static |
Set the advanced values font to be bold and/or italic
|
protected |
Set the advanced values font to be bold and/or italic
|
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.
QColor qtUIManager::correctedDefaultValueColor | ( | ) | const |
Use the given smtk::view::Configuration to construct widgets matching the specification.
QColor qtUIManager::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 qtUIManager::correctedNormalValueColor | ( | ) | const |
Use the given smtk::view::Configuration to construct widgets matching the specification.
QColor qtUIManager::correctedTempInvalidValueColor | ( | ) | const |
Use the given smtk::view::Configuration to construct widgets matching the specification.
std::string qtUIManager::currentCategory | ( | ) |
Set the advanced values font to be bold and/or italic
|
static |
Set the advanced values font to be bold and/or italic
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
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.
QVariantList smtk::extension::qtUIManager::defaultValueColorRgbF | ( | ) | const |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
signal |
Set the advanced values font to be bold and/or italic
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.
bool qtUIManager::getExpressionArrayString | ( | smtk::attribute::GroupItemPtr | dataItem, |
QString & | strValues | ||
) |
Set the advanced values font to be bold and/or italic
|
virtual |
Set the advanced values font to be bold and/or italic
|
virtual |
Set the advanced values font to be bold and/or italic
|
virtual |
Set the advanced values font to be bold and/or italic
bool qtUIManager::hasViewConstructor | ( | const std::string & | vtype | ) | const |
}@
Check if view type string has a registered view construction function
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
void qtUIManager::initAdvanceLevels | ( | QComboBox * | combo | ) |
Set the advanced values font to be bold and/or italic
|
protectedvirtual |
Set the advanced values font to be bold and/or italic
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
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.
QVariantList smtk::extension::qtUIManager::invalidValueColorRgbF | ( | ) | const |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
}@
Set and Get Value Label Lengths
|
inline |
Set the advanced values font to be bold and/or italic
|
signal |
Set the advanced values font to be bold and/or italic
|
slot |
Set the advanced values font to be bold and/or italic
|
slot |
Set the advanced values font to be bold and/or italic
|
slot |
Set the advanced values font to be bold and/or italic
|
slot |
Set the advanced values font to be bold and/or italic
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
bool qtUIManager::passAdvancedCheck | ( | int | level | ) |
Set the advanced values font to be bold and/or italic
|
signal |
Set the advanced values font to be bold and/or italic
|
static |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
void qtUIManager::setAdvanceFontStyleBold | ( | bool | val | ) |
Set the advanced values font to be bold and/or italic
void qtUIManager::setAdvanceFontStyleItalic | ( | bool | val | ) |
Set the advanced values font to be bold and/or italic
|
slot |
Set the advanced values font to be bold and/or italic
|
static |
Set the advanced values font to be bold and/or italic
void qtUIManager::setDefaultValueColor | ( | const QColor & | color | ) |
Set/Get the color used for indicating items with default values
void qtUIManager::setDefaultValueColorRgbF | ( | const QVariantList & | color | ) |
Use the given smtk::view::Configuration to construct widgets matching the specification.
void qtUIManager::setHighlightOnHover | ( | bool | val | ) |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
void qtUIManager::setInvalidValueColor | ( | const QColor & | color | ) |
}@
Set/Get the invalid value color
void qtUIManager::setInvalidValueColorRgbF | ( | const QVariantList & | color | ) |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
void qtUIManager::setReadOnly | ( | bool | mode | ) |
Set and Get methods to make the Views of the UI Manager read-only
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
Set the advanced values font to be bold and/or italic
|
inline |
Set the advanced values font to be bold and/or italic
qtBaseView * qtUIManager::setSMTKView | ( | const smtk::view::ConfigurationPtr & | v | ) |
Use the given smtk::view::Configuration to construct widgets matching the specification.
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.
qtBaseView * qtUIManager::setSMTKView | ( | const smtk::view::Information & | v, |
bool | useInternalFileBrowser = true |
||
) |
Use the given smtk::view::Configuration to construct widgets matching the specification.
void qtUIManager::setTempInvalidValueColor | ( | const QColor & | color | ) |
}@
Set/Get the "temporary" invalid value color
void qtUIManager::setTempInvalidValueColorRgbF | ( | const QVariantList & | color | ) |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
void qtUIManager::setWidgetColorToDefault | ( | QWidget * | widget | ) |
Set the advanced values font to be bold and/or italic
void qtUIManager::setWidgetColorToInvalid | ( | QWidget * | widget | ) |
Set the advanced values font to be bold and/or italic
void qtUIManager::setWidgetColorToNormal | ( | QWidget * | widget | ) |
Set the advanced values font to be bold and/or italic
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
QVariantList smtk::extension::qtUIManager::tempInvalidValueColorRgbF | ( | ) | const |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
inline |
Set the advanced values font to be bold and/or italic
|
static |
Set the advanced values font to be bold and/or italic
|
static |
Set the advanced values font to be bold and/or italic
|
static |
Set the advanced values font to be bold and/or italic
bool qtUIManager::updateTableItemCheckState | ( | QTableWidgetItem * | labelitem, |
smtk::attribute::ItemPtr | attItem | ||
) |
Set the advanced values font to be bold and/or italic
|
inline |
Use the given smtk::view::Configuration to construct widgets matching the specification.
|
signal |
Set the advanced values font to be bold and/or italic
|
friend |
Set the advanced values font to be bold and/or italic
|
friend |
Set the advanced values font to be bold and/or italic