#include <File_gump.h>
Inheritance diagram for File_gump:
Public Member Functions | |
File_gump () | |
~File_gump () | |
int | get_save_index (Gump_text *txt) |
void | remove_focus () |
void | load () |
void | save () |
void | quit () |
int | toggle_option (Gump_button *btn) |
int | restored_game () |
virtual void | paint () |
virtual void | close () |
virtual void | mouse_down (int mx, int my) |
virtual void | mouse_up (int mx, int my) |
virtual void | text_input (int chr, int unicode) |
Protected Attributes | |
Gump_text * | names [10] |
Gump_button * | buttons [6] |
Gump_text * | pushed_text |
Gump_text * | focus |
unsigned char | restored |
Static Protected Attributes | |
static short | textx |
static short | texty |
static short | texth |
static short | btn_rows [2] |
static short | btn_cols [3] |
Private Member Functions | |
UNREPLICATABLE_CLASS_I (File_gump, Modal_gump(0, 0, 0, 0)) |
Definition at line 29 of file File_gump.h.
File_gump::File_gump | ( | ) |
Definition at line 322 of file File_gump.cc.
References Audio::are_effects_enabled(), game, Audio::get_ptr(), Game_window::get_save_name(), Game::get_shape(), gwin, Audio::is_music_enabled(), and Audio::is_speech_enabled().
Here is the call graph for this function:
File_gump::~File_gump | ( | ) |
Definition at line 357 of file File_gump.cc.
File_gump::UNREPLICATABLE_CLASS_I | ( | File_gump | , | |
Modal_gump(0, 0, 0, 0) | ||||
) | [private] |
int File_gump::get_save_index | ( | Gump_text * | txt | ) |
Definition at line 374 of file File_gump.cc.
void File_gump::remove_focus | ( | ) |
Definition at line 389 of file File_gump.cc.
void File_gump::load | ( | ) |
Definition at line 408 of file File_gump.cc.
References Yesno_gump::ask(), gwin, Game_window::read(), and Game_window::restore_gamedat().
Here is the call graph for this function:
void File_gump::save | ( | ) |
Definition at line 431 of file File_gump.cc.
References Yesno_gump::ask(), Game_window::get_save_name(), gwin, Game_window::save_gamedat(), and Game_window::write().
Here is the call graph for this function:
void File_gump::quit | ( | ) |
Definition at line 455 of file File_gump.cc.
References Yesno_gump::ask(), QUIT_TIME_YES, and quitting_time.
Here is the call graph for this function:
int File_gump::toggle_option | ( | Gump_button * | btn | ) |
Definition at line 471 of file File_gump.cc.
References Audio::are_effects_enabled(), config, Audio::get_ptr(), Audio::is_music_enabled(), Audio::is_speech_enabled(), Ucscript::music, s, Configuration::set(), Audio::set_effects_enabled(), Audio::set_music_enabled(), Audio::set_speech_enabled(), Ucscript::speech, Audio::stop_music(), and Audio::stop_sound_effects().
Here is the call graph for this function:
int File_gump::restored_game | ( | ) | [inline] |
void File_gump::paint | ( | ) | [virtual] |
Reimplemented from Gump.
Definition at line 514 of file File_gump.cc.
References Gump::paint().
Referenced by text_input().
Here is the call graph for this function:
virtual void File_gump::close | ( | ) | [inline, virtual] |
void File_gump::mouse_down | ( | int | mx, | |
int | my | |||
) | [virtual] |
Implements Modal_gump.
Definition at line 533 of file File_gump.cc.
References Gump::on_button(), and Gump_button::push().
Here is the call graph for this function:
void File_gump::mouse_up | ( | int | mx, | |
int | my | |||
) | [virtual] |
Implements Modal_gump.
Definition at line 569 of file File_gump.cc.
References game, Game_window::get_save_name(), Game::get_shape(), gwin, and Game_window::set_painted().
Here is the call graph for this function:
void File_gump::text_input | ( | int | chr, | |
int | unicode | |||
) | [virtual] |
Reimplemented from Modal_gump.
Definition at line 620 of file File_gump.cc.
References Gump_button::activate(), btn_cols, btn_rows, buttons, Gump_text::delete_left(), Gump_text::delete_right(), focus, game, Gump_text::get_cursor(), Gump_text::get_length(), Game::get_shape(), Game_singletons::gwin, Gump_text::insert(), isascii, Gump_button::paint(), paint(), Gump_button::push(), Gump_text::set_cursor(), Game_window::set_painted(), Game_window::show(), and Gump_button::unpush().
Here is the call graph for this function:
short File_gump::textx [static, protected] |
Definition at line 34 of file File_gump.h.
short File_gump::texty [static, protected] |
Definition at line 34 of file File_gump.h.
short File_gump::texth [static, protected] |
Definition at line 35 of file File_gump.h.
short File_gump::btn_rows [static, protected] |
short File_gump::btn_cols [static, protected] |
Gump_text* File_gump::names[10] [protected] |
Definition at line 38 of file File_gump.h.
Gump_button* File_gump::buttons[6] [protected] |
Gump_text* File_gump::pushed_text [protected] |
Definition at line 40 of file File_gump.h.
Gump_text* File_gump::focus [protected] |
unsigned char File_gump::restored [protected] |