Changeset 3315 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui.cc
- Timestamp:
- Jan 3, 2005, 12:13:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui.cc
r3313 r3315 45 45 int verbose = 4; 46 46 47 int main( int argc, char *argv[])47 int main(int argc, char *argv[]) 48 48 { 49 49 OrxonoxGui* orxonoxgui = new OrxonoxGui(argc, argv); … … 56 56 \brief Initializes the Gui 57 57 */ 58 OrxonoxGui::OrxonoxGui 58 OrxonoxGui::OrxonoxGui(int argc, char *argv[]) 59 59 { 60 60 initGUI(argc, argv); … … 67 67 windowBox->fill (banner->getWidget()); 68 68 69 Box* optionBox = new Box 69 Box* optionBox = new Box('v'); 70 70 71 Box* avBox = new Box 71 Box* avBox = new Box('h'); 72 72 73 video = new OrxonoxGuiVideo 74 avBox->fill (video->getWidget());75 audio = new OrxonoxGuiAudio 76 avBox->fill (audio->getWidget());73 video = new OrxonoxGuiVideo(); 74 avBox->fill(video->getWidget()); 75 audio = new OrxonoxGuiAudio(); 76 avBox->fill(audio->getWidget()); 77 77 78 optionBox->fill 78 optionBox->fill(avBox); 79 79 80 keys = new OrxonoxGuiKeys 81 optionBox->fill (keys->getWidget());80 keys = new OrxonoxGuiKeys(); 81 optionBox->fill(keys->getWidget()); 82 82 83 exec = new OrxonoxGuiExec (orxonoxGUI);84 optionBox->fill (exec->getWidget());83 exec = new OrxonoxGuiExec(); 84 optionBox->fill(exec->getWidget()); 85 85 86 flags = new OrxonoxGuiFlags (orxonoxGUI);86 flags = new OrxonoxGuiFlags(); 87 87 88 optionBox->fill (flags->getWidget());89 windowBox->fill 88 optionBox->fill(flags->getWidget()); 89 windowBox->fill(optionBox); 90 90 91 update = new OrxonoxGuiUpdate 91 update = new OrxonoxGuiUpdate(); 92 92 optionBox->fill(update->getWidget()); 93 93 94 orxonoxGUI->fill 95 flags->setTextFromFlags 94 orxonoxGUI->fill(windowBox); 95 flags->setTextFromFlags(orxonoxGUI); 96 96 97 97 // Reading Values from File 98 exec->setFilename 99 exec->readFromFile 98 exec->setFilename("~/.orxonox.conf"); 99 exec->readFromFile(orxonoxGUI); 100 100 // Merging changes to the Options from appended flags. 101 101 for (int optCount = 1; optCount < argc; optCount++) … … 103 103 104 104 105 orxonoxGUI->showall 105 orxonoxGUI->showall(); 106 106 107 107 //// Handling special Cases. /// … … 124 124 125 125 } 126 127 128 /** 129 \breif Destructor. 130 */ 131 OrxonoxGui::~OrxonoxGui(void) 132 { 133 134 }
Note: See TracChangeset
for help on using the changeset viewer.