summaryrefslogtreecommitdiffstats
path: root/tdeparts/tests/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdeparts/tests/example.h')
-rw-r--r--tdeparts/tests/example.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/tdeparts/tests/example.h b/tdeparts/tests/example.h
new file mode 100644
index 000000000..76541437d
--- /dev/null
+++ b/tdeparts/tests/example.h
@@ -0,0 +1,39 @@
+
+#ifndef __example_h__
+#define __example_h__
+
+#include <tdeparts/partmanager.h>
+#include <tdeparts/mainwindow.h>
+
+class TDEAction;
+class TQWidget;
+
+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:
+
+ TDEAction * m_paEditFile;
+ TDEAction * m_paCloseEditor;
+
+ KParts::ReadOnlyPart *m_part1;
+ KParts::Part *m_part2;
+ KParts::ReadWritePart *m_editorpart;
+ KParts::PartManager *m_manager;
+ TQWidget *m_splitter;
+};
+
+#endif