kstdguiitem.h
/* This file is part of the KDE libraries
Copyright (C) 2001 Holger Freyther <freyther@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __kstdguiitem_h
#define __kstdguiitem_h
// Needed for the template below
#include <kguiitem.h>
#include <qstring.h>
#include <qpair.h>
class KDEUI_EXPORT KStdGuiItem
{
public:
enum BidiMode { UseRTL = 0, IgnoreRTL };
enum StdItem
{
Ok=1, Cancel, Yes, No, Discard, Save, DontSave, SaveAs,
Apply, Clear, Help, Defaults, Close, Back, Forward, Print,
Continue, Open, Quit, AdminMode, Reset, Delete, Insert,
Configure,
Find,
Stop,
Add,
Remove,
Test,
Properties,
Overwrite
};
static KGuiItem guiItem ( StdItem ui_enum );
static QString stdItem ( StdItem ui_enum );
static KGuiItem ok();
static KGuiItem cancel();
static KGuiItem yes();
static KGuiItem no();
static KGuiItem insert();
static KGuiItem discard();
static KGuiItem save();
static KGuiItem help();
static KGuiItem dontSave();
static KGuiItem saveAs();
static KGuiItem apply();
static KGuiItem clear();
static KGuiItem defaults();
static KGuiItem close();
static KGuiItem print();
static KGuiItem properties();
static KGuiItem reset();
static KGuiItem overwrite();
static KGuiItem adminMode();
static KGuiItem cont();
static KGuiItem del();
static KGuiItem open();
static KGuiItem back( BidiMode useBidi = IgnoreRTL );
static KGuiItem forward( BidiMode useBidi = IgnoreRTL );
static KGuiItem configure();
static QPair<KGuiItem, KGuiItem> backAndForward();
static KGuiItem quit();
static KGuiItem find();
static KGuiItem stop();
static KGuiItem add();
static KGuiItem remove();
static KGuiItem test();
};
#endif
// vim: set et ts=4 sw=4 sts=4:
KStdGuiItem::Configure
Definition: kstdguiitem.h:52
KStdGuiItem::Properties
Definition: kstdguiitem.h:58
KStdGuiItem::Stop
Definition: kstdguiitem.h:54
KStdGuiItem::Find
Definition: kstdguiitem.h:53
KGuiItem
An abstract class for GUI data such as ToolTip and Icon.
Definition: kguiitem.h:38
KStdGuiItem::Add
Definition: kstdguiitem.h:55
KStdGuiItem::StdItem
StdItem
Definition: kstdguiitem.h:47
KStdGuiItem::Test
Definition: kstdguiitem.h:57
KStdGuiItem::BidiMode
BidiMode
The back and forward items by default use the RTL settings for Hebrew and Arab countries.
Definition: kstdguiitem.h:45
KStdGuiItem::Remove
Definition: kstdguiitem.h:56
KStdGuiItem
Provides a set of standardized KGuiItems.
Definition: kstdguiitem.h:37

KDE Home | KDE Accessibility Home | Description of Access Keys