KDevelop API Documentation

generalconfigpage.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 './generalconfigpage.ui'
00005 **
00006 ** Created: Tue Mar 22 23:58:50 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 "generalconfigpage.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qcheckbox.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include "./generalconfigpage.ui.h"
00021 
00022 /*
00023  *  Constructs a GeneralConfigPage as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 GeneralConfigPage::GeneralConfigPage( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "GeneralConfigPage" );
00031     GeneralConfigPageLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "GeneralConfigPageLayout"); 
00032 
00033     Layout3 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout3"); 
00034 
00035     checkWordWrap = new QCheckBox( this, "checkWordWrap" );
00036     Layout3->addWidget( checkWordWrap );
00037 
00038     checkParenthesesMatching = new QCheckBox( this, "checkParenthesesMatching" );
00039     Layout3->addWidget( checkParenthesesMatching );
00040 
00041     checkShowMarkers = new QCheckBox( this, "checkShowMarkers" );
00042     Layout3->addWidget( checkShowMarkers );
00043 
00044     checkShowLineNumber = new QCheckBox( this, "checkShowLineNumber" );
00045     Layout3->addWidget( checkShowLineNumber );
00046 
00047     checkShowCodeFoldingMarkers = new QCheckBox( this, "checkShowCodeFoldingMarkers" );
00048     Layout3->addWidget( checkShowCodeFoldingMarkers );
00049 
00050     GeneralConfigPageLayout->addLayout( Layout3, 0, 0 );
00051     Spacer2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00052     GeneralConfigPageLayout->addItem( Spacer2, 0, 1 );
00053     Spacer3 = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
00054     GeneralConfigPageLayout->addItem( Spacer3, 1, 0 );
00055     languageChange();
00056     resize( QSize(439, 359).expandedTo(minimumSizeHint()) );
00057     clearWState( WState_Polished );
00058 
00059     // signals and slots connections
00060     init();
00061 }
00062 
00063 /*
00064  *  Destroys the object and frees any allocated resources
00065  */
00066 GeneralConfigPage::~GeneralConfigPage()
00067 {
00068     destroy();
00069     // no need to delete child widgets, Qt does it all for us
00070 }
00071 
00072 /*
00073  *  Sets the strings of the subwidgets using the current
00074  *  language.
00075  */
00076 void GeneralConfigPage::languageChange()
00077 {
00078     checkWordWrap->setText( tr2i18n( "Word wrap" ) );
00079     checkParenthesesMatching->setText( tr2i18n( "Parentheses matching" ) );
00080     checkShowMarkers->setText( tr2i18n( "Show markers" ) );
00081     checkShowLineNumber->setText( tr2i18n( "Show line number" ) );
00082     checkShowCodeFoldingMarkers->setText( tr2i18n( "Show folding markers" ) );
00083 }
00084 
00085 #include "generalconfigpage.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:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003