4
0
mirror of https://github.com/QuasarApp/QuasarAppLib.git synced 2025-04-28 18:54:39 +00:00

57 lines
1.2 KiB
C
Raw Normal View History

2020-05-23 02:13:32 +03:00
/*
2021-01-05 13:04:05 +03:00
* Copyright (C) 2018-2021 QuasarApp.
2020-05-23 02:13:32 +03:00
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
*/
2020-02-18 22:28:17 +03:00
#ifndef HELPDATA_H
#define HELPDATA_H
#include <QMap>
#include "quasarapp_global.h"
2020-02-18 22:28:17 +03:00
namespace QuasarAppUtils{
namespace Help {
2020-02-22 12:41:14 +03:00
/**
2021-04-07 13:24:30 +03:00
* @brief Options this is list of key - descriptions pairs of help.
2020-02-22 12:41:14 +03:00
*/
2020-08-14 10:14:38 +03:00
typedef QMultiMap<QString, QString> Options;
2020-02-22 12:41:14 +03:00
/**
2021-04-07 13:24:30 +03:00
* @brief Charters ths is list of charters.
2020-02-22 12:41:14 +03:00
*/
2020-08-14 10:14:38 +03:00
typedef QMultiMap<QString, Options> Charters;
int width();
2020-02-18 22:28:17 +03:00
/**
2021-04-07 13:24:30 +03:00
* @brief print Line of help.
* @param key Option name.
* @param value Description of option.
2020-02-18 22:28:17 +03:00
*/
void QUASARAPPSHARED_EXPORT print(const QString& key, const QString& value, int keyLength);
2020-02-18 22:28:17 +03:00
/**
2021-04-07 13:24:30 +03:00
* @brief print Help Charter.
* @param charter Charter of help.
2020-02-18 22:28:17 +03:00
*/
void QUASARAPPSHARED_EXPORT print(const Options& charter);
2020-02-18 22:28:17 +03:00
/**
2021-04-07 13:24:30 +03:00
* @brief print All help.
* @param help Help for printing.
2020-02-18 22:28:17 +03:00
*/
void QUASARAPPSHARED_EXPORT print(const Charters& help);
2020-02-18 22:28:17 +03:00
/**
2021-04-07 13:24:30 +03:00
* @brief setLineLength sets new length of helps line.
* @param newLength New size.
2020-02-18 22:28:17 +03:00
*/
void QUASARAPPSHARED_EXPORT setLineLength(int newLength);
2020-02-18 22:28:17 +03:00
}
}
#endif // HELPDATA_H