Changeset 3166 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Dec 13, 2004, 2:20:31 AM (20 years ago)
- Location:
- orxonox/trunk/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui.cc
r3165 r3166 34 34 35 35 */ 36 36 37 #include "orxonox_gui.h" 37 38 #include "orxonox_gui_video.h" … … 105 106 exec->setFilename ("~/.orxonox.conf"); 106 107 exec->readFromFile (orxonoxGUI); 107 orxonoxGUI->walkThrough(orxonoxGUI->listOptions);108 // orxonoxGUI->walkThrough(orxonoxGUI->listOptions); 108 109 109 110 orxonoxGUI->showall (); … … 112 113 #ifdef HAVE_GTK2 113 114 mainloopGTK(); 114 #endif 115 #else /* HAVE_GTK2 */ 116 cout << " Listing all the Orxonox Options: \n"; 117 cout << " #############################\n"; 118 orxonoxGUI->walkThrough(orxonoxGUI->listOptions); 119 120 cout << "\nDo you want me to save the the above values now? [Yn] "; 121 char c = getchar(); 122 if ((c == 'y' || c == 'Y' || c== 10) && exec->shouldsave()) 123 exec->writeToFile (Window::mainWindow); 124 125 #endif /* HAVE_GTK2 */ 126 115 127 } 116 128 -
orxonox/trunk/gui/orxonox_gui_gtk.cc
r3165 r3166 178 178 void Widget::listOptions (Widget* widget) 179 179 { 180 if (widget->isOption >= 1) 181 cout << static_cast<Option*>(widget)->label <<" is : " << static_cast<Option*>(widget)->value <<endl; 180 if (widget->isOption < 0 && static_cast<Packer*>(widget)->groupName) 181 cout << "[" << static_cast<Packer*>(widget)->groupName << "]\n"; 182 if (widget->isOption >= 1 && widget->isOption <= 3) 183 cout << " " << static_cast<Option*>(widget)->label <<" is : " << static_cast<Option*>(widget)->value <<endl; 184 else if (widget->isOption == 5) 185 cout << " " << static_cast<Option*>(widget)->label <<" is : " << static_cast<OptionLabel*>(widget)->cValue <<endl; 182 186 } 183 187 … … 342 346 if (!isOpen) 343 347 { 344 printf ("showall\n");348 // printf ("showall\n"); 345 349 #ifdef HAVE_GTK2 346 350 gtk_widget_show_all (widget); … … 350 354 else 351 355 { 352 printf ("showone\n");356 // printf ("showone\n"); 353 357 #ifdef HAVE_GTK2 354 358 gtk_widget_show (widget); … … 665 669 strcpy(flagName, flagname); 666 670 defaultValue = defaultvalue; 667 cout << "Set Flagname of " << label << " to " << flagname << endl; 671 672 // cout << "Set Flagname of " << label << " to " << flagname << endl; 668 673 } 669 674 … … 686 691 strcpy(flagNameShort, flagnameshort); 687 692 defaultValue = defaultvalue; 688 cout << "Set Flagname of " << label << " to " << flagname << endl;693 // cout << "Set Flagname of " << label << " to " << flagname << endl; 689 694 } 690 695 -
orxonox/trunk/gui/orxonox_gui_keys.cc
r3165 r3166 109 109 inputKey[key]->pKeyButton->connectSignal("button_press_event", inputKey[key], inputWindowEvent); 110 110 #endif /* HAVE_GTK2 */ 111 112 111 inputKey[key]->pKeyBox->fill(inputKey[key]->pKeyButton); 113 112 inputKey[key]->pKeyBox->fill(inputKey[key]->pKeyOLabel); … … 153 152 { 154 153 case GDK_Up: 155 printf("Up arrow key!\n");156 154 strcpy(title, "up"); 157 155 break; 158 156 case GDK_Down: 159 printf("Down arrow key!\n");160 157 strcpy(title, "down"); 161 158 break; 162 159 case GDK_Left: 163 printf("Left arrow key!\n");164 160 strcpy(title, "left"); 165 161 break; 166 162 case GDK_Right: 167 printf("Right arrow key!\n");168 163 strcpy(title, "right"); 169 164 break; 170 165 171 166 case GDK_space: 172 printf("Space Pressed.\n");173 167 strcpy(title, "space"); 174 168 break; 175 169 176 170 case 65293: 177 printf("Enter Pressed\n");178 171 strcpy(title, "enter"); 179 172 break; … … 181 174 // Special Keys // 182 175 case GDK_Escape: 183 printf("Esc Pressed.\n");184 176 strcpy(title, "esc"); 185 177 break; 186 178 case GDK_Tab: 187 printf("Tab Pressed.\n");188 179 strcpy(title, "tab"); 189 180 break; 190 181 case GDK_Shift_L: 191 printf("Left Shift!\n");192 182 strcpy(title, "l_shift"); 193 183 break; 194 184 case GDK_Shift_R: 195 printf("Right Shift!\n");196 185 strcpy(title, "r_shift"); 197 186 break; 198 187 case GDK_Control_L: 199 printf("Left Control!\n");200 188 strcpy(title, "l_ctrl"); 201 189 break; 202 190 case GDK_Control_R: 203 printf("Right Control!\n");204 191 strcpy(title, "r_ctrl"); 205 192 break; 206 193 case GDK_Alt_L: 207 printf("Left Alt!\n");208 194 strcpy(title, "l_alt"); 209 195 break; 210 196 case GDK_Alt_R: 211 printf("Rigth Alt!\n");212 197 strcpy(title, "r_alt"); 213 198 break; 214 199 // FXX KEYS // 215 200 case GDK_F1: 216 printf("F1!\n");217 201 strcpy(title, "f1"); 218 202 break; 219 203 case GDK_F2: 220 printf("F2!\n");221 204 strcpy(title, "f2"); 222 205 break; 223 206 case GDK_F3: 224 printf("F3!\n");225 207 strcpy(title, "f3"); 226 208 break; 227 209 case GDK_F4: 228 printf("F4!\n");229 210 strcpy(title, "f4"); 230 211 break; 231 212 case GDK_F5: 232 printf("F5!\n");233 213 strcpy(title, "f5"); 234 214 break; 235 215 case GDK_F6: 236 printf("F6!\n");237 216 strcpy(title, "f6"); 238 217 break; 239 218 case GDK_F7: 240 printf("F7!\n");241 219 strcpy(title, "f7"); 242 220 break; 243 221 case GDK_F8: 244 printf("F8!\n");245 222 strcpy(title, "f8"); 246 223 break; 247 224 case GDK_F9: 248 printf("F9\n");249 225 strcpy(title, "f9"); 250 226 break; 251 227 case GDK_F10: 252 printf("F10!\n");253 228 strcpy(title, "f10"); 254 229 break; 255 230 case GDK_F11: 256 printf("F11!\n");257 231 strcpy(title, "f11"); 258 232 break; 259 233 case GDK_F12: 260 printf("F12!\n");261 234 strcpy(title, "f12"); 262 235 break;
Note: See TracChangeset
for help on using the changeset viewer.