Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
InkActionExtraData Class Reference

#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, InkActionExtraDatumdata
 

Detailed Description

Definition at line 38 of file actions-extra-data.h.

Constructor & Destructor Documentation

◆ InkActionExtraData()

InkActionExtraData::InkActionExtraData ( )
default

Member Function Documentation

◆ add_data()

◆ get_actions()

std::vector< Glib::ustring > InkActionExtraData::get_actions ( )

◆ get_label_for_action()

Glib::ustring InkActionExtraData::get_label_for_action ( Glib::ustring const &  action_name,
bool  translated = true 
) const

◆ get_section_for_action()

Glib::ustring InkActionExtraData::get_section_for_action ( Glib::ustring const &  action_name) const

◆ get_tooltip_for_action()

Glib::ustring InkActionExtraData::get_tooltip_for_action ( Glib::ustring const &  action_name,
bool  translated = true,
bool  expanded = false 
) const

◆ isSameContext()

bool InkActionExtraData::isSameContext ( Glib::ustring const &  action_one,
Glib::ustring const &  action_two 
) const

Return true if the action/shortcut context is the same.

  • action_one - The action name for the first action to compare.
  • action_two - The action name for the second action to compare.
Returns
Almost always true, except for tool shortcuts which have their own contexts. Also returns true if either of the action names are empty.

Definition at line 89 of file actions-extra-data.cpp.

Referenced by Inkscape::UI::Dialog::InkscapePreferences::onKBTreeEdited().

Member Data Documentation

◆ data

std::unordered_map<std::string, InkActionExtraDatum> InkActionExtraData::data
private

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