summaryrefslogtreecommitdiffstats
path: root/tdeparts/tests/parts.h
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-03-02 15:57:34 -0600
committerDarrell Anderson <[email protected]>2013-03-02 15:57:34 -0600
commit7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch)
treec76702a7f6310fbe9d437e347535422e836e94e9 /tdeparts/tests/parts.h
parenta2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff)
parent27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff)
downloadtdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz
tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tdeparts/tests/parts.h')
-rw-r--r--tdeparts/tests/parts.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/tdeparts/tests/parts.h b/tdeparts/tests/parts.h
new file mode 100644
index 000000000..37af4911e
--- /dev/null
+++ b/tdeparts/tests/parts.h
@@ -0,0 +1,43 @@
+
+#ifndef __parts_h__
+#define __parts_h__
+
+#include <tdeparts/part.h>
+
+class TQMultiLineEdit;
+namespace KParts {
+class GUIActivateEvent;
+};
+
+class Part1 : public KParts::ReadOnlyPart
+{
+ Q_OBJECT
+public:
+ Part1( TQObject *parent, TQWidget * parentWidget );
+ virtual ~Part1();
+
+protected:
+ virtual bool openFile();
+
+protected:
+ TQMultiLineEdit * m_edit;
+ TDEInstance *m_instance;
+};
+
+class Part2 : public KParts::Part
+{
+ Q_OBJECT
+public:
+ Part2( TQObject *parent, TQWidget * parentWidget );
+ virtual ~Part2();
+
+protected:
+ // This is not mandatory - only if you care about setting the
+ // part caption when the part is used in a multi-part environment
+ // (i.e. in a part manager)
+ // There is a default impl for ReadOnlyPart...
+ virtual void guiActivateEvent( KParts::GUIActivateEvent * );
+ TDEInstance *m_instance;
+};
+
+#endif