Public Member Functions | Protected Member Functions | Private Attributes

dialogs::file_dialog Class Reference

#include <filechooser.hpp>

Inheritance diagram for dialogs::file_dialog:
Inheritance graph
[legend]
Collaboration diagram for dialogs::file_dialog:
Collaboration graph
[legend]

List of all members.

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_menufiles_list_
int last_selection_
std::string last_textbox_text_
std::string chosen_file_
bool autocomplete_

Detailed Description

Definition at line 31 of file filechooser.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Return the chosen file.

Definition at line 38 of file filechooser.hpp.

References chosen_file_.

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.


Member Data Documentation

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().

Definition at line 52 of file filechooser.hpp.

Definition at line 53 of file filechooser.hpp.

Definition at line 54 of file filechooser.hpp.

Definition at line 51 of file filechooser.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:22 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs