QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RWidgetFactory Class Reference

#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.

Static Private Attributes

static bool requiresRestart = false
static QWidget * topLevelWidget = NULL

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:
groupUsed internally for recursive calls.
signalReceiverObject that receives signals whenever a child widget changes its value.
resetTrue: Reset values to original values as defined in designer (.ui file).
See also:
resetState
Parameters:
documentRDocument 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:
groupUsed internally for recursive calls.
documentRDocument object to store settings or undefined to store settings in RSettings (user scope, config file).
mapArray 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: