kdeui Library API Documentation

KStdGuiItem Class Reference

Provides a set of standardized KGuiItems. More...

#include <kstdguiitem.h>

List of all members.

Public Types

enum  BidiMode { UseRTL = 0, IgnoreRTL }
enum  StdItem {
  Ok = 1, Cancel, Yes, No,
  Discard, Save, DontSave, SaveAs,
  Apply, Clear, Help, Defaults,
  Close, Back, Forward, Print,
  Continue, Open, Quit, AdminMode,
  Reset, Delete, Insert
}

Static Public Member Functions

KGuiItem guiItem (StdItem ui_enum)
QString stdItem (StdItem ui_enum)
KGuiItem ok ()
KGuiItem cancel ()
KGuiItem yes ()
KGuiItem no ()
KGuiItem insert ()
KGuiItem discard ()
KGuiItem save ()
KGuiItem help ()
KGuiItem dontSave ()
KGuiItem saveAs ()
KGuiItem apply ()
KGuiItem clear ()
KGuiItem defaults ()
KGuiItem close ()
KGuiItem print ()
KGuiItem reset ()
KGuiItem adminMode ()
KGuiItem cont ()
KGuiItem del ()
KGuiItem open ()
KGuiItem back (BidiMode useBidi=IgnoreRTL)
KGuiItem forward (BidiMode useBidi=IgnoreRTL)
QPair< KGuiItem, KGuiItembackAndForward ()
KGuiItem quit ()


Detailed Description

Provides a set of standardized KGuiItems.

The various static methods returns standardized KGuiItem's conforming to the KDE UI Standards. Use them instead of creating your own.

Author:
Holger Freyther <freyther@kde.org>

Definition at line 37 of file kstdguiitem.h.


Member Enumeration Documentation

enum KStdGuiItem::BidiMode
 

The back and forward items by default use the RTL settings for Hebrew and Arab countries.

If you want those actions to ignore the RTL value and force 'Western' behavior instead, use the IgnoreRTL value instead. Definition at line 45 of file kstdguiitem.h.


Member Function Documentation

KGuiItem KStdGuiItem::adminMode  )  [static]
 

Returns a KGuiItem suiting for cases where code or functionality runs under root privileges.

Used in conjunction with KConfig Modules. Definition at line 137 of file kstdguiitem.cpp.

KGuiItem KStdGuiItem::cont  )  [static]
 

Returns a "continue" item.

The short name is due to "continue" being a reserved word in the C++ language. Definition at line 198 of file kstdguiitem.cpp.

KGuiItem KStdGuiItem::del  )  [static]
 

Returns a "delete" item.

The short name is due to "delete" being a reserved word in the C++ language.

Since:
3.3
Definition at line 204 of file kstdguiitem.cpp.

KGuiItem KStdGuiItem::back BidiMode  useBidi = IgnoreRTL  )  [static]
 

Return a GUI item for a 'back' action, like Konqueror's back button.

This GUI item can optionally honor the user's setting for BiDi, so the icon for right-to-left languages (Hebrew and Arab) has the arrow pointing in the opposite direction. By default the arrow points in the Western 'back' direction (i.e. to the left). This is because usually you only want the Bidi aware GUI item if you also want the 'forward' item. Those two are available in the separate backAndForward() method. Definition at line 170 of file kstdguiitem.cpp.

Referenced by backAndForward(), and KWizard::KWizard().

KGuiItem KStdGuiItem::forward BidiMode  useBidi = IgnoreRTL  )  [static]
 

Return a GUI item for a 'forward' action, like Konqueror's forward button.

This GUI item can optionally honor the user's setting for BiDi, so the icon for right-to-left languages (Hebrew and Arab) has the arrow pointing in the opposite direction. By default the arrow points in the Western 'forward' direction (i.e. to the right). This is because usually you only want the Bidi aware GUI item if you also want the 'back' item. Those two are available in the separate backAndForward() method. Definition at line 178 of file kstdguiitem.cpp.

Referenced by backAndForward(), and KWizard::KWizard().

QPair< KGuiItem, KGuiItem > KStdGuiItem::backAndForward  )  [static]
 

Return both a back and a forward item.

This function always returns items that are aware of the Right-to-Left setting for Arab and Hebrew locales. If you have a reason for wanting the 'Western' back/forward buttons, please use the back() and forward() items instead. Definition at line 186 of file kstdguiitem.cpp.

References back(), and forward().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdeui Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:40:40 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003