#include <filechooser.hpp>


Public Member Functions | |
| file_dialog (display &disp, const std::string &file_path, const std::string &title, bool show_directory_buttons) | |
| virtual gui::dialog::dimension_measurements | layout (int xloc=-1, int yloc=-1) |
| std::string | get_choice () const |
| Return the chosen file. | |
| void | select_file (const std::string &file) |
| void | set_autocomplete (bool value) |
Protected Member Functions | |
| void | action (gui::dialog_process_info &dp_info) |
| std::string | unformat_filename (const std::string &filename) const |
| std::string | format_filename (const std::string &filename) const |
| std::string | format_dirname (const std::string &dirname) const |
Private Attributes | |
| bool | show_directory_buttons_ |
| gui::file_menu * | files_list_ |
| int | last_selection_ |
| std::string | last_textbox_text_ |
| std::string | chosen_file_ |
| bool | autocomplete_ |
Definition at line 31 of file filechooser.hpp.
| dialogs::file_dialog::file_dialog | ( | display & | disp, | |
| const std::string & | file_path, | |||
| const std::string & | title, | |||
| bool | show_directory_buttons | |||
| ) |
Definition at line 57 of file filechooser.cpp.
| void dialogs::file_dialog::action | ( | gui::dialog_process_info & | dp_info | ) | [protected, virtual] |
Reimplemented from gui::dialog.
Definition at line 182 of file filechooser.cpp.
| std::string dialogs::file_dialog::format_dirname | ( | const std::string & | dirname | ) | const [protected] |
Definition at line 141 of file filechooser.cpp.
| std::string dialogs::file_dialog::format_filename | ( | const std::string & | filename | ) | const [protected] |
Definition at line 122 of file filechooser.cpp.
| std::string dialogs::file_dialog::get_choice | ( | ) | const [inline] |
| gui::dialog::dimension_measurements dialogs::file_dialog::layout | ( | int | xloc = -1, |
|
| int | yloc = -1 | |||
| ) | [virtual] |
Reimplemented from gui::dialog.
Definition at line 84 of file filechooser.cpp.
| void dialogs::file_dialog::select_file | ( | const std::string & | file | ) |
Definition at line 134 of file filechooser.cpp.
| void dialogs::file_dialog::set_autocomplete | ( | bool | value | ) | [inline] |
Definition at line 42 of file filechooser.hpp.
References autocomplete_.
| std::string dialogs::file_dialog::unformat_filename | ( | const std::string & | filename | ) | const [protected] |
Definition at line 117 of file filechooser.cpp.
bool dialogs::file_dialog::autocomplete_ [private] |
Definition at line 56 of file filechooser.hpp.
Referenced by set_autocomplete().
std::string dialogs::file_dialog::chosen_file_ [private] |
Definition at line 55 of file filechooser.hpp.
Referenced by get_choice().
gui::file_menu* dialogs::file_dialog::files_list_ [private] |
Definition at line 52 of file filechooser.hpp.
int dialogs::file_dialog::last_selection_ [private] |
Definition at line 53 of file filechooser.hpp.
std::string dialogs::file_dialog::last_textbox_text_ [private] |
Definition at line 54 of file filechooser.hpp.
bool dialogs::file_dialog::show_directory_buttons_ [private] |
Definition at line 51 of file filechooser.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:22 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |