summaryrefslogtreecommitdiffstats
path: root/tdeparts/tests/parts.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
commitdfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch)
treec297348a55df66c571de4525646e0b9762427353 /tdeparts/tests/parts.h
parentb7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff)
downloadtdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz
tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
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