summaryrefslogtreecommitdiffstats
path: root/kmid/channelcfgdlg.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /kmid/channelcfgdlg.cpp
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/channelcfgdlg.cpp')
-rw-r--r--kmid/channelcfgdlg.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/kmid/channelcfgdlg.cpp b/kmid/channelcfgdlg.cpp
new file mode 100644
index 00000000..8ed5ee66
--- /dev/null
+++ b/kmid/channelcfgdlg.cpp
@@ -0,0 +1,39 @@
+#include <qpushbutton.h>
+#include <qbuttongroup.h>
+#include <qradiobutton.h>
+#include <kdialogbase.h>
+
+#include <kapplication.h>
+#include <klocale.h>
+
+#include "channelview.h"
+#include "channelcfgdlg.h"
+#include "version.h"
+#include <qlayout.h>
+#include <qvbuttongroup.h>
+
+ChannelViewConfigDialog::ChannelViewConfigDialog(QWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,i18n("Configure Channel View"),Ok|Cancel, Ok)
+{
+ QWidget *page = new QWidget( this );
+ setMainWidget(page);
+ QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ qbg = new QVButtonGroup(i18n("Choose Look Mode"),page,"qbg");
+
+ rb0=new QRadioButton(i18n("3D look"),qbg,"3d");
+ rb1=new QRadioButton(i18n("3D - filled"),qbg,"4d");
+
+ qbg->setExclusive(TRUE);
+
+ topLayout->addWidget( qbg );
+ ((ChannelView::lookMode()==0)?rb0:rb1)->setChecked(TRUE);
+
+ connect (qbg, SIGNAL(pressed(int)),this,SLOT(modeselected(int)));
+}
+
+void ChannelViewConfigDialog::modeselected(int idx)
+{
+selectedmode=idx;
+}
+
+int ChannelViewConfigDialog::selectedmode;
+#include "channelcfgdlg.moc"