diff options
Diffstat (limited to 'src/k9mainw.cpp')
-rw-r--r-- | src/k9mainw.cpp | 216 |
1 files changed, 0 insertions, 216 deletions
diff --git a/src/k9mainw.cpp b/src/k9mainw.cpp deleted file mode 100644 index 61702d6..0000000 --- a/src/k9mainw.cpp +++ /dev/null @@ -1,216 +0,0 @@ -#include <tdelocale.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 <tqvariant.h> -#include <tqpushbutton.h> -#include <tqlabel.h> -#include <tdeselect.h> -#include <tqheader.h> -#include <tqlistview.h> -#include <kcombobox.h> -#include <tqcombobox.h> -#include <kpushbutton.h> -#include <tqlayout.h> -#include <tqtooltip.h> -#include <tqwhatsthis.h> -#include "tdeselect.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( TQWidget* parent, const char* name, WFlags fl ) - : TQWidget( parent, name, fl ) -{ - if ( !name ) - setName( "MainDlg" ); - setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); - setMinimumSize( TQSize( 0, 200 ) ); - MainDlgLayout = new TQGridLayout( this, 1, 1, 2, 6, "MainDlgLayout"); - - lblInput_2 = new TQLabel( this, "lblInput_2" ); - lblInput_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblInput_2->sizePolicy().hasHeightForWidth() ) ); - - MainDlgLayout->addWidget( lblInput_2, 1, 0 ); - - lblInput = new TQLabel( this, "lblInput" ); - lblInput->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblInput->sizePolicy().hasHeightForWidth() ) ); - - MainDlgLayout->addWidget( lblInput, 0, 0 ); - - tab = new TQWidget( this, "tab" ); - tabLayout = new TQGridLayout( tab, 1, 1, 1, 0, "tabLayout"); - - factor = new KGradientSelector( tab, "factor" ); - factor->setEnabled( FALSE ); - factor->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 0, factor->sizePolicy().hasHeightForWidth() ) ); - factor->setMinimumSize( TQSize( 0, 15 ) ); - factor->setValue( 0 ); - factor->setMinValue( 0 ); - factor->setMaxValue( 100 ); - factor->setFirstColor( TQColor( 170, 0, 0 ) ); - factor->setSecondColor( TQColor( 0, 255, 0 ) ); - - tabLayout->addWidget( factor, 1, 0 ); - - listView1 = new TQListView( tab, "listView1" ); - listView1->addColumn( tr2i18n( "Title" ) ); - listView1->addColumn( tr2i18n( "Size" ) ); - listView1->header()->setResizeEnabled( FALSE, listView1->header()->count() - 1 ); - listView1->addColumn( tr2i18n( "Content" ) ); - listView1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, listView1->sizePolicy().hasHeightForWidth() ) ); - listView1->setMinimumSize( TQSize( 0, 200 ) ); - listView1->setShowSortIndicator( TRUE ); - - tabLayout->addWidget( listView1, 0, 0 ); - - MainDlgLayout->addMultiCellWidget( tab, 2, 2, 0, 4 ); - - textLabel2_2 = new TQLabel( this, "textLabel2_2" ); - textLabel2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) ); - - MainDlgLayout->addWidget( textLabel2_2, 1, 4 ); - - cbBurnSpeed = new KComboBox( FALSE, this, "cbBurnSpeed" ); - cbBurnSpeed->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, cbBurnSpeed->sizePolicy().hasHeightForWidth() ) ); - cbBurnSpeed->setEditable( TRUE ); - - MainDlgLayout->addWidget( cbBurnSpeed, 1, 3 ); - - textLabel1_3 = new TQLabel( this, "textLabel1_3" ); - textLabel1_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel1_3->sizePolicy().hasHeightForWidth() ) ); - - MainDlgLayout->addWidget( textLabel1_3, 1, 2 ); - - cbInputDev = new TQComboBox( FALSE, this, "cbInputDev" ); - cbInputDev->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cbInputDev->sizePolicy().hasHeightForWidth() ) ); - cbInputDev->setEditable( TRUE ); - cbInputDev->setAutoCompletion( TRUE ); - - MainDlgLayout->addWidget( cbInputDev, 0, 1 ); - - layout2 = new TQHBoxLayout( 0, 0, 6, "layout2"); - - bInputOpenDir = new KPushButton( this, "bInputOpenDir" ); - bInputOpenDir->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, bInputOpenDir->sizePolicy().hasHeightForWidth() ) ); - bInputOpenDir->setMinimumSize( TQSize( 22, 22 ) ); - bInputOpenDir->setMaximumSize( TQSize( 22, 22 ) ); - layout2->addWidget( bInputOpenDir ); - - bInputOpen = new KPushButton( this, "bInputOpen" ); - bInputOpen->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, bInputOpen->sizePolicy().hasHeightForWidth() ) ); - bInputOpen->setMinimumSize( TQSize( 22, 22 ) ); - bInputOpen->setMaximumSize( TQSize( 22, 22 ) ); - layout2->addWidget( bInputOpen ); - spacer5_2 = new TQSpacerItem( 50, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - layout2->addItem( spacer5_2 ); - - MainDlgLayout->addMultiCellLayout( layout2, 0, 0, 2, 4 ); - - cbOutputDev = new TQComboBox( FALSE, this, "cbOutputDev" ); - cbOutputDev->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cbOutputDev->sizePolicy().hasHeightForWidth() ) ); - cbOutputDev->setEditable( FALSE ); - cbOutputDev->setAutoCompletion( TRUE ); - - MainDlgLayout->addWidget( cbOutputDev, 1, 1 ); - languageChange(); - resize( TQSize(743, 585).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); - - // signals and slots connections - connect( listView1, TQT_SIGNAL( currentChanged(TQListViewItem*) ), this, TQT_SLOT( listView1CurrentChanged(TQListViewItem*) ) ); - connect( cbOutputDev, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbOutputDevActivated(int) ) ); - connect( bInputOpen, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bInputOpenClick() ) ); - connect( bInputOpenDir, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bInputOpenDirClick() ) ); - connect( listView1, TQT_SIGNAL( itemRenamed(TQListViewItem*,int) ), this, TQT_SLOT( itemRenamed(TQListViewItem*,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, TQt 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( TQString() ); - TQToolTip::add( bInputOpenDir, tr2i18n( "Open a folder" ) ); - bInputOpen->setText( TQString() ); - TQToolTip::add( bInputOpen, tr2i18n( "Open an iso image" ) ); -} - -void MainDlg::bSaveClick() -{ - tqWarning( "MainDlg::bSaveClick(): Not implemented yet" ); -} - -void MainDlg::bDevicesClick() -{ - tqWarning( "MainDlg::bDevicesClick(): Not implemented yet" ); -} - -void MainDlg::listView1CurrentChanged(TQListViewItem*) -{ - tqWarning( "MainDlg::listView1CurrentChanged(TQListViewItem*): Not implemented yet" ); -} - -void MainDlg::cbOutputDevActivated(int) -{ - tqWarning( "MainDlg::cbOutputDevActivated(int): Not implemented yet" ); -} - -void MainDlg::bInputOpenClick() -{ - tqWarning( "MainDlg::bInputOpenClick(): Not implemented yet" ); -} - -void MainDlg::bInputOpenDirClick() -{ - tqWarning( "MainDlg::bInputOpenDirClick(): Not implemented yet" ); -} - -void MainDlg::ckMp4AspectRatioClick() -{ - tqWarning( "MainDlg::ckMp4AspectRatioClick(): Not implemented yet" ); -} - -void MainDlg::itemRenamed(TQListViewItem*,int) -{ - tqWarning( "MainDlg::itemRenamed(TQListViewItem*,int): Not implemented yet" ); -} - -#include "k9mainw.moc" |