summaryrefslogtreecommitdiffstats
path: root/libk9copy/dvdprogress.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 /libk9copy/dvdprogress.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 'libk9copy/dvdprogress.cpp')
-rw-r--r--libk9copy/dvdprogress.cpp97
1 files changed, 97 insertions, 0 deletions
diff --git a/libk9copy/dvdprogress.cpp b/libk9copy/dvdprogress.cpp
new file mode 100644
index 0000000..273e551
--- /dev/null
+++ b/libk9copy/dvdprogress.cpp
@@ -0,0 +1,97 @@
+#include <klocale.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 <qvariant.h>
+#include <qpushbutton.h>
+#include <qlabel.h>
+#include <qprogressbar.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.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( QWidget* parent, const char* name, bool modal, WFlags fl )
+ : QDialog( parent, name, modal, fl )
+{
+ if ( !name )
+ setName( "DVDProgress" );
+ setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
+ setMinimumSize( QSize( 0, 150 ) );
+ setMaximumSize( QSize( 400, 150 ) );
+ setCursor( QCursor( 3 ) );
+ DVDProgressLayout = new QGridLayout( this, 1, 1, 11, 6, "DVDProgressLayout");
+
+ layout2 = new QVBoxLayout( 0, 0, 6, "layout2");
+
+ lblTotal = new QLabel( this, "lblTotal" );
+ lblTotal->setCursor( QCursor( 3 ) );
+ layout2->addWidget( lblTotal );
+
+ pbTotal = new QProgressBar( this, "pbTotal" );
+ pbTotal->setCursor( QCursor( 3 ) );
+ pbTotal->setProgress( 100 );
+ pbTotal->setPercentageVisible( FALSE );
+ layout2->addWidget( pbTotal );
+
+ DVDProgressLayout->addLayout( layout2, 1, 0 );
+
+ layout1 = new QVBoxLayout( 0, 0, 6, "layout1");
+
+ lblTitle = new QLabel( this, "lblTitle" );
+ lblTitle->setCursor( QCursor( 3 ) );
+ layout1->addWidget( lblTitle );
+
+ pbTitle = new QProgressBar( this, "pbTitle" );
+ pbTitle->setCursor( QCursor( 3 ) );
+ pbTitle->setTotalSteps( 100 );
+ pbTitle->setProgress( 100 );
+ pbTitle->setCenterIndicator( TRUE );
+ pbTitle->setPercentageVisible( FALSE );
+ layout1->addWidget( pbTitle );
+
+ DVDProgressLayout->addLayout( layout1, 0, 0 );
+
+ lblStatus = new QLabel( this, "lblStatus" );
+ lblStatus->setCursor( QCursor( 3 ) );
+
+ DVDProgressLayout->addWidget( lblStatus, 2, 0 );
+ languageChange();
+ resize( QSize(278, 150).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+DVDProgress::~DVDProgress()
+{
+ // no need to delete child widgets, Qt 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( QString::null );
+ lblTitle->setText( QString::null );
+ lblStatus->setText( QString::null );
+}
+
+#include "dvdprogress.moc"