00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _SCHEMATUXVIEW_H_
00023 #define _SCHEMATUXVIEW_H_
00024
00025 #include <qscrollview.h>
00026 #include <kparts/part.h>
00027 #include <schematuxiface.h>
00028 #include <qcanvas.h>
00029
00030 class QPainter;
00031 class QCanvas;
00032 class ScheditFile;
00033
00045 class SchematuxView : public QCanvasView, public SchematuxIface
00046 {
00047 Q_OBJECT
00048 public:
00052 SchematuxView(QWidget *parent, QCanvas * pCanvas);
00053
00057 virtual ~SchematuxView();
00058
00062 void print(QPainter *, int height, int width);
00063
00064 void enableScrollBars ( bool bFlag );
00065
00066
00067 signals:
00071 void signalChangeStatusbar(const QString& text);
00072
00076 void setStatusBarText(const QString& text);
00077
00078 public slots:
00079
00080
00081 void slotRedraw (void);
00082
00083 private:
00084 QCanvasItemList cil;
00085 QPoint qpDrag;
00086 bool bDragging;
00087
00088 void crossHairs ( QCanvasItem * ci );
00089
00090 protected:
00091 void keyPressEvent ( QKeyEvent * e );
00092 void contentsMousePressEvent ( QMouseEvent * e );
00093 void contentsMouseMoveEvent ( QMouseEvent * e );
00094 void contentsMouseReleaseEvent ( QMouseEvent * e );
00095 };
00096
00097 #endif // _SCHEMATUXVIEW_H_