14#ifndef SP_EXPORT_SINGLE_H
15#define SP_EXPORT_SINGLE_H
59 SingleExport(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &refGlade);
155 template <
typename T>
156 void setupSpinButton(Gtk::SpinButton *sb,
double val,
double min,
double max,
double step,
double page,
int digits,
174 void setFilename(std::string filename,
bool modified_by_user);
179 void setArea(
double x0,
double y0,
double x1,
double y1);
182 void setExporting(
bool exporting, Glib::ustring
const &text =
"");
Preference storage class.
The set of selected SPObjects for a given document and layer model.
sigc::scoped_connection _page_selected_connection
void setupSpinButton(Gtk::SpinButton *sb, double val, double min, double max, double step, double page, int digits, bool sensitive, void(SingleExport::*cb)(T), T param)
void onAreaTypeToggle(selection_mode key)
void selectionChanged(Inkscape::Selection *selection)
InkscapeApplication * _app
void selectPage(SPPage *page)
void setDesktop(SPDesktop *desktop)
sigc::scoped_connection _page_modified_connection
void setArea(double x0, double y0, double x1, double y1)
Gtk::ScrolledWindow & pages_list_box
Inkscape::UI::Widget::UnitMenu & units
Glib::ustring doc_export_name
void onFilenameModified()
Filename in filename entry field was changed.
Gtk::Entry & si_filename_entry
std::string filepath_native
File path as returned by the file chooser.
Gtk::Button & cancel_button
void setPagesMode(bool multi)
Glib::ustring filename_entry_original_value
Last value of filename entry field that was set programmatically. Used to detect modification by the ...
std::map< selection_mode, Gtk::ToggleButton * > selection_buttons
Gtk::CheckButton & si_show_preview
Gtk::CheckButton * show_export_area
void onAreaXChange(sb_type type)
void setFilename(std::string filename, bool modified_by_user)
Set filename and update filename entry box.
void toggleSpinButtonVisibility()
sigc::scoped_connection extensionConn
void dpiChange(sb_type type)
void loadExportHints()
Update suggested DPI and filename when the selection has changed.
Inkscape::Preferences * prefs
sigc::scoped_connection exportConn
static unsigned int onProgressCallback(float value, void *data)
Callback to be used in for loop to update the progress bar.
void selectionModified(Inkscape::Selection *selection, guint flags)
void areaYChange(sb_type type)
sigc::scoped_connection cancelConn
std::shared_ptr< PreviewDrawing > _preview_drawing
bool filename_modified_by_user
True if the value of the selected filename was changed by the user since the last export.
void onDpiChange(sb_type type)
void onPagesModified(SPPage *page)
void setExporting(bool exporting, Glib::ustring const &text="")
std::vector< sigc::scoped_connection > spinButtonConns
sigc::scoped_connection filenameConn
std::map< sb_type, Gtk::SpinButton * > spin_buttons
void onExtensionChanged()
sigc::scoped_connection browseConn
std::map< sb_type, Gtk::Label * > spin_labels
ExtensionList & si_extension_cb
Gtk::ProgressBar & progress_bar
sigc::scoped_connection _pages_list_changed
std::map< selection_mode, Glib::ustring > selection_names
UI::Widget::ColorPicker & _background_color
void areaXChange(sb_type type)
void setDocument(SPDocument *document)
void onPagesChanged()
Page functions.
void onAreaYChange(sb_type type)
void setDefaultSelectionMode()
void setApp(InkscapeApplication *app)
Gtk::Widget & progress_box
sigc::scoped_connection _page_changed_connection
void blockSpinConns(bool status)
void onPagesSelected(SPPage *page)
Gtk::CheckButton & si_hide_all
void saveExportHints(SPObject *target)
Gtk::FlowBox & pages_list
Gtk::Button & si_filename_button
std::vector< SPPage const * > getSelectedPages() const
selection_mode current_key
To do: update description of desktop.
Typed SVG document implementation.
SPObject is an abstract base class of all of the document nodes at the SVG document level.
std::map< std::string, std::unique_ptr< BatchItem > > BatchItems
Helper class to stream background task notifications as a series of messages.
static cairo_user_data_key_t key