Shows the list of addons on the server. More...
#include <list.hpp>
Public Member Functions | |
taddon_list (const config &cfg) | |
Public Member Functions inherited from gui2::tdialog | |
tdialog () | |
virtual | ~tdialog () |
bool | show (CVideo &video, const unsigned auto_close_time=0) |
Shows the window. More... | |
int | get_retval () const |
void | set_always_save_fields (const bool always_save_fields) |
void | set_restore (const bool restore) |
Private Member Functions | |
void | register_sort_button (twindow &window, const std::string &id, const tgenerator_::torder_func &up, const tgenerator_::torder_func &down) |
void | register_sort_button_alphabetical (twindow &window, const std::string &id, const std::string &prop_id) |
void | register_sort_button_numeric (twindow &window, const std::string &id, const std::string &prop_id) |
void | on_order_button_click (twindow &window, const tgenerator_::torder_func &up, const tgenerator_::torder_func &down, twidget &w) |
void | on_filtertext_changed (ttext_ *textbox, const std::string &text) |
void | on_addon_select (twindow &window) |
virtual const std::string & | window_id () const |
Inherited from tdialog, implemented by REGISTER_DIALOG. More... | |
void | pre_show (twindow &window) |
Inherited from tdialog. More... | |
void | browse_url_callback (ttext_box &url_box) |
void | copy_url_callback (ttext_box &url_box) |
void | options_button_callback (twindow &window) |
void | show_help (twindow &window) |
Private Attributes | |
std::vector< tselectable_ * > | orders_ |
const config & | cfg_ |
Config which contains the list with the campaigns. More... | |
config::const_child_itors | cfg_iterators_ |
Debug iterators for testing with –new-widgets. More... | |
addons_list | addons_ |
addons_tracking_list | tracking_info_ |
std::vector< std::string > | ids_ |
Additional Inherited Members | |
Protected Member Functions inherited from gui2::tdialog | |
tfield_bool * | register_bool (const std::string &id, const bool mandatory, const std::function< bool()> &callback_load_value=std::function< bool()>(), const std::function< void(const bool)> &callback_save_value=std::function< void(const bool)>(), const std::function< void(twidget &)> &callback_change=std::function< void(twidget &)>()) |
Creates a new boolean field. More... | |
tfield_bool * | register_bool (const std::string &id, const bool mandatory, bool &linked_variable, const std::function< void(twidget &)> &callback_change=std::function< void(twidget &)>()) |
Creates a new boolean field. More... | |
tfield_integer * | register_integer (const std::string &id, const bool mandatory, const std::function< int()> &callback_load_value=std::function< int()>(), const std::function< void(const int)> &callback_save_value=std::function< void(const int)>()) |
Creates a new integer field. More... | |
tfield_integer * | register_integer (const std::string &id, const bool mandatory, int &linked_variable) |
Creates a new integer field. More... | |
tfield_text * | register_text (const std::string &id, const bool mandatory, const std::function< std::string()> &callback_load_value=std::function< std::string()>(), const std::function< void(const std::string &)> &callback_save_value=std::function< void(const std::string &)>(), const bool capture_focus=false) |
Creates a new text field. More... | |
tfield_text * | register_text (const std::string &id, const bool mandatory, std::string &linked_variable, const bool capture_focus=false) |
Creates a new text field. More... | |
tfield_label * | register_label (const std::string &id, const bool mandatory, const std::string &text, const bool use_markup=false) |
Registers a new control as a label. More... | |
tfield_label * | register_image (const std::string &id, const bool mandatory, const std::string &filename) |
Registers a new control as image. More... | |
|
explicit |
Definition at line 179 of file list.cpp.
References read_addons_list().
Definition at line 512 of file list.cpp.
References gui2::ttext_::get_value(), and desktop::open_object().
Referenced by pre_show().
Definition at line 519 of file list.cpp.
References desktop::clipboard::copy_to_clipboard(), and gui2::ttext_::get_value().
Referenced by pre_show().
Definition at line 542 of file list.cpp.
References ADDON_INSTALLED, addons_, addon_info::author, addon_info::created, gui2::describe_status_verbose(), addon_info::description, addon_info::display_icon(), addon_info::display_title(), addon_info::display_type(), addon_info::downloads, addon_info::feedback_url, gui2::format_addon_time(), addon_info::id, ids_, lg::info(), gui2::set_label(), gui2::tcontrol::set_label(), addon_info::size, size_display_string(), version_info::str(), tracking_info_, addon_info::updated, and addon_info::version.
Referenced by pre_show().
|
private |
Definition at line 190 of file list.cpp.
References cfg_, config::child_count(), config::child_range(), gui2::twidget::get_window(), gui2::tlistbox::set_row_shown(), and utils::split().
Referenced by pre_show().
|
private |
Definition at line 203 of file list.cpp.
References gui2::tselectable_::get_value(), gui2::tlistbox::order_by(), orders_, and gui2::tselectable_::set_value().
Referenced by register_sort_button().
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 382 of file list.cpp.
References _(), gui2::tlistbox::add_row(), ADDON_INSTALLED, ADDON_INSTALLED_UPGRADABLE, addons_, addon_info::author, desktop::clipboard::available(), browse_url_callback(), cfg_, config::child_range(), gui2::event::connect_signal_mouse_left_click(), gui2::event::connect_signal_notify_modified(), copy_url_callback(), gui2::describe_status_simple(), addon_info::display_icon(), addon_info::display_title(), addon_info::display_type(), addon_info::downloads, get_addon_tracking_info(), gui2::tlistbox::get_item_count(), gui2::tlistbox::get_row_grid(), addon_info::id, ids_, lg::info(), gui2::twidget::tvisible::invisible, on_addon_select(), on_filtertext_changed(), desktop::open_object_is_supported(), options_button_callback(), register_sort_button_alphabetical(), register_sort_button_numeric(), gui2::tstacked_widget::select_layer(), gui2::ttext_::set_active(), gui2::tlistbox::set_callback_value_change(), gui2::twidget::set_visible(), show_help(), addon_info::size, size_display_string(), version_info::str(), tracking_info_, and addon_info::version.
|
private |
Definition at line 227 of file list.cpp.
References gui2::id, on_order_button_click(), orders_, and gui2::tselectable_::set_callback_state_change().
Referenced by register_sort_button_alphabetical(), and register_sort_button_numeric().
|
private |
Definition at line 234 of file list.cpp.
References cfg_, and register_sort_button().
Referenced by pre_show().
|
private |
Definition at line 242 of file list.cpp.
References cfg_, and register_sort_button().
Referenced by pre_show().
Definition at line 507 of file list.cpp.
References help::show_help(), and gui2::twindow::video().
Referenced by pre_show().
|
privatevirtual |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
|
private |
Definition at line 65 of file list.hpp.
Referenced by on_addon_select(), and pre_show().
|
private |
Config which contains the list with the campaigns.
Definition at line 58 of file list.hpp.
Referenced by on_filtertext_changed(), pre_show(), register_sort_button_alphabetical(), and register_sort_button_numeric().
|
private |
|
private |
Definition at line 69 of file list.hpp.
Referenced by on_addon_select(), and pre_show().
|
private |
Definition at line 48 of file list.hpp.
Referenced by on_order_button_click(), and register_sort_button().
|
private |
Definition at line 67 of file list.hpp.
Referenced by on_addon_select(), and pre_show().