System notice: In light of the Debian OpenSSL security issue we've regenerated the server keys. See this thread for instructions and the new key fingerprints.

Blob of src/sif/private/footerwidget.h (raw blob data)

1 /***************************************************************************
2 * Copyright (C) 2008 by David Cuadrado *
3 * krawek@gmail.com *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20 #ifndef SIFPRIVATEFOOTERWIDGET_H
21 #define SIFPRIVATEFOOTERWIDGET_H
22
23 #include <QWidget>
24 #include <QIcon>
25
26 namespace SIF {
27 class AeroButton;
28 }
29
30 namespace SIFPrivate {
31 class HeaderWidget;
32 class ButtonArea;
33
34 /**
35 @author David Cuadrado <krawek@gmail.com>
36 */
37 class FooterWidget : public QWidget
38 {
39 Q_OBJECT;
40 public:
41 FooterWidget(HeaderWidget *header, QWidget *parent = 0);
42 ~FooterWidget();
43
44 void setBackground(const QBrush &background);
45
46 SIF::AeroButton *addButton(const QString &title, const QIcon &icon = QIcon());
47
48 protected:
49 void resizeEvent(QResizeEvent *e);
50 virtual void mousePressEvent(QMouseEvent *e);
51 virtual void mouseMoveEvent(QMouseEvent *e);
52 virtual void mouseReleaseEvent(QMouseEvent *e);
53
54 private:
55 ButtonArea *m_buttonArea;
56 HeaderWidget *m_header;
57 QPoint m_dragPosition;
58 bool m_dragging;
59 };
60
61 }
62
63 #endif