SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / ui / toolaction.h
blob61476468e1f3cbc2ac328b9ea957e112e8b01234
1 /***************************************************************************
2 * Copyright (C) 2004-2006 by Albert Astals Cid <tsdgeos@terra.es> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef TOOLACTION_H
11 #define TOOLACTION_H
13 #include <qlist.h>
14 #include <qpointer.h>
16 #include <kaction.h>
18 class QToolButton;
20 class ToolAction : public KAction
22 Q_OBJECT
24 public:
25 ToolAction( QObject *parent = 0 );
26 virtual ~ToolAction();
28 void addAction( QAction *action );
30 protected:
31 virtual QWidget* createWidget( QWidget *parent );
33 private slots:
34 void slotNewDefaultAction( QAction *action );
36 private:
37 QList< QPointer< QToolButton > > m_buttons;
38 QList< QAction * > m_actions;
41 #endif