My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
syntax.h
Go to the documentation of this file.
1 /***************************************************************************
2  syntax.h
3  ----------
4  begin : Sat Mar 11 2006
5  copyright : (C) 2006 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef SYNTAX_H
19 #define SYNTAX_H
20 
22  LANG_NONE = 0,
27 };
28 
32 };
33 
34 class SyntaxHighlighter : public QSyntaxHighlighter {
35 public:
37  virtual ~SyntaxHighlighter();
38 
39  void setLanguage(int);
40  int highlightParagraph(const QString&, int);
41 
42 private:
43  int language;
44  TextDoc *Doc;
45  void markWord(const QString&, int, int);
46  void markAttribute(const QString&, int, int);
47 };
48 
49 #endif