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 00028 class KStdGuiItem 00029 { 00030 public: 00036 enum BidiMode { UseRTL = 0, IgnoreRTL }; 00037 00038 enum StdItem 00039 { 00040 Ok=1, Cancel, Yes, No, Discard, Save, DontSave, SaveAs, 00041 Apply, Clear, Help, Defaults, Close, Back, Forward, Print, 00042 Continue, Open, Quit 00043 }; 00044 static KGuiItem guiItem ( StdItem ui_enum ); 00045 static QString stdItem ( StdItem ui_enum ); 00046 static KGuiItem ok(); 00047 static KGuiItem cancel(); 00048 static KGuiItem yes(); 00049 static KGuiItem no(); 00050 static KGuiItem discard(); 00051 static KGuiItem save(); 00052 static KGuiItem help(); 00053 static KGuiItem dontSave(); 00054 static KGuiItem saveAs(); 00055 static KGuiItem apply(); 00056 static KGuiItem clear(); 00057 static KGuiItem defaults(); 00058 static KGuiItem close(); 00059 static KGuiItem print(); 00063 static KGuiItem cont(); 00064 static KGuiItem open(); 00065 00076 static KGuiItem back( BidiMode useBidi = IgnoreRTL ); 00077 00088 static KGuiItem forward( BidiMode useBidi = IgnoreRTL ); 00089 00096 static QPair<KGuiItem, KGuiItem> backAndForward(); 00097 00098 static KGuiItem quit(); 00099 }; 00100 00101 #endif 00102 00103 // vim: set et ts=4 sw=4 sts=4: 00104
KDE Logo
This file is part of the documentation for kdeui Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:14:28 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003