QuasarAppLib/helpdata.h

48 lines
878 B
C
Raw Normal View History

2020-02-18 22:28:17 +03:00
#ifndef HELPDATA_H
#define HELPDATA_H
#include <QMap>
2020-02-18 22:28:17 +03:00
namespace QuasarAppUtils{
namespace Help {
2020-02-22 12:41:14 +03:00
/**
* @brief Options - this is list of key - descriptions pairs of help.
*/
typedef QMap<QString, QString> Options;
2020-02-22 12:41:14 +03:00
/**
* @brief Charters = ths is list of charters.
*/
typedef QMap<QString, Options> Charters;
int width();
2020-02-18 22:28:17 +03:00
/**
* @brief print - line of help
* @param key - option name
* @param value - description of option
*/
2020-02-19 13:32:22 +03:00
void print(const QString& key, const QString& value, int keyLength);
2020-02-18 22:28:17 +03:00
/**
* @brief print = help Charter
* @param charter - charter of help
*/
void print(const Options& charter);
/**
* @brief print - all help
* @param help - help for printing
*/
void print(const Charters& help);
/**
* @brief setLineLength - sets new length of helps line
* @param newLength - new size
*/
void setLineLength(int newLength);
}
}
#endif // HELPDATA_H