File: guideuicodeformat.h

package info (click to toggle)
gambc 4.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 54,404 kB
  • ctags: 10,660
  • sloc: ansic: 661,388; lisp: 143,554; sh: 3,531; makefile: 3,320; cpp: 2,143; perl: 1,730; sed: 498; java: 265
file content (74 lines) | stat: -rw-r--r-- 1,772 bytes parent folder | download | duplicates (8)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* File: "guideuicodeformat.h", Time-stamp: <2005-04-28 00:01:46 feeley> */

/* Copyright (C) 1994-2005 by Marc Feeley, All Rights Reserved. */

#ifndef ___GUIDEUICODEFORMAT_H
#define ___GUIDEUICODEFORMAT_H

/*---------------------------------------------------------------------------*/

#include <qobject.h>
#include <qstring.h>
#include <qcolor.h>
#include <qfont.h>
#include <qvaluevector.h>
#include <qtextedit.h>
#include "guideuimainwindow.h"

/*---------------------------------------------------------------------------*/

class GuideUiElementFormat
  {
  private:
    QString title;
    QColor color;
    bool bold;
    bool italic;
    bool underline;

  public:
    GuideUiElementFormat (QString title);
    GuideUiElementFormat ();

    QString getTitle ();
    void setColor (QColor color);
    QColor getColor ();
    QFont getFont (QFont font);
    void setBold (bool bold);
    bool getBold ();
    void setItalic (bool italic);
    bool getItalic ();
    void setUnderline (bool underline);
    bool getUnderline ();
  };

class GuideUiCodeFormat
  {
  private:
    QValueVector<GuideUiElementFormat*> elementList;

  public:
    bool highlighterEnabled;
    bool matchParent;
    bool autoIndent;

    GuideUiCodeFormat ();
    ~GuideUiCodeFormat ();
    int getNbElements ();
    GuideUiElementFormat* getElement (int no);
    void addElement (const QColor color,
                     const QString title,
                     bool bold=FALSE,
                     bool italic=FALSE,
                     bool underline=FALSE);
    void addElement (GuideUiElementFormat* ef);
    void removeAllElements ();
  };

/*---------------------------------------------------------------------------*/

#endif

/* Local Variables: */
/* mode: C++ */
/* End: */