blob: c5f873791098bc55d063df20a3a58e8bc36225e9 (
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
|
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
// (c) 2002 Patrick S. Vogtp <tille@handhelds.org>
#ifndef LISTVIEWITEMCONFIGENTRY_H
#define LISTVIEWITEMCONFIGENTRY_H
#include <qwidget.h>
#include <qlistview.h>
#include "listviewitemconffile.h"
#include "listviewitemconf.h"
class QTextStream;
class ListViewItemConfigEntry : public ListViewItemConf {
public:
ListViewItemConfigEntry(ListViewItemConfFile *parent, QString group, QString key="");
~ListViewItemConfigEntry();
bool isGroup();
bool isKey();
QString getFile();
void setGroup(QString);
QString getGroup();
void setKey(QString);
QString getKey();
QString getValue();
void keyChanged(QString);
void valueChanged(QString);
virtual void displayText();
virtual void changed();
virtual void remove();
virtual void expand();
void save(QTextStream*);
virtual void revert();
private:
QString _file;
QString _group;
QString _key;
QString _value;
QString _groupOrig;
QString _keyOrig;
QString _valueOrig;
ListViewItemConfFile *_fileItem;
};
#endif
|