summaryrefslogtreecommitdiffstats
path: root/src/viewiface.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 01:49:02 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 01:49:02 +0000
commit5de3dd4762ca33a0f92e79ffa4fe2ff67069d531 (patch)
treebad482b7afa4cdf47422d60a5dd2c61c7e333b09 /src/viewiface.h
downloadktechlab-5de3dd4762ca33a0f92e79ffa4fe2ff67069d531.tar.gz
ktechlab-5de3dd4762ca33a0f92e79ffa4fe2ff67069d531.zip
Added KDE3 version of ktechlab
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1095338 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/viewiface.h')
-rw-r--r--src/viewiface.h123
1 files changed, 123 insertions, 0 deletions
diff --git a/src/viewiface.h b/src/viewiface.h
new file mode 100644
index 0000000..71290b5
--- /dev/null
+++ b/src/viewiface.h
@@ -0,0 +1,123 @@
+/***************************************************************************
+ * Copyright (C) 2005 by David Saxton *
+ * david@bluehaze.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+
+#ifndef VIEWIFACE_H
+#define VIEWIFACE_H
+
+#include <dcopobject.h>
+#include <dcopref.h>
+
+class CircuitView;
+class FlowCodeView;
+class ICNView;
+class ItemView;
+class MechanicsView;
+class TextView;
+class View;
+
+/**
+@author David Saxton
+*/
+class ViewIface : public DCOPObject
+{
+ K_DCOP
+
+ public:
+ ViewIface( View * view );
+ virtual ~ViewIface();
+
+ k_dcop:
+ DCOPRef document();
+ bool isFocused();
+ bool close();
+ void zoomIn();
+ void zoomOut();
+ bool canZoomIn();
+ bool canZoomOut();
+ void actualSize();
+
+ protected:
+ View * m_pView;
+};
+
+class TextViewIface : public ViewIface
+{
+ K_DCOP
+
+ public:
+ TextViewIface( TextView * view );
+
+ k_dcop:
+ void toggleBreakpoint();
+ bool gotoLine( const int line );
+
+ protected:
+ TextView * m_pTextView;
+};
+
+class ItemViewIface : public ViewIface
+{
+ K_DCOP
+
+ public:
+ ItemViewIface( ItemView * view );
+
+ k_dcop:
+ double zoomLevel();
+
+ protected:
+ ItemView * m_pItemView;
+};
+
+class MechanicsViewIface : public ItemViewIface
+{
+ K_DCOP
+
+ public:
+ MechanicsViewIface( MechanicsView * view );
+
+ protected:
+ MechanicsView * m_pMechanicsView;
+};
+
+class ICNViewIface : public ItemViewIface
+{
+ K_DCOP
+
+ public:
+ ICNViewIface( ICNView * view );
+
+ protected:
+ ICNView * m_pICNView;
+};
+
+class CircuitViewIface : public ICNViewIface
+{
+ K_DCOP
+
+ public:
+ CircuitViewIface( CircuitView * view );
+
+ protected:
+ CircuitView * m_pCircuitView;
+};
+
+class FlowCodeViewIface : public ICNViewIface
+{
+ K_DCOP
+
+ public:
+ FlowCodeViewIface( FlowCodeView * view );
+
+ protected:
+ FlowCodeView * m_pFlowCodeView;
+};
+
+#endif