Menu

[c54480]: / command.h  Maximize  Restore  History

Download this file

34 lines (29 with data), 873 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef COMMAND_H
#define COMMAND_H
#include <QColor>
#include <QStringList>
class Command
{
public:
enum SelectionType {Any, TreeItem, Branch, BranchLike, Image, BranchOrImage, XLink};
enum ParameterType {Undefined,String, Int, Double, Color, Bool};
Command (const QString &n, SelectionType st);
QString getName();
QString getDescription();
QString getDescriptionLaTeX();
void addPar (ParameterType t, bool opt, const QString &c=QString() );
int parCount();
ParameterType getParType (int n);
QString getParTypeName (int n);
SelectionType getSelectionType ();
QString getSelectionTypeName ();
bool isParOptional (int n);
QString getParComment(int n);
private:
QString name;
SelectionType selectionType;
QList <ParameterType> parTypes;
QList <bool> parOpts;
QStringList parComments;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.