summaryrefslogtreecommitdiff
path: root/noncore/tools/remote/vcrgroup.cpp
authorharlekin <harlekin>2002-05-12 08:39:15 (UTC)
committer harlekin <harlekin>2002-05-12 08:39:15 (UTC)
commit8362e586d0fd9a0ad6cea3f26d624a05196a60f8 (patch) (unidiff)
tree82bd5b113cd9f526c6555888cffbfdd907406eb9 /noncore/tools/remote/vcrgroup.cpp
parent28e86f19c9da68dca417b531e63e534c4545916b (diff)
downloadopie-8362e586d0fd9a0ad6cea3f26d624a05196a60f8.zip
opie-8362e586d0fd9a0ad6cea3f26d624a05196a60f8.tar.gz
opie-8362e586d0fd9a0ad6cea3f26d624a05196a60f8.tar.bz2
opie remote control
Diffstat (limited to 'noncore/tools/remote/vcrgroup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/remote/vcrgroup.cpp88
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/*
2Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie.
3Copyright (C) 2002 Thomas Stephens
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public
7License as published by the Free Software Foundation; either version 2 of the
8License, or (at your option) any later
9version.
10
11This program is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the
13implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
15GNU General
16Public License for more details.
17
18You should have received a copy of the GNU General Public License along with
19this program; if not, write to the Free
20Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21*/
22
23#include "vcrgroup.h"
24
25VCRGroup::VCRGroup(QWidget *parent=0, const char *name=0) : QWidget(parent,
26name)
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
38QPushButton("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
45QPushButton("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
52QPushButton("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
59QPushButton("Record",this, "record");
60 hlayout1->addWidget(record);
61 connect(record, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
62
63 QPushButton *back = new
64QPushButton("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
71QPushButton("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
78QPushButton("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
85QPushButton("Next",this, "next");
86 hlayout2->addWidget(next);
87 connect(next, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
88}