Changeset 88:c397e85ec555 in glemon-0.x for new_map_win.h
- Timestamp:
- 11/17/05 16:34:18 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2361
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
new_map_win.h
r85 r88 10 10 #include <libgnomecanvasmm.h> 11 11 #include <libgnomecanvasmm/polygon.h> 12 #include <stack> 12 13 13 14 ///This class is responsible for creating a window, … … 22 23 GraphDisplayerCanvas & gdc; 23 24 24 public: 25 public: 26 struct tree_node 27 { 28 char ch; 29 tree_node * left_child; 30 tree_node * right_child; 31 }; 32 25 33 ///Constructor of NewMapWin creates the widgets shown in NewMapWin. 26 34 NewMapWin(const std::string& title, GraphDisplayerCanvas &); 27 35 28 36 29 37 ///Signal on button is connected to this function, 30 38 ///Therefore this function determines whether to … … 32 40 //tells it the attributes.(name, default value) 33 41 virtual void buttonPressed(); 34 42 35 43 virtual void showByPreChoose(bool); 36 44 37 45 virtual bool closeIfEscapeIsPressed(GdkEventKey*); 46 47 ///Function that creates a tree from an appropriately manipulated string 48 tree_node * weightedString2Tree(std::string, std::vector<unsigned int> &, int); 49 50 ///Function that creates a string from a tree by postorder reading. 51 std::string postOrder(tree_node *); 52 53 std::string string2Polishform(std::string, bool); 54 55 bool validVariable(std::string, bool); 56 57 std::map<char, std::string> ch2var; 38 58 39 59 Gtk::Entry name, default_value;
Note: See TracChangeset
for help on using the changeset viewer.