Changeset 1895 in orxonox.OLD for orxonox/branches/gui
- Timestamp:
- May 19, 2004, 12:12:33 AM (21 years ago)
- Location:
- orxonox/branches/gui/guicc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/guicc/orxonox_gui.cc
r1894 r1895 9 9 10 10 Frame* Frametest = new Frame ("Test"); 11 orxonoxGUI->fill( Frametest);12 //Frame test =orxonoxGUI->down;13 //test.setTitle("shit");11 orxonoxGUI->fill((Frame*) Frametest); 12 Frame* test = (Frame*) orxonoxGUI->down; 13 test->setTitle("shit"); 14 14 orxonoxGUI->showall (); 15 15 … … 69 69 70 70 71 72 71 gint Window::orxonox_gui_quit ( GtkWidget *widget, GdkEvent *event, gpointer data) 73 72 { … … 94 93 gtk_frame_set_label (GTK_FRAME (widget), title); 95 94 } 95 96 97 98 /* BOX */ 99 100 Box::Box (void) 101 { 102 widget = gtk_hbox_new(FALSE, 0); 103 } 104 Box::Box (char boxtype) 105 { 106 if (boxtype == 'v') 107 { 108 widget = gtk_vbox_new(FALSE, 0); 109 } 110 else 111 { 112 widget = gtk_hbox_new(FALSE, 0); 113 } 114 } 115 116 Box::~Box () 117 {} 118 119 void Box::fill (Widget *lowerWidget) 120 { 121 gtk_box_pack_start (GTK_BOX(this->widget), lowerWidget->widget, TRUE, TRUE, 0); 122 } -
orxonox/branches/gui/guicc/orxonox_gui.h
r1894 r1895 8 8 #include <gtk/gtkwindow.h> 9 9 #include <gtk/gtkframe.h> 10 #include <gtk/gtkhbox.h> 11 #include <gtk/gtkvbox.h> 10 12 11 13 … … 14 16 private: 15 17 18 protected: 16 19 Widget* next; 17 protected:18 20 19 21 public: … … 53 55 Window (void); 54 56 ~Window (); 57 55 58 void setTitle (char* title); 56 59 void showall (); … … 67 70 Frame (void); 68 71 ~Frame (); 72 69 73 void setTitle (char* title); 70 74 … … 73 77 class Box : public Widget 74 78 { 79 public: 80 Box (void); 81 Box (char boxtype); 82 ~Box (void); 83 84 void fill (Widget *lowerWidget); 75 85 76 86 };
Note: See TracChangeset
for help on using the changeset viewer.