15Slide
GTKSlide::SlideFileDialog Class Reference

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

Detailed Description

A customized and simpler to use Gtk::FileChooserDialog.

Author
John Jekel
Date
2018-2018

Constructor & Destructor Documentation

◆ SlideFileDialog()

GTKSlide::SlideFileDialog::SlideFileDialog ( Gtk::Window &  parent,
const std::string &  title,
Gtk::FileChooserAction  action 
)

Creates and populates a SlideFileDialog, ready to run()

Parameters
parentTo automatically call Gtk::AboutDialog::set_transient_for()
titleA title for the window
actionWhether to save or load
Exceptions
std::invalid_argumentIf action is not Gtk::FILE_CHOOSER_ACTION_OPEN or Gtk::FILE_CHOOSER_ACTION_SAVE

Member Function Documentation

◆ getFilenameWithExtention()

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

Returns
The filename choose with the ".15S" extention if needed

The documentation for this class was generated from the following files: