Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
actions-tools.cpp File Reference

Go to the source code of this file.

Functions

Glib::ustring get_active_tool (InkscapeWindow *win)
 
int get_active_tool_enum (InkscapeWindow *win)
 
void tool_switch (Glib::ustring const &tool, InkscapeWindow *win)
 Set display mode.
 
void set_active_tool (InkscapeWindow *win, Glib::ustring const &tool)
 
void open_tool_preferences (InkscapeWindow *win, Glib::ustring const &tool)
 
void set_active_tool (InkscapeWindow *win, SPItem *item, Geom::Point const p)
 Set tool to appropriate one to edit 'item'.
 
void tool_preferences (Glib::ustring const &tool, InkscapeWindow *win)
 Open preferences page for tool.
 
void tool_toggle (Glib::ustring const &tool, InkscapeWindow *win)
 Toggle between "Selector" and last used tool.
 
Glib::ustring get_active_tool (SPDesktop *desktop)
 
int get_active_tool_enum (SPDesktop *desktop)
 
void set_active_tool (SPDesktop *desktop, Glib::ustring const &tool)
 
void set_active_tool (SPDesktop *desktop, SPItem *item, Geom::Point const p)
 
void add_actions_tools (InkscapeWindow *win)
 

Variables

const Glib::ustring SECTION = NC_("Action Section", "Tool Switch")
 
std::vector< std::vector< Glib::ustring > > raw_data_tools
 

Function Documentation

◆ add_actions_tools()

void add_actions_tools ( InkscapeWindow win)

◆ get_active_tool() [1/2]

◆ get_active_tool() [2/2]

Glib::ustring get_active_tool ( SPDesktop desktop)

Definition at line 253 of file actions-tools.cpp.

References desktop, get_active_tool(), and SPDesktop::getInkscapeWindow().

◆ get_active_tool_enum() [1/2]

int get_active_tool_enum ( InkscapeWindow win)

Definition at line 62 of file actions-tools.cpp.

References get_active_tool(), and get_tool_data().

Referenced by get_active_tool_enum().

◆ get_active_tool_enum() [2/2]

int get_active_tool_enum ( SPDesktop desktop)

◆ open_tool_preferences()

void open_tool_preferences ( InkscapeWindow win,
Glib::ustring const &  tool 
)

Definition at line 78 of file actions-tools.cpp.

References tool_preferences().

◆ set_active_tool() [1/4]

◆ set_active_tool() [2/4]

void set_active_tool ( InkscapeWindow win,
SPItem item,
Geom::Point const  p 
)

◆ set_active_tool() [3/4]

void set_active_tool ( SPDesktop desktop,
Glib::ustring const &  tool 
)

Definition at line 265 of file actions-tools.cpp.

References desktop, SPDesktop::getInkscapeWindow(), and set_active_tool().

◆ set_active_tool() [4/4]

void set_active_tool ( SPDesktop desktop,
SPItem item,
Geom::Point const  p 
)

Definition at line 271 of file actions-tools.cpp.

References desktop, SPDesktop::getInkscapeWindow(), item, and set_active_tool().

◆ tool_preferences()

◆ tool_switch()

void tool_switch ( Glib::ustring const &  tool,
InkscapeWindow win 
)

◆ tool_toggle()

void tool_toggle ( Glib::ustring const &  tool,
InkscapeWindow win 
)

Toggle between "Selector" and last used tool.

Definition at line 219 of file actions-tools.cpp.

References InkscapeWindow::get_desktop(), show_output(), and tool_switch().

Referenced by add_actions_tools().

Variable Documentation

◆ raw_data_tools

std::vector<std::vector<Glib::ustring> > raw_data_tools

Definition at line 279 of file actions-tools.cpp.

Referenced by add_actions_tools().

◆ SECTION

const Glib::ustring SECTION = NC_("Action Section", "Tool Switch")

Definition at line 277 of file actions-tools.cpp.