TraceX
 
Loading...
Searching...
No Matches
stylefile.h
Go to the documentation of this file.
1#ifndef STYLEFILE_H
2#define STYLEFILE_H
3#include <string>
4#include <QString>
5
7{
8private:
9 std::string id;
10 std::string name;
11 std::string police;
12 int policeSize;
13 std::string color;
14 bool gras;
15 bool italique;
16 bool souligne;
17 bool shadow;
18public:
19
20 StyleFile(const std::string& id,const std::string& name,const std::string& police,const int& policeSize,const std::string& color,const bool& gras,const bool& italique,const bool& souligne,const bool& shadow);
21 StyleFile();
26 std::string getId() const;
31 std::string getPolice()const ;
32
37 int getPoliceSize()const;
38
43 std::string getColor()const ;
44
45 std::string getName()const ;
46
51 bool isGras() const ;
56 bool isItalique() const;
57
62 bool isSouligne() const;
67 bool isShadow() const ;
68
69
74 QString toQString()const ;
75};
76
77#endif // STYLEFILE_H
std::string getId() const
getId : récupérer le l'identificateur (id) du style
Definition stylefile.cpp:35
bool isSouligne() const
isSouligne : vérifie si le style est souligné ou pas
Definition stylefile.cpp:93
bool isItalique() const
isItalique : vérifie si le style est en italique ou pas
Definition stylefile.cpp:85
bool isShadow() const
isShadow : vérifie si le style lui est appliqué une ombre ou pas
Definition stylefile.cpp:101
int getPoliceSize() const
getPoliceSize : récupère la taille du style
Definition stylefile.cpp:51
QString toQString() const
toQString
Definition stylefile.cpp:112
bool isGras() const
isGras : vérifie si le style contient du gras
Definition stylefile.cpp:77
StyleFile(const std::string &id, const std::string &name, const std::string &police, const int &policeSize, const std::string &color, const bool &gras, const bool &italique, const bool &souligne, const bool &shadow)
Constructeur complet de la classe StyleFile.
Definition stylefile.cpp:18
StyleFile()
Constructeur par défaut de la classe StyleFile.
Definition stylefile.cpp:28
std::string getColor() const
getColor : récupère la couleur du style
Definition stylefile.cpp:59
std::string getPolice() const
getPolice : récupère la police d'un style
Definition stylefile.cpp:43
std::string getName() const
Récupère le nom du style.
Definition stylefile.cpp:68