Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/gui/orxonox_gui_video.cc @ 2739

Last change on this file since 2739 was 2739, checked in by bensch, 20 years ago

orxonox/trunk/gui: modified savable rutine. now a widget has to be set saveable, otherwise it won't be saved

File size: 1.5 KB
RevLine 
[2581]1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with this program; if not, write to the Free Software Foundation,
18   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
19
20
21   ### File Specific:
22   main-programmer: Benjamin Grauer
23
24*/
25
26
[2018]27#include "orxonox_gui_video.h"
28
29
30OrxonoxGuiVideo::OrxonoxGuiVideo ()
31{
32  videoFrame = new Frame ("Video-Options:");
33  videoBox = new Box ('v');
[2614]34  videoFrame->setGroupName("video");
[2018]35 
36  fullscreen = new CheckButton ("Fullscreen-mode");
37  fullscreen->setFlagName ("windowed", "q", 1);
[2739]38  fullscreen->saveable = true;
[2018]39  videoBox->fill (fullscreen);
40  wireframe = new CheckButton ("WireFrame-mode");
41  wireframe->setFlagName ("wireframe", "w", 0);
[2739]42  wireframe->saveable = true;
[2018]43  videoBox->fill (wireframe);
44
45  videoFrame->fill (videoBox);
46}
47
[2588]48/**
49   \brief Return the Frame
50   \return Returns the Video-frame
51*/
[2595]52Widget* OrxonoxGuiVideo::getWidget ()
[2018]53{
54  return videoFrame;
55}
Note: See TracBrowser for help on using the repository browser.