Inkscape
Vector Graphics Editor
|
#include <actions-extra-data.h>
Public Member Functions | |
InkActionExtraData ()=default | |
std::vector< Glib::ustring > | get_actions () |
void | add_data (std::vector< std::vector< Glib::ustring > > const &raw_data) |
Glib::ustring | get_label_for_action (Glib::ustring const &action_name, bool translated=true) const |
Glib::ustring | get_section_for_action (Glib::ustring const &action_name) const |
Glib::ustring | get_tooltip_for_action (Glib::ustring const &action_name, bool translated=true, bool expanded=false) const |
bool | isSameContext (Glib::ustring const &action_one, Glib::ustring const &action_two) const |
Return true if the action/shortcut context is the same. | |
Private Attributes | |
std::unordered_map< std::string, InkActionExtraDatum > | data |
Definition at line 38 of file actions-extra-data.h.
|
default |
void InkActionExtraData::add_data | ( | std::vector< std::vector< Glib::ustring > > const & | raw_data | ) |
Definition at line 72 of file actions-extra-data.cpp.
References data.
Referenced by add_actions_base(), add_actions_dialogs(), add_actions_edit(), add_actions_effect(), add_actions_element_a(), add_actions_element_image(), add_actions_file(), add_actions_hide_lock(), add_actions_object(), add_actions_object_align(), add_actions_output(), add_actions_path(), add_actions_selection(), add_actions_selection_object(), add_actions_text(), add_actions_transform(), add_actions_tutorial(), add_actions_window(), and init_tool_shortcuts().
std::vector< Glib::ustring > InkActionExtraData::get_actions | ( | ) |
Definition at line 20 of file actions-extra-data.cpp.
References data.
Referenced by Inkscape::Shortcuts::list_all_detailed_action_names(), and Inkscape::UI::Dialog::InkscapePreferences::onKBListKeyboardShortcuts().
Glib::ustring InkActionExtraData::get_label_for_action | ( | Glib::ustring const & | action_name, |
bool | translated = true |
||
) | const |
Definition at line 30 of file actions-extra-data.cpp.
References action_name, and data.
Referenced by Inkscape::UI::Dialog::CommandPalette::generate_action_operation(), Inkscape::UI::Dialog::InkscapePreferences::onKBListKeyboardShortcuts(), and Inkscape::UI::Dialog::InkscapePreferences::onKBTreeEdited().
Glib::ustring InkActionExtraData::get_section_for_action | ( | Glib::ustring const & | action_name | ) | const |
Definition at line 44 of file actions-extra-data.cpp.
References action_name, and data.
Referenced by Inkscape::UI::Dialog::CommandPalette::generate_action_operation(), and Inkscape::UI::Dialog::InkscapePreferences::onKBListKeyboardShortcuts().
Glib::ustring InkActionExtraData::get_tooltip_for_action | ( | Glib::ustring const & | action_name, |
bool | translated = true , |
||
bool | expanded = false |
||
) | const |
Definition at line 54 of file actions-extra-data.cpp.
References action_name, and data.
Referenced by Inkscape::UI::Dialog::CommandPalette::generate_action_operation(), Inkscape::UI::Dialog::InkscapePreferences::onKBListKeyboardShortcuts(), and InkscapeApplication::print_action_list().
bool InkActionExtraData::isSameContext | ( | Glib::ustring const & | action_one, |
Glib::ustring const & | action_two | ||
) | const |
Return true if the action/shortcut context is the same.
Definition at line 89 of file actions-extra-data.cpp.
Referenced by Inkscape::UI::Dialog::InkscapePreferences::onKBTreeEdited().
|
private |
Definition at line 56 of file actions-extra-data.h.
Referenced by add_data(), get_actions(), get_label_for_action(), get_section_for_action(), and get_tooltip_for_action().