00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "vcrgroup.h"
00024
00025 VCRGroup::VCRGroup(QWidget *parent, const char *name) : QWidget(parent,
00026 name)
00027 {
00028 QVBoxLayout *vlayout = new QVBoxLayout(this);
00029
00030 QHBoxLayout *hlayout1 = new QHBoxLayout(this);
00031 QHBoxLayout *hlayout2 = new QHBoxLayout(this);
00032
00033 vlayout->addLayout(hlayout1);
00034 vlayout->addSpacing(1);
00035 vlayout->addLayout(hlayout2);
00036
00037 QPushButton *play = new
00038 QPushButton("Play",this, "play");
00039 hlayout1->addWidget(play);
00040 connect(play, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00041
00042 hlayout1->addSpacing(5);
00043
00044 QPushButton *pause = new
00045 QPushButton("Pause",this, "pause");
00046 hlayout1->addWidget(pause);
00047 connect(pause, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00048
00049 hlayout1->addSpacing(5);
00050
00051 QPushButton *stop = new
00052 QPushButton("Stop",this, "stop");
00053 hlayout1->addWidget(stop);
00054 connect(stop, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00055
00056 hlayout1->addSpacing(5);
00057
00058 QPushButton *record = new
00059 QPushButton("Record",this, "record");
00060 hlayout1->addWidget(record);
00061 connect(record, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00062
00063 QPushButton *back = new
00064 QPushButton("Back",this, "back");
00065 hlayout2->addWidget(back);
00066 connect(back, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00067
00068 hlayout2->addSpacing(5);
00069
00070 QPushButton *rewind = new
00071 QPushButton("Rewind",this, "rewind");
00072 hlayout2->addWidget(rewind);
00073 connect(rewind, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00074
00075 hlayout2->addSpacing(5);
00076
00077 QPushButton *ff = new
00078 QPushButton("FF",this, "ff");
00079 hlayout2->addWidget(ff);
00080 connect(ff, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00081
00082 hlayout2->addSpacing(5);
00083
00084 QPushButton *next = new
00085 QPushButton("Next",this, "next");
00086 hlayout2->addWidget(next);
00087 connect(next, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00088 }