Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Dialog::ExtensionList Class Reference

#include <export-lists.h>

Inheritance diagram for Inkscape::UI::Dialog::ExtensionList:

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::OutputgetExtension ()
 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
 

Detailed Description

Definition at line 47 of file export-lists.h.

Constructor & Destructor Documentation

◆ ExtensionList() [1/2]

Inkscape::UI::Dialog::ExtensionList::ExtensionList ( )

Definition at line 27 of file export-lists.cpp.

References init().

◆ ExtensionList() [2/2]

Inkscape::UI::Dialog::ExtensionList::ExtensionList ( BaseObjectType *  cobject,
const Glib::RefPtr< Gtk::Builder > &  refGlade 
)

Definition at line 32 of file export-lists.cpp.

References init().

◆ ~ExtensionList()

Inkscape::UI::Dialog::ExtensionList::~ExtensionList ( )
overridedefault

Member Function Documentation

◆ createList()

void Inkscape::UI::Dialog::ExtensionList::createList ( )

◆ getExtension()

◆ getFileExtension()

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

◆ getPrefButton()

Gtk::MenuButton * Inkscape::UI::Dialog::ExtensionList::getPrefButton ( ) const
inline

Definition at line 59 of file export-lists.h.

References _pref_button.

Referenced by Inkscape::UI::Dialog::SingleExport::SingleExport().

◆ init()

◆ on_changed()

void Inkscape::UI::Dialog::ExtensionList::on_changed ( )
overrideprivate

Definition at line 66 of file export-lists.cpp.

References _pref_button, and getExtension().

◆ removeExtension()

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

◆ setExtensionFromFilename()

void Inkscape::UI::Dialog::ExtensionList::setExtensionFromFilename ( std::string const &  filename)

◆ setup()

Member Data Documentation

◆ _builder

Glib::RefPtr<Gtk::Builder> Inkscape::UI::Dialog::ExtensionList::_builder
private

Definition at line 70 of file export-lists.h.

Referenced by init().

◆ _popover_signal

sigc::scoped_connection Inkscape::UI::Dialog::ExtensionList::_popover_signal
private

Definition at line 69 of file export-lists.h.

Referenced by init().

◆ _pref_button

Gtk::MenuButton* Inkscape::UI::Dialog::ExtensionList::_pref_button = nullptr
private

Definition at line 71 of file export-lists.h.

Referenced by getPrefButton(), init(), and on_changed().

◆ _pref_holder

Gtk::Viewport* Inkscape::UI::Dialog::ExtensionList::_pref_holder = nullptr
private

Definition at line 73 of file export-lists.h.

Referenced by init().

◆ _pref_popover

Gtk::Popover* Inkscape::UI::Dialog::ExtensionList::_pref_popover = nullptr
private

Definition at line 72 of file export-lists.h.

Referenced by init().

◆ _watch_pref

PrefObserver Inkscape::UI::Dialog::ExtensionList::_watch_pref
private

Definition at line 66 of file export-lists.h.

Referenced by init().

◆ ext_to_mod

std::map<std::string, Inkscape::Extension::Output *> Inkscape::UI::Dialog::ExtensionList::ext_to_mod
private

Definition at line 67 of file export-lists.h.

Referenced by removeExtension(), setExtensionFromFilename(), and setup().


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