You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/parts/tools/toolsconfig.h

73 lines
871 B

#ifndef __TOOLS_CONFIG_H__
#define __TOOLS_CONFIG_H__
#include <tqwidget.h>
#include <tqptrlist.h>
#include <tqpixmap.h>
class TQListBox;
class TQPushButton;
class TDevApplicationTree;
class Entry
{
public:
Entry() {};
TQString name;
TQString desktopFile;
TQPixmap icon;
};
class ToolsConfig : public TQWidget
{
Q_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:
TDevApplicationTree *_tree;
TQListBox *_list;
TQPushButton *_toList, *_toTree;
TQPtrList<Entry> _entries;
};
#endif