| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# 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
    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
    00075     static KGuiItem back( BidiMode useBidi = IgnoreRTL );
    00076
    00087     static KGuiItem forward( BidiMode useBidi = IgnoreRTL );
    00088
    00095     static QPair<KGuiItem, KGuiItem> backAndForward();
    00096 };
    00097
    00098 #endif
    00099
    00100 // vim: set et ts=4 sw=4 sts=4:
    00101

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:57:45 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001