My Project
0.0.16
QUCS Mapping
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DownLoad
QUCS-src
qucs-0.0.16
qucs
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
21
enum
language_type
{
22
LANG_NONE
= 0,
23
LANG_VHDL
,
24
LANG_VERILOG
,
25
LANG_VERILOGA
,
26
LANG_OCTAVE
,
27
};
28
29
enum
textstate_type
{
30
STATE_NONE
= 0,
31
STATE_COMMENT
= 100,
32
};
33
34
class
SyntaxHighlighter
:
public
QSyntaxHighlighter {
35
public
:
36
SyntaxHighlighter
(
TextDoc
*);
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
Generated on Tue Dec 25 2012 14:30:44 for My Project by
1.8.2