ktoolbarhandler.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#ifndef KBARHANDLER_H
00020
#define KBARHANDLER_H
00021
00022
#include <qobject.h>
00023
#include <qguardedptr.h>
00024
#include <kxmlguiclient.h>
00025
00026
class KMainWindow;
00027
class KToolBar;
00028
00029
namespace KDEPrivate
00030 {
00031
00033 class ToolBarHandler :
public QObject,
00034
public KXMLGUIClient
00035 {
00036 Q_OBJECT
00037
public:
00038
ToolBarHandler(
KMainWindow *mainWindow,
const char *name = 0 );
00039
ToolBarHandler(
KMainWindow *mainWindow,
QObject *parent,
const char *name = 0 );
00040
virtual ~
ToolBarHandler();
00041
00042
KAction *toolBarMenuAction();
00043
00044
public slots:
00045
void setupActions();
00046
00047
private slots:
00048
void clientAdded(
KXMLGUIClient *client );
00049
00050
private:
00051
void init(
KMainWindow *mainWindow );
00052
void connectToActionContainers();
00053
void connectToActionContainer(
KAction *action );
00054
void connectToActionContainer(
QWidget *container );
00055
00056
struct Data;
00057 Data *d;
00058
00059
QGuardedPtr<KMainWindow> m_mainWindow;
00060
QPtrList<KAction> m_actions;
00061
QPtrList<KToolBar> m_toolBars;
00062 };
00063
00064 }
00065
00066
#endif // KBARHANDLER_H
00067
00068
00069
This file is part of the documentation for kdeui Library Version 3.3.0.