Changeset 94:adfdc2f70548 in glemon-0.x for map_win.h
- Timestamp:
- 11/29/05 20:31:58 (18 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2389
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
map_win.h
r90 r94 6 6 class MapWin; 7 7 8 #include "all_include.h" 9 #include "graph_displayer_canvas.h" 10 #include "mapstorage.h" 11 #include "new_map_win.h" 8 #include <all_include.h> 9 #include <main_win.h> 12 10 #include <libgnomecanvasmm.h> 13 11 #include <libgnomecanvasmm/polygon.h> … … 22 20 { 23 21 protected: 24 GraphDisplayerCanvas & gdc; 25 ///The \ref MapStorage in which the visualizable maps are stored 26 MapStorage & ms; 22 sigc::signal<void, std::string> signal_cbt; 23 sigc::signal<void, bool> signal_newmapwin; 27 24 28 25 int id; … … 42 39 Gtk::Label * label; 43 40 44 Node node_to_update;45 Edge edge_to_update;46 47 48 41 public: 49 42 50 MapSelector( GraphDisplayerCanvas &, MapStorage &, int, bool);43 MapSelector(std::vector<std::string>, int, bool); 51 44 52 void update_list(); 45 sigc::signal<void, std::string> signal_cbt_ch(); 46 sigc::signal<void, bool> signal_newmapwin_needed(); 47 48 void update_list( std::vector<std::string> ); 53 49 54 50 ///If a radiobutton is clicked, this function determines … … 62 58 virtual void reset(); 63 59 64 virtual void update(Node node);65 virtual void update(Edge edge);66 67 60 Glib::ustring get_active_text(); 68 61 void set_active_text(Glib::ustring); … … 73 66 74 67 protected: 75 ///The \ref GraphDisplayerCanvas on which the graph will be drawn. 76 ///It has to be known for this class, because 77 ///when a map assigned to a certain attribute 78 ///a function of the \ref GraphDisplayerCanvas will be called. 79 GraphDisplayerCanvas & gdc; 80 81 ///The \ref MapStorage in which the visualizable maps are stored 82 MapStorage & ms; 68 MainWin & mainwin; 83 69 84 70 Gtk::Table * table; … … 92 78 public: 93 79 ///Constructor of MapWin creates the widgets shown in MapWin. 94 MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);80 MapWin(const std::string& title, std::vector<std::string>, std::vector<std::string>, MainWin & mw); 95 81 96 ///This function is created to set the appropriate maps on the newly created node 97 void updateNode(Graph::Node); 82 void nodeMapChanged(std::string, int); 98 83 99 ///This function is created to set the appropriate maps on the newly created edge 100 void updateEdge(Graph::Edge); 84 void edgeMapChanged(std::string, int); 85 86 void newMapWinNeeded(bool, int); 101 87 102 88 ///This function inserts name of the new edgemap in the list in the combo box … … 108 94 virtual bool closeIfEscapeIsPressed(GdkEventKey*); 109 95 110 void update( );96 void update(std::vector<std::string>, std::vector<std::string>); 111 97 }; 112 98
Note: See TracChangeset
for help on using the changeset viewer.