summaryrefslogtreecommitdiffstats
path: root/src/k9mainw.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
commit0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch)
tree8578dcddfce4191f3f7a142a37769df7add48475 /src/k9mainw.cpp
downloadk9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz
k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k9mainw.cpp')
-rw-r--r--src/k9mainw.cpp216
1 files changed, 216 insertions, 0 deletions
diff --git a/src/k9mainw.cpp b/src/k9mainw.cpp
new file mode 100644
index 0000000..27eb9ac
--- /dev/null
+++ b/src/k9mainw.cpp
@@ -0,0 +1,216 @@
+#include <klocale.h>
+/****************************************************************************
+** Form implementation generated from reading ui file './k9mainw.ui'
+**
+** Created: dim. oct. 26 08:57:34 2008
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+
+#include "k9mainw.h"
+
+#include <qvariant.h>
+#include <qpushbutton.h>
+#include <qlabel.h>
+#include <kselect.h>
+#include <qheader.h>
+#include <qlistview.h>
+#include <kcombobox.h>
+#include <qcombobox.h>
+#include <kpushbutton.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include "kselect.h"
+#include "kcombobox.h"
+#include "klineedit.h"
+#include "kpushbutton.h"
+
+/*
+ * Constructs a MainDlg as a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'.
+ */
+MainDlg::MainDlg( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ if ( !name )
+ setName( "MainDlg" );
+ setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
+ setMinimumSize( QSize( 0, 200 ) );
+ MainDlgLayout = new QGridLayout( this, 1, 1, 2, 6, "MainDlgLayout");
+
+ lblInput_2 = new QLabel( this, "lblInput_2" );
+ lblInput_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, lblInput_2->sizePolicy().hasHeightForWidth() ) );
+
+ MainDlgLayout->addWidget( lblInput_2, 1, 0 );
+
+ lblInput = new QLabel( this, "lblInput" );
+ lblInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, lblInput->sizePolicy().hasHeightForWidth() ) );
+
+ MainDlgLayout->addWidget( lblInput, 0, 0 );
+
+ tab = new QWidget( this, "tab" );
+ tabLayout = new QGridLayout( tab, 1, 1, 1, 0, "tabLayout");
+
+ factor = new KGradientSelector( tab, "factor" );
+ factor->setEnabled( FALSE );
+ factor->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, factor->sizePolicy().hasHeightForWidth() ) );
+ factor->setMinimumSize( QSize( 0, 15 ) );
+ factor->setValue( 0 );
+ factor->setMinValue( 0 );
+ factor->setMaxValue( 100 );
+ factor->setFirstColor( QColor( 170, 0, 0 ) );
+ factor->setSecondColor( QColor( 0, 255, 0 ) );
+
+ tabLayout->addWidget( factor, 1, 0 );
+
+ listView1 = new QListView( tab, "listView1" );
+ listView1->addColumn( tr2i18n( "Title" ) );
+ listView1->addColumn( tr2i18n( "Size" ) );
+ listView1->header()->setResizeEnabled( FALSE, listView1->header()->count() - 1 );
+ listView1->addColumn( tr2i18n( "Content" ) );
+ listView1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, listView1->sizePolicy().hasHeightForWidth() ) );
+ listView1->setMinimumSize( QSize( 0, 200 ) );
+ listView1->setShowSortIndicator( TRUE );
+
+ tabLayout->addWidget( listView1, 0, 0 );
+
+ MainDlgLayout->addMultiCellWidget( tab, 2, 2, 0, 4 );
+
+ textLabel2_2 = new QLabel( this, "textLabel2_2" );
+ textLabel2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) );
+
+ MainDlgLayout->addWidget( textLabel2_2, 1, 4 );
+
+ cbBurnSpeed = new KComboBox( FALSE, this, "cbBurnSpeed" );
+ cbBurnSpeed->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbBurnSpeed->sizePolicy().hasHeightForWidth() ) );
+ cbBurnSpeed->setEditable( TRUE );
+
+ MainDlgLayout->addWidget( cbBurnSpeed, 1, 3 );
+
+ textLabel1_3 = new QLabel( this, "textLabel1_3" );
+ textLabel1_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabel1_3->sizePolicy().hasHeightForWidth() ) );
+
+ MainDlgLayout->addWidget( textLabel1_3, 1, 2 );
+
+ cbInputDev = new QComboBox( FALSE, this, "cbInputDev" );
+ cbInputDev->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, cbInputDev->sizePolicy().hasHeightForWidth() ) );
+ cbInputDev->setEditable( TRUE );
+ cbInputDev->setAutoCompletion( TRUE );
+
+ MainDlgLayout->addWidget( cbInputDev, 0, 1 );
+
+ layout2 = new QHBoxLayout( 0, 0, 6, "layout2");
+
+ bInputOpenDir = new KPushButton( this, "bInputOpenDir" );
+ bInputOpenDir->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, bInputOpenDir->sizePolicy().hasHeightForWidth() ) );
+ bInputOpenDir->setMinimumSize( QSize( 22, 22 ) );
+ bInputOpenDir->setMaximumSize( QSize( 22, 22 ) );
+ layout2->addWidget( bInputOpenDir );
+
+ bInputOpen = new KPushButton( this, "bInputOpen" );
+ bInputOpen->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, bInputOpen->sizePolicy().hasHeightForWidth() ) );
+ bInputOpen->setMinimumSize( QSize( 22, 22 ) );
+ bInputOpen->setMaximumSize( QSize( 22, 22 ) );
+ layout2->addWidget( bInputOpen );
+ spacer5_2 = new QSpacerItem( 50, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ layout2->addItem( spacer5_2 );
+
+ MainDlgLayout->addMultiCellLayout( layout2, 0, 0, 2, 4 );
+
+ cbOutputDev = new QComboBox( FALSE, this, "cbOutputDev" );
+ cbOutputDev->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, cbOutputDev->sizePolicy().hasHeightForWidth() ) );
+ cbOutputDev->setEditable( FALSE );
+ cbOutputDev->setAutoCompletion( TRUE );
+
+ MainDlgLayout->addWidget( cbOutputDev, 1, 1 );
+ languageChange();
+ resize( QSize(743, 585).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+
+ // signals and slots connections
+ connect( listView1, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( listView1CurrentChanged(QListViewItem*) ) );
+ connect( cbOutputDev, SIGNAL( activated(int) ), this, SLOT( cbOutputDevActivated(int) ) );
+ connect( bInputOpen, SIGNAL( clicked() ), this, SLOT( bInputOpenClick() ) );
+ connect( bInputOpenDir, SIGNAL( clicked() ), this, SLOT( bInputOpenDirClick() ) );
+ connect( listView1, SIGNAL( itemRenamed(QListViewItem*,int) ), this, SLOT( itemRenamed(QListViewItem*,int) ) );
+
+ // tab order
+ setTabOrder( cbInputDev, cbOutputDev );
+ setTabOrder( cbOutputDev, bInputOpenDir );
+ setTabOrder( bInputOpenDir, bInputOpen );
+ setTabOrder( bInputOpen, cbBurnSpeed );
+ setTabOrder( cbBurnSpeed, listView1 );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+MainDlg::~MainDlg()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+/*
+ * Sets the strings of the subwidgets using the current
+ * language.
+ */
+void MainDlg::languageChange()
+{
+ setCaption( tr2i18n( "MainDlg" ) );
+ lblInput_2->setText( tr2i18n( "Output device " ) );
+ lblInput->setText( tr2i18n( "input device" ) );
+ listView1->header()->setLabel( 0, tr2i18n( "Title" ) );
+ listView1->header()->setLabel( 1, tr2i18n( "Size" ) );
+ listView1->header()->setLabel( 2, tr2i18n( "Content" ) );
+ textLabel2_2->setText( tr2i18n( "X" ) );
+ cbBurnSpeed->clear();
+ cbBurnSpeed->insertItem( tr2i18n( "default" ) );
+ textLabel1_3->setText( tr2i18n( "@" ) );
+ bInputOpenDir->setText( QString::null );
+ QToolTip::add( bInputOpenDir, tr2i18n( "Open a folder" ) );
+ bInputOpen->setText( QString::null );
+ QToolTip::add( bInputOpen, tr2i18n( "Open an iso image" ) );
+}
+
+void MainDlg::bSaveClick()
+{
+ qWarning( "MainDlg::bSaveClick(): Not implemented yet" );
+}
+
+void MainDlg::bDevicesClick()
+{
+ qWarning( "MainDlg::bDevicesClick(): Not implemented yet" );
+}
+
+void MainDlg::listView1CurrentChanged(QListViewItem*)
+{
+ qWarning( "MainDlg::listView1CurrentChanged(QListViewItem*): Not implemented yet" );
+}
+
+void MainDlg::cbOutputDevActivated(int)
+{
+ qWarning( "MainDlg::cbOutputDevActivated(int): Not implemented yet" );
+}
+
+void MainDlg::bInputOpenClick()
+{
+ qWarning( "MainDlg::bInputOpenClick(): Not implemented yet" );
+}
+
+void MainDlg::bInputOpenDirClick()
+{
+ qWarning( "MainDlg::bInputOpenDirClick(): Not implemented yet" );
+}
+
+void MainDlg::ckMp4AspectRatioClick()
+{
+ qWarning( "MainDlg::ckMp4AspectRatioClick(): Not implemented yet" );
+}
+
+void MainDlg::itemRenamed(QListViewItem*,int)
+{
+ qWarning( "MainDlg::itemRenamed(QListViewItem*,int): Not implemented yet" );
+}
+
+#include "k9mainw.moc"