Inkscape
Vector Graphics Editor
|
#include <export-batch.h>
Public Member Functions | |
BatchItem (SPItem *item, bool isolate_item, std::shared_ptr< PreviewDrawing > drawing) | |
BatchItem (SPPage *page, std::shared_ptr< PreviewDrawing > drawing) | |
~BatchItem () final | |
Glib::ustring | getLabel () const |
SPItem * | getItem () const |
SPPage * | getPage () const |
void | refresh (bool hide, guint32 bg_color) |
void | setDrawing (std::shared_ptr< PreviewDrawing > drawing) |
auto | get_radio_group () |
void | on_parent_changed () |
Update the connection to the parent FlowBox. | |
void | on_mode_changed (Gtk::SelectionMode mode) |
A change in the selection mode for the flow box. | |
void | set_selected (bool selected) |
Syncronise the FlowBox selection to the active widget activity. | |
void | update_selected () |
Syncronise the FlowBox selection to the existing active widget state. | |
bool | isolateItem () const |
Get "Export selected only" setting. | |
void | setIsolateItem (bool isolate) |
Set "Export selected only". | |
Static Public Member Functions | |
static void | syncItems (BatchItems &items, std::map< std::string, SPObject * > const &objects, Gtk::FlowBox &container, std::shared_ptr< PreviewDrawing > preview, bool isolate_items) |
Add and remove batch items and their previews carefully and insert new ones into the container FlowBox. | |
Private Member Functions | |
void | init (std::shared_ptr< PreviewDrawing > drawing) |
void | update_label () |
Private Attributes | |
Glib::ustring | _label_str |
Gtk::Grid | _grid |
Gtk::Label | _label |
Gtk::CheckButton | _selector |
Gtk::CheckButton | _option |
ExportPreview | _preview |
SPItem * | _item = nullptr |
SPPage * | _page = nullptr |
bool | _isolate_item = false |
bool | is_hide = false |
sigc::scoped_connection | _selection_widget_changed_conn |
sigc::scoped_connection | _object_modified_conn |
Definition at line 58 of file export-batch.h.
Inkscape::UI::Dialog::BatchItem::BatchItem | ( | SPItem * | item, |
bool | isolate_item, | ||
std::shared_ptr< PreviewDrawing > | drawing | ||
) |
Definition at line 43 of file export-batch.cpp.
References _item, _object_modified_conn, SPObject::connectModified(), init(), and update_label().
Inkscape::UI::Dialog::BatchItem::BatchItem | ( | SPPage * | page, |
std::shared_ptr< PreviewDrawing > | drawing | ||
) |
Definition at line 54 of file export-batch.cpp.
References _object_modified_conn, _page, SPObject::connectModified(), init(), and update_label().
|
finaldefault |
|
inline |
Definition at line 71 of file export-batch.h.
References _option.
|
inline |
|
inline |
Definition at line 65 of file export-batch.h.
References _label_str.
|
inline |
|
private |
Definition at line 99 of file export-batch.cpp.
References _grid, _isolate_item, _item, _label, _option, _preview, _selector, is_hide, on_parent_changed(), refresh(), set_selected(), Inkscape::UI::Dialog::ExportPreview::setDrawing(), Inkscape::UI::Dialog::ExportPreview::setItem(), and Inkscape::UI::Dialog::ExportPreview::setSize().
Referenced by BatchItem(), and BatchItem().
|
inline |
Get "Export selected only" setting.
Definition at line 79 of file export-batch.h.
References _isolate_item.
void Inkscape::UI::Dialog::BatchItem::on_mode_changed | ( | Gtk::SelectionMode | mode | ) |
A change in the selection mode for the flow box.
Definition at line 177 of file export-batch.cpp.
References _option, _selector, and mode.
Referenced by update_selected().
void Inkscape::UI::Dialog::BatchItem::on_parent_changed | ( | ) |
Update the connection to the parent FlowBox.
Definition at line 186 of file export-batch.cpp.
References _option, _selection_widget_changed_conn, _selector, child, item, parent, and update_selected().
Referenced by init().
void Inkscape::UI::Dialog::BatchItem::refresh | ( | bool | hide, |
guint32 | bg_color | ||
) |
Definition at line 214 of file export-batch.cpp.
References _grid, _label, _option, _page, _preview, _selector, SPPage::getDocumentRect(), is_hide, Inkscape::UI::Dialog::ExportPreview::queueRefresh(), Inkscape::UI::Dialog::ExportPreview::setBackgroundColor(), Inkscape::UI::Dialog::ExportPreview::setBox(), and update_selected().
Referenced by init().
void Inkscape::UI::Dialog::BatchItem::set_selected | ( | bool | selected | ) |
Syncronise the FlowBox selection to the active widget activity.
Definition at line 148 of file export-batch.cpp.
Referenced by init(), and update_selected().
void Inkscape::UI::Dialog::BatchItem::setDrawing | ( | std::shared_ptr< PreviewDrawing > | drawing | ) |
Definition at line 261 of file export-batch.cpp.
References _preview, and Inkscape::UI::Dialog::ExportPreview::setDrawing().
void Inkscape::UI::Dialog::BatchItem::setIsolateItem | ( | bool | isolate | ) |
Set "Export selected only".
isolate | true if only selected items should be shown in export |
Definition at line 91 of file export-batch.cpp.
References _isolate_item, _item, _preview, and Inkscape::UI::Dialog::ExportPreview::setItem().
|
static |
Add and remove batch items and their previews carefully and insert new ones into the container FlowBox.
items | List of batch-items (e.g. layers) in the batch dialog. Is updated by this function. |
objects | New list of objects (e.g. layers). Taken as input. |
container | GUI widget containing the selection of batch items. Is updated by this function. |
isolate_items | true if only the given (selected) items should be shown in export |
Definition at line 274 of file export-batch.cpp.
References getItem(), getPage(), item, items, page, and preview.
Referenced by Inkscape::UI::Dialog::SingleExport::onPagesChanged(), and Inkscape::UI::Dialog::BatchExport::refreshItems().
|
private |
Definition at line 66 of file export-batch.cpp.
References _item, _label, _label_str, _page, SPObject::defaultLabel(), SPPage::getDefaultLabel(), SPObject::getId(), SPObject::label(), and label.
Referenced by BatchItem(), and BatchItem().
void Inkscape::UI::Dialog::BatchItem::update_selected | ( | ) |
Syncronise the FlowBox selection to the existing active widget state.
Definition at line 163 of file export-batch.cpp.
References _option, _selector, on_mode_changed(), parent, and set_selected().
Referenced by on_parent_changed(), and refresh().
|
private |
Definition at line 88 of file export-batch.h.
|
private |
Definition at line 95 of file export-batch.h.
Referenced by init(), isolateItem(), and setIsolateItem().
|
private |
Definition at line 93 of file export-batch.h.
Referenced by BatchItem(), getItem(), init(), setIsolateItem(), and update_label().
|
private |
Definition at line 89 of file export-batch.h.
Referenced by init(), refresh(), and update_label().
|
private |
Definition at line 87 of file export-batch.h.
Referenced by getLabel(), and update_label().
|
private |
Definition at line 99 of file export-batch.h.
Referenced by BatchItem(), and BatchItem().
|
private |
Definition at line 91 of file export-batch.h.
Referenced by get_radio_group(), init(), on_mode_changed(), on_parent_changed(), refresh(), and update_selected().
|
private |
Definition at line 94 of file export-batch.h.
Referenced by BatchItem(), getPage(), refresh(), and update_label().
|
private |
Definition at line 92 of file export-batch.h.
Referenced by init(), refresh(), setDrawing(), and setIsolateItem().
|
private |
Definition at line 98 of file export-batch.h.
Referenced by on_parent_changed().
|
private |
Definition at line 90 of file export-batch.h.
Referenced by init(), on_mode_changed(), on_parent_changed(), refresh(), and update_selected().
|
private |
Definition at line 96 of file export-batch.h.