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