Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

WorldButton Class Reference

#include <world_button.hxx>

Inheritance diagram for WorldButton:

Inheritance graph
[legend]
Collaboration diagram for WorldButton:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Mode { LOAD_BUTTON, SAVE_BUTTON }

Public Member Functions

 WorldButton (const std::string &arg_filename, Mode m)
 ~WorldButton ()
void draw (GraphicContext *gc)
void on_click ()
void load_world ()

Detailed Description

button in the load/save dialog

Definition at line 28 of file world_button.hxx.


Member Enumeration Documentation

enum WorldButton::Mode
 

Enumeration values:
LOAD_BUTTON 
SAVE_BUTTON 

Definition at line 36 of file world_button.hxx.


Constructor & Destructor Documentation

WorldButton::WorldButton const std::string &    arg_filename,
Mode    m
 

Definition at line 26 of file world_button.cxx.

WorldButton::~WorldButton  
 

Definition at line 34 of file world_button.cxx.


Member Function Documentation

void WorldButton::draw GraphicContext   gc [virtual]
 

Implements GUIComponent.

Definition at line 60 of file world_button.cxx.

References World::calc_bounding_box(), World::draw_colliders(), GraphicContext::draw_fill_rect(), ZoomGraphicContext::draw_line(), GraphicContext::draw_rect(), World::draw_springs(), GraphicContext::draw_string(), ZoomGraphicContext::get_height(), ZoomGraphicContext::get_width(), load_world(), ZoomGraphicContext::lock(), ZoomGraphicContext::set_parent_gc(), ZoomGraphicContext::unlock(), WorldBoundingBox::x1, WorldBoundingBox::x2, WorldBoundingBox::y1, WorldBoundingBox::y2, and ZoomGraphicContext::zoom_to().

void WorldButton::load_world  
 

Load the given world, if not called it will be loaded on demand

Definition at line 40 of file world_button.cxx.

References GUIFileButton::filename, SystemContext::get_mtime(), and system_context.

Referenced by draw().

void WorldButton::on_click   [virtual]
 

Implements GUIFileButton.

Definition at line 104 of file world_button.cxx.

References GUIFileButton::filename, ScreenManager::instance(), Controller::instance(), Controller::load_world(), SAVE_BUTTON, Controller::save_world(), and ScreenManager::set_gui().


The documentation for this class was generated from the following files:
Generated on Thu Jul 24 10:25:27 2003 for Construo by doxygen1.3-rc3

Rabisu Mirror Service We provide mirrors to support Open source communities. Our mirror server is located in Istanbul/Turkey region.

Please do not hesitate to contact mirror@rabisu.com for new open source mirror submissions.