summaryrefslogtreecommitdiffstats
path: root/src/prefs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs.cpp')
-rw-r--r--src/prefs.cpp71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/prefs.cpp b/src/prefs.cpp
new file mode 100644
index 0000000..ed1ec2b
--- /dev/null
+++ b/src/prefs.cpp
@@ -0,0 +1,71 @@
+#include <kdialog.h>
+#include <klocale.h>
+/****************************************************************************
+** Form implementation generated from reading ui file './prefs.ui'
+**
+** Created: Thu Jun 21 19:16:50 2007
+** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $)
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+
+#include "prefs.h"
+
+#include <qvariant.h>
+#include <qsplitter.h>
+#include <qheader.h>
+#include <klistview.h>
+#include <qwidgetstack.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+
+/*
+ * Constructs a Prefs as a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'.
+ */
+Prefs::Prefs( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ if ( !name )
+ setName( "Prefs" );
+ PrefsLayout = new QVBoxLayout( this, 0, 6, "PrefsLayout");
+
+ splitter3 = new QSplitter( this, "splitter3" );
+ splitter3->setOrientation( QSplitter::Horizontal );
+
+ sourceListView = new KListView( splitter3, "sourceListView" );
+ sourceListView->addColumn( tr2i18n( "Source" ) );
+ sourceListView->header()->setClickEnabled( FALSE, sourceListView->header()->count() - 1 );
+ sourceListView->header()->setResizeEnabled( FALSE, sourceListView->header()->count() - 1 );
+ sourceListView->setResizeMode( KListView::AllColumns );
+
+ widgetStack = new QWidgetStack( splitter3, "widgetStack" );
+
+ WStackPage = new QWidget( widgetStack, "WStackPage" );
+ widgetStack->addWidget( WStackPage, 0 );
+ PrefsLayout->addWidget( splitter3 );
+ languageChange();
+ resize( QSize(340, 73).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+Prefs::~Prefs()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+/*
+ * Sets the strings of the subwidgets using the current
+ * language.
+ */
+void Prefs::languageChange()
+{
+ setCaption( tr2i18n( "Preferences" ) );
+ sourceListView->header()->setLabel( 0, tr2i18n( "Source" ) );
+}
+
+#include "prefs.moc"