Changeset 96:e664d8aa3f72 in glemon-0.x for main_win.h
- Timestamp:
- 12/06/05 11:53:38 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2414
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main_win.h
r95 r96 4 4 #define MAIN_WIN_H 5 5 6 class MainWin;7 8 6 #include "all_include.h" 9 #include "mapstorage.h"10 7 #include "map_win.h" 11 8 #include "new_map_win.h" 12 #include " graph_displayer_canvas.h"9 #include "nbtab.h" 13 10 #include <libgnomecanvasmm.h> 14 11 #include <libgnomecanvasmm/polygon.h> 12 15 13 16 14 ///This class is the main window of GUI. … … 18 16 class MainWin : public Gtk::Window 19 17 { 18 ///Container 19 Gtk::VBox vbox; 20 21 Gtk::Notebook notebook; 22 23 int active_tool; 24 25 int active_tab; 26 std::vector<NoteBookTab *> tabs; 27 std::vector<std::string> tabnames; 28 20 29 public: 21 ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn. 30 31 ///Constructor of the \ref NoteBookTab. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn. 22 32 ///\param title is the title of the window 23 33 MainWin(); 24 34 25 MapStorage mapstorage; 26 27 void readFile(const std::string &); 28 29 protected: 30 MapWin * mapwin; 31 bool mapwinexists; 32 33 ///The graph will be drawn on this \ref GraphDisplayerCanvas 34 GraphDisplayerCanvas * gd_canvas; 35 void set_tabtitle(std::string); 35 36 36 37 ///ActionGroup for menu … … 40 41 Glib::RefPtr<Gtk::UIManager> uim; 41 42 42 ///Container 43 Gtk::VBox vbox; 43 void readFile(const std::string &); 44 44 45 45 ///Tooltips 46 46 Gtk::Tooltips tooltips; 47 48 //Call-backs of buttons 47 49 48 50 ///Callback for 'FileNew' action. … … 57 59 virtual void close(); 58 60 59 public: 60 void propertyChange(bool, int, std::string); 61 void popupNewMapWin(bool, int); 61 //Toolbar 62 virtual void zoomIn(); 63 virtual void zoomOut(); 64 virtual void zoomFit(); 65 virtual void zoom100(); 62 66 63 std::string getActiveEdgeMap(int); 64 std::string getActiveNodeMap(int); 67 virtual void createMapWin(); 65 68 66 void registerNewEdgeMap(std::string); 67 void registerNewNodeMap(std::string); 69 virtual void changeEditorialTool(int); 68 70 69 void createMapWin(); 70 void closeMapWin(); 71 virtual void createNewMapWinAfterSignal(NoteBookTab *, bool); 72 virtual void createNewMapWin(); 73 74 //Notebook handlers 75 ///Callback for 'FileNewTab' action. 76 virtual void newTab(); 77 virtual void onChangeTab(GtkNotebookPage*, guint); 78 virtual void onCloseTab(); 79 80 71 81 }; 72 82
Note: See TracChangeset
for help on using the changeset viewer.