Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vcrgroup.cpp

Go to the documentation of this file.
00001 /*
00002 Opie-Remote.  emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie.
00003 Copyright (C) 2002 Thomas Stephens
00004 
00005 This program is free software; you can redistribute it and/or modify it under 
00006 the terms of the GNU General Public
00007 License as published by the Free Software Foundation; either version 2 of the 
00008 License, or (at your option) any later
00009 version.
00010 
00011 This program is distributed in the hope that it will be useful, but WITHOUT ANY 
00012 WARRANTY; without even the
00013 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
00014 
00015 GNU General
00016 Public License for more details.
00017 
00018 You should have received a copy of the GNU General Public License along with 
00019 this program; if not, write to the Free
00020 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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 }

Generated on Sat Nov 5 16:18:03 2005 for OPIE by  doxygen 1.4.2