Start to fix some error
[kdeartwork.git] / kwin-styles / riscos / StickyButton.h
blob4a07cc097a66455c81c57bc0f171ddc37021fd41
1 /*
2 RISC OS KWin client
4 Copyright 2000
5 Rik Hemsley <rik@kde.org>
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #ifndef RISC_OS_STICKY_BUTTON_H
24 #define RISC_OS_STICKY_BUTTON_H
26 #include "Button.h"
27 //Added by qt3to4:
28 #include <QMouseEvent>
30 namespace RiscOS
33 class StickyButton : public Button
35 Q_OBJECT
37 public:
39 StickyButton(QWidget *parent);
41 public slots:
43 void setOn(bool);
45 signals:
47 void toggleSticky();
49 protected:
51 void mouseReleaseEvent(QMouseEvent *);
53 private:
55 bool on_;
58 } // End namespace
60 #endif
62 // vim:ts=2:sw=2:tw=78