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

#include <filter-effects-dialog.h>

Inheritance diagram for Inkscape::UI::Dialog::FilterEffectsDialog:
Inkscape::UI::Dialog::DialogBase

Classes

class  CellRendererConnection
 
class  FilterModifier
 
class  PrimitiveColumns
 
class  PrimitiveList
 

Public Member Functions

 FilterEffectsDialog ()
 
 ~FilterEffectsDialog () override
 
void set_attrs_locked (const bool)
 
- Public Member Functions inherited from Inkscape::UI::Dialog::DialogBase
 DialogBase (char const *prefs_path=nullptr, Glib::ustring dialog_type={})
 DialogBase constructor.
 
 DialogBase (DialogBase const &)=delete
 
DialogBaseoperator= (DialogBase const &)=delete
 
 ~DialogBase () override
 
virtual void update ()
 The update() method is essential to Gtk state management.
 
void setDesktop (SPDesktop *new_desktop)
 Called when the desktop might have changed for this dialog.
 
void on_map () override
 
Glib::ustring const & get_name () const
 
Glib::ustring const & getPrefsPath () const
 
Glib::ustring const & get_type () const
 
const Glib::ustring & get_icon () const
 
void blink ()
 Highlight notebook where dialog already exists.
 
virtual void focus_dialog ()
 
void defocus_dialog ()
 
bool getShowing ()
 
void fix_inner_scroll (Gtk::ScrolledWindow &scrollwin)
 
SPDesktopgetDesktop () const
 

Private Types

using parent_type = DialogBase
 

Private Member Functions

void documentReplaced () override
 
void selectionChanged (Inkscape::Selection *selection) override
 
void selectionModified (Inkscape::Selection *selection, guint flags) override
 
void init_settings_widgets ()
 
void add_primitive ()
 
void remove_primitive ()
 
void duplicate_primitive ()
 
void convolve_order_changed ()
 
void image_x_changed ()
 
void image_y_changed ()
 
void add_filter_primitive (Filters::FilterPrimitiveType type)
 
void set_attr_direct (const UI::Widget::AttrWidget *)
 
void set_child_attr_direct (const UI::Widget::AttrWidget *)
 
void set_filternode_attr (const UI::Widget::AttrWidget *)
 
void set_attr (SPObject *, const SPAttr, const gchar *val)
 
void update_settings_view ()
 
void update_filter_general_settings_view ()
 
void update_settings_sensitivity ()
 
void update_color_matrix ()
 
void update_automatic_region (Gtk::CheckButton *btn)
 
void add_effects (Inkscape::UI::Widget::CompletionPopup &popup, bool symbolic)
 

Private Attributes

sigc::scoped_connection _resource_changed
 
Glib::RefPtr< Gtk::Builder > _builder
 
UI::Widget::Bin _bin
 
UI::Widget::PopoverBin _popoverbin
 
Gtk::Paned & _paned
 
Gtk::Grid & _main_grid
 
Gtk::Box & _params_box
 
Gtk::Box & _search_box
 
Gtk::Box & _search_wide_box
 
Gtk::ScrolledWindow & _filter_wnd
 
bool _narrow_dialog = true
 
Gtk::ToggleButton * _show_sources = nullptr
 
Gtk::CheckButton & _cur_filter_btn
 
sigc::connection _cur_filter_toggle
 
Gtk::ScrolledWindow * _primitive_box
 
UI::Widget::ComboBoxEnum< Inkscape::Filters::FilterPrimitiveType_add_primitive_type
 
Gtk::Button _add_primitive
 
Gtk::Box _settings_filter
 
Gtk::Box _settings_effect
 
Gtk::Label _empty_settings
 
Gtk::Label _no_filter_selected
 
Gtk::Label * _cur_effect_name
 
bool _settings_initialized
 
std::unique_ptr< Settings > _settings
 
std::unique_ptr< Settings > _filter_general_settings
 
MultiSpinButton * _region_pos
 
MultiSpinButton * _region_size
 
ColorMatrixValues * _color_matrix_values
 
ComponentTransferValues * _component_transfer_values
 
MatrixAttr * _convolve_matrix
 
DualSpinButton * _convolve_order
 
MultiSpinButton * _convolve_target
 
EntryAttr * _image_x
 
EntryAttr * _image_y
 
Gtk::Widget * _k1
 
Gtk::Widget * _k2
 
Gtk::Widget * _k3
 
Gtk::Widget * _k4
 
bool _locked
 
bool _attr_lock
 
FilterModifier _filter_modifier
 
PrimitiveList _primitive_list
 
Inkscape::UI::Widget::CompletionPopup _effects_popup
 

Friends

class FileOrElementChooser
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::UI::Dialog::DialogBase
InkscapeApplicationgetApp () const
 
SPDocumentgetDocument () const
 
SelectiongetSelection () const
 
void setShowing (bool showing)
 function called from notebook dialog that performs an update of the dialog and sets the dialog showing state true
 
- Protected Attributes inherited from Inkscape::UI::Dialog::DialogBase
Glib::ustring _name
 
Glib::ustring const _prefs_path
 
Glib::ustring const _dialog_type
 

Detailed Description

Definition at line 68 of file filter-effects-dialog.h.

Member Typedef Documentation

◆ parent_type

Constructor & Destructor Documentation

◆ FilterEffectsDialog()

◆ ~FilterEffectsDialog()

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

Member Function Documentation

◆ add_effects()

◆ add_filter_primitive()

◆ add_primitive()

void Inkscape::UI::Dialog::FilterEffectsDialog::add_primitive ( )
private

◆ convolve_order_changed()

void Inkscape::UI::Dialog::FilterEffectsDialog::convolve_order_changed ( )
private

◆ documentReplaced()

◆ duplicate_primitive()

◆ image_x_changed()

void Inkscape::UI::Dialog::FilterEffectsDialog::image_x_changed ( )
private

◆ image_y_changed()

void Inkscape::UI::Dialog::FilterEffectsDialog::image_y_changed ( )
private

◆ init_settings_widgets()

void Inkscape::UI::Dialog::FilterEffectsDialog::init_settings_widgets ( )
private

Definition at line 2874 of file filter-effects-dialog.cpp.

References _color_matrix_values, _convolve_matrix, _convolve_order, _convolve_target, _empty_settings, _filter_general_settings, _image_x, _image_y, _k1, _k2, _k3, _k4, _no_filter_selected, _region_pos, _region_size, _settings, _settings_effect, _settings_filter, _settings_initialized, SPFeFuncNode::A, AUTO_REGION, SPFeFuncNode::B, BASEFREQUENCY, BIAS, Inkscape::Filters::COLORMATRIX_MATRIX, ColorMatrixTypeConverter, COMPOSITE_OVER, CompositeOperatorConverter, convolve_order_changed(), Inkscape::Filters::CONVOLVEMATRIX_EDGEMODE_NONE, ConvolveMatrixEdgeModeConverter, DIFFUSECONSTANT, DISPLACEMENTMAP_CHANNEL_ALPHA, DisplacementMapChannelConverter, DIVISOR, DX, DY, EDGEMODE, FLOOD_COLOR, FLOOD_OPACITY, SPFeFuncNode::G, HEIGHT, image_x_changed(), image_y_changed(), K1, K2, K3, K4, KERNELMATRIX, LIGHTING_COLOR, Inkscape::UI::Dialog::max_convolution_kernel_size, MODE, Inkscape::Filters::MORPHOLOGY_OPERATOR_ERODE, MorphologyOperatorConverter, Inkscape::Filters::NR_FILTER_BLEND, Inkscape::Filters::NR_FILTER_COLORMATRIX, Inkscape::Filters::NR_FILTER_COMPONENTTRANSFER, Inkscape::Filters::NR_FILTER_COMPOSITE, Inkscape::Filters::NR_FILTER_CONVOLVEMATRIX, Inkscape::Filters::NR_FILTER_DIFFUSELIGHTING, Inkscape::Filters::NR_FILTER_DISPLACEMENTMAP, Inkscape::Filters::NR_FILTER_FLOOD, Inkscape::Filters::NR_FILTER_GAUSSIANBLUR, Inkscape::Filters::NR_FILTER_IMAGE, Inkscape::Filters::NR_FILTER_MERGE, Inkscape::Filters::NR_FILTER_MORPHOLOGY, Inkscape::Filters::NR_FILTER_OFFSET, Inkscape::Filters::NR_FILTER_SPECULARLIGHTING, Inkscape::Filters::NR_FILTER_TILE, Inkscape::Filters::NR_FILTER_TURBULENCE, NUMOCTAVES, OPERATOR, ORDER, Inkscape::UI::pack_start(), PRESERVEALPHA, SPFeFuncNode::R, RADIUS, SCALE, SEED, Inkscape::UI::Widget::AttrWidget::signal_attr_changed(), SP_CSS_BLEND_NORMAL, Inkscape::SPBlendModeConverter, SPECULARCONSTANT, SPECULAREXPONENT, STDDEVIATION, SURFACESCALE, TARGETX, TARGETY, Inkscape::Filters::TURBULENCE_TURBULENCE, TurbulenceTypeConverter, TYPE, update_automatic_region(), update_color_matrix(), WIDTH, X, XCHANNELSELECTOR, XLINK_HREF, Y, and YCHANNELSELECTOR.

◆ remove_primitive()

void Inkscape::UI::Dialog::FilterEffectsDialog::remove_primitive ( )
private

◆ selectionChanged()

void Inkscape::UI::Dialog::FilterEffectsDialog::selectionChanged ( Inkscape::Selection selection)
overrideprivatevirtual

◆ selectionModified()

void Inkscape::UI::Dialog::FilterEffectsDialog::selectionModified ( Inkscape::Selection selection,
guint  flags 
)
overrideprivatevirtual

◆ set_attr()

◆ set_attr_direct()

◆ set_attrs_locked()

void Inkscape::UI::Dialog::FilterEffectsDialog::set_attrs_locked ( const bool  l)

Definition at line 2869 of file filter-effects-dialog.cpp.

References _locked.

◆ set_child_attr_direct()

◆ set_filternode_attr()

◆ update_automatic_region()

void Inkscape::UI::Dialog::FilterEffectsDialog::update_automatic_region ( Gtk::CheckButton *  btn)
private

Definition at line 3197 of file filter-effects-dialog.cpp.

References _region_pos, _region_size, and Inkscape::UI::automatic.

Referenced by init_settings_widgets().

◆ update_color_matrix()

void Inkscape::UI::Dialog::FilterEffectsDialog::update_color_matrix ( )
private

◆ update_filter_general_settings_view()

◆ update_settings_sensitivity()

void Inkscape::UI::Dialog::FilterEffectsDialog::update_settings_sensitivity ( )
private

◆ update_settings_view()

Friends And Related Symbol Documentation

◆ FileOrElementChooser

friend class FileOrElementChooser
friend

Definition at line 85 of file filter-effects-dialog.h.

Member Data Documentation

◆ _add_primitive

Gtk::Button Inkscape::UI::Dialog::FilterEffectsDialog::_add_primitive
private

Definition at line 315 of file filter-effects-dialog.h.

◆ _add_primitive_type

UI::Widget::ComboBoxEnum<Inkscape::Filters::FilterPrimitiveType> Inkscape::UI::Dialog::FilterEffectsDialog::_add_primitive_type
private

Definition at line 314 of file filter-effects-dialog.h.

Referenced by add_primitive().

◆ _attr_lock

bool Inkscape::UI::Dialog::FilterEffectsDialog::_attr_lock
private

◆ _bin

UI::Widget::Bin Inkscape::UI::Dialog::FilterEffectsDialog::_bin
private

Definition at line 299 of file filter-effects-dialog.h.

◆ _builder

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

Definition at line 298 of file filter-effects-dialog.h.

Referenced by FilterEffectsDialog(), and update_settings_view().

◆ _color_matrix_values

ColorMatrixValues* Inkscape::UI::Dialog::FilterEffectsDialog::_color_matrix_values
private

Definition at line 338 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_color_matrix().

◆ _component_transfer_values

ComponentTransferValues* Inkscape::UI::Dialog::FilterEffectsDialog::_component_transfer_values
private

Definition at line 341 of file filter-effects-dialog.h.

◆ _convolve_matrix

MatrixAttr* Inkscape::UI::Dialog::FilterEffectsDialog::_convolve_matrix
private

Definition at line 344 of file filter-effects-dialog.h.

Referenced by convolve_order_changed(), and init_settings_widgets().

◆ _convolve_order

DualSpinButton* Inkscape::UI::Dialog::FilterEffectsDialog::_convolve_order
private

Definition at line 345 of file filter-effects-dialog.h.

Referenced by convolve_order_changed(), and init_settings_widgets().

◆ _convolve_target

MultiSpinButton* Inkscape::UI::Dialog::FilterEffectsDialog::_convolve_target
private

Definition at line 346 of file filter-effects-dialog.h.

Referenced by convolve_order_changed(), and init_settings_widgets().

◆ _cur_effect_name

Gtk::Label* Inkscape::UI::Dialog::FilterEffectsDialog::_cur_effect_name
private

Definition at line 322 of file filter-effects-dialog.h.

Referenced by FilterEffectsDialog(), and update_settings_view().

◆ _cur_filter_btn

Gtk::CheckButton& Inkscape::UI::Dialog::FilterEffectsDialog::_cur_filter_btn
private

Definition at line 309 of file filter-effects-dialog.h.

◆ _cur_filter_toggle

sigc::connection Inkscape::UI::Dialog::FilterEffectsDialog::_cur_filter_toggle
private

Definition at line 310 of file filter-effects-dialog.h.

◆ _effects_popup

Inkscape::UI::Widget::CompletionPopup Inkscape::UI::Dialog::FilterEffectsDialog::_effects_popup
private

Definition at line 363 of file filter-effects-dialog.h.

Referenced by FilterEffectsDialog().

◆ _empty_settings

Gtk::Label Inkscape::UI::Dialog::FilterEffectsDialog::_empty_settings
private

Definition at line 320 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_settings_view().

◆ _filter_general_settings

std::unique_ptr<Settings> Inkscape::UI::Dialog::FilterEffectsDialog::_filter_general_settings
private

◆ _filter_modifier

◆ _filter_wnd

Gtk::ScrolledWindow& Inkscape::UI::Dialog::FilterEffectsDialog::_filter_wnd
private

Definition at line 306 of file filter-effects-dialog.h.

◆ _image_x

EntryAttr* Inkscape::UI::Dialog::FilterEffectsDialog::_image_x
private

Definition at line 349 of file filter-effects-dialog.h.

Referenced by image_x_changed(), and init_settings_widgets().

◆ _image_y

EntryAttr* Inkscape::UI::Dialog::FilterEffectsDialog::_image_y
private

Definition at line 350 of file filter-effects-dialog.h.

Referenced by image_y_changed(), and init_settings_widgets().

◆ _k1

Gtk::Widget* Inkscape::UI::Dialog::FilterEffectsDialog::_k1
private

Definition at line 353 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_settings_sensitivity().

◆ _k2

Gtk::Widget * Inkscape::UI::Dialog::FilterEffectsDialog::_k2
private

Definition at line 353 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_settings_sensitivity().

◆ _k3

Gtk::Widget * Inkscape::UI::Dialog::FilterEffectsDialog::_k3
private

Definition at line 353 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_settings_sensitivity().

◆ _k4

Gtk::Widget * Inkscape::UI::Dialog::FilterEffectsDialog::_k4
private

Definition at line 353 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_settings_sensitivity().

◆ _locked

bool Inkscape::UI::Dialog::FilterEffectsDialog::_locked
private

◆ _main_grid

Gtk::Grid& Inkscape::UI::Dialog::FilterEffectsDialog::_main_grid
private

Definition at line 302 of file filter-effects-dialog.h.

◆ _narrow_dialog

bool Inkscape::UI::Dialog::FilterEffectsDialog::_narrow_dialog = true
private

Definition at line 307 of file filter-effects-dialog.h.

◆ _no_filter_selected

Gtk::Label Inkscape::UI::Dialog::FilterEffectsDialog::_no_filter_selected
private

◆ _paned

Gtk::Paned& Inkscape::UI::Dialog::FilterEffectsDialog::_paned
private

Definition at line 301 of file filter-effects-dialog.h.

◆ _params_box

Gtk::Box& Inkscape::UI::Dialog::FilterEffectsDialog::_params_box
private

Definition at line 303 of file filter-effects-dialog.h.

Referenced by FilterEffectsDialog().

◆ _popoverbin

UI::Widget::PopoverBin Inkscape::UI::Dialog::FilterEffectsDialog::_popoverbin
private

Definition at line 300 of file filter-effects-dialog.h.

◆ _primitive_box

Gtk::ScrolledWindow* Inkscape::UI::Dialog::FilterEffectsDialog::_primitive_box
private

Definition at line 312 of file filter-effects-dialog.h.

Referenced by FilterEffectsDialog().

◆ _primitive_list

◆ _region_pos

MultiSpinButton* Inkscape::UI::Dialog::FilterEffectsDialog::_region_pos
private

Definition at line 335 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_automatic_region().

◆ _region_size

MultiSpinButton * Inkscape::UI::Dialog::FilterEffectsDialog::_region_size
private

Definition at line 335 of file filter-effects-dialog.h.

Referenced by init_settings_widgets(), and update_automatic_region().

◆ _resource_changed

sigc::scoped_connection Inkscape::UI::Dialog::FilterEffectsDialog::_resource_changed
private

Definition at line 83 of file filter-effects-dialog.h.

Referenced by documentReplaced().

◆ _search_box

Gtk::Box& Inkscape::UI::Dialog::FilterEffectsDialog::_search_box
private

Definition at line 304 of file filter-effects-dialog.h.

Referenced by FilterEffectsDialog().

◆ _search_wide_box

Gtk::Box& Inkscape::UI::Dialog::FilterEffectsDialog::_search_wide_box
private

Definition at line 305 of file filter-effects-dialog.h.

◆ _settings

std::unique_ptr<Settings> Inkscape::UI::Dialog::FilterEffectsDialog::_settings
private

◆ _settings_effect

Gtk::Box Inkscape::UI::Dialog::FilterEffectsDialog::_settings_effect
private

◆ _settings_filter

Gtk::Box Inkscape::UI::Dialog::FilterEffectsDialog::_settings_filter
private

◆ _settings_initialized

bool Inkscape::UI::Dialog::FilterEffectsDialog::_settings_initialized
private

◆ _show_sources

Gtk::ToggleButton* Inkscape::UI::Dialog::FilterEffectsDialog::_show_sources = nullptr
private

Definition at line 308 of file filter-effects-dialog.h.


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