21#include <QtGui/QApplication>
32 case Ok :
return ok();
35 case No :
return no();
37 case Save :
return save();
39 case SaveAs :
return saveAs();
41 case Clear :
return clear();
42 case Help :
return help();
43 case Close :
return close();
47 case Back :
return back();
48 case Forward :
return forward();
49 case Print :
return print();
51 case Open :
return open();
52 case Quit :
return quit();
56 case Insert :
return insert();
58 case Find :
return find();
72 case Ok :
return QLatin1String(
"ok");
73 case Cancel :
return QLatin1String(
"cancel");
74 case Yes :
return QLatin1String(
"yes");
75 case No :
return QLatin1String(
"no");
76 case Discard :
return QLatin1String(
"discard");
77 case Save :
return QLatin1String(
"save");
78 case DontSave :
return QLatin1String(
"dontSave");
79 case SaveAs :
return QLatin1String(
"saveAs");
80 case Apply :
return QLatin1String(
"apply");
81 case Help :
return QLatin1String(
"help");
82 case Close :
return QLatin1String(
"close");
83 case CloseWindow :
return QLatin1String(
"closeWindow");
85 case Defaults :
return QLatin1String(
"defaults");
86 case Back :
return QLatin1String(
"back");
87 case Forward :
return QLatin1String(
"forward");
88 case Print :
return QLatin1String(
"print");
89 case Continue :
return QLatin1String(
"continue");
90 case Open :
return QLatin1String(
"open");
91 case Quit :
return QLatin1String(
"quit");
92 case AdminMode:
return QLatin1String(
"adminMode");
93 case Delete :
return QLatin1String(
"delete");
94 case Insert :
return QLatin1String(
"insert");
95 case Configure:
return QLatin1String(
"configure");
96 case Find :
return QLatin1String(
"find");
97 case Stop :
return QLatin1String(
"stop");
98 case Add :
return QLatin1String(
"add");
99 case Remove :
return QLatin1String(
"remove");
100 case Test :
return QLatin1String(
"test");
101 case Properties :
return QLatin1String(
"properties");
102 case Overwrite :
return QLatin1String(
"overwrite");
103 default :
return QString();
130 return KGuiItem(
i18n(
"&Discard" ),
"edit-clear",
i18n(
"Discard changes" ),
131 i18n(
"Pressing this button will discard all recent "
132 "changes made in this dialog." ) );
143 i18n(
"Do not save data" ) );
148 return KGuiItem(
i18n(
"Save &As..." ),
"document-save-as",
149 i18n(
"Save file with another name" ) );
154 return KGuiItem(
i18n(
"&Apply" ),
"dialog-ok-apply",
i18n(
"Apply changes" ),
155 i18n(
"When you click <b>Apply</b>, the settings will be "
156 "handed over to the program, but the dialog "
157 "will not be closed.\n"
158 "Use this to try different settings." ) );
163 return KGuiItem(
i18n(
"Administrator &Mode..." ),
"",
i18n(
"Enter Administrator Mode" ),
164 i18n(
"When you click <b>Administrator Mode</b> you will be prompted "
165 "for the administrator (root) password in order to make changes "
166 "which require root privileges." ) );
172 i18n(
"Clear input" ),
173 i18n(
"Clear the input in the edit field" ) );
178 return KGuiItem(
i18nc(
"show help",
"&Help" ),
"help-contents",
179 i18n(
"Show help" ) );
185 i18n(
"Close the current window or document" ) );
190 return KGuiItem(
i18n(
"&Close Window" ),
"window-close",
191 i18n(
"Close the current window." ) );
196 return KGuiItem(
i18n(
"&Close Document" ),
"document-close",
197 i18n(
"Close the current document." ) );
202 return KGuiItem(
i18n(
"&Defaults" ),
"document-revert",
203 i18n(
"Reset all items to their default values" ) );
208 QString icon = ( useBidi ==
UseRTL && QApplication::isRightToLeft() )
209 ?
"go-next" :
"go-previous";
211 i18n(
"Go back one step" ) );
216 QString icon = ( useBidi ==
UseRTL && QApplication::isRightToLeft() )
217 ?
"go-previous" :
"go-next";
219 i18n(
"Go forward one step" ) );
230 i18n(
"Opens the print dialog to print "
231 "the current document" ) );
237 i18n(
"Continue operation" ) );
243 i18n(
"Delete item(s)" ) );
249 i18n(
"Open file" ) );
255 i18n(
"Quit application" ) );
261 i18n(
"Reset configuration" ) );
271 return KGuiItem(
i18n(
"Confi&gure..." ),
"configure" );
301 return KGuiItem(
i18n(
"Properties"),
"document-properties");
Returns true if this action is enabled to have a global shortcut.
An abstract class for GUI data such as ToolTip and Icon.
QString i18n(const char *text)
QString i18nc(const char *ctxt, const char *text)
int open(const QString &pathname, int flags, mode_t mode)
Provides a set of standardized KGuiItems.
KGuiItem reset()
Returns the 'Reset' gui item.
KGuiItem add()
Returns the 'Add' gui item.
BidiMode
The back and forward items by default use the RTL settings for Hebrew and Arab countries.
KGuiItem remove()
Returns the 'Remove' gui item.
KGuiItem yes()
Returns the 'Yes' gui item.
KGuiItem overwrite()
Returns the 'Overwrite' gui item.
KGuiItem properties()
Returns the 'Properties' gui item.
KGuiItem cont()
Returns the 'Continue' gui item.
KGuiItem stop()
Returns the 'Stop' gui item.
KGuiItem configure()
Returns the 'Configure' gui item.
KGuiItem no()
Returns the 'No' gui item.
QString standardItem(StandardItem ui_enum)
Returns the name of the gui item for the given identifier.
KGuiItem cancel()
Returns the 'Cancel' gui item.
KGuiItem defaults()
Returns the 'Defaults' gui item.
KGuiItem dontSave()
Returns the 'DontSave' gui item.
KGuiItem apply()
Returns the 'Apply' gui item.
KGuiItem ok()
Returns the 'Ok' gui item.
KGuiItem test()
Returns the 'Test' gui item.
KGuiItem discard()
Returns the 'Discard' gui item.
KGuiItem del()
Returns the 'Delete' gui item.
KGuiItem closeDocument()
Returns the 'CloseDocument' gui item.
QPair< KGuiItem, KGuiItem > backAndForward()
Return both a back and a forward gui item.
KGuiItem guiItem(StandardItem ui_enum)
Returns the gui item for the given identifier.
KGuiItem closeWindow()
Returns the 'CloseWindow' gui item.
KGuiItem adminMode()
Returns a KGuiItem suiting for cases where code or functionality runs under root privileges.