GUI2: removed CVideo argument from tdialog::preshow
In all but three cases, this argument was unused. In those remaining cases, the argument could be replaced by twindow::video().
This commit is contained in:
parent
b2fff5afd9
commit
11b941ab58
107 changed files with 124 additions and 126 deletions
|
@ -366,7 +366,7 @@ void taddon_description::copy_url_callback()
|
||||||
desktop::clipboard::copy_to_clipboard(feedback_url_, false);
|
desktop::clipboard::copy_to_clipboard(feedback_url_, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void taddon_description::pre_show(CVideo& /*video*/, twindow& window)
|
void taddon_description::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tcontrol& url_none = find_widget<tcontrol>(&window, "url_none", false);
|
tcontrol& url_none = find_widget<tcontrol>(&window, "url_none", false);
|
||||||
tbutton& url_go_button = find_widget<tbutton>(&window, "url_go", false);
|
tbutton& url_go_button = find_widget<tbutton>(&window, "url_go", false);
|
||||||
|
|
|
@ -59,7 +59,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
void browse_url_callback();
|
void browse_url_callback();
|
||||||
void copy_url_callback();
|
void copy_url_callback();
|
||||||
|
|
|
@ -185,7 +185,7 @@ void taddon_filter_options::toggle_dir_callback()
|
||||||
dir_ = dir_tgroup_.get_active_member_value();
|
dir_ = dir_tgroup_.get_active_member_value();
|
||||||
}
|
}
|
||||||
|
|
||||||
void taddon_filter_options::pre_show(CVideo& /*video*/, twindow& window)
|
void taddon_filter_options::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "statuses_list", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "statuses_list", false);
|
||||||
window.keyboard_capture(&list);
|
window.keyboard_capture(&list);
|
||||||
|
|
|
@ -110,7 +110,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace gui2
|
||||||
|
|
||||||
REGISTER_DIALOG(addon_uninstall_list)
|
REGISTER_DIALOG(addon_uninstall_list)
|
||||||
|
|
||||||
void taddon_uninstall_list::pre_show(CVideo& /*video*/, twindow& window)
|
void taddon_uninstall_list::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "addons_list", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "addons_list", false);
|
||||||
window.keyboard_capture(&list);
|
window.keyboard_capture(&list);
|
||||||
|
|
|
@ -49,7 +49,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -66,7 +66,7 @@ void taddon_connect::help_button_callback(twindow& window)
|
||||||
help::show_help(window.video(), "installing_addons");
|
help::show_help(window.video(), "installing_addons");
|
||||||
}
|
}
|
||||||
|
|
||||||
void taddon_connect::pre_show(CVideo& /*video*/, twindow& window)
|
void taddon_connect::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
find_widget<tbutton>(&window, "remove_addons", false)
|
find_widget<tbutton>(&window, "remove_addons", false)
|
||||||
.set_active(allow_remove_);
|
.set_active(allow_remove_);
|
||||||
|
|
|
@ -51,7 +51,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -375,7 +375,7 @@ static std::string describe_status_verbose(const addon_tracking_info& state)
|
||||||
return colorify_addon_state_string(s, state);
|
return colorify_addon_state_string(s, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void taddon_list::pre_show(CVideo& /*video*/, twindow& window)
|
void taddon_list::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "addons", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "addons", false);
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Config which contains the list with the campaigns. */
|
/** Config which contains the list with the campaigns. */
|
||||||
const config& cfg_;
|
const config& cfg_;
|
||||||
|
|
|
@ -80,7 +80,7 @@ tadvanced_graphics_options::tadvanced_graphics_options()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tadvanced_graphics_options::pre_show(CVideo& /*video*/, twindow& window)
|
void tadvanced_graphics_options::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(const std::string & i, scale_cases) {
|
BOOST_FOREACH(const std::string & i, scale_cases) {
|
||||||
setup_scale_case(i, window);
|
setup_scale_case(i, window);
|
||||||
|
|
|
@ -56,7 +56,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -112,7 +112,7 @@ tcampaign_difficulty::tcampaign_difficulty(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcampaign_difficulty::pre_show(CVideo& /*video*/, twindow& window)
|
void tcampaign_difficulty::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
|
||||||
window.keyboard_capture(&list);
|
window.keyboard_capture(&list);
|
||||||
|
|
|
@ -49,7 +49,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -120,7 +120,7 @@ void tcampaign_selection::show_settings(CVideo& video) {
|
||||||
settings_dlg.show(video);
|
settings_dlg.show(video);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcampaign_selection::pre_show(CVideo& video, twindow& window)
|
void tcampaign_selection::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
if(new_widgets || true) {
|
if(new_widgets || true) {
|
||||||
/***** Setup campaign tree. *****/
|
/***** Setup campaign tree. *****/
|
||||||
|
@ -273,7 +273,7 @@ void tcampaign_selection::pre_show(CVideo& video, twindow& window)
|
||||||
find_widget<tbutton>(&window, "advanced_settings", false, false);
|
find_widget<tbutton>(&window, "advanced_settings", false, false);
|
||||||
if(advanced_settings_button) {
|
if(advanced_settings_button) {
|
||||||
advanced_settings_button->connect_click_handler(
|
advanced_settings_button->connect_click_handler(
|
||||||
boost::bind(&tcampaign_selection::show_settings, this, boost::ref(video)));
|
boost::bind(&tcampaign_selection::show_settings, this, boost::ref(window.video())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ private:
|
||||||
void show_settings(CVideo& video);
|
void show_settings(CVideo& video);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -149,7 +149,7 @@ void tcampaign_settings::update_lists(twindow& window)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcampaign_settings::pre_show(CVideo&, twindow& window)
|
void tcampaign_settings::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
find_widget<ttoggle_button>(&window, "mp_connect", false).set_value(
|
find_widget<ttoggle_button>(&window, "mp_connect", false).set_value(
|
||||||
engine_.get_state().mp_settings().show_connect);
|
engine_.get_state().mp_settings().show_connect);
|
||||||
|
|
|
@ -54,7 +54,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -346,7 +346,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void pre_show(CVideo& /*video*/, twindow& window)
|
void pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
LOG_CHAT_LOG << "Entering tchat_log::view::pre_show" << std::endl;
|
LOG_CHAT_LOG << "Entering tchat_log::view::pre_show" << std::endl;
|
||||||
controller_.update_view_from_model(true);
|
controller_.update_view_from_model(true);
|
||||||
|
@ -448,11 +448,11 @@ twindow* tchat_log::build_window(CVideo& video)
|
||||||
return build(video, window_id());
|
return build(video, window_id());
|
||||||
}
|
}
|
||||||
|
|
||||||
void tchat_log::pre_show(CVideo& video, twindow& window)
|
void tchat_log::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
LOG_CHAT_LOG << "Entering tchat_log::pre_show" << std::endl;
|
LOG_CHAT_LOG << "Entering tchat_log::pre_show" << std::endl;
|
||||||
view_->bind(window);
|
view_->bind(window);
|
||||||
view_->pre_show(video, window);
|
view_->pre_show(window);
|
||||||
LOG_CHAT_LOG << "Exiting tchat_log::pre_show" << std::endl;
|
LOG_CHAT_LOG << "Exiting tchat_log::pre_show" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ public:
|
||||||
twindow* build_window(CVideo& video);
|
twindow* build_window(CVideo& video);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
boost::shared_ptr<view> get_view();
|
boost::shared_ptr<view> get_view();
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ void tcore_selection::core_selected(twindow& window)
|
||||||
multi_page.select_page(selected_row);
|
multi_page.select_page(selected_row);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcore_selection::pre_show(CVideo& /*video*/, twindow& window)
|
void tcore_selection::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
/***** Setup core list. *****/
|
/***** Setup core list. *****/
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "core_list", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "core_list", false);
|
||||||
|
|
|
@ -46,7 +46,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -58,7 +58,7 @@ tdata_manage::tdata_manage()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tdata_manage::pre_show(CVideo& /*video*/, twindow& window)
|
void tdata_manage::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
assert(txtFilter_);
|
assert(txtFilter_);
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
||||||
|
|
|
@ -76,7 +76,7 @@ namespace gui2
|
||||||
|
|
||||||
REGISTER_DIALOG(debug_clock)
|
REGISTER_DIALOG(debug_clock)
|
||||||
|
|
||||||
void tdebug_clock::pre_show(CVideo& /*video*/, twindow& window)
|
void tdebug_clock::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
hour_percentage_ = find_widget<tprogress_bar>(
|
hour_percentage_ = find_widget<tprogress_bar>(
|
||||||
&window, "hour_percentage", false, false);
|
&window, "hour_percentage", false, false);
|
||||||
|
|
|
@ -128,7 +128,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(CVideo& video);
|
void post_show(CVideo& video);
|
||||||
|
|
|
@ -87,7 +87,7 @@ tdepcheck_select_new::tdepcheck_select_new(
|
||||||
register_label("message", false, message);
|
register_label("message", false, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tdepcheck_select_new::pre_show(CVideo& /*video*/, twindow& window)
|
void tdepcheck_select_new::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& listbox = find_widget<tlistbox>(&window, "itemlist", false);
|
tlistbox& listbox = find_widget<tlistbox>(&window, "itemlist", false);
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ protected:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog */
|
/** Inherited from tdialog */
|
||||||
virtual void pre_show(CVideo& video, twindow& window);
|
virtual void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog */
|
/** Inherited from tdialog */
|
||||||
virtual void post_show(twindow& window);
|
virtual void post_show(twindow& window);
|
||||||
|
|
|
@ -47,7 +47,7 @@ bool tdialog::show(CVideo& video, const unsigned auto_close_time)
|
||||||
|
|
||||||
init_fields(*window);
|
init_fields(*window);
|
||||||
|
|
||||||
pre_show(video, *window);
|
pre_show(*window);
|
||||||
|
|
||||||
retval_ = window->show(restore_, auto_close_time);
|
retval_ = window->show(restore_, auto_close_time);
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ void tdialog::post_build(CVideo& /*video*/, twindow& /*window*/)
|
||||||
/* DO NOTHING */
|
/* DO NOTHING */
|
||||||
}
|
}
|
||||||
|
|
||||||
void tdialog::pre_show(CVideo& /*video*/, twindow& /*window*/)
|
void tdialog::pre_show(twindow& /*window*/)
|
||||||
{
|
{
|
||||||
/* DO NOTHING */
|
/* DO NOTHING */
|
||||||
}
|
}
|
||||||
|
|
|
@ -369,11 +369,9 @@ private:
|
||||||
* At this point the registered fields are registered and initialized with
|
* At this point the registered fields are registered and initialized with
|
||||||
* their initial values.
|
* their initial values.
|
||||||
*
|
*
|
||||||
* @param video The video which contains the surface to draw
|
|
||||||
* upon.
|
|
||||||
* @param window The window to be shown.
|
* @param window The window to be shown.
|
||||||
*/
|
*/
|
||||||
virtual void pre_show(CVideo& video, twindow& window);
|
virtual void pre_show(twindow& window);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Actions to be taken after the window has been shown.
|
* Actions to be taken after the window has been shown.
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tdrop_down_list::pre_show(CVideo& /*video*/, twindow& window)
|
void tdrop_down_list::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
window.set_variable("button_x", variant(button_pos_.x));
|
window.set_variable("button_x", variant(button_pos_.x));
|
||||||
window.set_variable("button_y", variant(button_pos_.y));
|
window.set_variable("button_y", variant(button_pos_.y));
|
||||||
|
|
|
@ -43,7 +43,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -249,7 +249,7 @@ void tcustom_tod::update_selected_tod_info(twindow& window)
|
||||||
window.invalidate_layout();
|
window.invalidate_layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcustom_tod::pre_show(CVideo& /*video*/, twindow& window)
|
void tcustom_tod::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
assert(!tods_.empty());
|
assert(!tods_.empty());
|
||||||
current_tod_name_
|
current_tod_name_
|
||||||
|
|
|
@ -83,7 +83,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -86,7 +86,7 @@ teditor_edit_side::teditor_edit_side(int side,
|
||||||
register_bool("hidden", true, hidden);
|
register_bool("hidden", true, hidden);
|
||||||
}
|
}
|
||||||
|
|
||||||
void teditor_edit_side::pre_show(CVideo& /*video*/, twindow& window)
|
void teditor_edit_side::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
register_radio_toggle<team::CONTROLLER>("controller_human", controller_group, team::CONTROLLER::HUMAN, controller_, window);
|
register_radio_toggle<team::CONTROLLER>("controller_human", controller_group, team::CONTROLLER::HUMAN, controller_, window);
|
||||||
register_radio_toggle<team::CONTROLLER>("controller_ai", controller_group, team::CONTROLLER::AI, controller_, window);
|
register_radio_toggle<team::CONTROLLER>("controller_ai", controller_group, team::CONTROLLER::AI, controller_, window);
|
||||||
|
|
|
@ -73,7 +73,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void pre_show(CVideo& /*video*/, twindow& window);
|
void pre_show(twindow& window);
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
|
@ -103,7 +103,7 @@ void teditor_generate_map::select_map_generator(map_generator* mg)
|
||||||
last_map_generator_ = mg;
|
last_map_generator_ = mg;
|
||||||
}
|
}
|
||||||
|
|
||||||
void teditor_generate_map::pre_show(CVideo& /*video*/, twindow& window)
|
void teditor_generate_map::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
assert(!map_generators_.empty());
|
assert(!map_generators_.empty());
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Callback for generator list selection changes. */
|
/** Callback for generator list selection changes. */
|
||||||
void do_generator_selected(twindow& window);
|
void do_generator_selected(twindow& window);
|
||||||
|
|
|
@ -104,7 +104,7 @@ teditor_resize_map::teditor_resize_map(int& width,
|
||||||
register_label("old_height", false, str_cast(height));
|
register_label("old_height", false, str_cast(height));
|
||||||
}
|
}
|
||||||
|
|
||||||
void teditor_resize_map::pre_show(CVideo& /*video*/, twindow& window)
|
void teditor_resize_map::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tslider& height = find_widget<tslider>(&window, "height", false);
|
tslider& height = find_widget<tslider>(&window, "height", false);
|
||||||
connect_signal_notify_modified(
|
connect_signal_notify_modified(
|
||||||
|
|
|
@ -111,7 +111,7 @@ private:
|
||||||
void set_direction_icon(int index, std::string icon);
|
void set_direction_icon(int index, std::string icon);
|
||||||
|
|
||||||
/** Inherited from tdialog */
|
/** Inherited from tdialog */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
|
@ -76,7 +76,7 @@ teditor_set_starting_position::teditor_set_starting_position(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void teditor_set_starting_position::pre_show(CVideo& /*video*/, twindow& window)
|
void teditor_set_starting_position::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
|
||||||
window.keyboard_capture(&list);
|
window.keyboard_capture(&list);
|
||||||
|
|
|
@ -45,7 +45,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -65,7 +65,7 @@ namespace gui2
|
||||||
|
|
||||||
REGISTER_DIALOG(formula_debugger)
|
REGISTER_DIALOG(formula_debugger)
|
||||||
|
|
||||||
void tformula_debugger::pre_show(CVideo& /*video*/, twindow& window)
|
void tformula_debugger::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
// stack label
|
// stack label
|
||||||
tcontrol* stack_label
|
tcontrol* stack_label
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
|
@ -82,7 +82,7 @@ tgame_cache_options::tgame_cache_options()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tgame_cache_options::pre_show(CVideo& video, twindow& window)
|
void tgame_cache_options::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
clean_button_ = &find_widget<tbutton>(&window, "clean", false);
|
clean_button_ = &find_widget<tbutton>(&window, "clean", false);
|
||||||
purge_button_ = &find_widget<tbutton>(&window, "purge", false);
|
purge_button_ = &find_widget<tbutton>(&window, "purge", false);
|
||||||
|
@ -111,12 +111,12 @@ void tgame_cache_options::pre_show(CVideo& video, twindow& window)
|
||||||
connect_signal_mouse_left_click(*clean_button_,
|
connect_signal_mouse_left_click(*clean_button_,
|
||||||
boost::bind(&tgame_cache_options::clean_cache_callback,
|
boost::bind(&tgame_cache_options::clean_cache_callback,
|
||||||
this,
|
this,
|
||||||
boost::ref(video)));
|
boost::ref(window.video())));
|
||||||
|
|
||||||
connect_signal_mouse_left_click(*purge_button_,
|
connect_signal_mouse_left_click(*purge_button_,
|
||||||
boost::bind(&tgame_cache_options::purge_cache_callback,
|
boost::bind(&tgame_cache_options::purge_cache_callback,
|
||||||
this,
|
this,
|
||||||
boost::ref(video)));
|
boost::ref(window.video())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tgame_cache_options::post_show(twindow& /*window*/)
|
void tgame_cache_options::post_show(twindow& /*window*/)
|
||||||
|
|
|
@ -61,7 +61,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -105,7 +105,7 @@ tgame_load::tgame_load(const config& cache_config)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tgame_load::pre_show(CVideo& /*video*/, twindow& window)
|
void tgame_load::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
assert(txtFilter_);
|
assert(txtFilter_);
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -124,7 +124,7 @@ tgame_version::tgame_version()
|
||||||
generate_plain_text_report();
|
generate_plain_text_report();
|
||||||
}
|
}
|
||||||
|
|
||||||
void tgame_version::pre_show(CVideo& /*video*/, twindow& window)
|
void tgame_version::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
string_map i18n_syms;
|
string_map i18n_syms;
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Widget event callbacks.
|
// Widget event callbacks.
|
||||||
|
|
|
@ -754,7 +754,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void pre_show(CVideo& /*video*/, twindow& /*window*/)
|
void pre_show(twindow& /*window*/)
|
||||||
{
|
{
|
||||||
controller_.show_stuff_types_list();
|
controller_.show_stuff_types_list();
|
||||||
controller_.update_view_from_model();
|
controller_.update_view_from_model();
|
||||||
|
@ -858,10 +858,10 @@ boost::shared_ptr<tgamestate_inspector::view> tgamestate_inspector::get_view()
|
||||||
return view_;
|
return view_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tgamestate_inspector::pre_show(CVideo& video, twindow& window)
|
void tgamestate_inspector::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
view_->bind(window);
|
view_->bind(window);
|
||||||
view_->pre_show(video, window);
|
view_->pre_show(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end of namespace gui2
|
} // end of namespace gui2
|
||||||
|
|
|
@ -35,7 +35,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
|
@ -73,7 +73,7 @@ tlabel_settings::tlabel_settings(display_context& dc) : viewer(dc) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tlabel_settings::pre_show(CVideo& /*video*/, twindow& window) {
|
void tlabel_settings::pre_show(twindow& window) {
|
||||||
std::map<std::string, string_map> list_data;
|
std::map<std::string, string_map> list_data;
|
||||||
tlistbox& cats_listbox = find_widget<tlistbox>(&window, "label_types", false);
|
tlistbox& cats_listbox = find_widget<tlistbox>(&window, "label_types", false);
|
||||||
FOREACH(const AUTO & label_entry, all_labels) {
|
FOREACH(const AUTO & label_entry, all_labels) {
|
||||||
|
|
|
@ -40,7 +40,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Callback for toggling a checkbox state. */
|
/** Callback for toggling a checkbox state. */
|
||||||
void toggle_category(twidget& box, std::string category);
|
void toggle_category(twidget& box, std::string category);
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace gui2
|
||||||
|
|
||||||
REGISTER_DIALOG(language_selection)
|
REGISTER_DIALOG(language_selection)
|
||||||
|
|
||||||
void tlanguage_selection::pre_show(CVideo& /*video*/, twindow& window)
|
void tlanguage_selection::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "language_list", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "language_list", false);
|
||||||
window.keyboard_capture(&list);
|
window.keyboard_capture(&list);
|
||||||
|
|
|
@ -32,7 +32,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -906,7 +906,7 @@ void tlobby_main::update_selected_game()
|
||||||
player_list_dirty_ = true;
|
player_list_dirty_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tlobby_main::pre_show(CVideo& /*video*/, twindow& window)
|
void tlobby_main::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
SCOPE_LB;
|
SCOPE_LB;
|
||||||
roomlistbox_ = find_widget<tlistbox>(&window, "room_list", false, true);
|
roomlistbox_ = find_widget<tlistbox>(&window, "room_list", false, true);
|
||||||
|
|
|
@ -358,7 +358,7 @@ private:
|
||||||
virtual void post_build(CVideo& video, twindow& window);
|
virtual void post_build(CVideo& video, twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -50,7 +50,7 @@ tlobby_player_info::~tlobby_player_info()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tlobby_player_info::pre_show(CVideo& /*video*/, twindow& window)
|
void tlobby_player_info::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
relation_ = find_widget<tlabel>(&window, "relation_info", false, true);
|
relation_ = find_widget<tlabel>(&window, "relation_info", false, true);
|
||||||
connect_signal_mouse_left_click(
|
connect_signal_mouse_left_click(
|
||||||
|
|
|
@ -45,7 +45,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -660,7 +660,7 @@ twindow* tlua_interpreter::build_window(CVideo& video)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Bind the controller, initialize one of the static labels with info about this kernel, and update the view. */
|
/** Bind the controller, initialize one of the static labels with info about this kernel, and update the view. */
|
||||||
void tlua_interpreter::pre_show(CVideo& /*video*/, twindow& window)
|
void tlua_interpreter::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
LOG_LUA << "Entering tlua_interpreter::view::pre_show" << std::endl;
|
LOG_LUA << "Entering tlua_interpreter::view::pre_show" << std::endl;
|
||||||
register_text("text_entry", false, controller_->text_entry_, true);
|
register_text("text_entry", false, controller_->text_entry_, true);
|
||||||
|
|
|
@ -38,7 +38,7 @@ public:
|
||||||
twindow* build_window(CVideo& video);
|
twindow* build_window(CVideo& video);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
enum WHICH_KERNEL { APP, GAME };
|
enum WHICH_KERNEL { APP, GAME };
|
||||||
static void display(CVideo& video, lua_kernel_base * lk);
|
static void display(CVideo& video, lua_kernel_base * lk);
|
||||||
|
|
|
@ -63,7 +63,7 @@ struct tmessage_implementation
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void tmessage::pre_show(CVideo& /*video*/, twindow& window)
|
void tmessage::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
// ***** Validate the required buttons ***** ***** ***** *****
|
// ***** Validate the required buttons ***** ***** ***** *****
|
||||||
tmessage_implementation::init_button(window, buttons_[left_1], "left_side");
|
tmessage_implementation::init_button(window, buttons_[left_1], "left_side");
|
||||||
|
|
|
@ -107,7 +107,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -124,7 +124,7 @@ tmp_alerts_options::tmp_alerts_options()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmp_alerts_options::pre_show(CVideo& /*video*/, twindow& window)
|
void tmp_alerts_options::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(const std::string & i, mp_ui_alerts::items) {
|
BOOST_FOREACH(const std::string & i, mp_ui_alerts::items) {
|
||||||
setup_item(i, window);
|
setup_item(i, window);
|
||||||
|
|
|
@ -42,7 +42,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -321,7 +321,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void pre_show(CVideo& /*video*/, twindow& window)
|
void pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
model_.clear_sides();
|
model_.clear_sides();
|
||||||
controller_.show_sides_list();
|
controller_.show_sides_list();
|
||||||
|
@ -403,10 +403,10 @@ boost::shared_ptr<tmp_change_control::view> tmp_change_control::get_view()
|
||||||
return view_;
|
return view_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmp_change_control::pre_show(CVideo& video, twindow& window)
|
void tmp_change_control::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
view_->bind(window);
|
view_->bind(window);
|
||||||
view_->pre_show(video, window);
|
view_->pre_show(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmp_change_control::post_show(twindow& /*window*/)
|
void tmp_change_control::post_show(twindow& /*window*/)
|
||||||
|
|
|
@ -39,7 +39,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
||||||
events::menu_handler* menu_handler_;
|
events::menu_handler* menu_handler_;
|
||||||
|
|
|
@ -91,7 +91,7 @@ tmp_cmd_wrapper::tmp_cmd_wrapper(const t_string& user)
|
||||||
set_always_save_fields(true);
|
set_always_save_fields(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmp_cmd_wrapper::pre_show(CVideo& /*video*/, twindow& window)
|
void tmp_cmd_wrapper::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) || defined(__APPLE__)
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
ttext_box* message
|
ttext_box* message
|
||||||
|
|
|
@ -58,7 +58,7 @@ private:
|
||||||
std::string time_;
|
std::string time_;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
|
@ -77,7 +77,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
@ -85,7 +85,7 @@ private:
|
||||||
|
|
||||||
REGISTER_DIALOG(mp_server_list)
|
REGISTER_DIALOG(mp_server_list)
|
||||||
|
|
||||||
void tmp_server_list::pre_show(CVideo& /*video*/, twindow& window)
|
void tmp_server_list::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
set_restore(true);
|
set_restore(true);
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ tmp_connect::tmp_connect()
|
||||||
set_restore(true);
|
set_restore(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmp_connect::pre_show(CVideo& video, twindow& window)
|
void tmp_connect::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
assert(host_name_);
|
assert(host_name_);
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ void tmp_connect::pre_show(CVideo& video, twindow& window)
|
||||||
|
|
||||||
connect_signal_mouse_left_click(*button,
|
connect_signal_mouse_left_click(*button,
|
||||||
boost::bind(show_server_list,
|
boost::bind(show_server_list,
|
||||||
boost::ref(video),
|
boost::ref(window.video()),
|
||||||
boost::ref(window),
|
boost::ref(window),
|
||||||
host_name_));
|
host_name_));
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** The host name of the selected servef. */
|
/** The host name of the selected servef. */
|
||||||
tfield_text* host_name_;
|
tfield_text* host_name_;
|
||||||
|
|
|
@ -77,7 +77,7 @@ tmp_create_game::tmp_create_game(const config& cfg)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmp_create_game::pre_show(CVideo& /*video*/, twindow& window)
|
void tmp_create_game::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
find_widget<tminimap>(&window, "minimap", false).set_config(&cfg_);
|
find_widget<tminimap>(&window, "minimap", false).set_config(&cfg_);
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -84,7 +84,7 @@ tmp_login::tmp_login(const std::string& label, const bool focus_password)
|
||||||
&preferences::set_remember_password);
|
&preferences::set_remember_password);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmp_login::pre_show(CVideo& /*video*/, twindow& window)
|
void tmp_login::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
if(tbutton* button
|
if(tbutton* button
|
||||||
= find_widget<tbutton>(&window, "password_reminder", false, false)) {
|
= find_widget<tbutton>(&window, "password_reminder", false, false)) {
|
||||||
|
|
|
@ -30,7 +30,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace gui2
|
||||||
|
|
||||||
REGISTER_DIALOG(mp_method_selection)
|
REGISTER_DIALOG(mp_method_selection)
|
||||||
|
|
||||||
void tmp_method_selection::pre_show(CVideo& /*video*/, twindow& window)
|
void tmp_method_selection::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
user_name_ = preferences::login();
|
user_name_ = preferences::login();
|
||||||
ttext_box* user_widget
|
ttext_box* user_widget
|
||||||
|
|
|
@ -48,7 +48,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -81,7 +81,7 @@ void tnetwork_transmission::set_subtitle(const std::string& subtitle)
|
||||||
subtitle_ = subtitle;
|
subtitle_ = subtitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tnetwork_transmission::pre_show(CVideo& /*video*/, twindow& window)
|
void tnetwork_transmission::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
// ***** ***** ***** ***** Set up the widgets ***** ***** ***** *****
|
// ***** ***** ***** ***** Set up the widgets ***** ***** ***** *****
|
||||||
if(!subtitle_.empty()) {
|
if(!subtitle_.empty()) {
|
||||||
|
|
|
@ -66,7 +66,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -45,7 +45,7 @@ void tpopup::show(CVideo& video,
|
||||||
|
|
||||||
post_build(video, *window_);
|
post_build(video, *window_);
|
||||||
|
|
||||||
pre_show(video, *window_);
|
pre_show(*window_);
|
||||||
|
|
||||||
if(allow_interaction) {
|
if(allow_interaction) {
|
||||||
window_->show_non_modal();
|
window_->show_non_modal();
|
||||||
|
@ -73,7 +73,7 @@ void tpopup::post_build(CVideo& /*video*/, twindow& /*window*/)
|
||||||
/* DO NOTHING */
|
/* DO NOTHING */
|
||||||
}
|
}
|
||||||
|
|
||||||
void tpopup::pre_show(CVideo& /*video*/, twindow& /*window*/)
|
void tpopup::pre_show(twindow& /*window*/)
|
||||||
{
|
{
|
||||||
/* DO NOTHING */
|
/* DO NOTHING */
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@ private:
|
||||||
* upon.
|
* upon.
|
||||||
* @param window The window to be shown.
|
* @param window The window to be shown.
|
||||||
*/
|
*/
|
||||||
virtual void pre_show(CVideo& video, twindow& window);
|
virtual void pre_show(twindow& window);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace gui2
|
} // namespace gui2
|
||||||
|
|
|
@ -1113,7 +1113,7 @@ static int index_in_pager_range(const int& first, const tstacked_widget& pager)
|
||||||
return std::min<int>(std::max(0, first), pager.get_layer_count() - 1);
|
return std::min<int>(std::max(0, first), pager.get_layer_count() - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tpreferences::pre_show(CVideo& /*video*/, twindow& window)
|
void tpreferences::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& selector = find_widget<tlistbox>(&window, "selector", false);
|
tlistbox& selector = find_widget<tlistbox>(&window, "selector", false);
|
||||||
tstacked_widget& pager = find_widget<tstacked_widget>(&window, "pager", false);
|
tstacked_widget& pager = find_widget<tstacked_widget>(&window, "pager", false);
|
||||||
|
|
|
@ -65,7 +65,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
void post_show(twindow& /*window*/);
|
void post_show(twindow& /*window*/);
|
||||||
|
|
||||||
/** Initializers */
|
/** Initializers */
|
||||||
|
|
|
@ -79,7 +79,7 @@ tscreenshot_notification::tscreenshot_notification(const std::string& path)
|
||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tscreenshot_notification::pre_show(CVideo& /*video*/, twindow& window)
|
void tscreenshot_notification::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
ttext_box& path_box = find_widget<ttext_box>(&window, "path", false);
|
ttext_box& path_box = find_widget<ttext_box>(&window, "path", false);
|
||||||
path_box.set_value(filesystem::base_name(path_));
|
path_box.set_value(filesystem::base_name(path_));
|
||||||
|
|
|
@ -50,7 +50,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ tselect_orb_colors::tselect_orb_colors()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tselect_orb_colors::pre_show(CVideo&, twindow& window)
|
void tselect_orb_colors::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
setup_orb_group("unmoved", show_unmoved_, preferences::unmoved_color(), window);
|
setup_orb_group("unmoved", show_unmoved_, preferences::unmoved_color(), window);
|
||||||
setup_orb_group("partial", show_partial_, preferences::partial_color(), window);
|
setup_orb_group("partial", show_partial_, preferences::partial_color(), window);
|
||||||
|
|
|
@ -46,7 +46,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,7 +79,7 @@ tsimple_item_selector::tsimple_item_selector(const std::string& title,
|
||||||
register_label("message", true, message, message_uses_markup);
|
register_label("message", true, message, message_uses_markup);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tsimple_item_selector::pre_show(CVideo& /*video*/, twindow& window)
|
void tsimple_item_selector::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "listbox", false);
|
||||||
window.keyboard_capture(&list);
|
window.keyboard_capture(&list);
|
||||||
|
|
|
@ -91,7 +91,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -57,7 +57,7 @@ ttheme_list::ttheme_list(const std::vector<theme_info>& themes, int selection)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void ttheme_list::pre_show(CVideo& /*video*/, twindow& window)
|
void ttheme_list::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
tlistbox& list = find_widget<tlistbox>(&window, "themes", false);
|
tlistbox& list = find_widget<tlistbox>(&window, "themes", false);
|
||||||
window.keyboard_capture(&list);
|
window.keyboard_capture(&list);
|
||||||
|
|
|
@ -52,7 +52,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -101,10 +101,10 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tpopup. */
|
/** Inherited from tpopup. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
};
|
};
|
||||||
|
|
||||||
void ttip::pre_show(CVideo& /*video*/, twindow& window)
|
void ttip::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
find_widget<tcontrol>(&window, "label", false).set_label(message_);
|
find_widget<tcontrol>(&window, "label", false).set_label(message_);
|
||||||
|
|
||||||
|
|
|
@ -257,7 +257,7 @@ debug_tooltip(twindow& window, bool& handled, const tpoint& coordinate)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void ttitle_screen::pre_show(CVideo& video, twindow& window)
|
void ttitle_screen::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
set_restore(false);
|
set_restore(false);
|
||||||
window.set_click_dismiss(false);
|
window.set_click_dismiss(false);
|
||||||
|
@ -343,7 +343,7 @@ void ttitle_screen::pre_show(CVideo& video, twindow& window)
|
||||||
tbutton& about = find_widget<tbutton>(&window, "about", false);
|
tbutton& about = find_widget<tbutton>(&window, "about", false);
|
||||||
connect_signal_mouse_left_click(
|
connect_signal_mouse_left_click(
|
||||||
about,
|
about,
|
||||||
boost::bind(&tgame_version::display, boost::ref(video)));
|
boost::bind(&tgame_version::display, boost::ref(window.video())));
|
||||||
|
|
||||||
/***** Set the clock button. *****/
|
/***** Set the clock button. *****/
|
||||||
tbutton& clock = find_widget<tbutton>(&window, "clock", false);
|
tbutton& clock = find_widget<tbutton>(&window, "clock", false);
|
||||||
|
@ -354,7 +354,7 @@ void ttitle_screen::pre_show(CVideo& video, twindow& window)
|
||||||
clock,
|
clock,
|
||||||
boost::bind(&ttitle_screen::show_debug_clock_window,
|
boost::bind(&ttitle_screen::show_debug_clock_window,
|
||||||
this,
|
this,
|
||||||
boost::ref(video)));
|
boost::ref(window.video())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ttitle_screen::update_tip(twindow& window, const bool previous)
|
void ttitle_screen::update_tip(twindow& window, const bool previous)
|
||||||
|
|
|
@ -89,7 +89,7 @@ private:
|
||||||
virtual void post_build(CVideo& video, twindow& window);
|
virtual void post_build(CVideo& video, twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Holds the debug clock dialog. */
|
/** Holds the debug clock dialog. */
|
||||||
tpopup* debug_clock_;
|
tpopup* debug_clock_;
|
||||||
|
|
|
@ -40,7 +40,7 @@ ttransient_message::ttransient_message(const std::string& title,
|
||||||
register_image("image", true, image);
|
register_image("image", true, image);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ttransient_message::pre_show(CVideo& /*video*/, twindow& window)
|
void ttransient_message::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
if(hide_title_) {
|
if(hide_title_) {
|
||||||
twidget& title = find_widget<twidget>(&window, "title", false);
|
twidget& title = find_widget<twidget>(&window, "title", false);
|
||||||
|
|
|
@ -38,7 +38,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
virtual void pre_show(CVideo& video, twindow& window);
|
virtual void pre_show(twindow& window);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -267,7 +267,7 @@ void tunit_attack::damage_calc_callback(twindow& window)
|
||||||
predition_dialog.button_pressed(selection);
|
predition_dialog.button_pressed(selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tunit_attack::pre_show(CVideo& /*video*/, twindow& window)
|
void tunit_attack::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
connect_signal_mouse_left_click(
|
connect_signal_mouse_left_click(
|
||||||
find_widget<tbutton>(&window, "attacker_profile", false),
|
find_widget<tbutton>(&window, "attacker_profile", false),
|
||||||
|
|
|
@ -43,7 +43,7 @@ private:
|
||||||
virtual const std::string& window_id() const;
|
virtual const std::string& window_id() const;
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void pre_show(CVideo& video, twindow& window);
|
void pre_show(twindow& window);
|
||||||
|
|
||||||
/** Inherited from tdialog. */
|
/** Inherited from tdialog. */
|
||||||
void post_show(twindow& window);
|
void post_show(twindow& window);
|
||||||
|
|
|
@ -90,7 +90,7 @@ tunit_create::tunit_create()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tunit_create::pre_show(CVideo& /*video*/, twindow& window)
|
void tunit_create::pre_show(twindow& window)
|
||||||
{
|
{
|
||||||
ttoggle_button& male_toggle
|
ttoggle_button& male_toggle
|
||||||
= find_widget<ttoggle_button>(&window, "male_toggle", false);
|
= find_widget<ttoggle_button>(&window, "male_toggle", false);
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue