1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8                           linkbutton.h  -  description
9                              -------------------
10     begin                : Wed Jul 11 2001
11     copyright            : (C) 2001 by Franz Schmid
12     email                : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 
15 /***************************************************************************
16  *                                                                         *
17  *   This program is free software; you can redistribute it and/or modify  *
18  *   it under the terms of the GNU General Public License as published by  *
19  *   the Free Software Foundation; either version 2 of the License, or     *
20  *   (at your option) any later version.                                   *
21  *                                                                         *
22  ***************************************************************************/
23 
24 #ifndef LINKBUTTON_H
25 #define LINKBUTTON_H
26 
27 #include <QToolButton>
28 #include "scribusapi.h"
29 
30 /**
31   *@author Franz Schmid
32   */
33 
34 class SCRIBUS_API LinkButton : public QToolButton
35 {
36 	Q_OBJECT
37 
38 public:
39 	/*!
40 	\author Franz Schmid
41 	\brief Constructor for Link buttons
42 	\param pa Parent Window
43 	 */
44 	LinkButton(QWidget *pa);
~LinkButton()45 	~LinkButton() {};
46 
47 	/*!
48 	\author Franz Schmid
49 	\brief Returns size of QPixmap, see the Qt-Documentation for further explaining of that.
50 	\retval QSize size
51 	*/
52 	virtual QSize sizeHint() const;
53 	/*!
54 	\author Franz Schmid
55 	\brief Returns minimum size of QPixmap, see the Qt-Documentation for further explaining of that.
56 	\retval QSize size
57 	*/
58 	virtual QSize minimumSizeHint() const;
59 
60 protected slots:
61 	void iconSetChange();
62 };
63 
64 #endif
65