34 #include <QGridLayout>
86 void pseudo_activate_net();
108 void error(
const char *emessage);
110 void warning(
const char *emessage);
119 void selectedblockChanged();
133 QBoxLayout *m_mainLayout;
143 void createToolBars();
145 void createActions();
147 void block_name(
int i,
char *st);
149 QAction *set_neurondisplayAct;
151 QAction *set_neurongainAct;
153 QAction *set_neuronbiasAct;
155 QAction *set_lesionAct;
157 QAction *display_labelAct;
159 QAction *display_weightAct;
161 QAction *display_deltaAct;
163 QAction *display_biasAct;
165 QAction *display_gainAct;
169 QAction *add_ublockAct;
171 QAction *add_cblockAct;
173 QAction *add_gblockAct;
175 QShortcut *increasevAct;
177 QShortcut *decreasevAct;
183 QComboBox *neurontypeAct;
185 QComboBox *cblockAct;
187 QComboBox *blocktypeAct;
193 void updateblocktype();
195 void changeblocktype(
int t);
197 void set_neurondisplay();
199 void set_neuronbias();
201 void set_neurontype(
int i);
203 void selblock_changed(
int i);
205 void set_neurongain();
209 void display_label();
211 void display_weight();
213 void display_delta();
247 enum Shape { Line, Points, Polyline, Polygon, Rect, RoundRect, Ellipse, Arc,
248 Chord, Pie, Path, Text, Pixmap };
252 QSize minimumSizeHint()
const;
253 QSize sizeHint()
const;
259 double mdist(
float x,
float y,
float x1,
float y1);
261 double segmentdist(
float px,
float py,
float ax,
float ay,
float bx,
float by);
265 void selectedneuronsChanged();
268 void setShape(Shape shape);
269 void setPen(
const QPen &pen);
270 void setBrush(
const QBrush &brush);
271 void setAntialiased(
bool antialiased);
272 void setTransformed(
bool transformed);
276 void paintEvent(QPaintEvent *event);
277 void mousePressEvent(QMouseEvent *event);
278 void mouseMoveEvent(QMouseEvent *event);
279 void mouseReleaseEvent(QMouseEvent *event);
280 void mouseDoubleClickEvent(QMouseEvent *event);
300 EvoSlider(
float *ref,
float rangemin=0,
float rangemax=1, QWidget *parent=0);
302 void networkChanged();
308 void updateValue(
int ival);