# kdeui Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | 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
    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     };
    00060     static KGuiItem guiItem ( StdItem ui_enum );
    00061     static QString  stdItem ( StdItem ui_enum );
    00062     static KGuiItem ok();
    00063     static KGuiItem cancel();
    00064     static KGuiItem yes();
    00065     static KGuiItem no();
    00066     static KGuiItem insert();
    00067     static KGuiItem discard();
    00068     static KGuiItem save();
    00069     static KGuiItem help();
    00070     static KGuiItem dontSave();
    00071     static KGuiItem saveAs();
    00072     static KGuiItem apply();
    00073     static KGuiItem clear();
    00074     static KGuiItem defaults();
    00075     static KGuiItem close();
    00076     static KGuiItem print();
    00080     static KGuiItem properties();
    00081     static KGuiItem reset();
    00086     static KGuiItem adminMode();
    00087
    00092     static KGuiItem cont();
    00093
    00099     static KGuiItem del();
    00100
    00101     static KGuiItem open();
    00102
    00113     static KGuiItem back( BidiMode useBidi = IgnoreRTL );
    00114
    00125     static KGuiItem forward( BidiMode useBidi = IgnoreRTL );
    00126
    00131     static KGuiItem configure();
    00132
    00139     static QPair<KGuiItem, KGuiItem> backAndForward();
    00140
    00141     static KGuiItem quit();
    00142
    00147     static KGuiItem find();
    00148
    00153     static KGuiItem stop();
    00154
    00159     static KGuiItem add();
    00160
    00165     static KGuiItem remove();
    00166
    00171     static KGuiItem test();
    00172
    00173 };
    00174
    00175 #endif
    00176
    00177 // vim: set et ts=4 sw=4 sts=4:
    00178

This file is part of the documentation for kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:20:23 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003