blob: 81ae27ab84fe37d249f3df02bdb83f332af22b52 (
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
64
65
66
67
68
69
70
71
72
|
#ifndef __TOOLS_CONFIG_H__
#define __TOOLS_CONFIG_H__
#include <tqwidget.h>
#include <tqptrlist.h>
#include <tqpixmap.h>
class TQListBox;
class TQPushButton;
class KDevApplicationTree;
class Entry
{
public:
Entry() {};
TQString name;
TQString desktopFile;
TQPixmap icon;
};
class ToolsConfig : public TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
ToolsConfig(TQWidget *tqparent = 0, const char *name = 0);
public slots:
void accept();
protected:
void showEvent(TQShowEvent *);
void fill();
void add(const TQString &desktopFile);
void remove(const TQString &desktopFile);
private slots:
void checkButtons();
void toList();
void toTree();
void updateList();
private:
KDevApplicationTree *_tree;
TQListBox *_list;
TQPushButton *_toList, *_toTree;
TQPtrList<Entry> _entries;
};
#endif
|