Public Member Functions | Private Member Functions | Private Attributes

gui2::teditor_generate_map Class Reference

The dialog for selecting which random generator to use in the editor. More...

#include <editor_generate_map.hpp>

Inheritance diagram for gui2::teditor_generate_map:
Inheritance graph
[legend]
Collaboration diagram for gui2::teditor_generate_map:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 teditor_generate_map ()
void do_settings (twindow &window)
 Callback for the settings button.
void do_next_generator (twindow &window)
 Callback for the next generator button.
void set_map_generators (std::vector< map_generator * > mg)
std::vector< map_generator * > get_map_generators ()
map_generatorget_selected_map_generator ()
void update_current_generator_label (twindow &window)
void set_gui (display *d)
displayget_gui ()

Private Member Functions

virtual const std::string & window_id () const
 Inherited from tdialog, implemented by REGISTER_DIALOG.
void pre_show (CVideo &video, twindow &window)
 Inherited from tdialog.

Private Attributes

std::vector< map_generator * > map_generators_
 Available map generators.
int current_map_generator_
 Current map generator index.
tlabelcurrent_generator_label_
 Label for the current map generator.
displaygui_
 Needed for the old-style map generator settings dialog.

Detailed Description

The dialog for selecting which random generator to use in the editor.

Definition at line 29 of file editor_generate_map.hpp.


Constructor & Destructor Documentation

gui2::teditor_generate_map::teditor_generate_map (  ) 

Definition at line 57 of file editor_generate_map.cpp.


Member Function Documentation

void gui2::teditor_generate_map::do_next_generator ( twindow window  ) 

Callback for the next generator button.

Definition at line 73 of file editor_generate_map.cpp.

References current_map_generator_, map_generators_, and update_current_generator_label().

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::teditor_generate_map::do_settings ( twindow window  ) 

Callback for the settings button.

Definition at line 65 of file editor_generate_map.cpp.

References map_generator::allow_user_config(), get_selected_map_generator(), gui_, and map_generator::user_config().

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

display* gui2::teditor_generate_map::get_gui (  )  [inline]

Definition at line 53 of file editor_generate_map.hpp.

References gui_.

std::vector<map_generator*> gui2::teditor_generate_map::get_map_generators (  )  [inline]

Definition at line 46 of file editor_generate_map.hpp.

References map_generators_.

map_generator * gui2::teditor_generate_map::get_selected_map_generator (  ) 

Definition at line 80 of file editor_generate_map.cpp.

References current_map_generator_, and map_generators_.

Referenced by do_settings(), editor::context_manager::generate_map_dialog(), and update_current_generator_label().

Here is the caller graph for this function:

void gui2::teditor_generate_map::pre_show ( CVideo video,
twindow window 
) [private, virtual]

Inherited from tdialog.

Reimplemented from gui2::tdialog.

Definition at line 99 of file editor_generate_map.cpp.

References gui2::event::connect_signal_mouse_left_click(), current_generator_label_, do_next_generator(), do_settings(), gui_, map_generators_, and update_current_generator_label().

Here is the call graph for this function:

void gui2::teditor_generate_map::set_gui ( display d  )  [inline]

Definition at line 52 of file editor_generate_map.hpp.

References gui_.

Referenced by editor::context_manager::generate_map_dialog().

Here is the caller graph for this function:

void gui2::teditor_generate_map::set_map_generators ( std::vector< map_generator * >  mg  )  [inline]

Definition at line 41 of file editor_generate_map.hpp.

References map_generators_.

Referenced by editor::context_manager::generate_map_dialog().

Here is the caller graph for this function:

void gui2::teditor_generate_map::update_current_generator_label ( twindow window  ) 

Definition at line 86 of file editor_generate_map.cpp.

References map_generator::config_name(), current_generator_label_, current_map_generator_, get_selected_map_generator(), gui2::twindow::invalidate_layout(), map_generators_, map_generator::name(), and gui2::tcontrol::set_label().

Referenced by do_next_generator(), and pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual const std::string& gui2::teditor_generate_map::window_id (  )  const [private, virtual]

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.


Member Data Documentation

Label for the current map generator.

Definition at line 70 of file editor_generate_map.hpp.

Referenced by pre_show(), and update_current_generator_label().

Current map generator index.

Definition at line 67 of file editor_generate_map.hpp.

Referenced by do_next_generator(), get_selected_map_generator(), and update_current_generator_label().

Needed for the old-style map generator settings dialog.

Definition at line 73 of file editor_generate_map.hpp.

Referenced by do_settings(), get_gui(), pre_show(), and set_gui().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:05 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs