summaryrefslogtreecommitdiffstats
path: root/kparts/tests/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'kparts/tests/example.h')
-rw-r--r--kparts/tests/example.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/kparts/tests/example.h b/kparts/tests/example.h
new file mode 100644
index 000000000..ec3d67540
--- /dev/null
+++ b/kparts/tests/example.h
@@ -0,0 +1,39 @@
+
+#ifndef __example_h__
+#define __example_h__
+
+#include <kparts/partmanager.h>
+#include <kparts/mainwindow.h>
+
+class KAction;
+class QWidget;
+
+class Shell : public KParts::MainWindow
+{
+ Q_OBJECT
+public:
+ Shell();
+ virtual ~Shell();
+
+protected slots:
+ void slotFileOpen();
+ void slotFileOpenRemote();
+ void slotFileEdit();
+ void slotFileCloseEditor();
+
+protected:
+ void embedEditor();
+
+private:
+
+ KAction * m_paEditFile;
+ KAction * m_paCloseEditor;
+
+ KParts::ReadOnlyPart *m_part1;
+ KParts::Part *m_part2;
+ KParts::ReadWritePart *m_editorpart;
+ KParts::PartManager *m_manager;
+ QWidget *m_splitter;
+};
+
+#endif