Inkscape
Vector Graphics Editor
|
#include <export-lists.h>
Public Member Functions | |
ExtensionList () | |
ExtensionList (BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &refGlade) | |
~ExtensionList () override | |
void | setup () |
std::string | getFileExtension () |
Returns the file extension (file ending) of the currently selected extension. | |
void | setExtensionFromFilename (std::string const &filename) |
void | removeExtension (std::string &filename) |
Removes the file extension, if it's one of the extensions in the list. | |
void | createList () |
Gtk::MenuButton * | getPrefButton () const |
Inkscape::Extension::Output * | getExtension () |
Returns the Output extension currently selected in this dropdown. | |
Private Member Functions | |
void | init () |
void | on_changed () override |
Private Attributes | |
PrefObserver | _watch_pref |
std::map< std::string, Inkscape::Extension::Output * > | ext_to_mod |
sigc::scoped_connection | _popover_signal |
Glib::RefPtr< Gtk::Builder > | _builder |
Gtk::MenuButton * | _pref_button = nullptr |
Gtk::Popover * | _pref_popover = nullptr |
Gtk::Viewport * | _pref_holder = nullptr |
Definition at line 47 of file export-lists.h.
Inkscape::UI::Dialog::ExtensionList::ExtensionList | ( | ) |
Definition at line 27 of file export-lists.cpp.
References init().
Inkscape::UI::Dialog::ExtensionList::ExtensionList | ( | BaseObjectType * | cobject, |
const Glib::RefPtr< Gtk::Builder > & | refGlade | ||
) |
Definition at line 32 of file export-lists.cpp.
References init().
|
overridedefault |
void Inkscape::UI::Dialog::ExtensionList::createList | ( | ) |
Inkscape::Extension::Output * Inkscape::UI::Dialog::ExtensionList::getExtension | ( | ) |
Returns the Output extension currently selected in this dropdown.
Definition at line 107 of file export-lists.cpp.
References Inkscape::Extension::db, and Inkscape::Extension::DB::get().
Referenced by Inkscape::UI::Dialog::ExportList::getExtension(), getFileExtension(), init(), Inkscape::UI::Dialog::SingleExport::loadExportHints(), on_changed(), Inkscape::UI::Dialog::SingleExport::onBrowse(), Inkscape::UI::Dialog::SingleExport::onExport(), Inkscape::UI::Dialog::SingleExport::onExtensionChanged(), and Inkscape::UI::Dialog::SingleExport::onPagesChanged().
std::string Inkscape::UI::Dialog::ExtensionList::getFileExtension | ( | ) |
Returns the file extension (file ending) of the currently selected extension.
Definition at line 115 of file export-lists.cpp.
References getExtension().
Referenced by setExtensionFromFilename().
|
inline |
Definition at line 59 of file export-lists.h.
References _pref_button.
Referenced by Inkscape::UI::Dialog::SingleExport::SingleExport().
|
private |
Definition at line 40 of file export-lists.cpp.
References _builder, _popover_signal, _pref_button, _pref_holder, _pref_popover, _watch_pref, Inkscape::UI::create_builder(), Inkscape::Preferences::createObserver(), Inkscape::Preferences::get(), getExtension(), and setup().
Referenced by ExtensionList(), and ExtensionList().
|
overrideprivate |
Definition at line 66 of file export-lists.cpp.
References _pref_button, and getExtension().
void Inkscape::UI::Dialog::ExtensionList::removeExtension | ( | std::string & | filename | ) |
Removes the file extension, if it's one of the extensions in the list.
Definition at line 126 of file export-lists.cpp.
References ext_to_mod, and Inkscape::IO::get_file_extension().
Referenced by Inkscape::UI::Dialog::SingleExport::loadExportHints(), and Inkscape::UI::Dialog::ExportList::removeExtension().
void Inkscape::UI::Dialog::ExtensionList::setExtensionFromFilename | ( | std::string const & | filename | ) |
Definition at line 134 of file export-lists.cpp.
References ext_to_mod, Inkscape::IO::get_file_extension(), and getFileExtension().
Referenced by Inkscape::UI::Dialog::SingleExport::onFilenameModified().
void Inkscape::UI::Dialog::ExtensionList::setup | ( | ) |
Definition at line 75 of file export-lists.cpp.
References Inkscape::append(), Inkscape::Extension::db, ext_to_mod, Inkscape::Preferences::get(), Inkscape::Extension::DB::get_output_list(), and Inkscape::Preferences::getBool().
Referenced by init(), and Inkscape::UI::Dialog::SingleExport::setup().
|
private |
Definition at line 70 of file export-lists.h.
Referenced by init().
|
private |
Definition at line 69 of file export-lists.h.
Referenced by init().
|
private |
Definition at line 71 of file export-lists.h.
Referenced by getPrefButton(), init(), and on_changed().
|
private |
Definition at line 73 of file export-lists.h.
Referenced by init().
|
private |
Definition at line 72 of file export-lists.h.
Referenced by init().
|
private |
Definition at line 66 of file export-lists.h.
Referenced by init().
|
private |
Definition at line 67 of file export-lists.h.
Referenced by removeExtension(), setExtensionFromFilename(), and setup().