summaryrefslogtreecommitdiffstats
path: root/parts/tools/toolsconfig.h
blob: 2c1158fa2de94fc4cd4446a300d880dcbc603d9d (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
  {
    TQ_OBJECT
  

public:

    ToolsConfig(TQWidget *parent = 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