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 UI_DESIGNER_INCLUDED_H 00024 #define UI_DESIGNER_INCLUDED_H 00025 00026 #include <q3mainwindow.h> 00027 //Added by qt3to4: 00028 #include <QHBoxLayout> 00029 #include "Network.h" 00030 #include "UI_DesignerPropDisplay.h" 00031 #include "UI_DesignerCanvasView.h" 00032 #include <q3popupmenu.h> 00033 #include <q3canvas.h> 00034 #include <QLayout> 00035 00042 class UI_Designer : public Q3MainWindow 00043 { 00044 Q_OBJECT 00045 00046 public: 00058 UI_Designer(Network* theNetwork, QWidget* parent, const char* name = 0, Qt::WFlags fl = 0 ); 00059 00064 ~UI_Designer(); 00065 00069 Network * NN; 00073 Q3PopupMenu * contextCanvasMenu; 00077 Q3PopupMenu * contextPlaneMenu; 00081 Q3PopupMenu * contextConnMenu; 00082 00083 00084 public slots: 00085 00090 void slotPlaneMenuAboutToShow(); 00095 void slotContextPlaneMenuAboutToShow(); 00100 void slotConnMenuAboutToShow(); 00105 void slotMenuAboutToHide(); 00111 void slotUpdatePropDisplay(Q3CanvasPolygonalItem * item); 00112 00113 private: 00114 00118 Q3PopupMenu * connMenu; 00122 Q3PopupMenu * planeMenu; 00126 UI_DesignerCanvasView * view; 00131 UI_DesignerPropDisplay * propDisplay; 00135 QWidget * contentPane; 00140 QHBoxLayout *contentLayout; 00141 00142 }; 00143 00144 #endif //UI_DESIGNER_INCLUDED_H