summaryrefslogtreecommitdiffstats
path: root/src/prefAuthor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefAuthor.cpp')
-rw-r--r--src/prefAuthor.cpp165
1 files changed, 165 insertions, 0 deletions
diff --git a/src/prefAuthor.cpp b/src/prefAuthor.cpp
new file mode 100644
index 0000000..f43d619
--- /dev/null
+++ b/src/prefAuthor.cpp
@@ -0,0 +1,165 @@
+#include <klocale.h>
+/****************************************************************************
+** Form implementation generated from reading ui file './prefAuthor.ui'
+**
+** Created: dim. oct. 26 08:57:35 2008
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+
+#include "prefAuthor.h"
+
+#include <qvariant.h>
+#include <qpushbutton.h>
+#include <qgroupbox.h>
+#include <qcombobox.h>
+#include <qlabel.h>
+#include <knuminput.h>
+#include <kpushbutton.h>
+#include <kcolorbutton.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include "knuminput.h"
+#include "kpushbutton.h"
+#include "kcolorbutton.h"
+
+/*
+ * Constructs a prefAuthor as a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'.
+ */
+prefAuthor::prefAuthor( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ if ( !name )
+ setName( "prefAuthor" );
+ prefAuthorLayout = new QGridLayout( this, 1, 1, 11, 6, "prefAuthorLayout");
+
+ groupBox1 = new QGroupBox( this, "groupBox1" );
+ groupBox1->setColumnLayout(0, Qt::Vertical );
+ groupBox1->layout()->setSpacing( 6 );
+ groupBox1->layout()->setMargin( 11 );
+ groupBox1Layout = new QGridLayout( groupBox1->layout() );
+ groupBox1Layout->setAlignment( Qt::AlignTop );
+
+ cbAudioFormat = new QComboBox( FALSE, groupBox1, "cbAudioFormat" );
+
+ groupBox1Layout->addWidget( cbAudioFormat, 0, 1 );
+
+ cbAudioBitrate = new QComboBox( FALSE, groupBox1, "cbAudioBitrate" );
+
+ groupBox1Layout->addWidget( cbAudioBitrate, 1, 1 );
+
+ textLabel1 = new QLabel( groupBox1, "textLabel1" );
+
+ groupBox1Layout->addWidget( textLabel1, 0, 0 );
+
+ textLabel2 = new QLabel( groupBox1, "textLabel2" );
+
+ groupBox1Layout->addWidget( textLabel2, 1, 0 );
+ spacer1 = new QSpacerItem( 151, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ groupBox1Layout->addMultiCell( spacer1, 0, 1, 2, 2 );
+
+ prefAuthorLayout->addWidget( groupBox1, 0, 0 );
+ spacer3 = new QSpacerItem( 20, 60, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ prefAuthorLayout->addItem( spacer3, 2, 0 );
+
+ groupBox2 = new QGroupBox( this, "groupBox2" );
+ groupBox2->setColumnLayout(0, Qt::Vertical );
+ groupBox2->layout()->setSpacing( 6 );
+ groupBox2->layout()->setMargin( 11 );
+ groupBox2Layout = new QGridLayout( groupBox2->layout() );
+ groupBox2Layout->setAlignment( Qt::AlignTop );
+
+ textLabel3 = new QLabel( groupBox2, "textLabel3" );
+
+ groupBox2Layout->addWidget( textLabel3, 0, 0 );
+ spacer2 = new QSpacerItem( 121, 31, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ groupBox2Layout->addItem( spacer2, 0, 2 );
+
+ textLabel5 = new QLabel( groupBox2, "textLabel5" );
+
+ groupBox2Layout->addWidget( textLabel5, 1, 0 );
+
+ inButtonHeight = new KIntNumInput( groupBox2, "inButtonHeight" );
+ inButtonHeight->setMinValue( 0 );
+ inButtonHeight->setMaxValue( 480 );
+
+ groupBox2Layout->addWidget( inButtonHeight, 1, 1 );
+
+ inButtonWidth = new KIntNumInput( groupBox2, "inButtonWidth" );
+ inButtonWidth->setMinValue( 0 );
+ inButtonWidth->setMaxValue( 700 );
+
+ groupBox2Layout->addWidget( inButtonWidth, 0, 1 );
+
+ bButtonFont = new KPushButton( groupBox2, "bButtonFont" );
+
+ groupBox2Layout->addWidget( bButtonFont, 4, 1 );
+
+ textLabel6 = new QLabel( groupBox2, "textLabel6" );
+
+ groupBox2Layout->addWidget( textLabel6, 2, 0 );
+
+ cbHiliteColor = new KColorButton( groupBox2, "cbHiliteColor" );
+
+ groupBox2Layout->addWidget( cbHiliteColor, 2, 1 );
+
+ textLabel6_2 = new QLabel( groupBox2, "textLabel6_2" );
+
+ groupBox2Layout->addWidget( textLabel6_2, 3, 0 );
+
+ cbTextColor = new KColorButton( groupBox2, "cbTextColor" );
+
+ groupBox2Layout->addWidget( cbTextColor, 3, 1 );
+
+ prefAuthorLayout->addWidget( groupBox2, 1, 0 );
+ languageChange();
+ resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+
+ // signals and slots connections
+ connect( bButtonFont, SIGNAL( clicked() ), this, SLOT( bButtonFontClicked() ) );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+prefAuthor::~prefAuthor()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+/*
+ * Sets the strings of the subwidgets using the current
+ * language.
+ */
+void prefAuthor::languageChange()
+{
+ setCaption( tr2i18n( "Authoring options" ) );
+ groupBox1->setTitle( tr2i18n( "Audio" ) );
+ cbAudioFormat->clear();
+ cbAudioFormat->insertItem( tr2i18n( "AC3" ) );
+ cbAudioFormat->insertItem( tr2i18n( "MP2" ) );
+ cbAudioBitrate->clear();
+ cbAudioBitrate->insertItem( tr2i18n( "128" ) );
+ cbAudioBitrate->insertItem( tr2i18n( "192" ) );
+ cbAudioBitrate->insertItem( tr2i18n( "320" ) );
+ textLabel1->setText( tr2i18n( "Format" ) );
+ textLabel2->setText( tr2i18n( "Bitrate" ) );
+ groupBox2->setTitle( tr2i18n( "Buttons" ) );
+ textLabel3->setText( tr2i18n( "Width" ) );
+ textLabel5->setText( tr2i18n( "Height" ) );
+ bButtonFont->setText( tr2i18n( "Font" ) );
+ textLabel6->setText( tr2i18n( "Hilite color" ) );
+ cbHiliteColor->setText( QString::null );
+ textLabel6_2->setText( tr2i18n( "Text color" ) );
+ cbTextColor->setText( QString::null );
+}
+
+void prefAuthor::bButtonFontClicked()
+{
+ qWarning( "prefAuthor::bButtonFontClicked(): Not implemented yet" );
+}
+
+#include "prefAuthor.moc"