QuasarAppLib
helpdata.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2025 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#ifndef HELPDATA_H
9#define HELPDATA_H
10
11#include <QMap>
12#include "quasarapp_global.h"
13
14namespace QuasarAppUtils{
15
19namespace Help {
32typedef QMultiMap<QString, QString> Options;
33
45typedef QMultiMap<QString, Options> Section;
46
52
57int width();
58
63void QUASARAPPSHARED_EXPORT print(const Options& oprionsList);
64
70void QUASARAPPSHARED_EXPORT print(const Section& help);
71
76void QUASARAPPSHARED_EXPORT setLineLength(int newLength);
77}
78}
79
80#endif // HELPDATA_H
Section Charters
Charters is wraper of the Section type.
Definition helpdata.h:51
void setLineLength(int newLength)
setLineLength sets new length of the help line (width of the console window). If you set this into -1...
Definition helpdata.cpp:87
QMultiMap< QString, QString > Options
Options this is list of key-descriptions pairs of help. The key is name of the available argument and...
Definition helpdata.h:32
void print(const QString &key, const QString &value, int keyLength)
Definition helpdata.cpp:37
QMultiMap< QString, Options > Section
Section This is list of the help Sections. The one section it is Title of the section and Help::Optio...
Definition helpdata.h:45
int width()
width This method return current width of the cosole window.
Definition helpdata.cpp:91
The QuasaraAppUtils class This lib include base functions for the all applications of QuasarApp group...
Definition helpdata.cpp:18
#define QUASARAPPSHARED_EXPORT