summaryrefslogtreecommitdiffstats
path: root/libk9copy
diff options
context:
space:
mode:
Diffstat (limited to 'libk9copy')
-rw-r--r--libk9copy/backupdlg.cpp174
-rw-r--r--libk9copy/dvdprogress.cpp97
-rw-r--r--libk9copy/mp4dlg.cpp159
-rw-r--r--libk9copy/processList.cpp81
-rw-r--r--libk9copy/progress.cpp127
5 files changed, 0 insertions, 638 deletions
diff --git a/libk9copy/backupdlg.cpp b/libk9copy/backupdlg.cpp
deleted file mode 100644
index 2236596..0000000
--- a/libk9copy/backupdlg.cpp
+++ /dev/null
@@ -1,174 +0,0 @@
-#include <tdelocale.h>
-/****************************************************************************
-** Form implementation generated from reading ui file './backupdlg.ui'
-**
-** Created: dim. oct. 26 08:55:58 2008
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#include "backupdlg.h"
-
-#include <tqvariant.h>
-#include <tqpushbutton.h>
-#include <tqlabel.h>
-#include <tqprogressbar.h>
-#include <kpushbutton.h>
-#include <tqframe.h>
-#include <tqlayout.h>
-#include <tqtooltip.h>
-#include <tqwhatsthis.h>
-#include "kpushbutton.h"
-
-/*
- * Constructs a backupDlg as a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-backupDlg::backupDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
- : TQDialog( parent, name, modal, fl )
-{
- if ( !name )
- setName( "backupDlg" );
- setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
- setMinimumSize( TQSize( 0, 0 ) );
- setMaximumSize( TQSize( 9999, 9999 ) );
- setBaseSize( TQSize( 500, 230 ) );
- setCursor( TQCursor( 3 ) );
- setModal( TRUE );
- backupDlgLayout = new TQGridLayout( this, 1, 1, 3, 8, "backupDlgLayout");
-
- textLabel1 = new TQLabel( this, "textLabel1" );
- textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
- textLabel1->setCursor( TQCursor( 3 ) );
- textLabel1->setFrameShape( TQLabel::NoFrame );
- textLabel1->setFrameShadow( TQLabel::Raised );
-
- backupDlgLayout->addMultiCellWidget( textLabel1, 0, 0, 0, 3 );
-
- layout3 = new TQVBoxLayout( 0, 0, 6, "layout3");
-
- lblStep = new TQLabel( this, "lblStep" );
- lblStep->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, lblStep->sizePolicy().hasHeightForWidth() ) );
- TQFont lblStep_font( lblStep->font() );
- lblStep_font.setItalic( TRUE );
- lblStep->setFont( lblStep_font );
- lblStep->setCursor( TQCursor( 3 ) );
- layout3->addWidget( lblStep );
-
- pbStep = new TQProgressBar( this, "pbStep" );
- pbStep->setCursor( TQCursor( 3 ) );
- layout3->addWidget( pbStep );
-
- pbTotal = new TQProgressBar( this, "pbTotal" );
- pbTotal->setCursor( TQCursor( 3 ) );
- pbTotal->setMargin( 0 );
- pbTotal->setTotalSteps( 4400 );
- pbTotal->setPercentageVisible( TRUE );
- layout3->addWidget( pbTotal );
-
- backupDlgLayout->addMultiCellLayout( layout3, 3, 3, 0, 3 );
-
- textLabel1_2 = new TQLabel( this, "textLabel1_2" );
- textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
- textLabel1_2->setCursor( TQCursor( 3 ) );
-
- backupDlgLayout->addWidget( textLabel1_2, 2, 0 );
-
- lblTime = new TQLabel( this, "lblTime" );
- lblTime->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblTime->sizePolicy().hasHeightForWidth() ) );
- lblTime->setCursor( TQCursor( 3 ) );
-
- backupDlgLayout->addWidget( lblTime, 2, 1 );
-
- layout1 = new TQHBoxLayout( 0, 0, 6, "layout1");
- spacer1 = new TQSpacerItem( 131, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- layout1->addItem( spacer1 );
-
- bAbort = new KPushButton( this, "bAbort" );
- bAbort->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bAbort->sizePolicy().hasHeightForWidth() ) );
- bAbort->setCursor( TQCursor( 0 ) );
- bAbort->setProperty( "stdItem", 26 );
- layout1->addWidget( bAbort );
-
- backupDlgLayout->addMultiCellLayout( layout1, 4, 4, 0, 3 );
-
- lblFactor = new TQLabel( this, "lblFactor" );
- lblFactor->setCursor( TQCursor( 3 ) );
-
- backupDlgLayout->addWidget( lblFactor, 2, 3 );
-
- frame3 = new TQFrame( this, "frame3" );
- frame3->setCursor( TQCursor( 3 ) );
- frame3->setFrameShape( TQFrame::StyledPanel );
- frame3->setFrameShadow( TQFrame::Raised );
- frame3->setMargin( 1 );
- frame3Layout = new TQGridLayout( frame3, 1, 1, 2, 6, "frame3Layout");
-
- bPlay = new KPushButton( frame3, "bPlay" );
- bPlay->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, bPlay->sizePolicy().hasHeightForWidth() ) );
- bPlay->setMinimumSize( TQSize( 25, 25 ) );
- bPlay->setMaximumSize( TQSize( 25, 25 ) );
- bPlay->setCursor( TQCursor( 0 ) );
- bPlay->setToggleButton( TRUE );
- bPlay->setOn( TRUE );
- bPlay->setFlat( FALSE );
-
- frame3Layout->addWidget( bPlay, 1, 1 );
- spacer4 = new TQSpacerItem( 476, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- frame3Layout->addItem( spacer4, 1, 0 );
-
- image = new TQLabel( frame3, "image" );
- image->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, image->sizePolicy().hasHeightForWidth() ) );
- image->setPaletteBackgroundColor( TQColor( 0, 0, 0 ) );
- image->setCursor( TQCursor( 3 ) );
- image->setScaledContents( TRUE );
-
- frame3Layout->addMultiCellWidget( image, 0, 0, 0, 1 );
-
- backupDlgLayout->addMultiCellWidget( frame3, 1, 1, 0, 3 );
- spacer3 = new TQSpacerItem( 380, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- backupDlgLayout->addItem( spacer3, 2, 2 );
- languageChange();
- resize( TQSize(385, 425).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
-
- // signals and slots connections
- connect( bAbort, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bAbortClick() ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-backupDlg::~backupDlg()
-{
- // no need to delete child widgets, TQt does it all for us
-}
-
-/*
- * Sets the strings of the subwidgets using the current
- * language.
- */
-void backupDlg::languageChange()
-{
- setCaption( tr2i18n( "k9Copy - Backup progression" ) );
- textLabel1->setText( tr2i18n( "<p align=\"left\"><b>DVD Backup</b></p>" ) );
- lblStep->setText( tr2i18n( "Current step" ) );
- textLabel1_2->setText( tr2i18n( "Elapsed Time" ) );
- lblTime->setText( tr2i18n( "--:--:--" ) );
- bPlay->setText( TQString() );
-}
-
-void backupDlg::bAbortClick()
-{
- tqWarning( "backupDlg::bAbortClick(): Not implemented yet" );
-}
-
-void backupDlg::bPlayToggled(bool)
-{
- tqWarning( "backupDlg::bPlayToggled(bool): Not implemented yet" );
-}
-
-#include "backupdlg.moc"
diff --git a/libk9copy/dvdprogress.cpp b/libk9copy/dvdprogress.cpp
deleted file mode 100644
index 6eef7cc..0000000
--- a/libk9copy/dvdprogress.cpp
+++ /dev/null
@@ -1,97 +0,0 @@
-#include <tdelocale.h>
-/****************************************************************************
-** Form implementation generated from reading ui file './dvdprogress.ui'
-**
-** Created: dim. oct. 26 08:55:59 2008
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#include "dvdprogress.h"
-
-#include <tqvariant.h>
-#include <tqpushbutton.h>
-#include <tqlabel.h>
-#include <tqprogressbar.h>
-#include <tqlayout.h>
-#include <tqtooltip.h>
-#include <tqwhatsthis.h>
-
-/*
- * Constructs a DVDProgress as a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
-DVDProgress::DVDProgress( TQWidget* parent, const char* name, bool modal, WFlags fl )
- : TQDialog( parent, name, modal, fl )
-{
- if ( !name )
- setName( "DVDProgress" );
- setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
- setMinimumSize( TQSize( 0, 150 ) );
- setMaximumSize( TQSize( 400, 150 ) );
- setCursor( TQCursor( 3 ) );
- DVDProgressLayout = new TQGridLayout( this, 1, 1, 11, 6, "DVDProgressLayout");
-
- layout2 = new TQVBoxLayout( 0, 0, 6, "layout2");
-
- lblTotal = new TQLabel( this, "lblTotal" );
- lblTotal->setCursor( TQCursor( 3 ) );
- layout2->addWidget( lblTotal );
-
- pbTotal = new TQProgressBar( this, "pbTotal" );
- pbTotal->setCursor( TQCursor( 3 ) );
- pbTotal->setProgress( 100 );
- pbTotal->setPercentageVisible( FALSE );
- layout2->addWidget( pbTotal );
-
- DVDProgressLayout->addLayout( layout2, 1, 0 );
-
- layout1 = new TQVBoxLayout( 0, 0, 6, "layout1");
-
- lblTitle = new TQLabel( this, "lblTitle" );
- lblTitle->setCursor( TQCursor( 3 ) );
- layout1->addWidget( lblTitle );
-
- pbTitle = new TQProgressBar( this, "pbTitle" );
- pbTitle->setCursor( TQCursor( 3 ) );
- pbTitle->setTotalSteps( 100 );
- pbTitle->setProgress( 100 );
- pbTitle->setCenterIndicator( TRUE );
- pbTitle->setPercentageVisible( FALSE );
- layout1->addWidget( pbTitle );
-
- DVDProgressLayout->addLayout( layout1, 0, 0 );
-
- lblStatus = new TQLabel( this, "lblStatus" );
- lblStatus->setCursor( TQCursor( 3 ) );
-
- DVDProgressLayout->addWidget( lblStatus, 2, 0 );
- languageChange();
- resize( TQSize(278, 150).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DVDProgress::~DVDProgress()
-{
- // no need to delete child widgets, TQt does it all for us
-}
-
-/*
- * Sets the strings of the subwidgets using the current
- * language.
- */
-void DVDProgress::languageChange()
-{
- setCaption( tr2i18n( "k9Copy - DVD Analyze" ) );
- lblTotal->setText( TQString() );
- lblTitle->setText( TQString() );
- lblStatus->setText( TQString() );
-}
-
-#include "dvdprogress.moc"
diff --git a/libk9copy/mp4dlg.cpp b/libk9copy/mp4dlg.cpp
deleted file mode 100644
index 236157f..0000000
--- a/libk9copy/mp4dlg.cpp
+++ /dev/null
@@ -1,159 +0,0 @@
-#include <tdelocale.h>
-/****************************************************************************
-** Form implementation generated from reading ui file './mp4dlg.ui'
-**
-** Created: dim. oct. 26 08:55:59 2008
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#include "mp4dlg.h"
-
-#include <tqvariant.h>
-#include <tqpushbutton.h>
-#include <tqlabel.h>
-#include <kprogress.h>
-#include <tqframe.h>
-#include <kpushbutton.h>
-#include <tqlayout.h>
-#include <tqtooltip.h>
-#include <tqwhatsthis.h>
-#include "kprogress.h"
-#include "kpushbutton.h"
-
-/*
- * Constructs a MP4Dlg as a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-MP4Dlg::MP4Dlg( TQWidget* parent, const char* name, WFlags fl )
- : TQWidget( parent, name, fl )
-{
- if ( !name )
- setName( "MP4Dlg" );
- setCursor( TQCursor( 3 ) );
- MP4DlgLayout = new TQGridLayout( this, 1, 1, 11, 6, "MP4DlgLayout");
-
- lblTitle = new TQLabel( this, "lblTitle" );
- lblTitle->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)4, 0, 0, lblTitle->sizePolicy().hasHeightForWidth() ) );
- TQFont lblTitle_font( lblTitle->font() );
- lblTitle_font.setBold( TRUE );
- lblTitle->setFont( lblTitle_font );
- lblTitle->setCursor( TQCursor( 3 ) );
-
- MP4DlgLayout->addWidget( lblTitle, 0, 0 );
-
- pbProgress = new KProgress( this, "pbProgress" );
- pbProgress->setCursor( TQCursor( 3 ) );
-
- MP4DlgLayout->addMultiCellWidget( pbProgress, 3, 3, 0, 2 );
-
- frame3 = new TQFrame( this, "frame3" );
- frame3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) );
- frame3->setCursor( TQCursor( 3 ) );
- frame3->setFrameShape( TQFrame::NoFrame );
- frame3->setFrameShadow( TQFrame::Raised );
- frame3Layout = new TQGridLayout( frame3, 1, 1, 11, 6, "frame3Layout");
-
- lblfps = new TQLabel( frame3, "lblfps" );
- lblfps->setCursor( TQCursor( 3 ) );
- lblfps->setAlignment( int( TQLabel::AlignVCenter ) );
-
- frame3Layout->addWidget( lblfps, 2, 1 );
-
- lblRemain = new TQLabel( frame3, "lblRemain" );
- lblRemain->setCursor( TQCursor( 3 ) );
- lblRemain->setAlignment( int( TQLabel::AlignVCenter ) );
-
- frame3Layout->addWidget( lblRemain, 3, 1 );
-
- lblsize = new TQLabel( frame3, "lblsize" );
- lblsize->setCursor( TQCursor( 3 ) );
-
- frame3Layout->addWidget( lblsize, 0, 1 );
-
- lblbitrate = new TQLabel( frame3, "lblbitrate" );
- lblbitrate->setCursor( TQCursor( 3 ) );
-
- frame3Layout->addWidget( lblbitrate, 1, 1 );
-
- textLabel2 = new TQLabel( frame3, "textLabel2" );
- textLabel2->setCursor( TQCursor( 3 ) );
-
- frame3Layout->addWidget( textLabel2, 2, 0 );
-
- textLabel2_2 = new TQLabel( frame3, "textLabel2_2" );
- textLabel2_2->setCursor( TQCursor( 3 ) );
-
- frame3Layout->addWidget( textLabel2_2, 3, 0 );
-
- textLabel1 = new TQLabel( frame3, "textLabel1" );
- textLabel1->setCursor( TQCursor( 3 ) );
-
- frame3Layout->addWidget( textLabel1, 1, 0 );
-
- textLabel3 = new TQLabel( frame3, "textLabel3" );
- textLabel3->setCursor( TQCursor( 3 ) );
-
- frame3Layout->addWidget( textLabel3, 0, 0 );
-
- MP4DlgLayout->addMultiCellWidget( frame3, 2, 2, 0, 2 );
-
- bCancel = new KPushButton( this, "bCancel" );
- bCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bCancel->sizePolicy().hasHeightForWidth() ) );
- bCancel->setCursor( TQCursor( 0 ) );
- bCancel->setProperty( "stdItem", 26 );
-
- MP4DlgLayout->addWidget( bCancel, 5, 2 );
- spacer1 = new TQSpacerItem( 225, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- MP4DlgLayout->addMultiCell( spacer1, 5, 5, 0, 1 );
- spacer2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
- MP4DlgLayout->addItem( spacer2, 4, 1 );
-
- image = new TQLabel( this, "image" );
- image->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, image->sizePolicy().hasHeightForWidth() ) );
- image->setMinimumSize( TQSize( 0, 250 ) );
- image->setPaletteBackgroundColor( TQColor( 0, 0, 0 ) );
- image->setCursor( TQCursor( 3 ) );
- image->setScaledContents( TRUE );
-
- MP4DlgLayout->addMultiCellWidget( image, 1, 1, 0, 2 );
- languageChange();
- resize( TQSize(416, 475).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
-
- // signals and slots connections
- connect( bCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( Cancel() ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-MP4Dlg::~MP4Dlg()
-{
- // no need to delete child widgets, TQt does it all for us
-}
-
-/*
- * Sets the strings of the subwidgets using the current
- * language.
- */
-void MP4Dlg::languageChange()
-{
- setCaption( tr2i18n( "k9Copy - transcoding" ) );
- lblTitle->setText( tr2i18n( "Encoding" ) );
- lblfps->setText( TQString() );
- lblRemain->setText( TQString() );
- lblsize->setText( TQString() );
- lblbitrate->setText( TQString() );
- textLabel2->setText( tr2i18n( "fps" ) );
- textLabel2_2->setText( tr2i18n( "Elapsed Time" ) );
- textLabel1->setText( tr2i18n( "Bitrate" ) );
- textLabel3->setText( tr2i18n( "Size" ) );
-}
-
-void MP4Dlg::Cancel()
-{
- tqWarning( "MP4Dlg::Cancel(): Not implemented yet" );
-}
-
-#include "mp4dlg.moc"
diff --git a/libk9copy/processList.cpp b/libk9copy/processList.cpp
deleted file mode 100644
index 742c694..0000000
--- a/libk9copy/processList.cpp
+++ /dev/null
@@ -1,81 +0,0 @@
-#include <tdelocale.h>
-/****************************************************************************
-** Form implementation generated from reading ui file './processList.ui'
-**
-** Created: dim. oct. 26 08:55:59 2008
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#include "processList.h"
-
-#include <tqvariant.h>
-#include <tqheader.h>
-#include <tqlistview.h>
-#include <kpushbutton.h>
-#include <tqlayout.h>
-#include <tqtooltip.h>
-#include <tqwhatsthis.h>
-#include "kpushbutton.h"
-
-/*
- * Constructs a processList as a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-processList::processList( TQWidget* parent, const char* name, WFlags fl )
- : TQWidget( parent, name, fl )
-{
- if ( !name )
- setName( "processList" );
- processListLayout = new TQGridLayout( this, 1, 1, 11, 6, "processListLayout");
-
- lProcess = new TQListView( this, "lProcess" );
- lProcess->addColumn( tr2i18n( "Processes" ) );
- lProcess->addColumn( tr2i18n( "Elapsed" ) );
- lProcess->addColumn( tr2i18n( "..." ) );
-
- processListLayout->addMultiCellWidget( lProcess, 0, 0, 0, 1 );
-
- bCancel = new KPushButton( this, "bCancel" );
- bCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bCancel->sizePolicy().hasHeightForWidth() ) );
- bCancel->setProperty( "stdItem", 2 );
-
- processListLayout->addWidget( bCancel, 1, 1 );
- spacer1 = new TQSpacerItem( 361, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- processListLayout->addItem( spacer1, 1, 0 );
- languageChange();
- resize( TQSize(600, 480).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
-
- // signals and slots connections
- connect( bCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bCancelClick() ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-processList::~processList()
-{
- // no need to delete child widgets, TQt does it all for us
-}
-
-/*
- * Sets the strings of the subwidgets using the current
- * language.
- */
-void processList::languageChange()
-{
- setCaption( tr2i18n( "Process List" ) );
- lProcess->header()->setLabel( 0, tr2i18n( "Processes" ) );
- lProcess->header()->setLabel( 1, tr2i18n( "Elapsed" ) );
- lProcess->header()->setLabel( 2, tr2i18n( "..." ) );
- bCancel->setText( tr2i18n( "&Cancel" ) );
- bCancel->setAccel( TQKeySequence( tr2i18n( "Alt+C" ) ) );
-}
-
-void processList::bCancelClick()
-{
- tqWarning( "processList::bCancelClick(): Not implemented yet" );
-}
-
-#include "processList.moc"
diff --git a/libk9copy/progress.cpp b/libk9copy/progress.cpp
deleted file mode 100644
index a47f292..0000000
--- a/libk9copy/progress.cpp
+++ /dev/null
@@ -1,127 +0,0 @@
-#include <tdelocale.h>
-/****************************************************************************
-** Form implementation generated from reading ui file './progress.ui'
-**
-** Created: dim. oct. 26 08:55:59 2008
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#include "progress.h"
-
-#include <tqvariant.h>
-#include <tqlabel.h>
-#include <kpushbutton.h>
-#include <kprogress.h>
-#include <tqlayout.h>
-#include <tqtooltip.h>
-#include <tqwhatsthis.h>
-#include "kpushbutton.h"
-#include "kprogress.h"
-
-/*
- * Constructs a Progress as a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-Progress::Progress( TQWidget* parent, const char* name, WFlags fl )
- : TQWidget( parent, name, fl )
-{
- if ( !name )
- setName( "Progress" );
- setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
- setMinimumSize( TQSize( 0, 0 ) );
- setCursor( TQCursor( 3 ) );
- setMouseTracking( FALSE );
- ProgressLayout = new TQGridLayout( this, 1, 1, 11, 6, "ProgressLayout");
-
- lblTitle = new TQLabel( this, "lblTitle" );
- lblTitle->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, lblTitle->sizePolicy().hasHeightForWidth() ) );
- TQFont lblTitle_font( lblTitle->font() );
- lblTitle_font.setBold( TRUE );
- lblTitle->setFont( lblTitle_font );
- lblTitle->setCursor( TQCursor( 3 ) );
-
- ProgressLayout->addMultiCellWidget( lblTitle, 0, 0, 0, 2 );
-
- bCancel = new KPushButton( this, "bCancel" );
- bCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bCancel->sizePolicy().hasHeightForWidth() ) );
- bCancel->setCursor( TQCursor( 0 ) );
- bCancel->setProperty( "stdItem", 26 );
-
- ProgressLayout->addWidget( bCancel, 6, 2 );
- spacer1 = new TQSpacerItem( 161, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- ProgressLayout->addMultiCell( spacer1, 6, 6, 0, 1 );
-
- ProgressBar = new KProgress( this, "ProgressBar" );
- ProgressBar->setCursor( TQCursor( 3 ) );
-
- ProgressLayout->addMultiCellWidget( ProgressBar, 4, 4, 0, 2 );
- spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
- ProgressLayout->addItem( spacer2, 5, 1 );
-
- image = new TQLabel( this, "image" );
- image->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, image->sizePolicy().hasHeightForWidth() ) );
- image->setMinimumSize( TQSize( 0, 250 ) );
- image->setPaletteBackgroundColor( TQColor( 0, 0, 0 ) );
- image->setFrameShape( TQLabel::NoFrame );
- image->setFrameShadow( TQLabel::Plain );
- image->setAlignment( int( TQLabel::AlignCenter ) );
-
- ProgressLayout->addMultiCellWidget( image, 1, 1, 0, 2 );
-
- textLabel1 = new TQLabel( this, "textLabel1" );
- textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
- textLabel1->setCursor( TQCursor( 3 ) );
-
- ProgressLayout->addWidget( textLabel1, 2, 0 );
-
- lblElapsed = new TQLabel( this, "lblElapsed" );
- lblElapsed->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, lblElapsed->sizePolicy().hasHeightForWidth() ) );
- lblElapsed->setCursor( TQCursor( 3 ) );
-
- ProgressLayout->addMultiCellWidget( lblElapsed, 2, 2, 1, 2 );
-
- LabelText = new TQLabel( this, "LabelText" );
- LabelText->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, LabelText->sizePolicy().hasHeightForWidth() ) );
- TQFont LabelText_font( LabelText->font() );
- LabelText_font.setItalic( TRUE );
- LabelText->setFont( LabelText_font );
- LabelText->setCursor( TQCursor( 3 ) );
- LabelText->setAlignment( int( TQLabel::AlignVCenter ) );
-
- ProgressLayout->addMultiCellWidget( LabelText, 3, 3, 0, 2 );
- languageChange();
- resize( TQSize(473, 467).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
-
- // signals and slots connections
- connect( bCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bCancelClick() ) );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-Progress::~Progress()
-{
- // no need to delete child widgets, TQt does it all for us
-}
-
-/*
- * Sets the strings of the subwidgets using the current
- * language.
- */
-void Progress::languageChange()
-{
- setCaption( tr2i18n( "k9Copy" ) );
- lblTitle->setText( TQString() );
- textLabel1->setText( tr2i18n( "Elapsed Time" ) );
- lblElapsed->setText( TQString() );
- LabelText->setText( TQString() );
-}
-
-void Progress::bCancelClick()
-{
- tqWarning( "Progress::bCancelClick(): Not implemented yet" );
-}
-
-#include "progress.moc"