summaryrefslogtreecommitdiffstats
path: root/src/sources/labelsourcePrefs.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 19:54:13 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-10 19:54:13 +0000
commitda7847adb43726079c7a4be1f06acbebe0bdde57 (patch)
tree0138139a2d4a3a213319cc5e23e409b90a9fcc6b /src/sources/labelsourcePrefs.cpp
downloadkima-da7847adb43726079c7a4be1f06acbebe0bdde57.tar.gz
kima-da7847adb43726079c7a4be1f06acbebe0bdde57.zip
Added old abandoned KDE3 version of Kima
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kima@1088422 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/sources/labelsourcePrefs.cpp')
-rw-r--r--src/sources/labelsourcePrefs.cpp110
1 files changed, 110 insertions, 0 deletions
diff --git a/src/sources/labelsourcePrefs.cpp b/src/sources/labelsourcePrefs.cpp
new file mode 100644
index 0000000..fda5ea3
--- /dev/null
+++ b/src/sources/labelsourcePrefs.cpp
@@ -0,0 +1,110 @@
+#include <kdialog.h>
+#include <klocale.h>
+/****************************************************************************
+** Form implementation generated from reading ui file './labelsourcePrefs.ui'
+**
+** Created: Thu Jun 21 19:16:51 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 "labelsourcePrefs.h"
+
+#include <qvariant.h>
+#include <qpushbutton.h>
+#include <qframe.h>
+#include <qlabel.h>
+#include <kcolorbutton.h>
+#include <kfontrequester.h>
+#include <qcombobox.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+
+/*
+ * Constructs a LabelSourcePrefs as a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'.
+ */
+LabelSourcePrefs::LabelSourcePrefs( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ if ( !name )
+ setName( "LabelSourcePrefs" );
+ LabelSourcePrefsLayout = new QVBoxLayout( this, 0, 6, "LabelSourcePrefsLayout");
+
+ defaultSourcePrefsFrame = new QFrame( this, "defaultSourcePrefsFrame" );
+ defaultSourcePrefsFrame->setFrameShape( QFrame::NoFrame );
+ defaultSourcePrefsFrame->setFrameShadow( QFrame::Plain );
+ defaultSourcePrefsFrameLayout = new QVBoxLayout( defaultSourcePrefsFrame, 0, 6, "defaultSourcePrefsFrameLayout");
+
+ taskbartitleLabel = new QLabel( defaultSourcePrefsFrame, "taskbartitleLabel" );
+ QFont taskbartitleLabel_font( taskbartitleLabel->font() );
+ taskbartitleLabel_font.setBold( TRUE );
+ taskbartitleLabel->setFont( taskbartitleLabel_font );
+ defaultSourcePrefsFrameLayout->addWidget( taskbartitleLabel );
+
+ layout13 = new QHBoxLayout( 0, 0, 6, "layout13");
+
+ colorLabel = new QLabel( defaultSourcePrefsFrame, "colorLabel" );
+ layout13->addWidget( colorLabel );
+
+ colorButton = new KColorButton( defaultSourcePrefsFrame, "colorButton" );
+ layout13->addWidget( colorButton );
+ spacer1 = new QSpacerItem( 350, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ layout13->addItem( spacer1 );
+ defaultSourcePrefsFrameLayout->addLayout( layout13 );
+
+ layout17 = new QHBoxLayout( 0, 0, 6, "layout17");
+
+ fontLabel = new QLabel( defaultSourcePrefsFrame, "fontLabel" );
+ layout17->addWidget( fontLabel );
+
+ fontRequester = new KFontRequester( defaultSourcePrefsFrame, "fontRequester" );
+ layout17->addWidget( fontRequester );
+ defaultSourcePrefsFrameLayout->addLayout( layout17 );
+
+ layout18 = new QHBoxLayout( 0, 0, 6, "layout18");
+
+ alignmentLabel = new QLabel( defaultSourcePrefsFrame, "alignmentLabel" );
+ layout18->addWidget( alignmentLabel );
+
+ alignmentComboBox = new QComboBox( FALSE, defaultSourcePrefsFrame, "alignmentComboBox" );
+ layout18->addWidget( alignmentComboBox );
+ spacer2 = new QSpacerItem( 350, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ layout18->addItem( spacer2 );
+ defaultSourcePrefsFrameLayout->addLayout( layout18 );
+ LabelSourcePrefsLayout->addWidget( defaultSourcePrefsFrame );
+ languageChange();
+ resize( QSize(299, 135).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+LabelSourcePrefs::~LabelSourcePrefs()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+/*
+ * Sets the strings of the subwidgets using the current
+ * language.
+ */
+void LabelSourcePrefs::languageChange()
+{
+ setCaption( tr2i18n( "LabelSourcePrefs" ) );
+ taskbartitleLabel->setText( tr2i18n( "<br>\n"
+"Taskbar visual settings" ) );
+ colorLabel->setText( tr2i18n( "Foreground color:" ) );
+ colorButton->setText( QString::null );
+ fontLabel->setText( tr2i18n( "Font:" ) );
+ alignmentLabel->setText( tr2i18n( "Alignment:" ) );
+ alignmentComboBox->clear();
+ alignmentComboBox->insertItem( tr2i18n( "Left" ) );
+ alignmentComboBox->insertItem( tr2i18n( "Center" ) );
+ alignmentComboBox->insertItem( tr2i18n( "Right" ) );
+}
+
+#include "labelsourcePrefs.moc"