Menu

[c54480]: / vymtext.h  Maximize  Restore  History

Download this file

52 lines (44 with data), 1.3 kB

 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef VYMTEXT_H
#define VYMTEXT_H
#include <qcolor.h>
#include <qstring.h>
// class VymText;
#include "xmlobj.h"
/*! \brief base class for headings of branches and vymnotes */
class VymText:public XMLObj
{
public:
enum TextMode {AutoText, PlainText, RichText};
VymText();
VymText(const VymText &vt);
VymText(const QString &s);
bool operator== (const VymText &other);
void operator= (const VymText &);
virtual void copy (const VymText &);
virtual void clear();
void setText (const QString&);
void setRichText (const QString&);
void setPlainText (const QString&);
void setAutoText (const QString &);
QString getText() const;
QString getTextASCII() const;
QString getTextASCII(QString igdent, const int &width=0) const;
void setRichText(bool b);
bool isRichText() const;
void setFontHint (const QString&);
QString getFontHint () const;
void setFilenameHint (const QString&);
QString getFilenameHint () const;
bool isEmpty();
void setColor(QColor color);
QColor getColor();
QString getAttributes();
QString saveToDir();
protected:
QString text;
QString fonthint;
QString filenamehint;
TextMode textmode;
QColor color; // used for plaintext
};
#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.