From cf12ee6d6e2c42755b6472e54ca53e0a8023640f Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Thu, 9 Oct 2003 01:34:58 +0000 Subject: [PATCH] removed the edit vertex layer button --- .../Apollonius_graph_2/qt_layers_toolbar.h | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/Packages/Apollonius_graph_2/demo/Apollonius_graph_2/qt_layers_toolbar.h b/Packages/Apollonius_graph_2/demo/Apollonius_graph_2/qt_layers_toolbar.h index 24cf2a08400..7291ee3f867 100644 --- a/Packages/Apollonius_graph_2/demo/Apollonius_graph_2/qt_layers_toolbar.h +++ b/Packages/Apollonius_graph_2/demo/Apollonius_graph_2/qt_layers_toolbar.h @@ -21,7 +21,6 @@ #include #include #include -//#include "removecircle.xpm" class Layers_toolbar : public QToolBar @@ -110,18 +109,27 @@ public: this, "Remove site"); #endif + + // The following button is connected to a layer that is + // responsible for deleting, moving the center or changing the + // weight of a site. At this time though hidden sites do not have + // their own vertices and the code does not work as it is, since + // it assumes that both visible and hidden sites have vertices + // associated with them... +#if 0 but[6] = new QToolButton(QPixmap( (const char**)movepoint_xpm ), - "Edit site", - 0, - this, - SLOT(edit_mode()), - this, - "Edit site"); + "Edit site", + 0, + this, + SLOT(edit_mode()), + this, + "Edit site"); +#endif showDG->deactivate(); edit_V->deactivate(); - nr_of_buttons = 7; + nr_of_buttons = 6; for(int i = 0; i < nr_of_buttons; i++){ but[i]->setToggleButton(TRUE); } @@ -132,6 +140,7 @@ public: // but[3]->toggle(); but[4]->toggle(); // but[5]->toggle(); + // but[6]->toggle(); } ~Layers_toolbar() {