summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/gui.h
blob: 84fd2bf073a05d5be7eab58f409a4207f37cdd77 (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 <qsplitter.h>
#include <qdict.h>
#include <dcopobject.h>
#include <kurl.h>

class Renderer;

class Control : public KMainWindow
{
Q_OBJECT
	
public:
	Control();

	void addCreator(const QString &title);

public slots:
	void save(const KURL &file);
	void save();
	void saveAs();
	
	void open();
	void open(const KURL &file);
	
protected slots:
	void dropEvent(QDropEvent *e, QListViewItem *parent, QListViewItem *pafter);
	void currentChanged(QListViewItem *item);

private:
	QWidget *mRight;
	KListView *mTree, *mCreatorsList;
	QWidget *mConfigurator;
	
	KURL mCurrentURL;
};

class RendererListView : public KListView
{
Q_OBJECT
public:
	RendererListView(QWidget *p);
	
protected:
	virtual bool acceptDrag(QDropEvent *event) const;
	virtual QDragObject *dragObject() const;
};


#endif