16#include <glibmm/i18n.h>
17#include <sigc++/adaptors/bind.h>
37 Glib::ustring filename =
name +
".svg";
40 if (!filename.empty()) {
43 app->desktopOpen(doc);
47 sp_ui_error_dialog(_(
"The tutorial files are not installed.\nFor Linux, you may need to install "
48 "'inkscape-tutorials'; for Windows, please re-run the setup and select 'Tutorials'.\nThe "
49 "tutorials can also be found online at https://inkscape.org/en/learn/tutorials/"));
53const Glib::ustring
SECTION = NC_(
"Action Section",
"Tutorial");
58 {
"app.tutorial-basic", N_(
"Inkscape: Basic"),
SECTION, N_(
"Getting started with Inkscape")},
59 {
"app.tutorial-shapes", N_(
"Inkscape: Shapes"),
SECTION, N_(
"Using shape tools to create and edit shapes")},
60 {
"app.tutorial-advanced", N_(
"Inkscape: Advanced"),
SECTION, N_(
"Advanced Inkscape topics")},
61 {
"app.tutorial-tracing", N_(
"Inkscape: Tracing"),
SECTION, N_(
"Using bitmap tracing"),},
62 {
"app.tutorial-tracing-pixelart", N_(
"Inkscape: Tracing Pixel Art"),
SECTION, N_(
"Using Trace Pixel Art dialog")},
63 {
"app.tutorial-calligraphy", N_(
"Inkscape: Calligraphy"),
SECTION, N_(
"Using the Calligraphy pen tool")},
64 {
"app.tutorial-interpolate", N_(
"Inkscape: Interpolate"),
SECTION, N_(
"Using the interpolate extension")},
65 {
"app.tutorial-design", N_(
"Elements of Design"),
SECTION, N_(
"Principles of design in the tutorial form")},
66 {
"app.tutorial-tips", N_(
"Tips and Tricks"),
SECTION, N_(
"Miscellaneous tips and tricks")},
67 {
"app.about", N_(
"About Inkscape"),
SECTION, N_(
"Inkscape version, authors, license")}
81 gapp->add_action(
"tutorial-basic", sigc::bind(&
help_open_tutorial,
"tutorial-basic"));
82 gapp->add_action(
"tutorial-shapes", sigc::bind(&
help_open_tutorial,
"tutorial-shapes"));
83 gapp->add_action(
"tutorial-advanced", sigc::bind(&
help_open_tutorial,
"tutorial-advanced"));
84 gapp->add_action(
"tutorial-tracing", sigc::bind(&
help_open_tutorial,
"tutorial-tracing"));
85 gapp->add_action(
"tutorial-tracing-pixelart", sigc::bind(&
help_open_tutorial,
"tutorial-tracing-pixelart"));
86 gapp->add_action(
"tutorial-calligraphy", sigc::bind(&
help_open_tutorial,
"tutorial-calligraphy"));
87 gapp->add_action(
"tutorial-interpolate", sigc::bind(&
help_open_tutorial,
"tutorial-interpolate"));
88 gapp->add_action(
"tutorial-design", sigc::bind(&
help_open_tutorial,
"tutorial-elements"));
A dialog for the about screen.
const Glib::ustring SECTION
void help_open_tutorial(Glib::ustring const &name)
std::vector< std::vector< Glib::ustring > > raw_data_tutorial
void add_actions_tutorial(InkscapeApplication *app)
Authors: Sushant A A sushant.co19@gmail.com
InkActionExtraData & get_action_extra_data()
Gio::Application * gio_app()
The Gio application instance, never NULL.
static InkscapeApplication * instance()
Singleton instance.
Gtk::Application * gtk_app()
The Gtk application instance, or NULL if running headless without display.
Typed SVG document implementation.
void sp_ui_error_dialog(char const *message)
std::string get_filename(Type type, char const *filename, bool localized, bool silent)
Inkscape::IO::Resource - simple resource API.