Generic QT-based GUI Application. More...
#include <qrguiapplication.h>
Public Member Functions | |
QRGUIApplication (const RString &name, int argc, char **argv) | |
virtual void | CreateConfig (void) |
void | addWidgetClass (const R::RString &classname) |
void | retrieveSize (const R::RString &classname, QWidget *widget) |
void | storeSize (const R::RString &classname, QWidget *widget) |
virtual | ~QRGUIApplication (void) |
Public Member Functions inherited from RApplication | |
RApplication (const RString &name, int argc, char **argv, const RString &localconfig=RString::Null, const RString &globalconfig=RString::Null) | |
RApplication (const RString &name, const RString &localconfig=RString::Null, const RString &globalconfig=RString::Null) | |
void | ParseArguments (int argc, char **argv) |
RString | GetName (void) const |
RString | GetApplicationFile (void) const |
bool | IsInit (void) const |
RString | GetLocalConfigDir (void) const |
RConfig * | GetConfig (void) |
RCursor< RString > | GetArgs (void) const |
bool | GetParamValue (const RString &name, RString &value) const |
RCursor< RParamValue > | GetParams (void) const |
void | Execute (void) |
virtual | ~RApplication (void) |
Private Attributes | |
R::RContainer< R::RString, true, false > | WidgetClasses |
Additional Inherited Members | |
Protected Member Functions inherited from RApplication | |
virtual void | Init (void) |
Protected Attributes inherited from RApplication | |
RString | Name |
RString | File |
RContainer< RString, true, false > | Args |
RContainer< RParamValue, true, false > | Params |
RString | LocalConfigDir |
RConfig | Config |
Detailed Description
Generic QT-based GUI Application.
The QRGUIApplication provides a class to represent a GUI application based on Qt. It provides a mechanism to store and retrieve the size of a window.
Here is an example:
Constructor & Destructor Documentation
QRGUIApplication | ( | const RString & | name, |
int | argc, | ||
char ** | argv | ||
) |
Construct a generic Qt-based GUI application.
- Parameters
-
name Name of the application. argc Number of arguments of the program (received from main). argv Arguments of the program (received from main).
|
virtual |
Destructor.
Member Function Documentation
|
virtual |
Create the configuration parameters. It practice, for each widget classes registered, it creates the two parameters (Class::Width and Class::Height).
Reimplemented from RApplication.
void addWidgetClass | ( | const R::RString & | classname | ) |
Add a widget class for which the size must be managed.
- Parameters
-
classname Name of the class.
void retrieveSize | ( | const R::RString & | classname, |
QWidget * | widget | ||
) |
Retrieve the size for a given class name and assign it to a widget.
This method can be called in the constructor of a widget.
- Parameters
-
classname Name of the class. widget Widget.
void storeSize | ( | const R::RString & | classname, |
QWidget * | widget | ||
) |
Store the size for a given class name from a given widget.
This method is typically called from the destructor of a widget.
- Parameters
-
classname Name of the class. widget Widget.
Field Documentation
|
private |
All the widget classes for which the size must be managed.