KDevelop API Documentation

vcscolorsconfigwidgetbase.cpp

Go to the documentation of this file.
00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './vcscolorsconfigwidgetbase.ui'
00005 **
00006 ** Created: Tue Mar 22 23:46:59 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "vcscolorsconfigwidgetbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qgroupbox.h>
00016 #include <qlabel.h>
00017 #include <kcolorcombo.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a VCSColorsConfigWidgetBase as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 VCSColorsConfigWidgetBase::VCSColorsConfigWidgetBase( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "VCSColorsConfigWidgetBase" );
00031     VCSColorsConfigWidgetBaseLayout = new QVBoxLayout( this, 11, 6, "VCSColorsConfigWidgetBaseLayout"); 
00032 
00033     groupBox1 = new QGroupBox( this, "groupBox1" );
00034     groupBox1->setColumnLayout(0, Qt::Vertical );
00035     groupBox1->layout()->setSpacing( 6 );
00036     groupBox1->layout()->setMargin( 11 );
00037     groupBox1Layout = new QGridLayout( groupBox1->layout() );
00038     groupBox1Layout->setAlignment( Qt::AlignTop );
00039 
00040     textLabel2 = new QLabel( groupBox1, "textLabel2" );
00041     textLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );
00042 
00043     groupBox1Layout->addWidget( textLabel2, 1, 0 );
00044 
00045     textLabel3 = new QLabel( groupBox1, "textLabel3" );
00046     textLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
00047 
00048     groupBox1Layout->addWidget( textLabel3, 2, 0 );
00049 
00050     textLabel4 = new QLabel( groupBox1, "textLabel4" );
00051     textLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) );
00052 
00053     groupBox1Layout->addWidget( textLabel4, 3, 0 );
00054 
00055     textLabel1 = new QLabel( groupBox1, "textLabel1" );
00056     textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
00057 
00058     groupBox1Layout->addWidget( textLabel1, 0, 0 );
00059 
00060     textLabel5 = new QLabel( groupBox1, "textLabel5" );
00061     textLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel5->sizePolicy().hasHeightForWidth() ) );
00062 
00063     groupBox1Layout->addWidget( textLabel5, 4, 0 );
00064 
00065     textLabel5_3 = new QLabel( groupBox1, "textLabel5_3" );
00066     textLabel5_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel5_3->sizePolicy().hasHeightForWidth() ) );
00067 
00068     groupBox1Layout->addWidget( textLabel5_3, 6, 0 );
00069 
00070     textLabel5_2 = new QLabel( groupBox1, "textLabel5_2" );
00071     textLabel5_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel5_2->sizePolicy().hasHeightForWidth() ) );
00072 
00073     groupBox1Layout->addWidget( textLabel5_2, 5, 0 );
00074 
00075     textLabel6 = new QLabel( groupBox1, "textLabel6" );
00076     textLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel6->sizePolicy().hasHeightForWidth() ) );
00077 
00078     groupBox1Layout->addWidget( textLabel6, 7, 0 );
00079 
00080     textLabel6_2 = new QLabel( groupBox1, "textLabel6_2" );
00081     textLabel6_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel6_2->sizePolicy().hasHeightForWidth() ) );
00082 
00083     groupBox1Layout->addWidget( textLabel6_2, 8, 0 );
00084 
00085     fileModifiedColorCombo = new KColorCombo( groupBox1, "fileModifiedColorCombo" );
00086 
00087     groupBox1Layout->addWidget( fileModifiedColorCombo, 2, 1 );
00088 
00089     fileConflictColorCombo = new KColorCombo( groupBox1, "fileConflictColorCombo" );
00090 
00091     groupBox1Layout->addWidget( fileConflictColorCombo, 3, 1 );
00092 
00093     fileUnknownColorCombo = new KColorCombo( groupBox1, "fileUnknownColorCombo" );
00094 
00095     groupBox1Layout->addWidget( fileUnknownColorCombo, 7, 1 );
00096 
00097     fileNeedsCheckoutColorCombo = new KColorCombo( groupBox1, "fileNeedsCheckoutColorCombo" );
00098 
00099     groupBox1Layout->addWidget( fileNeedsCheckoutColorCombo, 6, 1 );
00100 
00101     defaultColorCombo = new KColorCombo( groupBox1, "defaultColorCombo" );
00102 
00103     groupBox1Layout->addWidget( defaultColorCombo, 8, 1 );
00104 
00105     fileStickyColorCombo = new KColorCombo( groupBox1, "fileStickyColorCombo" );
00106 
00107     groupBox1Layout->addWidget( fileStickyColorCombo, 4, 1 );
00108 
00109     fileNeedsPatchColorCombo = new KColorCombo( groupBox1, "fileNeedsPatchColorCombo" );
00110 
00111     groupBox1Layout->addWidget( fileNeedsPatchColorCombo, 5, 1 );
00112 
00113     fileAddedColorCombo = new KColorCombo( groupBox1, "fileAddedColorCombo" );
00114 
00115     groupBox1Layout->addWidget( fileAddedColorCombo, 0, 1 );
00116 
00117     fileUpdatedColorCombo = new KColorCombo( groupBox1, "fileUpdatedColorCombo" );
00118 
00119     groupBox1Layout->addWidget( fileUpdatedColorCombo, 1, 1 );
00120     VCSColorsConfigWidgetBaseLayout->addWidget( groupBox1 );
00121     languageChange();
00122     resize( QSize(410, 324).expandedTo(minimumSizeHint()) );
00123     clearWState( WState_Polished );
00124 
00125     // buddies
00126     textLabel2->setBuddy( fileUpdatedColorCombo );
00127     textLabel3->setBuddy( fileModifiedColorCombo );
00128     textLabel4->setBuddy( fileConflictColorCombo );
00129     textLabel1->setBuddy( fileAddedColorCombo );
00130     textLabel5->setBuddy( fileStickyColorCombo );
00131     textLabel5_3->setBuddy( fileStickyColorCombo );
00132     textLabel5_2->setBuddy( fileStickyColorCombo );
00133     textLabel6->setBuddy( fileUnknownColorCombo );
00134     textLabel6_2->setBuddy( defaultColorCombo );
00135 }
00136 
00137 /*
00138  *  Destroys the object and frees any allocated resources
00139  */
00140 VCSColorsConfigWidgetBase::~VCSColorsConfigWidgetBase()
00141 {
00142     // no need to delete child widgets, Qt does it all for us
00143 }
00144 
00145 /*
00146  *  Sets the strings of the subwidgets using the current
00147  *  language.
00148  */
00149 void VCSColorsConfigWidgetBase::languageChange()
00150 {
00151     setCaption( tr2i18n( "Colors for VCS Visual Feedback" ) );
00152     groupBox1->setTitle( tr2i18n( "Colors to Use for Version Control Feedback" ) );
00153     textLabel2->setText( tr2i18n( "&Updated:" ) );
00154     textLabel3->setText( tr2i18n( "&Modified:" ) );
00155     textLabel4->setText( tr2i18n( "Co&nflict:" ) );
00156     textLabel1->setText( tr2i18n( "&Added:" ) );
00157     textLabel5->setText( tr2i18n( "&Sticky:" ) );
00158     textLabel5_3->setText( tr2i18n( "&Needs checkout:" ) );
00159     textLabel5_2->setText( tr2i18n( "&Needs patch:" ) );
00160     textLabel6->setText( tr2i18n( "Un&known:" ) );
00161     textLabel6_2->setText( tr2i18n( "&Default:" ) );
00162 }
00163 
00164 #include "vcscolorsconfigwidgetbase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:57 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003