Fix template version of Invalid.
8 #include <all_include.h>
10 #include <libgnomecanvasmm.h>
11 #include <libgnomecanvasmm/polygon.h>
13 ///This class is responsible for creating a window,
14 ///on which the visualization attributes can be
16 class MapWin : public Gtk::Window
19 class MapSelector : public Gtk::HBox
22 sigc::signal<void, std::string> signal_cbt;
23 sigc::signal<void, bool> signal_newmapwin;
33 Gtk::ComboBoxText cbt;
35 Gtk::Button * newbut, * defbut;
43 MapSelector(std::vector<std::string>, std::string, int, bool);
45 sigc::signal<void, std::string> signal_cbt_ch();
46 sigc::signal<void, bool> signal_newmapwin_needed();
48 void update_list( std::vector<std::string> );
50 ///If a radiobutton is clicked, this function determines
51 ///which button was that and after that calls the
52 ///appropriate function of the \ref GraphDisplayerCanvas
53 ///to change the visible values of that attribute.
54 virtual void comboChanged();
56 virtual void new_but_pressed();
60 Glib::ustring get_active_text();
61 void set_active_text(Glib::ustring);
62 void append_text(Glib::ustring);
72 MapSelector ** e_combo_array, ** n_combo_array;
79 ///Constructor of MapWin creates the widgets shown in MapWin.
80 MapWin(const std::string& title, std::vector<std::string>, std::vector<std::string>, NoteBookTab & mw);
84 virtual bool on_delete_event(GdkEventAny *);
86 void nodeMapChanged(std::string, int);
88 void edgeMapChanged(std::string, int);
90 void newMapWinNeeded(bool, int);
92 ///This function inserts name of the new edgemap in the list in the combo box
93 void registerNewEdgeMap(std::string);
95 ///This function inserts name of the new nodemap in the list in the combo box
96 void registerNewNodeMap(std::string);
98 virtual bool closeIfEscapeIsPressed(GdkEventKey*);
100 void update(std::vector<std::string>, std::vector<std::string>);