00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "dvdgroup.h"
00024
00025 DVDGroup::DVDGroup(QWidget *parent, const char *name):QWidget(parent,name)
00026 {
00027 QGridLayout *layout = new QGridLayout(this);
00028
00029
00030 layout->addRowSpacing(1,1);
00031 layout->addRowSpacing(3,1);
00032
00033
00034 layout->addColSpacing(1,5);
00035 layout->addColSpacing(3,5);
00036 layout->addColSpacing(5,5);
00037 layout->addColSpacing(7,5);
00038
00039
00040
00041 layout->setColStretch(4,1);
00042 layout->setColStretch(2,1);
00043 layout->setColStretch(6,1);
00044 layout->setColStretch(8,1);
00045 layout->setColStretch(0,1);
00046
00047
00048 QPushButton *up = new QPushButton("Up", this,"up");
00049 layout->addWidget(up, 0, 4, 0);
00050 connect(up, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00051
00052 QPushButton *down = new QPushButton("Down",this,"down");
00053 layout->addWidget(down, 4, 4, 0);
00054 connect(down, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00055
00056 QPushButton *left = new QPushButton("Left",this,"left");
00057 layout->addWidget(left, 2, 2, 0);
00058 connect(left, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00059
00060 QPushButton *right = new QPushButton("Right", this, "right");
00061 layout->addWidget(right, 2, 6, 0);
00062 connect(right, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00063
00064 QPushButton *enter = new QPushButton("Enter",this,"enter");
00065 layout->addWidget(enter, 2, 4, 0);
00066 connect(enter, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00067
00068
00069
00070 QPushButton *eject = new QPushButton("Eject", this, "eject");
00071 layout->addWidget(eject, 0, 0, 0);
00072 connect(eject, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00073
00074 QPushButton *menu = new QPushButton("Menu", this, "menu");
00075 layout->addWidget(menu, 2, 0, 0);
00076 connect(menu, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00077
00078 QPushButton *topMenu = new QPushButton("Top", this, "topMenu");
00079 layout->addWidget(topMenu, 4, 0, 0);
00080 connect(topMenu, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00081
00082 QPushButton *audio = new QPushButton("Audio", this, "audio");
00083 layout->addWidget(audio, 0, 8, 0);
00084 connect(audio, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00085
00086 QPushButton *sub = new QPushButton("Sub", this, "sub");
00087 layout->addWidget(sub, 2, 8, 0);
00088 connect(sub, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00089
00090 QPushButton *angle = new QPushButton("Angle", this, "angle");
00091 layout->addWidget(angle, 4, 8, 0);
00092 connect(angle, SIGNAL(pressed()), this->parentWidget(), SLOT(sendIR()) );
00093 }