#include <RWidgetFactory.h>
List of all members.
Static Public Member Functions |
| static void | connect (QObject *signalSender, const char *signal, QObject *signalReceiver, const QString &objectName, bool isValue=true) |
| static QDialog * | createDialog (const QString &basePath, const QString &uiFile, QWidget *parent=NULL) |
| | Creates a dialog from the given UI file.
|
| static QWidget * | createWidget (const QString &basePath, const QString &uiFile, QWidget *parent=NULL) |
| | Creates a widget with the given parent, based on the UI file named uiFile in basePath.
|
| static QPair< QString, QString > | getKey (const QString &group, QObject &obj) |
| static void | resetState (QWidget *widget, const QString &group) |
| | Resets values to original values as defined in designer (.ui file).
|
| static void | restoreState (QWidget *widget, const QString &groupIn=RDEFAULT_QString, QObject *signalReceiver=NULL, bool reset=false, RDocument *document=NULL, QMap< QString, QVariant > *map=NULL) |
| | Restores the state of the given widget to a previously saved state.
|
| static void | saveState (QObject *widget, const QString &groupIn=RDEFAULT_QString, RDocument *document=NULL, QMap< QString, QVariant > *map=NULL) |
| | Saves the current state of the given widget and all its child widgets.
|
Detailed Description
- Scriptable:
- This class is wrapped for script environments.
- Deprecated:
Member Function Documentation
| void RWidgetFactory::connect |
( |
QObject * |
signalSender, |
|
|
const char * |
signal, |
|
|
QObject * |
signalReceiver, |
|
|
const QString & |
objectName, |
|
|
bool |
isValue = true |
|
) |
| |
|
static |
| QDialog * RWidgetFactory::createDialog |
( |
const QString & |
basePath, |
|
|
const QString & |
uiFile, |
|
|
QWidget * |
parent = NULL |
|
) |
| |
|
static |
Creates a dialog from the given UI file.
Overrides exec for testing dashboard mode.
| QWidget * RWidgetFactory::createWidget |
( |
const QString & |
basePath, |
|
|
const QString & |
uiFile, |
|
|
QWidget * |
parent = NULL |
|
) |
| |
|
static |
Creates a widget with the given parent, based on the UI file named uiFile in basePath.
| QPair< QString, QString > RWidgetFactory::getKey |
( |
const QString & |
group, |
|
|
QObject & |
obj |
|
) |
| |
|
static |
\par Non-Scriptable:
This function is not available in script environments.
- Returns:
- Settings key for the given group / object. Usually that is [group, object name]. An array with two items is returned for group / name.
| void RWidgetFactory::resetState |
( |
QWidget * |
widget, |
|
|
const QString & |
group |
|
) |
| |
|
static |
Resets values to original values as defined in designer (.ui file).
| void RWidgetFactory::restoreState |
( |
QWidget * |
widget, |
|
|
const QString & |
groupIn = RDEFAULT_QString, |
|
|
QObject * |
signalReceiver = NULL, |
|
|
bool |
reset = false, |
|
|
RDocument * |
document = NULL, |
|
|
QMap< QString, QVariant > * |
map = NULL |
|
) |
| |
|
static |
Restores the state of the given widget to a previously saved state.
- Parameters:
-
| group | Used internally for recursive calls. |
| signalReceiver | Object that receives signals whenever a child widget changes its value. |
| reset | True: Reset values to original values as defined in designer (.ui file). |
- See also:
- resetState
- Parameters:
-
| document | RDocument object to restore settings from or undefined to restore settings from RSettings (user scope, config file). |
| void RWidgetFactory::saveState |
( |
QObject * |
widget, |
|
|
const QString & |
groupIn = RDEFAULT_QString, |
|
|
RDocument * |
document = NULL, |
|
|
QMap< QString, QVariant > * |
map = NULL |
|
) |
| |
|
static |
Saves the current state of the given widget and all its child widgets.
- Parameters:
-
| group | Used internally for recursive calls. |
| document | RDocument object to store settings or undefined to store settings in RSettings (user scope, config file). |
| map | Array to use to store settings in. Used by the testing dashboard recorder only. |
Member Data Documentation
| bool RWidgetFactory::requiresRestart = false |
|
staticprivate |
| QWidget * RWidgetFactory::topLevelWidget = NULL |
|
staticprivate |
The documentation for this class was generated from the following files: