kwin Library API Documentation

ruleslistbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './ruleslistbase.ui'
00005 **
00006 ** Created: Thu Sep 8 02:35:12 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.3   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "ruleslistbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <klistbox.h>
00017 #include <kpushbutton.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a KWinInternal::KCMRulesListBase as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 KWinInternal::KCMRulesListBase::KCMRulesListBase( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "Form1" );
00031     Form1Layout = new QHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "Form1Layout"); 
00032 
00033     layout4 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 
00034 
00035     rules_listbox = new KListBox( this, "rules_listbox" );
00036     layout4->addWidget( rules_listbox );
00037 
00038     layout3 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "layout3"); 
00039 
00040     new_button = new KPushButton( this, "new_button" );
00041     layout3->addWidget( new_button );
00042 
00043     modify_button = new KPushButton( this, "modify_button" );
00044     layout3->addWidget( modify_button );
00045 
00046     delete_button = new KPushButton( this, "delete_button" );
00047     layout3->addWidget( delete_button );
00048 
00049     moveup_button = new KPushButton( this, "moveup_button" );
00050     layout3->addWidget( moveup_button );
00051 
00052     movedown_button = new KPushButton( this, "movedown_button" );
00053     layout3->addWidget( movedown_button );
00054     spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
00055     layout3->addItem( spacer1 );
00056     layout4->addLayout( layout3 );
00057     Form1Layout->addLayout( layout4 );
00058     languageChange();
00059     resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
00060     clearWState( WState_Polished );
00061 }
00062 
00063 /*
00064  *  Destroys the object and frees any allocated resources
00065  */
00066 KWinInternal::KCMRulesListBase::~KCMRulesListBase()
00067 {
00068     // no need to delete child widgets, Qt does it all for us
00069 }
00070 
00071 /*
00072  *  Sets the strings of the subwidgets using the current
00073  *  language.
00074  */
00075 void KWinInternal::KCMRulesListBase::languageChange()
00076 {
00077     new_button->setText( tr2i18n( "&New..." ) );
00078     modify_button->setText( tr2i18n( "&Modify..." ) );
00079     delete_button->setText( tr2i18n( "Delete" ) );
00080     delete_button->setAccel( QKeySequence( QString::null ) );
00081     moveup_button->setText( tr2i18n( "Move &Up" ) );
00082     movedown_button->setText( tr2i18n( "Move &Down" ) );
00083 }
00084 
00085 #include "ruleslistbase.moc"
KDE Logo
This file is part of the documentation for kwin Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 8 02:43:21 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003