ktoolbarlabelaction.h
/* This file is part of the KDE libraries
Copyright (C) 2004 Felix Berger <felixberger@beldesign.de>
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 KTOOLBARLABELACTION_H
#define KTOOLBARLABELACTION_H
#include <kactionclasses.h>
class QLabel;
class KDEUI_EXPORT KToolBarLabelAction : public KWidgetAction
{
public:
KToolBarLabelAction(const QString &text,
const KShortcut &cut,
const QObject *receiver, const char *slot,
KActionCollection *parent, const char *name);
KToolBarLabelAction(QWidget* buddy, const QString &text,
const KShortcut &cut,
const QObject *receiver, const char *slot,
KActionCollection *parent, const char *name);
KToolBarLabelAction(QLabel* label, const KShortcut &cut,
const QObject *receiver, const char *slot,
KActionCollection* parent, const char *name);
virtual ~KToolBarLabelAction();
virtual void setText(const QString& text);
virtual void setBuddy(QWidget* buddy);
QWidget* buddy() const;
QLabel* label() const;
protected:
virtual void virtual_hook(int id, void* data);
private:
class KToolBarLabelActionPrivate;
KToolBarLabelActionPrivate *d;
void init();
};
#endif
KActionCollection
A managed set of KAction objects.
Definition: kactioncollection.h:78
KWidgetAction
An action that automatically embeds a widget into a toolbar.
Definition: kactionclasses.h:1298
KShortcut
KToolBarLabelAction
Class to display a label in a toolbar.
Definition: ktoolbarlabelaction.h:49
KAction::setText
virtual void setText(const QString &text)
Sets the text associated with this action.
Definition: kaction.cpp:863

KDE Home | KDE Accessibility Home | Description of Access Keys