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

dvdgroupconf.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 the terms of the GNU General Public
00006 License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
00007 version.
00008 
00009 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
00010 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
00011 Public License for more details.
00012 
00013 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
00014 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00015 */
00016 
00017 #include "dvdgroupconf.h"
00018 
00019 DVDGroupConf::DVDGroupConf(QWidget *parent, const char *name):QWidget(parent,name)
00020 {
00021         QGridLayout *layout = new QGridLayout(this);
00022 
00023 //put rows between the buttons of size 1
00024         layout->addRowSpacing(1,1);
00025         layout->addRowSpacing(3,1);
00026 
00027 //put collumns between the buttons of size 5
00028         layout->addColSpacing(1,5);
00029         layout->addColSpacing(3,5);
00030         layout->addColSpacing(5,5);
00031         layout->addColSpacing(7,5);
00032 
00033 //make sure that the collumns with the buttons in them stretch before the filler collumns do
00034 //since there is so little room, there is no need to do this for the rows
00035         layout->setColStretch(4,1);
00036         layout->setColStretch(2,1);
00037         layout->setColStretch(6,1);
00038         layout->setColStretch(8,1);
00039         layout->setColStretch(0,1);
00040 
00041 //add the menu navigation buttons, and connect them to the RemoteTab slots...
00042         QPushButton *up = new QPushButton("Up",this,"up");
00043         layout->addWidget(up, 0, 4, 0);
00044         connect(up, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00045 
00046         QPushButton *down = new QPushButton("Down",this,"down");
00047         layout->addWidget(down, 4, 4, 0);
00048         connect(down, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00049 
00050         QPushButton *left = new QPushButton("Left",this,"left");
00051         layout->addWidget(left, 2, 2, 0);
00052         connect(left, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00053 
00054         QPushButton *right = new QPushButton("Right", this, "right");
00055         layout->addWidget(right, 2, 6, 0);
00056         connect(right, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00057 
00058         QPushButton *enter = new QPushButton("Enter",this,"enter");
00059         layout->addWidget(enter, 2, 4, 0);
00060         connect(enter, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00061 
00062 //add some other buttons
00063 
00064         QPushButton *eject = new QPushButton("Eject", this, "eject");
00065         layout->addWidget(eject, 0, 0, 0);
00066         connect(eject, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00067 
00068         QPushButton *menu = new QPushButton("Menu", this, "menu");
00069         layout->addWidget(menu, 2, 0, 0);
00070         connect(menu, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00071 
00072         QPushButton *topMenu = new QPushButton("Top", this, "topMenu");
00073         layout->addWidget(topMenu, 4, 0, 0);
00074         connect(topMenu, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00075 
00076         QPushButton *audio = new QPushButton("Audio", this, "audio");
00077         layout->addWidget(audio, 0, 8, 0);
00078         connect(audio, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00079 
00080         QPushButton *sub = new QPushButton("Sub", this, "sub");
00081         layout->addWidget(sub, 2, 8, 0);
00082         connect(sub, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00083 
00084         QPushButton *angle = new QPushButton("Angle", this, "angle");
00085         layout->addWidget(angle, 4, 8, 0);
00086         connect(angle, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
00087 }

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