Changeset View
Changeset View
Standalone View
Standalone View
src/kstandardaction_p.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 40 | static const KStandardActionInfo g_rgActionInfo[] = { | |||
---|---|---|---|---|---|
108 | { Help, KStandardShortcut::Help, "help", nullptr, nullptr, "help-contents" }, | 108 | { Help, KStandardShortcut::Help, "help", nullptr, nullptr, "help-contents" }, | ||
109 | { HelpContents, KStandardShortcut::Help, "help_contents", I18N_NOOP("%1 &Handbook"), nullptr, "help-contents" }, | 109 | { HelpContents, KStandardShortcut::Help, "help_contents", I18N_NOOP("%1 &Handbook"), nullptr, "help-contents" }, | ||
110 | { WhatsThis, KStandardShortcut::WhatsThis, "help_whats_this", I18N_NOOP("What's &This?"), nullptr, "help-contextual" }, | 110 | { WhatsThis, KStandardShortcut::WhatsThis, "help_whats_this", I18N_NOOP("What's &This?"), nullptr, "help-contextual" }, | ||
111 | { TipofDay, KStandardShortcut::TipofDay, "help_show_tip", I18N_NOOP("Tip of the &Day"), nullptr, "help-hint" }, | 111 | { TipofDay, KStandardShortcut::TipofDay, "help_show_tip", I18N_NOOP("Tip of the &Day"), nullptr, "help-hint" }, | ||
112 | { ReportBug, KStandardShortcut::ReportBug, "help_report_bug", I18N_NOOP("&Report Bug..."), nullptr, "tools-report-bug" }, | 112 | { ReportBug, KStandardShortcut::ReportBug, "help_report_bug", I18N_NOOP("&Report Bug..."), nullptr, "tools-report-bug" }, | ||
113 | { SwitchApplicationLanguage, KStandardShortcut::SwitchApplicationLanguage, "switch_application_language", I18N_NOOP("Switch Application &Language..."), nullptr, "preferences-desktop-locale" }, | 113 | { SwitchApplicationLanguage, KStandardShortcut::SwitchApplicationLanguage, "switch_application_language", I18N_NOOP("Switch Application &Language..."), nullptr, "preferences-desktop-locale" }, | ||
114 | { AboutApp, KStandardShortcut::AccelNone, "help_about_app", I18N_NOOP("&About %1"), nullptr, nullptr }, | 114 | { AboutApp, KStandardShortcut::AccelNone, "help_about_app", I18N_NOOP("&About %1"), nullptr, nullptr }, | ||
115 | { AboutKDE, KStandardShortcut::AccelNone, "help_about_kde", I18N_NOOP("About &KDE"), nullptr, "kde" }, | 115 | { AboutKDE, KStandardShortcut::AccelNone, "help_about_kde", I18N_NOOP("About &KDE"), nullptr, "kde" }, | ||
116 | { DeleteFile, KStandardShortcut::DeleteFile, "deletefile", I18N_NOOP("&Delete File"), nullptr, "edit-delete" }, | 116 | { DeleteFile, KStandardShortcut::DeleteFile, "deletefile", I18N_NOOP("&Delete"), nullptr, "edit-delete" }, | ||
117 | { RenameFile, KStandardShortcut::RenameFile, "renamefile", I18N_NOOP("&Rename File"), nullptr, "edit-rename" }, | 117 | { RenameFile, KStandardShortcut::RenameFile, "renamefile", I18N_NOOP("&Rename..."), nullptr, "edit-rename" }, | ||
118 | { MoveToTrash, KStandardShortcut::MoveToTrash, "movetotrash", I18N_NOOP("&Move to Trash"), nullptr, "edit-delete" }, | 118 | { MoveToTrash, KStandardShortcut::MoveToTrash, "movetotrash", I18N_NOOP("&Move to Trash"), nullptr, "edit-delete" }, | ||
119 | { Donate, KStandardShortcut::Donate, "help_donate", I18N_NOOP("&Donate"), nullptr, "help-donate"}, | 119 | { Donate, KStandardShortcut::Donate, "help_donate", I18N_NOOP("&Donate"), nullptr, "help-donate"}, | ||
120 | { ActionNone, KStandardShortcut::AccelNone, nullptr, nullptr, nullptr, nullptr } | 120 | { ActionNone, KStandardShortcut::AccelNone, nullptr, nullptr, nullptr, nullptr } | ||
121 | }; | 121 | }; | ||
122 | 122 | | |||
123 | inline const KStandardActionInfo *infoPtr(StandardAction id) | 123 | inline const KStandardActionInfo *infoPtr(StandardAction id) | ||
124 | { | 124 | { | ||
125 | for (uint i = 0; g_rgActionInfo[i].id != ActionNone; i++) { | 125 | for (uint i = 0; g_rgActionInfo[i].id != ActionNone; i++) { | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |