blob: d267393384cdf19da28d7339bed463d48567ffa8 (
plain)
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
|
/***************************************************************************
highlight.cpp - description
-------------------
begin : Sat Jun 15 2002
copyright : (C) 2002 by Matthias Gierlings
email : gismore@users.sourceforge.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef HIGHLIGHT_H
#define HIGHLIGHT_H
#include <tqstring.h>
#include <tqcolor.h>
#include <kurl.h>
/**
*@author Matthias Gierlings
*/
class Highlight
{
public:
Highlight(const TQString& itemPattern,
bool regExp,
const TQColor& itemColor,
const KURL& soundURL,
const TQString& autoText);
TQString getPattern();
TQString getAutoText();
TQColor getColor();
int getID();
bool getRegExp();
KURL getSoundURL();
void setPattern(const TQString& itemPattern);
void setColor(const TQColor& itemColor);
void setSoundURL(const KURL& url);
void setAutoText(const TQString& autoText);
void setRegExp(bool state);
protected:
static unsigned int s_id;
int m_itemID;
bool m_regExp;
TQString m_itemPattern;
TQString m_autoText;
TQColor m_itemColor;
KURL m_soundURL;
};
#endif
|