|
15Slide
|
A customized and simpler to use Gtk::FileChooserDialog. More...
#include <SlideFileDialog.h>
Inherits FileChooserDialog.
Public Member Functions | |
| SlideFileDialog (Gtk::Window &parent, const std::string &title, Gtk::FileChooserAction action) | |
| Creates and populates a SlideFileDialog, ready to run() More... | |
| std::string | getFilenameWithExtention () |
| Like Gtk::FileChooser::get_filename() but automatically adds the ".15S" extention if needed. More... | |
A customized and simpler to use Gtk::FileChooserDialog.
| GTKSlide::SlideFileDialog::SlideFileDialog | ( | Gtk::Window & | parent, |
| const std::string & | title, | ||
| Gtk::FileChooserAction | action | ||
| ) |
Creates and populates a SlideFileDialog, ready to run()
| parent | To automatically call Gtk::AboutDialog::set_transient_for() |
| title | A title for the window |
| action | Whether to save or load |
| std::invalid_argument | If action is not Gtk::FILE_CHOOSER_ACTION_OPEN or Gtk::FILE_CHOOSER_ACTION_SAVE |
| std::string GTKSlide::SlideFileDialog::getFilenameWithExtention | ( | ) |
Like Gtk::FileChooser::get_filename() but automatically adds the ".15S" extention if needed.
Should only be used with saving dialogs; the file extention is only added if the user saves as a "15Slide save files" type