Generic actions description files reader class.
More...
#include <QtxActionMgr.h>
|
| Reader () |
| Constructor. More...
|
|
virtual | ~Reader () |
| Destructor. More...
|
|
QStringList | options () const |
| Get the list of options. More...
|
|
QString | option (const QString &, const QString &=QString()) const |
| Get option value. More...
|
|
void | setOption (const QString &, const QString &) |
| Set option value. More...
|
|
virtual bool | read (const QString &, Creator &) const =0 |
| Read the file and fill and action manager with actions by using help actions creator. More...
|
|
Generic actions description files reader class.
This class is used to read files of some format to create actions and fill an action manager with the actions automatically.
◆ Reader()
QtxActionMgr::Reader::Reader |
( |
| ) |
|
◆ ~Reader()
QtxActionMgr::Reader::~Reader |
( |
| ) |
|
|
virtual |
◆ option()
QString QtxActionMgr::Reader::option |
( |
const QString & |
name, |
|
|
const QString & |
def = QString() |
|
) |
| const |
Get option value.
If there is no such option the default value (def) is returned.
- Parameters
-
name | option name |
def | default option value |
- Returns
- option value
◆ options()
QStringList QtxActionMgr::Reader::options |
( |
| ) |
const |
Get the list of options.
- Returns
- options list
◆ read()
bool QtxActionMgr::Reader::read |
( |
const QString & |
fname, |
|
|
Creator & |
cr |
|
) |
| const |
|
pure virtual |
Read the file and fill and action manager with actions by using help actions creator.
This method should be redefined in the subclasses.
- Parameters
-
fname | XML file name |
cr | actions creator |
- Returns
true
on success and false
in case of error
Implemented in QtxActionMgr::XMLReader.
◆ setOption()
void QtxActionMgr::Reader::setOption |
( |
const QString & |
name, |
|
|
const QString & |
value |
|
) |
| |
Set option value.
- Parameters
-
name | option name |
value | new option value |
◆ myOptions
QMap< QString, QString > QtxActionMgr::Reader::myOptions |
|
private |
The documentation for this class was generated from the following files: