SVN_SILENT made messages (.desktop file)
[kdeartwork.git] / kwin-styles / riscos / IconifyButton.cpp
blob311b8adb7d8e8f63327c99ec97e96fdaaaa39b58
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 #include "IconifyButton.h"
24 //Added by qt3to4:
25 #include <QPixmap>
26 #include <QMouseEvent>
28 namespace RiscOS
31 /* XPM */
32 static const char * const iconify_xpm[] = {
33 "12 12 3 1",
34 " c None",
35 ". c #000000",
36 "+ c #FFFFFF",
37 " ",
38 " ",
39 " ",
40 " ",
41 " .......... ",
42 ".++++++++++.",
43 ".++++++++++.",
44 " .......... ",
45 " ",
46 " ",
47 " ",
48 " "};
50 IconifyButton::IconifyButton(QWidget *parent)
51 : Button(parent, i18n("Minimize"))
53 setPixmap(QPixmap((const char **)iconify_xpm));
56 void IconifyButton::mouseReleaseEvent(QMouseEvent *e)
58 Button::mouseReleaseEvent(e);
60 if (!rect().contains(e->pos()))
61 return;
63 emit(iconify());
66 } // End namespace;
68 // vim:ts=2:sw=2:tw=78
69 #include "IconifyButton.moc"