Public Member Functions | Private Attributes

theme::menu Class Reference

#include <theme.hpp>

Inheritance diagram for theme::menu:
Inheritance graph
[legend]
Collaboration diagram for theme::menu:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 menu ()
 menu (const config &cfg)
bool is_context () const
const std::string & title () const
const std::string & tooltip () const
const std::string & type () const
const std::string & image () const
const std::vector< std::string > & items () const
void set_title (const std::string &new_title)

Private Attributes

bool context_
std::string title_
std::string tooltip_
std::string image_
std::string type_
std::vector< std::string > items_

Detailed Description

Definition at line 167 of file theme.hpp.


Constructor & Destructor Documentation

theme::menu::menu (  ) 

Definition at line 503 of file theme.cpp.

theme::menu::menu ( const config cfg  )  [explicit]

Definition at line 513 of file theme.cpp.

References hotkey::get_hotkey(), items_, and tooltip_.

Here is the call graph for this function:


Member Function Documentation

const std::string& theme::menu::image (  )  const [inline]

Definition at line 183 of file theme.hpp.

References image_.

bool theme::menu::is_context (  )  const [inline]

Definition at line 175 of file theme.hpp.

References context_.

Referenced by theme::add_object(), and theme::context_menu().

Here is the caller graph for this function:

const std::vector<std::string>& theme::menu::items (  )  const [inline]

Definition at line 185 of file theme.hpp.

References items_.

Referenced by editor::editor_toolkit::init_mouse_actions(), and controller_base::play_slice().

Here is the caller graph for this function:

void theme::menu::set_title ( const std::string &  new_title  )  [inline]

Definition at line 187 of file theme.hpp.

References title_.

Referenced by theme::refresh_title().

Here is the caller graph for this function:

const std::string& theme::menu::title (  )  const [inline]

Definition at line 177 of file theme.hpp.

References title_.

Referenced by hotkey::command_executor::get_menu_images().

Here is the caller graph for this function:

const std::string& theme::menu::tooltip (  )  const [inline]

Definition at line 179 of file theme.hpp.

References tooltip_.

const std::string& theme::menu::type (  )  const [inline]

Definition at line 181 of file theme.hpp.

References type_.


Member Data Documentation

bool theme::menu::context_ [private]

Definition at line 189 of file theme.hpp.

Referenced by is_context().

std::string theme::menu::image_ [private]

Definition at line 190 of file theme.hpp.

Referenced by image().

std::vector<std::string> theme::menu::items_ [private]

Definition at line 191 of file theme.hpp.

Referenced by items(), and menu().

std::string theme::menu::title_ [private]

Definition at line 190 of file theme.hpp.

Referenced by set_title(), and title().

std::string theme::menu::tooltip_ [private]

Definition at line 190 of file theme.hpp.

Referenced by menu(), and tooltip().

std::string theme::menu::type_ [private]

Definition at line 190 of file theme.hpp.

Referenced by type().


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:16:44 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs