okular/ui/toolaction.h
Pino Toscano 7eb8659d4f Add a tool button in the toolbar with the "select" actions.
Preparing a bit for separating rectangular text selection and rectangular image selection.

svn path=/trunk/KDE/kdegraphics/okular/; revision=712381
2007-09-14 10:02:33 +00:00

41 lines
1.2 KiB
C++

/***************************************************************************
* Copyright (C) 2004-2006 by Albert Astals Cid <tsdgeos@terra.es> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef TOOLACTION_H
#define TOOLACTION_H
#include <qlist.h>
#include <qpointer.h>
#include <kaction.h>
class QToolButton;
class ToolAction : public KAction
{
Q_OBJECT
public:
ToolAction( QObject *parent = 0 );
virtual ~ToolAction();
void addAction( QAction *action );
protected:
virtual QWidget* createWidget( QWidget *parent );
private slots:
void slotNewDefaultAction( QAction *action );
private:
QList< QPointer< QToolButton > > m_buttons;
QList< QAction * > m_actions;
};
#endif