#include <VideoOptions_gump.h>
Inheritance diagram for VideoOptions_gump:
Public Member Functions | |
VideoOptions_gump () | |
~VideoOptions_gump () | |
virtual void | paint () |
virtual void | close () |
virtual void | mouse_down (int mx, int my) |
virtual void | mouse_up (int mx, int my) |
void | toggle (Gump_button *btn, int state) |
void | build_buttons () |
void | load_settings () |
void | save_settings () |
void | cancel () |
Private Member Functions | |
UNREPLICATABLE_CLASS_I (VideoOptions_gump, Modal_gump(0, 0, 0, 0)) | |
Private Attributes | |
Gump_button * | buttons [10] |
int | resolution |
int | scaling |
int | scaler |
int | fullscreen |
int | old_resolution |
std::string * | restext |
int | num_resolutions |
Definition at line 27 of file VideoOptions_gump.h.
VideoOptions_gump::VideoOptions_gump | ( | ) |
Definition at line 189 of file VideoOptions_gump.cc.
References build_buttons(), buttons, canceltext, colx, load_settings(), oktext, rowy, and Gump::set_object_area().
Here is the call graph for this function:
VideoOptions_gump::~VideoOptions_gump | ( | ) |
VideoOptions_gump::UNREPLICATABLE_CLASS_I | ( | VideoOptions_gump | , | |
Modal_gump(0, 0, 0, 0) | ||||
) | [private] |
void VideoOptions_gump::paint | ( | ) | [virtual] |
Reimplemented from Gump.
Definition at line 234 of file VideoOptions_gump.cc.
References buttons, colx, Game_singletons::gwin, Gump::paint(), Shape_manager::paint_text(), rowy, Game_window::set_painted(), Game_singletons::sman, Gump::x, and Gump::y.
Here is the call graph for this function:
void VideoOptions_gump::close | ( | ) | [virtual] |
Reimplemented from Gump.
Definition at line 99 of file VideoOptions_gump.cc.
References Modal_gump::done, Game_singletons::gwin, save_settings(), and Game_window::set_all_dirty().
Here is the call graph for this function:
void VideoOptions_gump::mouse_down | ( | int | mx, | |
int | my | |||
) | [virtual] |
Implements Modal_gump.
Definition at line 248 of file VideoOptions_gump.cc.
References buttons, Gump::on_button(), Gump_button::push(), and Modal_gump::pushed.
Here is the call graph for this function:
void VideoOptions_gump::mouse_up | ( | int | mx, | |
int | my | |||
) | [virtual] |
Implements Modal_gump.
Definition at line 267 of file VideoOptions_gump.cc.
References Gump_button::on_button(), Modal_gump::pushed, and Gump_button::unpush().
Here is the call graph for this function:
void VideoOptions_gump::toggle | ( | Gump_button * | btn, | |
int | state | |||
) |
Definition at line 113 of file VideoOptions_gump.cc.
References buttons, fullscreen, scaler, and scaling.
void VideoOptions_gump::build_buttons | ( | ) |
Definition at line 125 of file VideoOptions_gump.cc.
References buttons, colx, fullscreen, Image_window::get_name_for_scaler(), num_resolutions, Image_window::NumScalers, restext, rowy, scaler, and scaling.
Referenced by VideoOptions_gump().
Here is the call graph for this function:
void VideoOptions_gump::load_settings | ( | ) |
Definition at line 152 of file VideoOptions_gump.cc.
References fullscreen, Game_singletons::gclock, Game_window::get_height(), Image_window::get_scale(), Image_window::get_scaler(), Game_window::get_width(), Game_window::get_win(), Game_singletons::gwin, Image_window::is_fullscreen(), num_default_res, num_resolutions, old_resolution, resolutionstring(), restext, scaler, scaling, and Game_clock::set_palette().
Referenced by VideoOptions_gump().
Here is the call graph for this function:
void VideoOptions_gump::save_settings | ( | ) |
Definition at line 211 of file VideoOptions_gump.cc.
References Palette::apply(), config, fullscreen, Image_window::get_name_for_scaler(), Game_window::get_pal(), Game_window::get_win(), Game_singletons::gwin, Image_window::is_fullscreen(), Image_window::NoScaler, Image_window::NumScalers, Game_window::paint(), Game_window::resized(), scaler, scaling, Configuration::set(), Game_window::set_painted(), and Image_window::toggle_fullscreen().
Referenced by close().
Here is the call graph for this function:
void VideoOptions_gump::cancel | ( | ) |
Gump_button* VideoOptions_gump::buttons[10] [private] |
Definition at line 32 of file VideoOptions_gump.h.
Referenced by build_buttons(), mouse_down(), paint(), toggle(), VideoOptions_gump(), and ~VideoOptions_gump().
int VideoOptions_gump::resolution [private] |
Definition at line 34 of file VideoOptions_gump.h.
int VideoOptions_gump::scaling [private] |
Definition at line 35 of file VideoOptions_gump.h.
Referenced by build_buttons(), load_settings(), save_settings(), and toggle().
int VideoOptions_gump::scaler [private] |
Definition at line 36 of file VideoOptions_gump.h.
Referenced by build_buttons(), load_settings(), save_settings(), and toggle().
int VideoOptions_gump::fullscreen [private] |
Definition at line 37 of file VideoOptions_gump.h.
Referenced by build_buttons(), load_settings(), save_settings(), and toggle().
int VideoOptions_gump::old_resolution [private] |
std::string* VideoOptions_gump::restext [private] |
Definition at line 41 of file VideoOptions_gump.h.
Referenced by build_buttons(), and load_settings().
int VideoOptions_gump::num_resolutions [private] |
Definition at line 42 of file VideoOptions_gump.h.
Referenced by build_buttons(), and load_settings().