- Timestamp:
- Dec 23, 2004, 11:26:51 PM (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
r3259 r3261 38 38 { 39 39 this->updateFrame = new Frame ("Update-Options:"); 40 this->updateFrame->setGroupName ("update"); 40 41 this->updateBox = new Box ('v'); 41 this->updateWindowCreate ();42 42 43 this->updateBox->fill(this->updateWindowGetButton()); 43 // the Button for autoUpdating 44 this->autoUpdate = new CheckButton ("auto update"); 45 this->updateBox->fill(this->autoUpdate); 46 this->autoUpdate->setFlagName ("update", "u", 0); 47 this->autoUpdate->saveable = true; 48 49 this->updateSourceWindowCreate (); 50 this->updateBox->fill(this->updateSourceWindowGetButton()); 51 52 this->updateDataWindowCreate (); 53 this->updateBox->fill(this->updateDataWindowGetButton()); 44 54 45 55 this->updateFrame->fill(this->updateBox); … … 55 65 } 56 66 57 void OrxonoxGuiUpdate::update WindowCreate (void)67 void OrxonoxGuiUpdate::updateDataWindowCreate (void) 58 68 { 59 updateWindow = new Window ("dampfen::update"); 60 Window::addWindow(updateWindow); 61 updateWindowBox = new Box ('v'); 69 updateDataWindow = new Window ("update orxonox::Data"); 70 updateDataBox = new Box ('v'); 62 71 63 updateDataWindowCreate();64 updateWindowBox->fill (updateDataWindowGetButton());65 updateSourceWindowCreate();66 updateWindowBox->fill (updateSourceWindowGetButton());67 68 72 // the close-Button of the Update Window. 69 updateWindowClose = new Button ("close");73 // updateWindowClose = new Button ("close"); 70 74 #ifdef HAVE_GTK2 71 updateWindowClose->connectSignal("button_press_event", updateWindow, Window::windowClose);75 // updateWindowClose->connectSignal("button_press_event", updateWindow, Window::windowClose); 72 76 #endif /* HAVE_GTK2 */ 73 updateWindowBox->fill(updateWindowClose); 74 updateWindow->fill (updateWindowBox); 77 // updateWindowBox->fill(updateWindowClose); 75 78 79 updateDataBar = new ProgressBar (); 80 updateDataBox->fill(updateDataBar); 81 updateDataWindow->fill (updateDataBox); 76 82 77 // crating the button that opens the Update Options83 updateDataWindowButton = new Button ("update orxonox::Data"); 78 84 #ifdef HAVE_GTK2 79 updateWindowButton = new Button ("update"); 80 updateWindowButton->connectSignal("button_press_event", updateWindow, Window::windowOpen); 81 updateWindow->connectSignal("destroy", updateWindow, Window::windowClose); 82 updateWindow->connectSignal("delete_event", updateWindow, Window::windowClose); 85 updateDataWindowButton->connectSignal("button_press_event", updateDataWindow, Window::windowOpen); 86 updateDataWindow->connectSignal("destroy", updateDataWindow, Window::windowClose); 87 updateDataWindow->connectSignal("delete_event", updateDataWindow, Window::windowClose); 83 88 #endif /* HAVE_GTK2 */ 84 85 89 86 90 } … … 89 93 \returns A Pointer to the Button of the UpdaterWindow 90 94 */ 91 Button* OrxonoxGuiUpdate::updateWindowGetButton(void)92 {93 return updateWindowButton;94 }95 96 void OrxonoxGuiUpdate::updateDataWindowCreate (void)97 {98 99 updateData = new Button ("update orxonox::Data");100 101 #ifdef HAVE_GTK2102 updateData->connectSignal("button_press_event", updateData, updateDataFunc);103 #endif /* HAVE_GTK2 */104 105 106 }107 108 95 Button* OrxonoxGuiUpdate::updateDataWindowGetButton(void) 109 96 { 110 return updateData ;97 return updateDataWindowButton; 111 98 } 112 99 … … 114 101 { 115 102 // the button, that opens this Window. 116 updateSource = new Button ("update orxonox::Source");103 updateSourceWindowButton = new Button ("update orxonox::Source"); 117 104 118 105 // the Window itself 119 106 updateSourceWindow = new Window ("update orxonox::Source"); 107 108 updateSourceBox = new Box (); 109 110 updateSourceBar = new ProgressBar (); 111 updateSourceBox->fill(updateSourceBar); 112 test = new Button ("increment"); 113 114 #ifdef HAVE_GTK2 115 test->connectSignal("button_press_event", updateSourceBar, updateSourceFunc); 116 #endif /* HAVE_GTK2 */ 117 118 updateSourceBox->fill(test); 119 updateSourceWindow->fill(updateSourceBox); 120 #ifdef HAVE_GTK2 121 updateSourceWindowButton->connectSignal("button_press_event", updateSourceWindow, Window::windowOpen); 120 122 updateSourceWindow->connectSignal("destroy", updateSourceWindow, Window::windowClose); 121 123 updateSourceWindow->connectSignal("delete_event", updateSourceWindow, Window::windowClose); 122 123 updateSourceWindowBox = new Box ();124 125 updateSourceBar = new ProgressBar ();126 updateSourceWindowBox->fill(updateSourceBar);127 test = new Button ("increment");128 test->connectSignal("button_press_event", updateSourceBar, updateSourceFunc);129 updateSourceWindowBox->fill(test);130 updateSourceWindow->fill(updateSourceWindowBox);131 #ifdef HAVE_GTK2132 updateSource->connectSignal("button_press_event", updateSourceWindow, Window::windowOpen);133 124 #endif /* HAVE_GTK2 */ 134 125 … … 137 128 Button* OrxonoxGuiUpdate::updateSourceWindowGetButton(void) 138 129 { 139 return updateSource ;130 return updateSourceWindowButton; 140 131 } 141 132 -
orxonox/branches/updater/src/gui/orxonox_gui_update.h
r3259 r3261 17 17 Frame* updateFrame; //!< The Frame that holds the updateOptions. 18 18 Box* updateBox; //!< The Box that holds the updateOptions. 19 CheckButton* autoUpdate; //!< A Checkbutton to enable the automatic Updating. 20 19 21 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 25 Button* updateWindowClose; //!< A Button to Close the update Window 22 Button* updateDataWindowButton;//!< A Button to update the Data of orxonox. 23 Window* updateDataWindow; //!< A Window for the data-update. 24 Box* updateDataBox; //!< A Box for the Window for the Data-update. 26 25 ProgressBar* updateDataBar; //!< A Bar to display the progress of the download. 27 ProgressBar* updateSourceBar;//!< A Bar to display the progress of the download.28 Window* updateDataWindow; //!< A Window for the data-update.29 26 30 27 28 Button* updateSourceWindowButton;//!< A Button to update the Source of orxonox. \todo tricky 31 29 Window* updateSourceWindow; //!< A Window for the Source-update. 32 Box* updateSourceWindowBox; //!< A Box for the Window for the Source-update. 30 Box* updateSourceBox; //!< A Box for the Window for the Source-update. 31 ProgressBar* updateSourceBar;//!< A Bar to display the progress of the download. 33 32 34 33 Button* test; //!< will be deleted soon.
Note: See TracChangeset
for help on using the changeset viewer.