15 #ifndef GUI_DIALOGS_ADDON_FILTER_OPTIONS_HPP_INCLUDED
16 #define GUI_DIALOGS_ADDON_FILTER_OPTIONS_HPP_INCLUDED
24 #include <boost/array.hpp>
86 typedef std::pair<ttoggle_button*, ADDON_SORT_DIRECTION>
dir_toggle;
ADDON_SORT_DIRECTION dir_
tgroup< ADDON_SORT > sort_tgroup_
void register_sort_toggle(twindow &window, const std::string &toggle_id, ADDON_SORT value)
boost::array< bool, ADDON_TYPES_COUNT > displayed_types_
ADDON_TYPE
Values used for add-on classification; UI-only at the moment, in the future it could be used for dire...
ADDON_SORT
Add-on fallback/default sorting criteria for the user interface.
ADDON_STATUS_FILTER displayed_status_
tgroup< ADDON_SORT_DIRECTION > dir_tgroup_
void toggle_dir_callback()
GLsizei GLenum GLenum * types
void set_displayed_status(ADDON_STATUS_FILTER status)
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
static std::string status_label(ADDON_STATUS_FILTER s)
ADDON_SORT_DIRECTION
Add-on fallback/default sorting direction.
Abstract base class for all dialogs.
ADDON_STATUS_FILTER
Add-on installation status filters for the user interface.
GLsizei const GLfloat * value
std::pair< ttoggle_button *, ADDON_SORT > sort_toggle
ADDON_SORT_DIRECTION direction() const
void toggle_sort_callback()
void post_show(twindow &window)
Inherited from tdialog.
void set_direction(ADDON_SORT_DIRECTION direction)
std::vector< tfield_bool * > displayed_types_fields_
std::pair< ttoggle_button *, ADDON_SORT_DIRECTION > dir_toggle
void set_sort(ADDON_SORT sort)
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
void register_dir_toggle(twindow &window, const std::string &toggle_id, ADDON_SORT_DIRECTION value)
void register_displayed_type_field(const std::string &field_id, ADDON_TYPE addon_type)
std::vector< bool > displayed_types() const
void pre_show(twindow &window)
Inherited from tdialog.
void toggle_all_displayed_types_button_callback(twindow &window)
void read_types_vector(const std::vector< bool > &v)
GLsizei const GLcharARB ** string
void set_displayed_types(const std::vector< bool > &types)
ADDON_STATUS_FILTER displayed_status() const