Diffstat (limited to 'noncore/tools/remote/vcrgroup.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/remote/vcrgroup.cpp | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/noncore/tools/remote/vcrgroup.cpp b/noncore/tools/remote/vcrgroup.cpp new file mode 100644 index 0000000..4f07ca3 --- a/dev/null +++ b/noncore/tools/remote/vcrgroup.cpp | |||
@@ -0,0 +1,88 @@ | |||
1 | /* | ||
2 | Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie. | ||
3 | Copyright (C) 2002 Thomas Stephens | ||
4 | |||
5 | This program is free software; you can redistribute it and/or modify it under | ||
6 | the terms of the GNU General Public | ||
7 | License as published by the Free Software Foundation; either version 2 of the | ||
8 | License, or (at your option) any later | ||
9 | version. | ||
10 | |||
11 | This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
12 | WARRANTY; without even the | ||
13 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | |||
15 | GNU General | ||
16 | Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License along with | ||
19 | this program; if not, write to the Free | ||
20 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #include "vcrgroup.h" | ||
24 | |||
25 | VCRGroup::VCRGroup(QWidget *parent=0, const char *name=0) : QWidget(parent, | ||
26 | name) | ||
27 | { | ||
28 | QVBoxLayout *vlayout = new QVBoxLayout(this); | ||
29 | |||
30 | QHBoxLayout *hlayout1 = new QHBoxLayout(this); | ||
31 | QHBoxLayout *hlayout2 = new QHBoxLayout(this); | ||
32 | |||
33 | vlayout->addLayout(hlayout1); | ||
34 | vlayout->addSpacing(1); | ||
35 | vlayout->addLayout(hlayout2); | ||
36 | |||
37 | QPushButton *play = new | ||
38 | QPushButton("Play",this, "play"); | ||
39 | hlayout1->addWidget(play); | ||
40 | connect(play, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
41 | |||
42 | hlayout1->addSpacing(5); | ||
43 | |||
44 | QPushButton *pause = new | ||
45 | QPushButton("Pause",this, "pause"); | ||
46 | hlayout1->addWidget(pause); | ||
47 | connect(pause, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
48 | |||
49 | hlayout1->addSpacing(5); | ||
50 | |||
51 | QPushButton *stop = new | ||
52 | QPushButton("Stop",this, "stop"); | ||
53 | hlayout1->addWidget(stop); | ||
54 | connect(stop, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
55 | |||
56 | hlayout1->addSpacing(5); | ||
57 | |||
58 | QPushButton *record = new | ||
59 | QPushButton("Record",this, "record"); | ||
60 | hlayout1->addWidget(record); | ||
61 | connect(record, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
62 | |||
63 | QPushButton *back = new | ||
64 | QPushButton("Back",this, "back"); | ||
65 | hlayout2->addWidget(back); | ||
66 | connect(back, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
67 | |||
68 | hlayout2->addSpacing(5); | ||
69 | |||
70 | QPushButton *rewind = new | ||
71 | QPushButton("Rewind",this, "rewind"); | ||
72 | hlayout2->addWidget(rewind); | ||
73 | connect(rewind, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
74 | |||
75 | hlayout2->addSpacing(5); | ||
76 | |||
77 | QPushButton *ff = new | ||
78 | QPushButton("FF",this, "ff"); | ||
79 | hlayout2->addWidget(ff); | ||
80 | connect(ff, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
81 | |||
82 | hlayout2->addSpacing(5); | ||
83 | |||
84 | QPushButton *next = new | ||
85 | QPushButton("Next",this, "next"); | ||
86 | hlayout2->addWidget(next); | ||
87 | connect(next, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) ); | ||
88 | } | ||