Changeset 3253 in orxonox.OLD for orxonox/branches
- Timestamp:
- Dec 23, 2004, 1:30:13 AM (20 years ago)
- Location:
- orxonox/branches/updater/src/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_update.cc
r3251 r3253 37 37 OrxonoxGuiUpdate::OrxonoxGuiUpdate () 38 38 { 39 updateFrame = new Frame ("Update-Options:"); 40 updateBox = new Box ('v'); 41 42 updateButton = new Button ("update"); 43 updateBox->fill(updateButton); 39 this->updateFrame = new Frame ("Update-Options:"); 40 this->updateBox = new Box ('v'); 41 this->updateWindowCreate (); 44 42 45 updateFrame->fill(updateBox); 43 this->updateBox->fill(this->updateWindowGetButton()); 44 45 this->updateFrame->fill(this->updateBox); 46 46 } 47 47 … … 54 54 return updateFrame; 55 55 } 56 57 void OrxonoxGuiUpdate::updateWindowCreate (void) 58 { 59 updateWindow = new Window ("dampfen::update"); 60 61 updateWindowBox = new Box ('v'); 62 63 updateData = new Button ("update Orxonox::Data"); 64 updateSource = new Button ("update Orxonox::Source");; 65 66 updateWindowBox->fill (updateData); 67 updateWindowBox->fill (updateSource); 68 69 updateWindow->fill (updateWindowBox); 70 71 72 // crating the button that opens the Update Options 73 updateWindowButton = new Button ("update"); 74 #ifdef HAVE_GTK2 75 updateWindowButton->connectSignal("button_press_event", updateWindow, Window::windowOpen); 76 updateWindow->connectSignal("destroy", updateWindow, Window::windowClose); 77 updateWindow->connectSignal("delete_event", updateWindow, Window::windowClose); 78 #endif /* HAVE_GTK2 */ 79 80 81 } 82 83 Button* OrxonoxGuiUpdate::updateWindowGetButton(void) 84 { 85 return updateWindowButton; 86 } -
orxonox/branches/updater/src/gui/orxonox_gui_update.h
r3251 r3253 17 17 Frame* updateFrame; //!< The Frame that holds the updateOptions. 18 18 Box* updateBox; //!< The Box that holds the updateOptions. 19 Button* updateButton; //!< The update Button 19 20 Button* updateWindowButton; //!< The Button that opens the update Window. 21 Window* updateWindow; //!< A Window to update orxonox. 22 Box* updateWindowBox; //!< A Box to hold the updateWindow-Optios. 23 Button* updateData; //!< A Button to update the Data of orxonox. 24 Button* updateSource; //!< A Button to update the Source of orxonox. \todo tricky 20 25 21 26 public: … … 25 30 Widget* getWidget (); 26 31 32 void updateWindowCreate (void); 33 Button* updateWindowGetButton(void); 27 34 28 35 };
Note: See TracChangeset
for help on using the changeset viewer.