QuasarAppLib
|
Help namespace contains functions for printing help in to console. All Print fucntions automaticly calc width of the console and aligns the text to fit the window. More...
Typedefs | |
typedef QMultiMap< QString, QString > | Options |
Options this is list of key-descriptions pairs of help. The key is name of the available argument and description is description of the available argument. | |
typedef QMultiMap< QString, Options > | Section |
Section This is list of the help Sections. The one section it is Title of the section and Help::Options list. | |
typedef Section | Charters |
Charters is wraper of the Section type. | |
Functions | |
void | print (const QString &key, const QString &value, int keyLength) |
void | print (const Options &oprionsList) |
print This method print a one options list. | |
void | print (const Section &help) |
print This method print all sections of the help. | |
void | setLineLength (int newLength) |
setLineLength sets new length of the help line (width of the console window). If you set this into -1 then the window width will be selected automatically. | |
int | width () |
width This method return current width of the cosole window. | |
Help namespace contains functions for printing help in to console. All Print fucntions automaticly calc width of the console and aligns the text to fit the window.
Charters is wraper of the Section type.
Definition at line 51 of file helpdata.h.
Options this is list of key-descriptions pairs of help. The key is name of the available argument and description is description of the available argument.
Example:
Definition at line 32 of file helpdata.h.
Section This is list of the help Sections. The one section it is Title of the section and Help::Options list.
Example:
Definition at line 45 of file helpdata.h.
void QUASARAPPSHARED_EXPORT QuasarAppUtils::Help::print | ( | const Options & | oprionsList | ) |
print This method print a one options list.
oprionsList | This is options list. |
Definition at line 61 of file helpdata.cpp.
void QUASARAPPSHARED_EXPORT QuasarAppUtils::Help::print | ( | const Section & | help | ) |
print This method print all sections of the help.
help | This is sections list. |
Definition at line 76 of file helpdata.cpp.
void QUASARAPPSHARED_EXPORT QuasarAppUtils::Help::setLineLength | ( | int | newLength | ) |
setLineLength sets new length of the help line (width of the console window). If you set this into -1 then the window width will be selected automatically.
newLength | This is a new size of the console window. |
Definition at line 87 of file helpdata.cpp.
int QuasarAppUtils::Help::width | ( | ) |
width This method return current width of the cosole window.
Definition at line 91 of file helpdata.cpp.