The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros
generator.cpp File Reference
#include "gui/widgets/generator_private.hpp"
#include "gui/widgets/window.hpp"
#include "wml_exception.hpp"
Include dependency graph for generator.cpp:

Go to the source code of this file.

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 
 gui2::policy
 Contains the policies for the tgenerator class.
 
 gui2::policy::minimum_selection
 Contains the policy for the minimum number of selected items.
 
 gui2::policy::placement
 Controls how new items are placed.
 
 gui2::policy::select_action
 Contains the policy for which action to take when an item is selected or deselected.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define GENERATE_PLACEMENT
 
#define GENERATE_SELECT
 
#define GENERATE_MAXIMUM
 
#define GENERATE_BODY
 

Macro Definition Documentation

#define GENERATE_BODY
Value:
if(has_minimum) { \
typedef policy::minimum_selection::tone minimum; \
} else { \
typedef policy::minimum_selection::tnone minimum; \
}
#define GENERATE_MAXIMUM
Definition: generator.cpp:779

Definition at line 792 of file generator.cpp.

Referenced by gui2::tgenerator_::build().

#define GENERATE_MAXIMUM
Value:
if(has_maximum) { \
typedef policy::maximum_selection::tone maximum; \
} else { \
typedef policy::maximum_selection::tinfinite maximum; \
}
#define GENERATE_SELECT
Definition: generator.cpp:766

Definition at line 779 of file generator.cpp.

#define GENERATE_PLACEMENT
Value:
switch(placement) { \
case tgenerator_::horizontal_list: \
result = new tgenerator<minimum, \
maximum, \
policy::placement::thorizontal_list, \
select>; \
break; \
case tgenerator_::vertical_list: \
result = new tgenerator<minimum, \
maximum, \
policy::placement::tvertical_list, \
select>; \
break; \
result = new tgenerator<minimum, \
maximum, \
policy::placement::tmatrix, \
select>; \
break; \
case tgenerator_::independent: \
result = new tgenerator<minimum, \
maximum, \
policy::placement::tindependent, \
select>; \
break; \
default: \
assert(false); \
}
GLuint64EXT * result
Definition: glew.h:10727

Definition at line 732 of file generator.cpp.

#define GENERATE_SELECT
Value:
if(select) { \
typedef policy::select_action::tselect select; \
} else { \
typedef policy::select_action::tshow select; \
}
#define GENERATE_PLACEMENT
Definition: generator.cpp:732

Definition at line 766 of file generator.cpp.

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file generator.cpp.