kdeui Library API Documentation

kstdguiitem.h

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., 59 Temple Place - Suite 330, 00016 Boston, MA 02111-1307, 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 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 }; 00053 static KGuiItem guiItem ( StdItem ui_enum ); 00054 static QString stdItem ( StdItem ui_enum ); 00055 static KGuiItem ok(); 00056 static KGuiItem cancel(); 00057 static KGuiItem yes(); 00058 static KGuiItem no(); 00059 static KGuiItem insert(); 00060 static KGuiItem discard(); 00061 static KGuiItem save(); 00062 static KGuiItem help(); 00063 static KGuiItem dontSave(); 00064 static KGuiItem saveAs(); 00065 static KGuiItem apply(); 00066 static KGuiItem clear(); 00067 static KGuiItem defaults(); 00068 static KGuiItem close(); 00069 static KGuiItem print(); 00070 static KGuiItem reset(); 00075 static KGuiItem adminMode(); 00076 00081 static KGuiItem cont(); 00082 00088 static KGuiItem del(); 00089 00090 static KGuiItem open(); 00091 00102 static KGuiItem back( BidiMode useBidi = IgnoreRTL ); 00103 00114 static KGuiItem forward( BidiMode useBidi = IgnoreRTL ); 00115 00122 static QPair<KGuiItem, KGuiItem> backAndForward(); 00123 00124 static KGuiItem quit(); 00125 }; 00126 00127 #endif 00128 00129 // vim: set et ts=4 sw=4 sts=4: 00130
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:43:29 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003