summaryrefslogtreecommitdiff
path: root/noncore/tools/remote/topgroupconf.cpp
authorharlekin <harlekin>2002-05-12 08:39:15 (UTC)
committer harlekin <harlekin>2002-05-12 08:39:15 (UTC)
commit8362e586d0fd9a0ad6cea3f26d624a05196a60f8 (patch) (side-by-side diff)
tree82bd5b113cd9f526c6555888cffbfdd907406eb9 /noncore/tools/remote/topgroupconf.cpp
parent28e86f19c9da68dca417b531e63e534c4545916b (diff)
downloadopie-8362e586d0fd9a0ad6cea3f26d624a05196a60f8.zip
opie-8362e586d0fd9a0ad6cea3f26d624a05196a60f8.tar.gz
opie-8362e586d0fd9a0ad6cea3f26d624a05196a60f8.tar.bz2
opie remote control
Diffstat (limited to 'noncore/tools/remote/topgroupconf.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/remote/topgroupconf.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/noncore/tools/remote/topgroupconf.cpp b/noncore/tools/remote/topgroupconf.cpp
new file mode 100644
index 0000000..eb071fb
--- a/dev/null
+++ b/noncore/tools/remote/topgroupconf.cpp
@@ -0,0 +1,70 @@
+/*
+Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie.
+Copyright (C) 2002 Thomas Stephens
+
+This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
+License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
+implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+Public License for more details.
+
+You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
+Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#include "topgroupconf.h"
+
+TopGroupConf::TopGroupConf(QWidget *parent=0, const char *name=0):QWidget(parent,name)
+{
+ QHBoxLayout *layout = new QHBoxLayout(this);
+
+ QPushButton *power = new QPushButton("Power",this,"power");
+ layout->addWidget(power);
+ connect(power, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
+// power->setGeometry(5, 5,40, 20);
+
+ layout->addSpacing(5);
+
+ QPushButton *source = new QPushButton("Source",this,"source");
+ layout->addWidget(source);
+ connect(source, SIGNAL(pressed()), this->parentWidget(), SLOT(buttonPressed()) );
+ // source->setGeometry(50,5,40,20);
+
+ remotes = new QComboBox(true, this, "remotes");
+ remotes->insertItem(QString("Remotes"));
+ layout->addWidget(remotes);
+ layout->setStretchFactor(remotes, 1);
+ connect(remotes, SIGNAL(activated(const QString &)), this->parentWidget(), SLOT(remoteSelected(const QString &)) );
+
+
+ QPushButton *newrem = new QPushButton("New", this, "new");
+ layout->addWidget(newrem);
+ connect(newrem, SIGNAL(pressed()), this->parentWidget(), SLOT(newPressed()) );
+
+
+/* remotes = new QComboBox(false, this, "remotes");
+ connect(remotes, SIGNAL(activated(const QString &)), this->parentWidget(), SLOT(remoteSelected(const QString &)) );
+ remotes->insertItem("Select Remote");
+// remotes->setGeometry(135,5,95,20);
+
+ QLabel *remoteLabel = new QLabel(remotes, "Remote: ",this,"remoteLabel");
+// remoteLabel->setGeometry(90,5,40,20);
+ remoteLabel->setAlignment(AlignRight | AlignVCenter);
+
+ layout->addWidget(remoteLabel);
+ layout->addWidget(remotes);
+*/
+}
+
+void TopGroupConf::updateRemotes(QStringList list)
+{
+ remotes->insertStringList(list);
+}
+
+QString TopGroupConf::getRemotesText()
+{
+ return remotes->currentText();
+}
+