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

Dialog code. More...

Namespaces

namespace  details
 

Classes

class  AlignAndDistribute
 
class  ArrangeDialog
 
class  ArrangeTab
 This interface should be implemented by each arrange mode. More...
 
class  AttrDialog
 The AttrDialog class This dialog allows to add, delete and modify XML attributes created in the xml editor. More...
 
class  BatchExport
 
class  BatchItem
 
class  CalligraphicProfileRename
 
class  CellRendererInt
 
class  CloneTiler
 
class  ColorItem
 The color item you see on-screen as a clickable box. More...
 
class  CommandPalette
 
class  CPHistoryXML
 
class  Debug
 
class  DialogBase
 DialogBase is the base class for the dialog system. More...
 
class  DialogContainer
 A widget that manages DialogNotebook's and other widgets inside a horizontal DialogMultipaned containing vertical DialogMultipaned's or other widgets. More...
 
class  DialogManager
 
class  DialogMultipaned
 
class  DialogNotebook
 A widget that wraps a Gtk::Notebook with dialogs as pages. More...
 
class  DialogWindow
 DialogWindow holds DialogContainer instances for undocked dialogs. More...
 
class  DocumentProperties
 
class  DocumentResources
 
class  Export
 
class  ExportList
 
class  ExportPreview
 
class  ExtensionList
 
class  ExtensionsGallery
 
class  FillAndStroke
 
class  FilletChamferPropertiesDialog
 
class  FilterEffectsDialog
 
class  Find
 The Find class defines the Find and replace dialog. More...
 
class  FontCollectionsManager
 The font collections manager dialog allows the user to: More...
 
class  GlobalPalettes
 Singleton class that manages the static list of global palettes. More...
 
class  GlyphMenuButton
 
class  GlyphsPanel
 A panel that displays character glyphs. More...
 
class  GridArrangeTab
 Dialog for tiling an object. More...
 
class  GuidelinePropertiesDialog
 Dialog for modifying guidelines. More...
 
struct  History
 
class  IconPreviewPanel
 A panel that displays an icon preview. More...
 
class  InkscapePreferences
 
class  KnotPropertiesDialog
 
class  LayerPropertiesDialog
 
class  LivePathEffectEditor
 
class  Magnifier
 A widget that draws a pixelated magnified view of an image. More...
 
class  MeasureToolSettingsDialog
 
class  ObjectAttributes
 A dialog widget to show object attributes (currently for images and links). More...
 
class  ObjectProperties
 A subdialog widget to show object properties. More...
 
class  ObjectsPanel
 A panel that displays objects. More...
 
struct  PaintDescription
 
class  PaintServersColumns
 
class  PaintServersDialog
 This dialog serves as a preview for different types of paint servers, currently only predefined. More...
 
struct  PaletteFileData
 The data loaded from a palette file. More...
 
struct  PaletteResult
 
class  PolarArrangeTab
 PolarArrangeTab is a Tab displayed in the Arrange dialog and contains enables the user to arrange objects on a circular or elliptical shape. More...
 
class  PowerstrokePropertiesDialog
 
class  PreviewDrawing
 
class  Print
 
class  Prototype
 A panel that does almost nothing! More...
 
class  SaveTemplate
 
class  SelectorsDialog
 The SelectorsDialog class A list of CSS selectors will show up in this dialog. More...
 
class  SingleExport
 
class  SpellCheck
 A dialog widget to checking spelling of text elements in the document Uses gspell and one of the languages set in the users preference file. More...
 
class  StartScreen
 
class  StyleDialog
 The StyleDialog class A list of CSS selectors will show up in this dialog. More...
 
class  SvgFontsDialog
 
class  SvgGlyphRenderer
 
class  SwatchesPanel
 A dialog that displays paint swatches. More...
 
class  SymbolsDialog
 A dialog that displays selectable symbols and allows users to drag or paste those symbols from the dialog into the document. More...
 
class  TextEdit
 The TextEdit class defines the Text and font dialog. More...
 
class  TraceDialog
 
class  Transformation
 Transformation dialog. More...
 
class  UndoHistory
 Dialog for presenting document change history. More...
 
struct  window_position_t
 
class  XmlTree
 A dialog widget to view and edit the document xml. More...
 

Typedefs

typedef std::map< std::string, std::unique_ptr< BatchItem > > BatchItems
 
typedef std::pair< gunichar, gunicharRange
 
typedef std::pair< Range, Glib::ustring > NamedRange
 
using SelectionState = int
 

Enumerations

enum  {
  TILE_P1 , TILE_P2 , TILE_PM , TILE_PG ,
  TILE_CM , TILE_PMM , TILE_PMG , TILE_PGG ,
  TILE_CMM , TILE_P4 , TILE_P4M , TILE_P4G ,
  TILE_P3 , TILE_P31M , TILE_P3M1 , TILE_P6 ,
  TILE_P6M
}
 
enum class  TypeOfVariant {
  NONE , UNKNOWN , BOOL , INT ,
  DOUBLE , STRING , TUPLE_DD
}
 
enum class  CPMode { SEARCH , INPUT , SHELL , HISTORY }
 
enum class  HistoryType { LPE , ACTION , OPEN_FILE , IMPORT_FILE }
 
enum  Resources : int {
  Stats , Colors , Fonts , Styles ,
  Patterns , Symbols , Markers , Gradients ,
  Swatches , Images , Filters , External ,
  Metadata
}
 
enum  notebook_page { SINGLE_IMAGE = 0 , BATCH_EXPORT }
 
enum class  EffectCategory { Effect , Compose , Colors , Generation }
 
enum class  LayerPropertiesDialogType { NONE , CREATE , MOVE , RENAME }
 
enum  { COL_LABEL , COL_VISIBLE , COL_LOCKED }
 
enum  SelectionStates : SelectionState {
  SELECTED_NOT = 0 , SELECTED_OBJECT = 1 , LAYER_FOCUSED = 2 , LAYER_FOCUS_CHILD = 4 ,
  GROUP_SELECT_CHILD = 8
}
 

Functions

template<class Random >
static auto get_shuffled_lines (std::string const &filename, Random &&random)
 
void show_about ()
 
static Glib::ustring prepare_rendervalue (const char *value)
 Prepare value string suitable for display in a Gtk::CellRendererText.
 
void set_mono_class (Gtk::Widget *widget, bool mono)
 
void get_start_directory (std::string &start_path, Glib::ustring const &prefs_path, bool try_document_dir=false)
 Find the start directory for a file dialog.
 
Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > create_open_filters ()
 Create a Gtk::FileFilter for all image file types.
 
Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > create_export_filters (bool for_save=false)
 Create a Gtk::FileFilter for all export file types.
 
static void set_hint_texts (Gtk::SearchEntry2 &entry, Glib::ustring const &text)
 
Glib::ustring make_bold (const Glib::ustring &search)
 Color addition.
 
static void set_sensitive (Gtk::SearchEntry2 &entry, bool const sensitive)
 
static void remove_first (Glib::ustring &name, Glib::ustring const &pattern)
 
DialogMultipanedget_dialog_parent (DialogBase *dialog)
 
static auto get_key (std::size_t const notebook_idx)
 
void save_wnd_position (Glib::KeyFile *keyfile, const Glib::ustring &group_name, const window_position_t *position)
 
static auto get_notebook_dialogs (DialogNotebook &dialog_notebook)
 
std::optional< window_position_tdm_get_window_position (Gtk::Window &window)
 
void dm_restore_window_position (Gtk::Window &window, const window_position_t &position)
 
bool file_exists (const std::string &filepath)
 
int get_handle_size ()
 
void rounded_rectangle (const Cairo::RefPtr< Cairo::Context > &cr, double x, double y, double w, double h, double r)
 
static int _get_size (auto const sizes, Gtk::Orientation const orientation)
 
bool can_collapse (Gtk::Widget *widget, Gtk::Widget *handle)
 
int get_min_width (Gtk::Widget *widget)
 
double reveal_curve (double val, double size)
 
double collapse_curve (double val, double size)
 
static std::optional< std::pair< Gtk::Widget *, DialogNotebook * > > unpack_page (const Glib::ValueBase &value)
 
static const Glib::Quark dialog_notebook_id ("dialog-notebook-id")
 
DialogNotebookfind_dialog_notebook (Widget::TabStrip *tabs)
 
Gtk::Widget * find_dialog_page (Widget::TabStrip *tabs, int position)
 
static auto get_max_margin (Gtk::Widget const &widget)
 
static void docprops_style_button (Gtk::Button &btn, char const *iconName)
 
static bool do_remove_popup_menu (PopupMenuOptionalClick const click, Gtk::TreeView &tree_view, UI::Widget::PopoverBin &pb, sigc::slot< void()> const &slot)
 
static void connect_remove_popup_menu (Gtk::TreeView &tree_view, UI::Widget::PopoverBin &pb, sigc::slot< void()> slot)
 
void attach_all (Gtk::Grid &table, Gtk::Widget *const arr[], unsigned const n)
 Helper function that sets widgets in a 2 by n table.
 
void set_namedview_bool (SPDesktop *desktop, const Glib::ustring &operation, SPAttr key, bool on)
 
void set_color (SPDesktop *desktop, Glib::ustring operation, SPAttr color_key, SPAttr opacity_key, Colors::Color const &color)
 
void set_document_dimensions (SPDesktop *desktop, double width, double height, const Inkscape::Util::Unit *unit)
 
void set_document_scale_helper (SPDocument &document, double scale)
 
std::optional< Geom::Scaleget_document_scale_helper (SPDocument &doc)
 
void sanitizeName (std::string &str)
 Cleans up name to remove disallowed characters.
 
std::size_t get_resource_count (details::Statistics const &stats, Resources const rsrc)
 
Resources id_to_resource (const std::string &id)
 
std::size_t get_resource_count (std::string const &id, details::Statistics const &stats)
 
bool is_resource_present (std::string const &id, details::Statistics const &stats)
 
Glib::RefPtr< Gio::File > choose_file (Glib::ustring title, Gtk::Window *parent, Glib::ustring mime_type, Glib::ustring file_name)
 
void save_gimp_palette (std::string fname, const std::vector< int > &colors, const char *name)
 
void extract_colors (Gtk::Window *parent, const std::vector< int > &colors, const char *name)
 
static void delete_object (SPObject *object, Inkscape::Selection *selection)
 
Cairo::RefPtr< Cairo::Surface > render_color (uint32_t rgb, double size, double radius, int device_scale)
 
void collect_object_colors (SPObject &obj, Colors::ColorSet &colors)
 
template<typename V >
void apply_visitor (SPObject &object, V &&visitor)
 
void collect_colors (SPObject *object, Colors::ColorSet &colors)
 
void collect_used_fonts (SPObject &object, std::set< std::string > &fonts)
 
std::set< std::string > collect_fontspecs (SPObject *object)
 
template<typename T >
bool filter_element (T &object)
 
template<>
bool filter_element< SPPattern > (SPPattern &object)
 
template<>
bool filter_element< SPGradient > (SPGradient &object)
 
template<typename T >
std::vector< T * > collect_items (SPObject *object, bool(*filter)(T &)=filter_element< T >)
 
std::unordered_map< std::string, size_t > collect_styles (SPObject *root)
 
bool has_external_ref (SPObject &obj)
 
details::Statistics collect_statistics (SPObject *root)
 
void add_colors (Glib::RefPtr< Gio::ListStoreBase > &item_store, Colors::ColorSet const &colors, int device_scale)
 
void _add_items_with_images (Glib::RefPtr< Gio::ListStoreBase > &item_store, const std::vector< SPObject * > &items, double width, double height, int device_scale, bool use_title, object_renderer::options opt)
 
template<typename T >
void add_items_with_images (Glib::RefPtr< Gio::ListStoreBase > item_store, const std::vector< T * > &items, double width, double height, int device_scale, bool use_title=false, object_renderer::options opt={})
 
void add_fonts (Glib::RefPtr< Gio::ListStoreBase > store, const std::set< std::string > &fontspecs)
 
void add_stats (Glib::RefPtr< Gio::ListStoreBase > info_store, SPDocument *document, const details::Statistics &stats)
 
void add_metadata (Glib::RefPtr< Gio::ListStoreBase > info_store, SPDocument *document, const boost::ptr_vector< Inkscape::UI::Widget::EntityEntry > &rdf_list)
 
void add_filters (Glib::RefPtr< Gio::ListStoreBase > info_store, const std::vector< SPFilter * > &filters)
 
void add_styles (Glib::RefPtr< Gio::ListStoreBase > info_store, const std::unordered_map< std::string, size_t > &map)
 
void add_refs (Glib::RefPtr< Gio::ListStoreBase > info_store, const std::vector< SPObject * > &objects)
 
void set_export_bg_color (SPObject *object, Inkscape::Colors::Color const &color)
 
Inkscape::Colors::Color get_export_bg_color (SPObject *object, Inkscape::Colors::Color const &default_color)
 
Cairo::RefPtr< Cairo::Surface > add_shadow (Geom::Point image_size, Cairo::RefPtr< Cairo::Surface > image, int device_scale)
 
const std::vector< Inkscape::Extension::Effect * > prepare_effects (const std::vector< Inkscape::Extension::Effect * > &effects, bool get_effects)
 
Glib::ustring get_category (const std::list< Glib::ustring > &menu)
 
Cairo::RefPtr< Cairo::Surface > render_icon (Extension::Effect *effect, std::string icon, Geom::Point icon_size, int device_scale)
 
void add_effects (Gio::ListStore< EffectItem > &item_store, const std::vector< Inkscape::Extension::Effect * > &effects, bool root)
 
std::set< std::string > add_categories (Glib::RefPtr< Gtk::ListStore > &store, const std::vector< Inkscape::Extension::Effect * > &effects, bool effect)
 
Geom::Point get_thumbnail_size (int index, ExtensionsGallery::Type type)
 
static int input_count (const SPFilterPrimitive *prim)
 
static std::unique_ptr< UI::Widget::PopoverMenucreate_popup_menu (Gtk::Widget &parent, sigc::slot< void()> dup, sigc::slot< void()> rem)
 
static Glib::ustring get_filter_name (SPFilter *filter)
 
void draw_connection_node (const Cairo::RefPtr< Cairo::Context > &cr, std::vector< Geom::Point > const &points, Gdk::RGBA const &fill, Gdk::RGBA const &stroke)
 
static std::pair< int, int > widget_to_bin_window (Gtk::TreeView const &tree_view, int const wx, int const wy)
 
static void check_single_connection (SPFilterPrimitive *prim, const int result)
 
static void autoscroll (Glib::RefPtr< Gtk::Adjustment > const &a, double const delta)
 
const Glib::ustring & get_category_name (EffectCategory category)
 
static const std::map< Inkscape::Filters::FilterPrimitiveType, EffectMetadata > & get_effects ()
 
bool number_or_empy (const Glib::ustring &text)
 
void checkFontSubstitutions (SPDocument *doc)
 
PaletteResult load_palette (std::string const &path)
 
Glib::RefPtr< Gio::File > choose_palette_file (Gtk::Window *window)
 
static auto const & getScriptToName ()
 
static auto const & getRanges ()
 
static Glib::ustring getTimestr ()
 
static void overlayPixels (unsigned char *px, int width, int height, int stride, unsigned r, unsigned g, unsigned b)
 
static Cairo::RefPtr< Cairo::ImageSurface > sp_icon_doc_icon (SPDocument *doc, Drawing &drawing, char const *name, unsigned psize)
 
static auto reset_icon ()
 
static bool fuzzy_search (Glib::ustring const &pattern, Glib::ustring const &string, float &score)
 Case-insensitive and unicode normalized search of pattern in string.
 
static bool fuzzy_search (Glib::ustring const &pattern, Glib::ustring const &string)
 Case-insensitive and unicode normalized search of pattern in string.
 
static auto get_children_or_mnemonic_labels (Gtk::Widget &widget)
 
static int get_num_matches (Glib::ustring const &key, Gtk::Widget *widget)
 Get number of child Labels that match a key in a widget.
 
static ModelColumns & onKBGetCols ()
 
static void StyleFromSelectionToTool (Glib::ustring const &prefs_path, StyleSwatch *swatch)
 
Glib::ustring get_tool_action_name (Glib::ustring toolname)
 
static Cairo::RefPtr< Cairo::Surface > draw_color_preview (unsigned int rgb, unsigned int frame_rgb, int device_scale)
 
static void profileComboChanged (Gtk::ComboBoxText *combo)
 
static void proofComboChanged (Gtk::ComboBoxText *combo)
 
static void gamutColorChanged (Gtk::ColorButton *btn)
 
static auto getShortcutsFileLabelsAndValues ()
 
static bool is_leaf_visible (const Gtk::TreeModel::const_iterator &iter, const Glib::ustring &search)
 
template<typename string_type >
static void appendList (Glib::ustring &tmp, const std::vector< string_type > &listing)
 
static bool sp_has_fav (Glib::ustring const &effect)
 
static void sp_add_fav (Glib::ustring const &effect)
 
static void sp_remove_fav (Glib::ustring effect)
 
bool sp_set_experimental (bool &_experimental)
 
void align (Gtk::Widget *top, int const spinbutton_width_chars)
 
static void set_visible_icon (Gtk::Button &button, bool const visible)
 
const Glib::ustring & get_category_name (Inkscape::LivePathEffect::LPECategory category)
 
static void update_before_after_classes (Gtk::Widget &widget, bool const before)
 
template<typename Method , typename ... Args>
static void add_action (Glib::RefPtr< Gio::SimpleActionGroup > const &group, Glib::ustring const &name, bool const enable, LivePathEffectEditor &self, Method const method, Args ...args)
 
std::tuple< bool, double, double > round_values (double x, double y)
 
std::tuple< bool, double, double > round_values (Gtk::SpinButton &x, Gtk::SpinButton &y)
 
const LivePathEffectObjectfind_lpeffect (SPLPEItem *item, LivePathEffect::EffectType etype)
 
void remove_lpeffect (SPLPEItem *item, LivePathEffect::EffectType type)
 
std::optional< double > get_number (SPItem *item, const char *attribute)
 
void align_star_shape (SPStar *path)
 
std::string get_key (SPObject *object)
 
static auto get_cell_area (Gtk::TreeView const &tree_view, Gtk::TreeModel::Path const &path, Gtk::TreeViewColumn &column)
 
static auto get_cell_center (Gtk::TreeView const &tree_view, Gtk::TreeModel::Path const &path, Gtk::TreeViewColumn &column)
 
static void rotateAround (SPItem *item, Geom::Point center, Geom::Rotate const &rotation)
 This function rotates an item around a given point by a given amount.
 
static float calcAngle (float arcBegin, float arcEnd, int count, int n)
 Calculates the angle at which to put an object given the total amount of objects, the index of the objects as well as the arc start and end points.
 
static Geom::Point calcPoint (float cx, float cy, float rx, float ry, float angle)
 Calculates the point at which an object needs to be, given the center of the ellipse, it's radius (x and y), as well as the angle.
 
static Geom::Point getAnchorPoint (int anchor, SPItem *item)
 Returns the selected anchor point in desktop coordinates.
 
static void moveToPoint (int anchor, SPItem *item, Geom::Point p)
 Moves an SPItem to a given location, the location is based on the given anchor point.
 
Glib::RefPtr< Gtk::PrintSettings > & get_printer_settings ()
 
template<typename T , typename U >
bool vector_contains (std::vector< T > const &haystack, U const &needle)
 
XML::Nodeget_first_style_text_node (XML::Node *root, bool create_if_missing)
 Get the first <style> element's first text node.
 
static bool is_url (char const *p)
 
gboolean sp_styledialog_store_move_to_next (gpointer data)
 
Glib::ustring create_unicode_name (const Glib::ustring &unicode, int max_chars)
 
Glib::ustring get_glyph_synthetic_name (const SPGlyph &glyph)
 
Glib::ustring get_glyph_full_name (const SPGlyph &glyph)
 
SPItemfind_layer (SPDesktop *desktop, SPObject *root_layer, const Glib::ustring &name)
 
std::vector< SPGroup * > get_direct_sublayers (SPObject *layer)
 
void rename_glyph_layer (SPDesktop *desktop, SPItem *layer, const Glib::ustring &font, const Glib::ustring &name)
 
SPItemget_layer_for_glyph (SPDesktop *desktop, const Glib::ustring &font, const Glib::ustring &name)
 
SPItemget_or_create_layer_for_glyph (SPDesktop *desktop, const Glib::ustring &font, const Glib::ustring &name)
 
Glib::ustring get_font_label (SPFont *font)
 
SPGuideget_guide (SPDocument &doc, const Glib::ustring &id)
 
SPGuidecreate_guide (SPDocument &doc, double x0, double y0, double x1, double y1)
 
void set_up_typography_canvas (SPDocument *document, double em, double asc, double cap, double xheight, double des)
 
double get_font_units_per_em (const SPFont *font)
 
Geom::PathVector flip_coordinate_system (Geom::PathVector pathv, const SPFont *font, double units_per_em)
 
void change_glyph_attribute (SPDesktop *desktop, SPGlyph &glyph, std::function< void()> change)
 
Inkscape::XML::Nodecreate_path_from_glyph (const SPGlyph &glyph)
 
SPFontnew_font (SPDocument *document)
 
void set_font_family (SPFont *font, char *str)
 
static auto to_palette_t (PaletteFileData const &p)
 
static auto make_selector_item (UI::Widget::palette_t const &palette)
 
Gtk::Box & create_tab_label (const char *label_text, const char *icon_name)
 
static bool isRealLayer (SPObject const *object)
 Like SPDesktop::isLayer(), but ignores SPGroup::effectiveLayerMode().
 

Variables

constexpr int MAX_POPOVER_HEIGHT = 450
 
constexpr int MAX_POPOVER_WIDTH = 520
 
constexpr int TEXT_MARGIN = 3
 
static constexpr int SB_MARGIN = 1
 
static constexpr int VB_MARGIN = 4
 
static Glib::ustring const prefs_path = "/dialogs/clonetiler/"
 
static std::unique_ptr< Inkscape::Drawingtrace_drawing
 
static unsigned trace_visionkey
 
static gdouble trace_zoom
 
static SPDocumenttrace_doc = nullptr
 
const char dialogs_state [] = "dialogs-state-ex.ini"
 
const char save_dialog_position [] = "/options/savedialogposition/value"
 
const char transient_group [] = "transient"
 
static constexpr int SPACE_SIZE_X = 15
 
static constexpr int SPACE_SIZE_Y = 10
 
const std::unordered_map< std::string, Resourcesg_id_to_resource
 
std::map< std::type_index, std::function< Glib::ustring(const SPObject &)> > g_get_label
 
std::map< std::type_index, std::function< void(SPObject &, const Glib::ustring &)> > g_set_label
 
constexpr int COL_NAME = 0
 
constexpr int COL_ID = 1
 
constexpr int COL_ICON = 2
 
constexpr int COL_COUNT = 3
 
auto get_id = [](const SPObject* object) { auto id = object->getId(); return id ? id : ""; }
 
auto label_fmt = [](const char* label, const Glib::ustring& id) { return label && *label ? label : '#' + id; }
 
Inkscape::UI::Dialog::CategoriesColumns g_categories_columns
 
constexpr int max_convolution_kernel_size = 10
 
static Glib::ustring const prefs_path = "/dialogs/filters"
 
ModelColumns _kb_columns
 
static constexpr auto favs_path = "/dialogs/livepatheffect/favs"
 
static constexpr auto item_action_group_name = "lpe-item"
 
static const auto item_action_group_quark = Glib::Quark{item_action_group_name}
 
static const SPAttrDesc anchor_desc []
 
const auto dlg_pref_path = Glib::ustring("/dialogs/object-properties/")
 
Gdk::RGBA selection_color
 
const int MARGIN_SPACE = 4
 
static constexpr auto auto_id = "Auto"
 
constexpr auto EXPORT_COORD_PRECISION = 3
 
constexpr auto SP_EXPORT_MIN_SIZE = 1.0
 

Detailed Description

Dialog code.

Arranges Objects into a Circle/Ellipse.

From the code of Liam P.White from his Power Stroke Knot dialog.

This namespace contains all code related to dialogs.

Released under GNU GPL v2+, read the file 'COPYING' for more information.

Typedef Documentation

◆ BatchItems

typedef std::map<std::string, std::unique_ptr<BatchItem> > Inkscape::UI::Dialog::BatchItems

Definition at line 65 of file export-batch.h.

◆ NamedRange

typedef std::pair<Range, Glib::ustring> Inkscape::UI::Dialog::NamedRange

Definition at line 206 of file glyphs.cpp.

◆ Range

Definition at line 205 of file glyphs.cpp.

◆ SelectionState

Definition at line 79 of file objects.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TILE_P1 
TILE_P2 
TILE_PM 
TILE_PG 
TILE_CM 
TILE_PMM 
TILE_PMG 
TILE_PGG 
TILE_CMM 
TILE_P4 
TILE_P4M 
TILE_P4G 
TILE_P3 
TILE_P31M 
TILE_P3M1 
TILE_P6 
TILE_P6M 

Definition at line 187 of file clonetiler.h.

◆ anonymous enum

anonymous enum
Enumerator
COL_LABEL 
COL_VISIBLE 
COL_LOCKED 

Definition at line 77 of file objects.h.

◆ CPMode

enum class Inkscape::UI::Dialog::CPMode
strong
Enumerator
SEARCH 
INPUT 

Input arguments.

SHELL 
HISTORY 

Definition at line 60 of file command-palette.h.

◆ EffectCategory

Enumerator
Effect 
Compose 
Colors 
Generation 

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

◆ HistoryType

Enumerator
LPE 
ACTION 
OPEN_FILE 
IMPORT_FILE 

Definition at line 68 of file command-palette.h.

◆ LayerPropertiesDialogType

Enumerator
NONE 
CREATE 
MOVE 
RENAME 

Definition at line 44 of file layer-properties.h.

◆ notebook_page

Enumerator
SINGLE_IMAGE 
BATCH_EXPORT 

Definition at line 51 of file export.h.

◆ Resources

Enumerator
Stats 
Colors 
Fonts 
Styles 
Patterns 
Symbols 
Markers 
Gradients 
Swatches 
Images 
Filters 
External 
Metadata 

Definition at line 117 of file document-resources.cpp.

◆ SelectionStates

Enumerator
SELECTED_NOT 
SELECTED_OBJECT 
LAYER_FOCUSED 
LAYER_FOCUS_CHILD 
GROUP_SELECT_CHILD 

Definition at line 80 of file objects.h.

◆ TypeOfVariant

Enumerator
NONE 
UNKNOWN 
BOOL 
INT 
DOUBLE 
STRING 
TUPLE_DD 

Definition at line 49 of file command-palette.h.

Function Documentation

◆ _add_items_with_images()

void Inkscape::UI::Dialog::_add_items_with_images ( Glib::RefPtr< Gio::ListStoreBase > &  item_store,
const std::vector< SPObject * > &  items,
double  width,
double  height,
int  device_scale,
bool  use_title,
object_renderer::options  opt 
)

◆ _get_size()

static int Inkscape::UI::Dialog::_get_size ( auto const  sizes,
Gtk::Orientation const  orientation 
)
static

◆ add_action()

template<typename Method , typename ... Args>
static void Inkscape::UI::Dialog::add_action ( Glib::RefPtr< Gio::SimpleActionGroup > const &  group,
Glib::ustring const &  name,
bool const  enable,
LivePathEffectEditor self,
Method const  method,
Args ...  args 
)
static

◆ add_categories()

std::set< std::string > Inkscape::UI::Dialog::add_categories ( Glib::RefPtr< Gtk::ListStore > &  store,
const std::vector< Inkscape::Extension::Effect * > &  effects,
bool  effect 
)

◆ add_colors()

void Inkscape::UI::Dialog::add_colors ( Glib::RefPtr< Gio::ListStoreBase > &  item_store,
Colors::ColorSet const &  colors,
int  device_scale 
)

◆ add_effects()

◆ add_filters()

void Inkscape::UI::Dialog::add_filters ( Glib::RefPtr< Gio::ListStoreBase >  info_store,
const std::vector< SPFilter * > &  filters 
)

◆ add_fonts()

void Inkscape::UI::Dialog::add_fonts ( Glib::RefPtr< Gio::ListStoreBase >  store,
const std::set< std::string > &  fontspecs 
)

◆ add_items_with_images()

template<typename T >
void Inkscape::UI::Dialog::add_items_with_images ( Glib::RefPtr< Gio::ListStoreBase >  item_store,
const std::vector< T * > &  items,
double  width,
double  height,
int  device_scale,
bool  use_title = false,
object_renderer::options  opt = {} 
)

◆ add_metadata()

void Inkscape::UI::Dialog::add_metadata ( Glib::RefPtr< Gio::ListStoreBase >  info_store,
SPDocument document,
const boost::ptr_vector< Inkscape::UI::Widget::EntityEntry > &  rdf_list 
)

◆ add_refs()

void Inkscape::UI::Dialog::add_refs ( Glib::RefPtr< Gio::ListStoreBase >  info_store,
const std::vector< SPObject * > &  objects 
)

◆ add_shadow()

Cairo::RefPtr< Cairo::Surface > Inkscape::UI::Dialog::add_shadow ( Geom::Point  image_size,
Cairo::RefPtr< Cairo::Surface >  image,
int  device_scale 
)

◆ add_stats()

◆ add_styles()

void Inkscape::UI::Dialog::add_styles ( Glib::RefPtr< Gio::ListStoreBase >  info_store,
const std::unordered_map< std::string, size_t > &  map 
)

◆ align()

void Inkscape::UI::Dialog::align ( Gtk::Widget *  top,
int const  spinbutton_width_chars 
)

◆ align_star_shape()

void Inkscape::UI::Dialog::align_star_shape ( SPStar path)

◆ appendList()

template<typename string_type >
static void Inkscape::UI::Dialog::appendList ( Glib::ustring &  tmp,
const std::vector< string_type > &  listing 
)
static

◆ apply_visitor()

template<typename V >
void Inkscape::UI::Dialog::apply_visitor ( SPObject object,
V &&  visitor 
)

◆ attach_all()

void Inkscape::UI::Dialog::attach_all ( Gtk::Grid &  table,
Gtk::Widget *const  arr[],
unsigned const  n 
)
private

Helper function that sets widgets in a 2 by n table.

arr has two entries per table row. Each row is in the following form: widget, widget -> function adds a widget in each column. nullptr, widget -> function adds a widget that occupies the row. label, nullptr -> function adds label that occupies the row. nullptr, nullptr -> function adds an empty box that occupies the row. This used to be a helper function for a 3 by n table

Definition at line 261 of file document-properties.cpp.

References label, SPACE_SIZE_X, and SPACE_SIZE_Y.

Referenced by Inkscape::UI::Dialog::DocumentProperties::build_guides().

◆ autoscroll()

static void Inkscape::UI::Dialog::autoscroll ( Glib::RefPtr< Gtk::Adjustment > const &  a,
double const  delta 
)
static

◆ calcAngle()

static float Inkscape::UI::Dialog::calcAngle ( float  arcBegin,
float  arcEnd,
int  count,
int  n 
)
static

Calculates the angle at which to put an object given the total amount of objects, the index of the objects as well as the arc start and end points.

Parameters
arcBeginangle at which the arc begins
arcEndangle at which the arc ends
countnumber of objects in the selection
nindex of the object in the selection

Definition at line 177 of file polar-arrange-tab.cpp.

References delta.

Referenced by Inkscape::UI::Dialog::PolarArrangeTab::arrange().

◆ calcPoint()

static Geom::Point Inkscape::UI::Dialog::calcPoint ( float  cx,
float  cy,
float  rx,
float  ry,
float  angle 
)
static

Calculates the point at which an object needs to be, given the center of the ellipse, it's radius (x and y), as well as the angle.

Definition at line 195 of file polar-arrange-tab.cpp.

Referenced by Inkscape::UI::Dialog::PolarArrangeTab::arrange().

◆ can_collapse()

bool Inkscape::UI::Dialog::can_collapse ( Gtk::Widget *  widget,
Gtk::Widget *  handle 
)

◆ change_glyph_attribute()

◆ check_single_connection()

static void Inkscape::UI::Dialog::check_single_connection ( SPFilterPrimitive prim,
const int  result 
)
static

◆ checkFontSubstitutions()

void Inkscape::UI::Dialog::checkFontSubstitutions ( SPDocument doc)

◆ choose_file()

Glib::RefPtr< Gio::File > Inkscape::UI::Dialog::choose_file ( Glib::ustring  title,
Gtk::Window *  parent,
Glib::ustring  mime_type,
Glib::ustring  file_name 
)

Definition at line 183 of file document-resources.cpp.

References Inkscape::choose_file_save(), and parent.

Referenced by extract_colors().

◆ choose_palette_file()

Glib::RefPtr< Gio::File > Inkscape::UI::Dialog::choose_palette_file ( Gtk::Window *  window)

◆ collapse_curve()

double Inkscape::UI::Dialog::collapse_curve ( double  val,
double  size 
)

◆ collect_colors()

void Inkscape::UI::Dialog::collect_colors ( SPObject object,
Colors::ColorSet colors 
)

◆ collect_fontspecs()

std::set< std::string > Inkscape::UI::Dialog::collect_fontspecs ( SPObject object)

◆ collect_items()

template<typename T >
std::vector< T * > Inkscape::UI::Dialog::collect_items ( SPObject object,
bool(*)(T &)  filter = filter_element<T> 
)

Definition at line 711 of file document-resources.cpp.

References apply_visitor(), and items.

◆ collect_object_colors()

void Inkscape::UI::Dialog::collect_object_colors ( SPObject obj,
Colors::ColorSet colors 
)

Definition at line 634 of file document-resources.cpp.

References c, Inkscape::Colors::ColorSet::set(), and SPObject::style.

Referenced by collect_colors(), and collect_statistics().

◆ collect_statistics()

◆ collect_styles()

std::unordered_map< std::string, size_t > Inkscape::UI::Dialog::collect_styles ( SPObject root)

◆ collect_used_fonts()

void Inkscape::UI::Dialog::collect_used_fonts ( SPObject object,
std::set< std::string > &  fonts 
)

Definition at line 674 of file document-resources.cpp.

Referenced by collect_fontspecs(), and collect_statistics().

◆ connect_remove_popup_menu()

static void Inkscape::UI::Dialog::connect_remove_popup_menu ( Gtk::TreeView &  tree_view,
UI::Widget::PopoverBin pb,
sigc::slot< void()>  slot 
)
staticprivate

◆ create_export_filters()

Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > Inkscape::UI::Dialog::create_export_filters ( bool  for_save)

Create a Gtk::FileFilter for all export file types.

Definition at line 129 of file choose-file-utils.cpp.

References Inkscape::Extension::db, Inkscape::Extension::DB::get_output_list(), and name.

Referenced by Inkscape::UI::Dialog::SingleExport::onBrowse(), and sp_file_save_dialog().

◆ create_guide()

SPGuide * Inkscape::UI::Dialog::create_guide ( SPDocument doc,
double  x0,
double  y0,
double  x1,
double  y1 
)

Definition at line 756 of file svg-fonts-dialog.cpp.

References create_guide(), and SPGuide::createSPGuide().

Referenced by create_guide(), and set_up_typography_canvas().

◆ create_open_filters()

Glib::RefPtr< Gio::ListStore< Gtk::FileFilter > > Inkscape::UI::Dialog::create_open_filters ( )

Create a Gtk::FileFilter for all image file types.

Definition at line 49 of file choose-file-utils.cpp.

References Inkscape::Extension::db, and Inkscape::Extension::DB::get_input_list().

Referenced by Inkscape::choose_file_open_images(), and Inkscape::UI::Dialog::StartScreen::load_document().

◆ create_path_from_glyph()

◆ create_popup_menu()

static std::unique_ptr< UI::Widget::PopoverMenu > Inkscape::UI::Dialog::create_popup_menu ( Gtk::Widget &  parent,
sigc::slot< void()>  dup,
sigc::slot< void()>  rem 
)
static

◆ create_tab_label()

Gtk::Box & Inkscape::UI::Dialog::create_tab_label ( const char *  label_text,
const char *  icon_name 
)

Definition at line 35 of file tile.cpp.

References image, label, and Inkscape::UI::pack_start().

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

◆ create_unicode_name()

Glib::ustring Inkscape::UI::Dialog::create_unicode_name ( const Glib::ustring &  unicode,
int  max_chars 
)

◆ delete_object()

static void Inkscape::UI::Dialog::delete_object ( SPObject object,
Inkscape::Selection selection 
)
static

◆ dialog_notebook_id()

static const Glib::Quark Inkscape::UI::Dialog::dialog_notebook_id ( "dialog-notebook-id"  )
static

◆ dm_get_window_position()

std::optional< window_position_t > Inkscape::UI::Dialog::dm_get_window_position ( Gtk::Window &  window)

◆ dm_restore_window_position()

void Inkscape::UI::Dialog::dm_restore_window_position ( Gtk::Window &  window,
const window_position_t position 
)

◆ do_remove_popup_menu()

static bool Inkscape::UI::Dialog::do_remove_popup_menu ( PopupMenuOptionalClick const  click,
Gtk::TreeView &  tree_view,
UI::Widget::PopoverBin pb,
sigc::slot< void()> const &  slot 
)
staticprivate

◆ docprops_style_button()

static void Inkscape::UI::Dialog::docprops_style_button ( Gtk::Button &  btn,
char const *  iconName 
)
staticprivate

◆ draw_color_preview()

static Cairo::RefPtr< Cairo::Surface > Inkscape::UI::Dialog::draw_color_preview ( unsigned int  rgb,
unsigned int  frame_rgb,
int  device_scale 
)
static

◆ draw_connection_node()

void Inkscape::UI::Dialog::draw_connection_node ( const Cairo::RefPtr< Cairo::Context > &  cr,
std::vector< Geom::Point > const &  points,
Gdk::RGBA const &  fill,
Gdk::RGBA const &  stroke 
)

◆ extract_colors()

void Inkscape::UI::Dialog::extract_colors ( Gtk::Window *  parent,
const std::vector< int > &  colors,
const char *  name 
)

◆ file_exists()

bool Inkscape::UI::Dialog::file_exists ( const std::string &  filepath)

◆ filter_element()

template<typename T >
bool Inkscape::UI::Dialog::filter_element ( T &  object)

◆ filter_element< SPGradient >()

Definition at line 708 of file document-resources.cpp.

◆ filter_element< SPPattern >()

template<>
bool Inkscape::UI::Dialog::filter_element< SPPattern > ( SPPattern object)

Definition at line 705 of file document-resources.cpp.

◆ find_dialog_notebook()

DialogNotebook * Inkscape::UI::Dialog::find_dialog_notebook ( Widget::TabStrip tabs)

Definition at line 51 of file dialog-notebook.cpp.

References dialog_notebook_id().

Referenced by find_dialog_page(), and unpack_page().

◆ find_dialog_page()

Gtk::Widget * Inkscape::UI::Dialog::find_dialog_page ( Widget::TabStrip tabs,
int  position 
)

◆ find_layer()

SPItem * Inkscape::UI::Dialog::find_layer ( SPDesktop desktop,
SPObject root_layer,
const Glib::ustring &  name 
)

◆ find_lpeffect()

const LivePathEffectObject * Inkscape::UI::Dialog::find_lpeffect ( SPLPEItem item,
LivePathEffect::EffectType  etype 
)

Definition at line 234 of file object-attributes.cpp.

References Inkscape::LivePathEffect::FILLET_CHAMFER, and item.

Referenced by remove_lpeffect().

◆ flip_coordinate_system()

◆ fuzzy_search() [1/2]

static bool Inkscape::UI::Dialog::fuzzy_search ( Glib::ustring const &  pattern,
Glib::ustring const &  string 
)
static

Case-insensitive and unicode normalized search of pattern in string.

Parameters
patternText to find
stringText to search in
Returns
True if pattern is a substring of string.

Definition at line 155 of file inkscape-preferences.cpp.

References fuzzy_search().

◆ fuzzy_search() [2/2]

static bool Inkscape::UI::Dialog::fuzzy_search ( Glib::ustring const &  pattern,
Glib::ustring const &  string,
float &  score 
)
static

◆ gamutColorChanged()

static void Inkscape::UI::Dialog::gamutColorChanged ( Gtk::ColorButton *  btn)
static

◆ get_category()

Glib::ustring Inkscape::UI::Dialog::get_category ( const std::list< Glib::ustring > &  menu)

Definition at line 170 of file extensions-gallery.cpp.

Referenced by add_categories(), and add_effects().

◆ get_category_name() [1/2]

const Glib::ustring & Inkscape::UI::Dialog::get_category_name ( EffectCategory  category)

◆ get_category_name() [2/2]

◆ get_cell_area()

◆ get_cell_center()

static auto Inkscape::UI::Dialog::get_cell_center ( Gtk::TreeView const &  tree_view,
Gtk::TreeModel::Path const &  path,
Gtk::TreeViewColumn &  column 
)
static

Definition at line 1610 of file objects.cpp.

References get_cell_area().

Referenced by Inkscape::UI::Dialog::ObjectsPanel::on_click().

◆ get_children_or_mnemonic_labels()

static auto Inkscape::UI::Dialog::get_children_or_mnemonic_labels ( Gtk::Widget &  widget)
static

◆ get_dialog_parent()

DialogMultipaned * Inkscape::UI::Dialog::get_dialog_parent ( DialogBase dialog)

◆ get_direct_sublayers()

std::vector< SPGroup * > Inkscape::UI::Dialog::get_direct_sublayers ( SPObject layer)

◆ get_document_scale_helper()

std::optional< Geom::Scale > Inkscape::UI::Dialog::get_document_scale_helper ( SPDocument doc)
private

◆ get_effects()

◆ get_export_bg_color()

Inkscape::Colors::Color Inkscape::UI::Dialog::get_export_bg_color ( SPObject object,
Inkscape::Colors::Color const &  default_color 
)

◆ get_filter_name()

static Glib::ustring Inkscape::UI::Dialog::get_filter_name ( SPFilter filter)
static

◆ get_first_style_text_node()

XML::Node * Inkscape::UI::Dialog::get_first_style_text_node ( XML::Node root,
bool  create_if_missing 
)

◆ get_font_label()

Glib::ustring Inkscape::UI::Dialog::get_font_label ( SPFont font)

◆ get_font_units_per_em()

◆ get_glyph_full_name()

Glib::ustring Inkscape::UI::Dialog::get_glyph_full_name ( const SPGlyph glyph)

◆ get_glyph_synthetic_name()

Glib::ustring Inkscape::UI::Dialog::get_glyph_synthetic_name ( const SPGlyph glyph)

◆ get_guide()

SPGuide * Inkscape::UI::Dialog::get_guide ( SPDocument doc,
const Glib::ustring &  id 
)

◆ get_handle_size()

int Inkscape::UI::Dialog::get_handle_size ( )

Definition at line 61 of file dialog-multipaned.cpp.

References HANDLE_SIZE.

◆ get_key() [1/2]

std::string Inkscape::UI::Dialog::get_key ( SPObject object)

Definition at line 942 of file object-attributes.cpp.

◆ get_key() [2/2]

◆ get_layer_for_glyph()

SPItem * Inkscape::UI::Dialog::get_layer_for_glyph ( SPDesktop desktop,
const Glib::ustring &  font,
const Glib::ustring &  name 
)

◆ get_max_margin()

static auto Inkscape::UI::Dialog::get_max_margin ( Gtk::Widget const &  widget)
static

◆ get_min_width()

int Inkscape::UI::Dialog::get_min_width ( Gtk::Widget *  widget)

◆ get_notebook_dialogs()

◆ get_num_matches()

static int Inkscape::UI::Dialog::get_num_matches ( Glib::ustring const &  key,
Gtk::Widget *  widget 
)
static

◆ get_number()

std::optional< double > Inkscape::UI::Dialog::get_number ( SPItem item,
const char *  attribute 
)

◆ get_or_create_layer_for_glyph()

SPItem * Inkscape::UI::Dialog::get_or_create_layer_for_glyph ( SPDesktop desktop,
const Glib::ustring &  font,
const Glib::ustring &  name 
)

◆ get_printer_settings()

Glib::RefPtr< Gtk::PrintSettings > & Inkscape::UI::Dialog::get_printer_settings ( )

Definition at line 42 of file print.cpp.

Referenced by Inkscape::UI::Dialog::Print::run().

◆ get_resource_count() [1/2]

◆ get_resource_count() [2/2]

std::size_t Inkscape::UI::Dialog::get_resource_count ( std::string const &  id,
details::Statistics const &  stats 
)

Definition at line 170 of file document-resources.cpp.

References Inkscape::UI::end, g_id_to_resource, and get_resource_count().

◆ get_shuffled_lines()

template<class Random >
static auto Inkscape::UI::Dialog::get_shuffled_lines ( std::string const &  filename,
Random &&  random 
)
static

Definition at line 199 of file about.cpp.

References Inkscape::IO::Resource::DOCS, and Inkscape::IO::Resource::get_filename().

Referenced by show_about().

◆ get_start_directory()

◆ get_thumbnail_size()

Geom::Point Inkscape::UI::Dialog::get_thumbnail_size ( int  index,
ExtensionsGallery::Type  type 
)

◆ get_tool_action_name()

Glib::ustring Inkscape::UI::Dialog::get_tool_action_name ( Glib::ustring  toolname)

◆ getAnchorPoint()

static Geom::Point Inkscape::UI::Dialog::getAnchorPoint ( int  anchor,
SPItem item 
)
static

Returns the selected anchor point in desktop coordinates.

If anchor is 0 to 8, then a bounding box point has been chosen. If it is 9 however the rotational center is chosen.

Definition at line 205 of file polar-arrange-tab.cpp.

References SPDocument::doc2dt(), SPObject::document, SPItem::documentVisualBounds(), SPItem::getCenter(), item, Geom::X, and Geom::Y.

Referenced by moveToPoint().

◆ getRanges()

static auto const & Inkscape::UI::Dialog::getRanges ( )
static

◆ getScriptToName()

static auto const & Inkscape::UI::Dialog::getScriptToName ( )
static

◆ getShortcutsFileLabelsAndValues()

static auto Inkscape::UI::Dialog::getShortcutsFileLabelsAndValues ( )
static

◆ getTimestr()

◆ has_external_ref()

bool Inkscape::UI::Dialog::has_external_ref ( SPObject obj)

◆ id_to_resource()

Resources Inkscape::UI::Dialog::id_to_resource ( const std::string &  id)

◆ input_count()

◆ is_leaf_visible()

static bool Inkscape::UI::Dialog::is_leaf_visible ( const Gtk::TreeModel::const_iterator &  iter,
const Glib::ustring &  search 
)
static

◆ is_resource_present()

bool Inkscape::UI::Dialog::is_resource_present ( std::string const &  id,
details::Statistics const &  stats 
)

◆ is_url()

static bool Inkscape::UI::Dialog::is_url ( char const *  p)
static
Todo:
FIXME: I'm not sure if this applies to SVG as well, but CSS2 says any URIs in property values must start with 'url('.

Definition at line 313 of file styledialog.cpp.

Referenced by Inkscape::UI::Dialog::StyleDialog::readStyleElement().

◆ isRealLayer()

static bool Inkscape::UI::Dialog::isRealLayer ( SPObject const *  object)
static

Like SPDesktop::isLayer(), but ignores SPGroup::effectiveLayerMode().

Definition at line 344 of file xml-tree.cpp.

References SPGroup::LAYER.

Referenced by Inkscape::UI::Dialog::XmlTree::set_dt_select().

◆ load_palette()

PaletteResult Inkscape::UI::Dialog::load_palette ( std::string const &  path)

◆ make_bold()

Glib::ustring Inkscape::UI::Dialog::make_bold ( const Glib::ustring &  search)

Color addition.

Definition at line 596 of file command-palette.cpp.

◆ make_selector_item()

◆ moveToPoint()

static void Inkscape::UI::Dialog::moveToPoint ( int  anchor,
SPItem item,
Geom::Point  p 
)
static

Moves an SPItem to a given location, the location is based on the given anchor point.

Parameters
anchor0 to 8 are the various bounding box points like follows: 0 1 2 3 4 5 6 7 8 Anchor mode 9 is the rotational center of the object
itemItem to move
ppoint at which to move the object

Definition at line 267 of file polar-arrange-tab.cpp.

References getAnchorPoint(), item, and SPItem::move_rel().

Referenced by Inkscape::UI::Dialog::PolarArrangeTab::arrange().

◆ new_font()

◆ number_or_empy()

bool Inkscape::UI::Dialog::number_or_empy ( const Glib::ustring &  text)

◆ onKBGetCols()

static ModelColumns & Inkscape::UI::Dialog::onKBGetCols ( )
static

◆ overlayPixels()

static void Inkscape::UI::Dialog::overlayPixels ( unsigned char *  px,
int  width,
int  height,
int  stride,
unsigned  r,
unsigned  g,
unsigned  b 
)
static

Definition at line 376 of file icon-preview.cpp.

References Inkscape::UI::Widget::height, stride, and width.

Referenced by sp_icon_doc_icon().

◆ prepare_effects()

const std::vector< Inkscape::Extension::Effect * > Inkscape::UI::Dialog::prepare_effects ( const std::vector< Inkscape::Extension::Effect * > &  effects,
bool  get_effects 
)

◆ prepare_rendervalue()

static Glib::ustring Inkscape::UI::Dialog::prepare_rendervalue ( const char *  value)
static

Prepare value string suitable for display in a Gtk::CellRendererText.

Value is truncated at the first new line character (if any) and a visual indicator and ellipsis is added. Overall length is limited as well to prevent performance degradation for very long values.

Parameters
valueRaw attribute value as UTF-8 encoded string
Returns
Single-line string with fixed maximum length

Definition at line 312 of file attrdialog.cpp.

Referenced by Inkscape::UI::Dialog::AttrDialog::notifyAttributeChanged(), and Inkscape::UI::Dialog::AttrDialog::valueEdited().

◆ profileComboChanged()

static void Inkscape::UI::Dialog::profileComboChanged ( Gtk::ComboBoxText *  combo)
static

◆ proofComboChanged()

static void Inkscape::UI::Dialog::proofComboChanged ( Gtk::ComboBoxText *  combo)
static

◆ remove_first()

static void Inkscape::UI::Dialog::remove_first ( Glib::ustring &  name,
Glib::ustring const &  pattern 
)
static

Definition at line 40 of file dialog-base.cpp.

References name.

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

◆ remove_lpeffect()

void Inkscape::UI::Dialog::remove_lpeffect ( SPLPEItem item,
LivePathEffect::EffectType  type 
)

◆ rename_glyph_layer()

void Inkscape::UI::Dialog::rename_glyph_layer ( SPDesktop desktop,
SPItem layer,
const Glib::ustring &  font,
const Glib::ustring &  name 
)

◆ render_color()

Cairo::RefPtr< Cairo::Surface > Inkscape::UI::Dialog::render_color ( uint32_t  rgb,
double  size,
double  radius,
int  device_scale 
)

Definition at line 629 of file document-resources.cpp.

References Inkscape::add_background_to_image(), rgb, and Inkscape::size.

Referenced by add_colors().

◆ render_icon()

◆ reset_icon()

◆ reveal_curve()

double Inkscape::UI::Dialog::reveal_curve ( double  val,
double  size 
)

◆ rotateAround()

static void Inkscape::UI::Dialog::rotateAround ( SPItem item,
Geom::Point  center,
Geom::Rotate const &  rotation 
)
static

This function rotates an item around a given point by a given amount.

Parameters
itemitem to rotate
centercenter of the rotation to perform
rotationamount to rotate the object by

Definition at line 150 of file polar-arrange-tab.cpp.

References SPItem::doWriteTransform(), SPItem::getCenter(), SPItem::i2dt_affine(), Geom::Affine::inverse(), SPItem::isCenterSet(), item, SPItem::set_i2d_affine(), SPItem::setCenter(), SPItem::transform, and SPObject::updateRepr().

Referenced by Inkscape::UI::Dialog::PolarArrangeTab::arrange().

◆ round_values() [1/2]

std::tuple< bool, double, double > Inkscape::UI::Dialog::round_values ( double  x,
double  y 
)

Definition at line 224 of file object-attributes.cpp.

Referenced by round_values().

◆ round_values() [2/2]

std::tuple< bool, double, double > Inkscape::UI::Dialog::round_values ( Gtk::SpinButton &  x,
Gtk::SpinButton &  y 
)

Definition at line 230 of file object-attributes.cpp.

References round_values().

◆ rounded_rectangle()

void Inkscape::UI::Dialog::rounded_rectangle ( const Cairo::RefPtr< Cairo::Context > &  cr,
double  x,
double  y,
double  w,
double  h,
double  r 
)

Definition at line 267 of file dialog-multipaned.cpp.

References rounded_rectangle(), and w.

Referenced by rounded_rectangle().

◆ sanitizeName()

void Inkscape::UI::Dialog::sanitizeName ( std::string &  str)
private

Cleans up name to remove disallowed characters.

Some discussion at http://markmail.org/message/bhfvdfptt25kgtmj Allowed ASCII first characters: ':', 'A'-'Z', '_', 'a'-'z' Allowed ASCII remaining chars add: '-', '.', '0'-'9',

Parameters
strthe string to clean up.

Note: for use with ICC profiles only. This function has been restored to make ICC profiles work, as their names need to be sanitized. BUT, it is not clear to me whether we really need to strip all non-ASCII characters. We do it currently, because sp_svg_read_icc_color cannot parse Unicode.

Definition at line 679 of file document-properties.cpp.

◆ save_gimp_palette()

void Inkscape::UI::Dialog::save_gimp_palette ( std::string  fname,
const std::vector< int > &  colors,
const char *  name 
)

Definition at line 189 of file document-resources.cpp.

References c, and name.

Referenced by extract_colors().

◆ save_wnd_position()

◆ set_color()

void Inkscape::UI::Dialog::set_color ( SPDesktop desktop,
Glib::ustring  operation,
SPAttr  color_key,
SPAttr  opacity_key,
Colors::Color const &  color 
)
private

◆ set_document_dimensions()

◆ set_document_scale_helper()

void Inkscape::UI::Dialog::set_document_scale_helper ( SPDocument document,
double  scale 
)
private

◆ set_export_bg_color()

void Inkscape::UI::Dialog::set_export_bg_color ( SPObject object,
Inkscape::Colors::Color const &  color 
)

◆ set_font_family()

void Inkscape::UI::Dialog::set_font_family ( SPFont font,
char *  str 
)

◆ set_hint_texts()

static void Inkscape::UI::Dialog::set_hint_texts ( Gtk::SearchEntry2 &  entry,
Glib::ustring const &  text 
)
static

◆ set_mono_class()

void Inkscape::UI::Dialog::set_mono_class ( Gtk::Widget *  widget,
bool  mono 
)

Definition at line 334 of file attrdialog.cpp.

Referenced by Inkscape::UI::Dialog::AttrDialog::set_mono_font().

◆ set_namedview_bool()

void Inkscape::UI::Dialog::set_namedview_bool ( SPDesktop desktop,
const Glib::ustring &  operation,
SPAttr  key,
bool  on 
)
private

◆ set_sensitive()

◆ set_up_typography_canvas()

void Inkscape::UI::Dialog::set_up_typography_canvas ( SPDocument document,
double  em,
double  asc,
double  cap,
double  xheight,
double  des 
)

◆ set_visible_icon()

static void Inkscape::UI::Dialog::set_visible_icon ( Gtk::Button &  button,
bool const  visible 
)
static

◆ show_about()

◆ sp_add_fav()

static void Inkscape::UI::Dialog::sp_add_fav ( Glib::ustring const &  effect)
static

◆ sp_has_fav()

static bool Inkscape::UI::Dialog::sp_has_fav ( Glib::ustring const &  effect)
static

◆ sp_icon_doc_icon()

◆ sp_remove_fav()

static void Inkscape::UI::Dialog::sp_remove_fav ( Glib::ustring  effect)
static

◆ sp_set_experimental()

bool Inkscape::UI::Dialog::sp_set_experimental ( bool &  _experimental)

◆ sp_styledialog_store_move_to_next()

gboolean Inkscape::UI::Dialog::sp_styledialog_store_move_to_next ( gpointer  data)

◆ StyleFromSelectionToTool()

◆ to_palette_t()

◆ unpack_page()

◆ update_before_after_classes()

static void Inkscape::UI::Dialog::update_before_after_classes ( Gtk::Widget &  widget,
bool const  before 
)
static

◆ vector_contains()

template<typename T , typename U >
bool Inkscape::UI::Dialog::vector_contains ( std::vector< T > const &  haystack,
U const &  needle 
)

◆ widget_to_bin_window()

static std::pair< int, int > Inkscape::UI::Dialog::widget_to_bin_window ( Gtk::TreeView const &  tree_view,
int const  wx,
int const  wy 
)
static

Variable Documentation

◆ _kb_columns

◆ anchor_desc

const SPAttrDesc Inkscape::UI::Dialog::anchor_desc[]
static
Initial value:
= {
{ N_("Href:"), "xlink:href"},
{ N_("Target:"), "target"},
{ N_("Type:"), "xlink:type"},
{ N_("Role:"), "xlink:role"},
{ N_("Arcrole:"), "xlink:arcrole"},
{ N_("Title:"), "xlink:title"},
{ N_("Show:"), "xlink:show"},
{ N_("Actuate:"), "xlink:actuate"},
{ nullptr, nullptr}
}

Definition at line 79 of file object-attributes.cpp.

◆ auto_id

◆ COL_COUNT

constexpr int Inkscape::UI::Dialog::COL_COUNT = 3
constexpr

◆ COL_ICON

constexpr int Inkscape::UI::Dialog::COL_ICON = 2
constexpr

◆ COL_ID

constexpr int Inkscape::UI::Dialog::COL_ID = 1
constexpr

◆ COL_NAME

constexpr int Inkscape::UI::Dialog::COL_NAME = 0
constexpr

◆ dialogs_state

const char Inkscape::UI::Dialog::dialogs_state[] = "dialogs-state-ex.ini"

◆ dlg_pref_path

const auto Inkscape::UI::Dialog::dlg_pref_path = Glib::ustring("/dialogs/object-properties/")

Definition at line 97 of file object-attributes.cpp.

◆ EXPORT_COORD_PRECISION

constexpr auto Inkscape::UI::Dialog::EXPORT_COORD_PRECISION = 3
inlineconstexpr

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

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

◆ favs_path

constexpr auto Inkscape::UI::Dialog::favs_path = "/dialogs/livepatheffect/favs"
staticconstexpr

Definition at line 77 of file livepatheffect-editor.cpp.

Referenced by sp_add_fav(), sp_has_fav(), and sp_remove_fav().

◆ g_categories_columns

Inkscape::UI::Dialog::CategoriesColumns Inkscape::UI::Dialog::g_categories_columns

◆ g_get_label

std::map<std::type_index, std::function<Glib::ustring (const SPObject&)> > Inkscape::UI::Dialog::g_get_label
Initial value:
= {
{typeid(SPObject), details::get_inkscape_label},
{typeid(SPSymbol), details::get_title},
{typeid(SPMarker), details::get_inkscape_label},
}
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160

Definition at line 299 of file document-resources.cpp.

Referenced by Inkscape::UI::Dialog::DocumentResources::end_editing().

◆ g_id_to_resource

const std::unordered_map<std::string, Resources> Inkscape::UI::Dialog::g_id_to_resource
Initial value:
= {
{"colors", Colors},
{"swatches", Swatches},
{"fonts", Fonts},
{"stats", Stats},
{"styles", Styles},
{"patterns", Patterns},
{"symbols", Symbols},
{"markers", Markers},
{"gradients", Gradients},
{"images", Images},
{"filters", Filters},
{"external", External},
{"metadata", Metadata},
}

Definition at line 121 of file document-resources.cpp.

Referenced by get_resource_count(), and id_to_resource().

◆ g_set_label

std::map<std::type_index, std::function<void (SPObject&, const Glib::ustring&)> > Inkscape::UI::Dialog::g_set_label
Initial value:
= {
{typeid(SPObject), details::set_inkscape_label},
{typeid(SPSymbol), details::set_title},
{typeid(SPMarker), details::set_inkscape_label},
}

Definition at line 312 of file document-resources.cpp.

Referenced by Inkscape::UI::Dialog::DocumentResources::end_editing().

◆ get_id

auto Inkscape::UI::Dialog::get_id = [](const SPObject* object) { auto id = object->getId(); return id ? id : ""; }

Definition at line 926 of file document-resources.cpp.

Referenced by _add_items_with_images(), and add_refs().

◆ item_action_group_name

constexpr auto Inkscape::UI::Dialog::item_action_group_name = "lpe-item"
staticconstexpr

◆ item_action_group_quark

const auto Inkscape::UI::Dialog::item_action_group_quark = Glib::Quark{item_action_group_name}
static

◆ label_fmt

auto Inkscape::UI::Dialog::label_fmt = [](const char* label, const Glib::ustring& id) { return label && *label ? label : '#' + id; }

Definition at line 927 of file document-resources.cpp.

Referenced by _add_items_with_images(), and add_refs().

◆ MARGIN_SPACE

◆ max_convolution_kernel_size

constexpr int Inkscape::UI::Dialog::max_convolution_kernel_size = 10
constexpr

◆ MAX_POPOVER_HEIGHT

constexpr int Inkscape::UI::Dialog::MAX_POPOVER_HEIGHT = 450
constexpr

◆ MAX_POPOVER_WIDTH

constexpr int Inkscape::UI::Dialog::MAX_POPOVER_WIDTH = 520
constexpr

Definition at line 88 of file attrdialog.cpp.

Referenced by Inkscape::UI::Dialog::AttrDialog::startValueEdit().

◆ prefs_path [1/2]

◆ prefs_path [2/2]

Glib::ustring const Inkscape::UI::Dialog::prefs_path = "/dialogs/filters"
static

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

◆ save_dialog_position

const char Inkscape::UI::Dialog::save_dialog_position[] = "/options/savedialogposition/value"

◆ SB_MARGIN

constexpr int Inkscape::UI::Dialog::SB_MARGIN = 1
staticconstexpr

◆ selection_color

Gdk::RGBA Inkscape::UI::Dialog::selection_color

Definition at line 413 of file objects.cpp.

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

◆ SP_EXPORT_MIN_SIZE

constexpr auto Inkscape::UI::Dialog::SP_EXPORT_MIN_SIZE = 1.0
inlineconstexpr

◆ SPACE_SIZE_X

constexpr int Inkscape::UI::Dialog::SPACE_SIZE_X = 15
staticconstexprprivate

◆ SPACE_SIZE_Y

constexpr int Inkscape::UI::Dialog::SPACE_SIZE_Y = 10
staticconstexprprivate

◆ TEXT_MARGIN

constexpr int Inkscape::UI::Dialog::TEXT_MARGIN = 3
constexpr

◆ trace_doc

SPDocument* Inkscape::UI::Dialog::trace_doc = nullptr
static

◆ trace_drawing

◆ trace_visionkey

◆ trace_zoom

gdouble Inkscape::UI::Dialog::trace_zoom
static

◆ transient_group

const char Inkscape::UI::Dialog::transient_group[] = "transient"

◆ VB_MARGIN