The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
mp::options::combo_display Class Reference

#include <mp_options.hpp>

Inheritance diagram for mp::options::combo_display:
Inheritance graph

Public Member Functions

 combo_display (CVideo &video, const config &cfg)
 
 ~combo_display ()
 
void layout (int &xpos, int &ypos, int w, int border_size, gui::scrollpane *pane)
 
void set_value (const config::attribute_value &val)
 
config::attribute_value get_value () const
 
void hide_children (bool hide)
 
- Public Member Functions inherited from mp::options::option_display
virtual ~option_display ()
 
virtual void process_event ()
 

Private Attributes

gui::labellabel_
 
gui::combocombo_
 
std::vector< std::stringvalues_
 

Detailed Description

Definition at line 97 of file mp_options.hpp.

Constructor & Destructor Documentation

mp::options::combo_display::combo_display ( CVideo video,
const config cfg 
)
mp::options::combo_display::~combo_display ( )

Definition at line 536 of file mp_options.cpp.

References combo_, and label_.

Member Function Documentation

config::attribute_value mp::options::combo_display::get_value ( ) const
virtual

Implements mp::options::option_display.

Definition at line 560 of file mp_options.cpp.

References combo_, gui::combo::selected(), and values_.

void mp::options::combo_display::hide_children ( bool  hide)
virtual

Implements mp::options::option_display.

Definition at line 567 of file mp_options.cpp.

References combo_, gui::widget::hide(), and label_.

void mp::options::combo_display::layout ( int xpos,
int ypos,
int  w,
int  border_size,
gui::scrollpane pane 
)
virtual
void mp::options::combo_display::set_value ( const config::attribute_value val)
virtual

Implements mp::options::option_display.

Definition at line 549 of file mp_options.cpp.

References combo_, i, gui::combo::set_selected(), and values_.

Referenced by combo_display().

Member Data Documentation

gui::combo* mp::options::combo_display::combo_
private
gui::label* mp::options::combo_display::label_
private

Definition at line 109 of file mp_options.hpp.

Referenced by hide_children(), layout(), and ~combo_display().

std::vector<std::string> mp::options::combo_display::values_
private

Definition at line 112 of file mp_options.hpp.

Referenced by combo_display(), get_value(), and set_value().


The documentation for this class was generated from the following files: