summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/gui.h
blob: 834d7df4be330ae6f9cf7d8155ae7cc34fdd5437 (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
#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
  TQ_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
  TQ_OBJECT
public:
	RendererListView(TQWidget *p);
	
protected:
	virtual bool acceptDrag(TQDropEvent *event) const;
	virtual TQDragObject *dragObject() const;
};


#endif