• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

kstdguiitem.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2001 Holger Freyther <freyther@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef __kstdguiitem_h
00020 #define __kstdguiitem_h
00021 
00022 // Needed for the template below
00023 #include <kguiitem.h>
00024 
00025 #include <qstring.h>
00026 #include <qpair.h>
00027 
00037 class KDEUI_EXPORT KStdGuiItem
00038 {
00039 public:
00045     enum BidiMode { UseRTL = 0, IgnoreRTL };
00046 
00047     enum StdItem
00048     {
00049         Ok=1, Cancel, Yes, No, Discard, Save, DontSave, SaveAs,
00050         Apply, Clear, Help, Defaults, Close, Back, Forward, Print,
00051         Continue, Open, Quit, AdminMode, Reset, Delete, Insert,
00052     Configure,    
00053         Find,         
00054     Stop,         
00055     Add,          
00056     Remove,       
00057     Test,         
00058     Properties,   
00059     Overwrite     
00060     };
00061     static KGuiItem guiItem ( StdItem ui_enum );
00062     static QString  stdItem ( StdItem ui_enum );
00063     static KGuiItem ok();
00064     static KGuiItem cancel();
00065     static KGuiItem yes();
00066     static KGuiItem no();
00067     static KGuiItem insert();
00068     static KGuiItem discard();
00069     static KGuiItem save();
00070     static KGuiItem help();
00071     static KGuiItem dontSave();
00072     static KGuiItem saveAs();
00073     static KGuiItem apply();
00074     static KGuiItem clear();
00075     static KGuiItem defaults();
00076     static KGuiItem close();
00077     static KGuiItem print();
00081     static KGuiItem properties();
00082     static KGuiItem reset();
00086     static KGuiItem overwrite();
00091     static KGuiItem adminMode();
00092 
00097     static KGuiItem cont();
00098 
00104     static KGuiItem del();
00105 
00106     static KGuiItem open();
00107 
00118     static KGuiItem back( BidiMode useBidi = IgnoreRTL );
00119 
00130     static KGuiItem forward( BidiMode useBidi = IgnoreRTL );
00131 
00136     static KGuiItem configure();
00137 
00144     static QPair<KGuiItem, KGuiItem> backAndForward();
00145 
00146     static KGuiItem quit();
00147 
00152     static KGuiItem find();
00153 
00158     static KGuiItem stop();
00159 
00164     static KGuiItem add();
00165 
00170     static KGuiItem remove();
00171 
00176     static KGuiItem test();
00177 
00178 };
00179 
00180 #endif
00181 
00182 // vim: set et ts=4 sw=4 sts=4:
00183 

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal