blob: 3fea2aea5777dbb8350f97393271b88b1d9ce841 (
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
|
#ifndef GUI_H
#define GUI_H
#include <kmainwindow.h>
#include <klistview.h>
#include <tqsplitter.h>
#include <tqdict.h>
#include <dcopobject.h>
#include <kurl.h>
class Renderer;
class Control : public KMainWindow
{
Q_OBJECT
public:
Control();
void addCreator(const TQString &title);
public slots:
void save(const KURL &file);
void save();
void saveAs();
void open();
void open(const KURL &file);
protected slots:
void dropEvent(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *pafter);
void currentChanged(TQListViewItem *item);
private:
TQWidget *mRight;
KListView *mTree, *mCreatorsList;
TQWidget *mConfigurator;
KURL mCurrentURL;
};
class RendererListView : public KListView
{
Q_OBJECT
public:
RendererListView(TQWidget *p);
protected:
virtual bool acceptDrag(TQDropEvent *event) const;
virtual TQDragObject *dragObject() const;
};
#endif
|