From 5de3dd4762ca33a0f92e79ffa4fe2ff67069d531 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 24 Feb 2010 01:49:02 +0000 Subject: Added KDE3 version of ktechlab git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1095338 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/viewiface.h | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 src/viewiface.h (limited to 'src/viewiface.h') 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 +#include + +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 -- cgit v1.2.1