TarzaNN
TarzaNN neural network simulator
|
00001 /**************************************************************************** 00002 ** 00003 ** Copyright C 2002-2012 Laboratory for Active and Attentive Vision (LAAV), Department of Computer Science and Engineering, York University, Toronto, ON, Canada. 00004 ** All rights reserved. 00005 ** 00006 ** This file is part of the TarzaNN Neural Network Simulator. 00007 ** 00008 ** This file may be distributed and/or modified under the terms of the 00009 ** GNU General Public License version 2 as published by the Free Software 00010 ** Foundation and appearing in the file LICENSE.GPL included in the 00011 ** packaging of this file. 00012 ** 00013 ** See http://www.tarzann.org/gpl/ for GPL licensing information. 00014 ** 00015 ** Contact info@tarzann.org if any conditions of this licensing are 00016 ** not clear to you. 00017 ** 00018 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00019 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00020 ** 00021 ****************************************************************************/ 00022 00023 #ifndef CANVASVIEW_H 00024 #define CANVASVIEW_H 00025 00026 00027 #include <q3canvas.h> 00028 #include <QPoint> 00029 #include <QContextMenuEvent> 00030 #include <QMouseEvent> 00031 00039 class UI_DesignerCanvasView : public Q3CanvasView 00040 { 00041 public: 00050 UI_DesignerCanvasView(Q3Canvas * c, QWidget* parent=0,const char* name=0, Qt::WFlags f=0); 00054 ~UI_DesignerCanvasView(); 00055 00056 00057 protected: 00067 void contentsMousePressEvent(QMouseEvent* e); 00068 00077 void contentsMouseMoveEvent(QMouseEvent* e); 00085 void contentsContextMenuEvent (QContextMenuEvent * e ); 00086 00093 void contentsMouseReleaseEvent(QMouseEvent* e); 00094 private: 00095 00099 Q3CanvasItem* moving; 00100 00104 QPoint movingStart; 00105 00106 }; 00107 00108 #endif