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::entry_display Class Reference

#include <mp_options.hpp>

Inheritance diagram for mp::options::entry_display:
Inheritance graph

Public Member Functions

 entry_display (CVideo &video, const config &cfg)
 
 ~entry_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
 
virtual void hide_children (bool hide)
 
- Public Member Functions inherited from mp::options::option_display
virtual ~option_display ()
 
virtual void process_event ()
 

Private Attributes

gui::textboxentry_
 
gui::labellabel_
 

Detailed Description

Definition at line 46 of file mp_options.hpp.

Constructor & Destructor Documentation

mp::options::entry_display::entry_display ( CVideo video,
const config cfg 
)

Definition at line 362 of file mp_options.cpp.

References entry_, and gui::widget::set_help_string().

mp::options::entry_display::~entry_display ( )

Definition at line 369 of file mp_options.cpp.

References entry_, and label_.

Member Function Documentation

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

Implements mp::options::option_display.

Definition at line 387 of file mp_options.cpp.

References entry_, and gui::textbox::text().

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

Implements mp::options::option_display.

Definition at line 394 of file mp_options.cpp.

References entry_, gui::scrollarea::hide(), gui::widget::hide(), and label_.

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

Implements mp::options::option_display.

Definition at line 382 of file mp_options.cpp.

References entry_, and gui::textbox::set_text().

Member Data Documentation

gui::textbox* mp::options::entry_display::entry_
private
gui::label* mp::options::entry_display::label_
private

Definition at line 59 of file mp_options.hpp.

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


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