|
These methods provide set/get access to individual button properties.
They print an error if the specified button does not exist.
|
bool | _useButtonCountAsStripCountDefault |
|
bool | _checkableButtonsDefault |
|
QList< MLABCommonButtonGroupItem * > | _items |
|
QPointer< MLABIntegerField > | _integerField |
|
QPointer< MLABEnumField > | _enumField |
|
unsigned int | _stripCount |
|
Qt::Orientation | _orientation |
|
bool | _checkableButtons |
|
bool | _showIconsOnly |
|
QButtonGroup * | _buttonGroup |
|
bool | _equalButtonWidths |
|
bool | _equalButtonHeights |
|
bool | _isEqualButtonSizeDirty |
|
bool | _isButtonBar |
|
static const bool | _borderDefault = false |
|
static const QString | _orientationDefault |
|
static const int | _defaultSpacing = 4 |
|
static const int | _defaultStrips = 1 |
|
static const int | _defaultMargin = 2 |
|
static const bool | _showButtonNamesDefault = false |
|
static const bool | _showIconsOnlyDefault = false |
|
static const bool | _stripEnumItemPrefixDefault = false |
|
void | setButtonChecked (const QString &name, bool checked) |
|
bool | isButtonChecked (const QString &name) |
|
void | setButtonEnabled (const QString &name, bool enabled) |
|
bool | isButtonEnabled (const QString &name) |
|
void | setButtonVisible (const QString &name, bool visible) |
|
bool | isButtonVisible (const QString &name) |
|
void | setButtonTitle (const QString &name, const QString &title) |
|
QString | getButtonTitle (const QString &name) |
|
void | setButtonToolTip (const QString &name, const QString &toolTip) |
|
QString | getButtonToolTip (const QString &name) |
|
void | setButtonWhatsThis (const QString &name, const QString &whatsThis) |
|
QString | getButtonWhatsThis (const QString &name) |
|
void | setButtonIcon (const QString &name, const QIcon &icon) |
|
QIcon | getButtonIcon (const QString &name) |
|
void | fieldChanged () |
|
void | buttonReleased (QAbstractButton *button) |
|
void | buttonPressed (QAbstractButton *button) |
|
void | buttonClicked (QAbstractButton *button) |
|
void | equalizeButtonSizesDelayed () |
|
void | buttonPressed (const QString &buttonName) |
|
void | buttonReleased (const QString &buttonName) |
|
void | buttonClicked (const QString &buttonName) |
|
virtual QWidget * | createWidget (QWidget *parent) |
|
virtual QAbstractButton * | createButton (MLABCommonButtonGroupItem *item, MLABTree *buttonTree, const QPixmap &pixmap=QPixmap())=0 |
|
virtual void | handleFieldChanged (MLABCommonButtonGroupItem *item) |
|
void | applyStyle () override |
|
void | addDefaultTagValues (MLABTree *tree) const override |
|
void | updateSizeHintsAndResize () |
|
QList< QAbstractButton * > | getButtons () |
|
virtual void | addButtonsToGridLayout () |
|
void | equalizeButtonSizes () |
|
static QPushButton * | createPushButton (MLABCommonButtonGroupItem *item, QPixmap &pixmap, bool flatButtons, bool showIconsOnly) |
|
static QRadioButton * | createRadioButton (MLABCommonButtonGroupItem *item, QPixmap &pixmap, bool showIconsOnly) |
|
static QToolButton * | createToolButton (MLABCommonButtonGroupItem *item, QPixmap &pixmap, const QSize &defaultIconSize, bool autoScale, bool autoRaise, bool showIconsOnly) |
|
|
enum | TitleType |
|
bool | createScreenshot (QWidget *widget, const QString &filename, int x=0, int y=0, int w=-1, int h=-1, bool grabFromScreen=true, bool scaleToLowRes=false) |
|
void | setStyle (MLABStyle *proto) |
|
MLABStyle * | style () |
|
QString | buildTitleString (MLABField *optionalField, bool splitUppercase, TitleType *resultTitleType=nullptr) |
|
void | evaluateVisibleOnExpression () |
|
static bool | showMDLFileForWidget (QWidget *w) |
|
static bool | showHelpContextMenuForWidget (QWidget *w) |
|
static QKeySequence | getKeySequence (const MLABTree *attrib) |
|
static QString | trimString (const QString &s, QWidget *w, trim mode) |
|
void | emitResizeCommand () |
|
void | updateEnabledState () |
|
void | setVisibleDelayed (bool visible) |
|
void | tooltipFieldChanged () |
|
void | setupEditedField () |
|
virtual void | internalReload () |
|
void | addDefaultTagValue (MLABTree *tree, const QString &tagName, const QString &tagValue) const |
|
void | addDefaultTagValue (MLABTree *tree, const QString &tagName, const char *tagValue) const |
|
void | addDefaultTagValue (MLABTree *tree, const QString &tagName, bool tagValue) const |
|
void | addDefaultTagValue (MLABTree *tree, const QString &tagName, int tagValue) const |
|
void | addDefaultTagValue (MLABTree *tree, const QString &tagName, unsigned int tagValue) const |
|
void | addDefaultTagValue (MLABTree *tree, const QString &tagName, float tagValue) const |
|
void | addDefaultTagValue (MLABTree *tree, const QString &tagName, double tagValue) const |
|
bool | verifyThatParentsHaveDifferentAlignGroups (const QString &alignGroup, bool isXAlign) |
|
MLABField * | lookupField (const QString fieldname, MLABTree *tree, const char *classname=nullptr, bool warn=true) |
|
QPixmap | readPixmap (MLABTree *tree) |
|
QPixmap | readPixmap (const QString &filename) |
|
QPixmap | readPixmap (MLABTree *tree, float scale) |
|
QPixmap | readPixmap (const QString &filename, float scale) |
|
QImage | readImage (MLABTree *tree, float scale) |
|
QImage | readImage (const QString &filename, float scale) |
|
void | updateMaxSize (bool maygrow) |
|
QString | trimString (const QString &s, QWidget *w) |
|
void | setupScaleFactor () |
|
QString | uniqueGroupString () |
|
bool | createIconSet (QIcon &icon, QAbstractButton *button=nullptr, bool autoScale=false) |
|
bool | createIconSetPixmap (QIcon &iconset, const QString &name, QIcon::Mode mode, QIcon::State state, bool resize=false, QSize *scaleSize=nullptr) |
|
bool | createIconSet (MLABTree *tree, QIcon &icon, QAbstractButton *button=nullptr, bool autoScale=false) |
|
bool | createIconSetPixmap (MLABTree *tree, QIcon &iconset, const QString &name, QIcon::Mode mode, QIcon::State state, bool resize=false, QSize *scaleSize=nullptr) |
|
QSize | defaultIconSize () |
|
QString | loadStyleSheetFile (const QString &styleSheetFileName) |
|
static QString | loadTextFileWithReplacedMDLVariables (const QString &filename) |
|
static bool | shouldExpandCheck (MLABTree *t) |
|
static QString | removeStyleSheetComments (const QString &style) |
|
struct MLABWidgetControl::__flags | _flags |
|
MLABTreePtr | _tree |
|
MLABTreePtr | _prototype |
|
MLABStylePtr | _style |
|
QWidget * | _widget |
|
int | _windowId |
|
float | _scale |
|
MLABWidgetControlContextInfo * | _info |
|
int | _controlType |
|
QString | _alignGroupX |
|
QString | _alignGroupY |
|
QString | _alignGroupLabels |
|
QString | _alignChildX |
|
QString | _alignChildY |
|
int | _maxColIndex |
|
int | _maxRowIndex |
|
int | _layoutXDepth |
|
int | _layoutYDepth |
|
QPointer< MLABModule > | _module |
|
QPointer< MLABField > | _field |
|
QPointer< MLABField > | _tooltipField |
|
MLABFieldExpressionEvaluator * | _visibleOnEvaluator |
|
trim | _trim |
|
bool | _isReloadable |
|
static MLABTreePtr | _currentAttrib |
|
static int | _uniqAlignGroupCounter |
|
static const bool | expandXDefault = false |
|
static const bool | expandYDefault = false |
|
static const QString | alignXDefault |
|
static const QString | alignYDefault |
|
static const QString | bgModeDefault |
|
static const QString | editBgModeDefault |
|
static const QString | buttonBgModeDefault |
|
static const int | colspanDefault = 1 |
|
CommonButtonGroup control.
The base control for handling a group of buttons.
MDL reference: CommonButtonGroup