|
| QDS_ComboBox (const QString &, QWidget *=0, const int=All, const QString &=QString()) |
| Constructor. More...
|
|
virtual | ~QDS_ComboBox () |
| Destructor. More...
|
|
bool | editable () const |
| Check if combo box allows text editing. More...
|
|
void | setEditable (const bool) |
| Enable/disable text editing. More...
|
|
int | count (bool=false) const |
| Get number of items in the combo box. More...
|
|
void | values (QList< int > &, bool=false) const |
| Get items identifiers. More...
|
|
virtual int | integerValue () const |
| Get the current item ID as integer value. More...
|
|
virtual double | doubleValue () const |
| Get the current item ID as double value. More...
|
|
virtual void | setIntegerValue (const int) |
| Set the current item acording to the specified id. More...
|
|
virtual void | setDoubleValue (const double) |
| Set the current item acording to the specified id.This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Integer part of val is used as new current ID. More...
|
|
bool | state (const int) const |
| Get visibility state of the item specified by id. More...
|
|
void | setState (const bool, const int, const bool=true) |
| Set the visibility state of the item specified by id. More...
|
|
void | setState (const bool, const QList< int > &, const bool=true) |
| Set the visibility state of items specified by ids. More...
|
|
void | setValues (const QList< int > &, const QStringList &) |
| Set the custom user items into the combo box. More...
|
|
void | setValues (const QStringList &) |
| Set the custom user items into the combo box.This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. User items like standard dictionary list items will be added into the combobox. This function allows user to override items. More...
|
|
virtual QString | getString () const |
| Get string from the combo box. More...
|
|
virtual void | reset () |
| Reset the datum. More...
|
|
int | stringToValue (const QString &) const |
| Convert string to integer value. More...
|
|
QString | valueToString (const int) const |
| Convert integer to string value. More...
|
|
| QDS_Datum (const QString &, QWidget *=0, const int=All, const QString &=QString()) |
| Constructor. More...
|
|
virtual | ~QDS_Datum () |
| Destructor. More...
|
|
QString | id () const |
| Get the datum ID. More...
|
|
int | type () const |
| Get the datum value type. More...
|
|
QString | label () const |
| Get the datum label text. More...
|
|
QString | units () const |
| Get the datum units text. More...
|
|
QString | filter () const |
| Get the datum filter string. More...
|
|
QString | format () const |
| Get the datum format string. More...
|
|
QString | longDescription () const |
| Get the datum long description. More...
|
|
QString | shortDescription () const |
| Get the datum short description. More...
|
|
QString | defaultValue () const |
| Get the datum default value. More...
|
|
QString | minimumValue () const |
| Get the datum minimum value. More...
|
|
QString | maximumValue () const |
| Get the datum maximum value. More...
|
|
QStringList | options () const |
| Get the datum options names. More...
|
|
QVariant | option (const QString &) const |
| Get datum option specified by name as QVariant. More...
|
|
QString | optionString (const QString &) const |
| Get datum option specified by name as string. More...
|
|
double | optionDouble (const QString &) const |
| Get datum option specified by name as double. More...
|
|
int | optionInteger (const QString &) const |
| Get datum option specified by name as integer. More...
|
|
virtual QVariant | value () const |
| Get the datum value as QVariant. More...
|
|
virtual QString | stringValue () const |
| Get the datum value as string. More...
|
|
QString | text () const |
| Get the text data from datum. More...
|
|
virtual bool | isEmpty () const |
| Check if the datum is empty. More...
|
|
virtual void | clear () |
| Clear the control. More...
|
|
virtual void | setValue (const QVariant &) |
| Set datum value from QVariant object. More...
|
|
virtual void | setStringValue (const QString &) |
| Set datum value from string data. More...
|
|
virtual bool | isEnabled (const int=Control) const |
| Get 'enabled' state of the specified subwidget. More...
|
|
virtual void | setEnabled (const bool, const int) |
| Enable/disable subwidgets specified by element. More...
|
|
void | show (const int=All) |
| Show subwidgets specified by element. More...
|
|
void | hide (const int=All) |
| Hide subwidgets specified by element. More...
|
|
virtual void | setShown (const bool, const int=All) |
| Show/hide subwidgets specified by flags. More...
|
|
QWidget * | widget (const int) const |
| Get subwidget specified by element. More...
|
|
void | setFocus () |
| Set the input focus to the control widget. More...
|
|
virtual bool | isValid (const bool=true, const QString &=QString(), const QString &=QString()) const |
| Check if input data is valid. More...
|
|
virtual QValidator * | validator (const bool=false) const |
| Create validator according to the datum type of value. More...
|
|
void | addTo (QVBoxLayout *) |
| Add widgets to the vertical box layout. More...
|
|
void | addTo (QHBoxLayout *) |
| Add widgets to the horizontal box layout. More...
|
|
void | addTo (QGridLayout *, const int, const int, const bool=false) |
| Add widgets to the grid layout. More...
|
|
virtual void | setAlignment (const int, const int=Label) |
| Set the aligment for QDS::Label and/or QDS::Units subwidgets. More...
|
|
virtual bool | eventFilter (QObject *, QEvent *) |
| Event filter. More...
|
|
| operator QWidget * () const |
| Overloaded operator used to retrieve main subwidget named QDS::Control. More...
|
|
bool | isCustomTr () const |
| Return state of custom translation. More...
|
|
void | enableCustomTr (const bool) |
| Change state of custom translation. More...
|
|
|
enum | DatumFlags {
None = 0x00,
Label = 0x01,
Control = 0x02,
Units = 0x04,
NotFormat = 0x08,
NotAccel = 0x10,
NotConvert = 0x20,
UnitsWithLabel = 0x40,
All = Label | Control | Units
} |
| Enum describes bit flags of the Qt datum view and behaviour. More...
|
|
void | setEnabled (bool) |
| Enable/disable main control subwidget (QDS::Control). More...
|
|
static QString | unitsToText (const QString &) |
| Convert units into text presentation. More...
|
|
static QString | textToUnits (const QString &) |
| Convert text presentation into internal units format. More...
|
|
static QString | format (const QString &, const QString &, const bool=false) |
| Format the specified string as dictionary item value. More...
|
|
static QString | format (const int, const QString &, const bool=false) |
| Format the specified integer as dictionary item value. More...
|
|
static QString | format (const double, const QString &, const bool=false) |
| Format the specified double as dictionary item value. More...
|
|
static QString | units (const QString &) |
| Get displayable units string for specified data dictionary item. More...
|
|
static QString | format (const QString &, const int, const int) |
| Format the given value according to the data dictionary item type. More...
|
|
static QString | format (const QString &, const int, const double) |
| Format the given value according to the data dictionary item type. More...
|
|
static QString | format (const QString &, const int, const QString &) |
| Format the given value according to the data dictionary item type. More...
|
|
static QString | sprintf (const QString &, const int) |
| Wrapper around the standard sprintf() function. More...
|
|
static QString | sprintf (const QString &, const double) |
| Wrapper around the standard sprintf() function.This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Process some non standard flags from format string. More...
|
|
static QString | sprintf (const QString &, const QString &) |
| Wrapper around the standard sprintf() function.This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Process some non standard flags from format string. More...
|
|