Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3147 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_gtk.cc


Ignore:
Timestamp:
Dec 11, 2004, 3:08:34 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: typo, toDo and so on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_gtk.cc

    r3146 r3147  
     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
    127#include <iostream>
    228
    329#include "orxonox_gui_gtk.h"
     30
     31
    432using namespace std;
     33
    534// temporarily.
    635#include "orxonox_gui_flags.h"
     
    2150  this->hide();
    2251  //  cout << "check if Packer: "<<this->label <<"\n";
    23   if (this->is_option < 0)
     52  if (this->isOption < 0)
    2453    {
    2554      //  cout << "get Down "<<this->label <<"\n";
     
    109138{
    110139  function(this);
    111   if (this->is_option < 0)
     140  if (this->isOption < 0)
    112141    {
    113142      static_cast<Packer*>(this)->down->walkThrough (function);
     
    124153void Widget::listOptions (Widget* widget)
    125154{
    126   if (widget->is_option >= 1)
     155  if (widget->isOption >= 1)
    127156    cout << static_cast<Option*>(widget)->label <<" is : " << static_cast<Option*>(widget)->value <<endl;
    128157}
     
    134163void Widget::setOptions (Widget* widget)
    135164{
    136   if (widget->is_option >= 1)
     165  if (widget->isOption >= 1)
    137166    static_cast<Option*>(widget)->redraw();// <<" is : " << static_cast<Option*>(this)->value <<endl;
    138167}
     
    183212void Container::init (void)
    184213{
    185   is_option = -1;
     214  isOption = -1;
    186215
    187216  static_cast<Packer*>(this)->init();
     
    282311  label=title;
    283312  gtk_window_set_title (GTK_WINDOW (widget), title);
     313}
     314
     315/**
     316   \brief opens up a Window and fixes the Focus to it
     317*/
     318void Window::open()
     319{
     320  isOpen = true;
     321  gtk_grab_add(widget);
     322}
     323
     324/**
     325   \brief closes up a Window and removes the Focus from it
     326*/
     327void Window::close()
     328{
     329  isOpen = false;
     330  gtk_grab_remove(widget);
    284331}
    285332
     
    365412void EventBox::init(void)
    366413{
    367   is_option = -1;
     414  isOption = -1;
    368415
    369416  static_cast<Container*>(this)->init();
     
    408455void Box::init(char boxtype)
    409456{
    410   is_option = -2;
     457  isOption = -2;
    411458
    412459  static_cast<Packer*>(this)->init();
     
    461508void Image::init()
    462509{
    463   is_option = 0;
     510  isOption = 0;
    464511
    465512  static_cast<Widget*>(this)->init();
     
    531578void Button::init(void)
    532579{
    533   is_option = 0;
     580  isOption = 0;
    534581
    535582  static_cast<Option*>(this)->init();
     
    575622void CheckButton::init(void)
    576623{
    577   is_option = 1;
     624  isOption = 1;
    578625
    579626  static_cast<Option*>(this)->init();
     
    640687void Slider::init(int start, int end)
    641688{
    642   is_option = 2;
     689  isOption = 2;
    643690
    644691  static_cast<Option*>(this)->init();
     
    717764void Menu::init(void)
    718765{
    719   is_option = 2;
     766  isOption = 2;
    720767
    721768  static_cast<Option*>(this)->init();
     
    790837void Label::init(void)
    791838{
    792   is_option = 0;
     839  isOption = 0;
    793840
    794841  static_cast<Widget*>(this)->init();
Note: See TracChangeset for help on using the changeset viewer.