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: Wed Jun 14 18:54:08 2006
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 "ruleslistbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <klistbox.h>
00016 #include <kpushbutton.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 
00021 /*
00022  *  Constructs a KWinInternal::KCMRulesListBase as a child of 'parent', with the
00023  *  name 'name' and widget flags set to 'f'.
00024  */
00025 KWinInternal::KCMRulesListBase::KCMRulesListBase( QWidget* parent, const char* name, WFlags fl )
00026     : QWidget( parent, name, fl )
00027 {
00028     if ( !name )
00029     setName( "Form1" );
00030     Form1Layout = new QGridLayout( this, 1, 1, 0, KDialog::spacingHint(), "Form1Layout"); 
00031 
00032     rules_listbox = new KListBox( this, "rules_listbox" );
00033 
00034     Form1Layout->addMultiCellWidget( rules_listbox, 0, 5, 0, 0 );
00035 
00036     new_button = new KPushButton( this, "new_button" );
00037 
00038     Form1Layout->addWidget( new_button, 0, 1 );
00039 
00040     modify_button = new KPushButton( this, "modify_button" );
00041 
00042     Form1Layout->addWidget( modify_button, 1, 1 );
00043 
00044     delete_button = new KPushButton( this, "delete_button" );
00045 
00046     Form1Layout->addWidget( delete_button, 2, 1 );
00047 
00048     moveup_button = new KPushButton( this, "moveup_button" );
00049 
00050     Form1Layout->addWidget( moveup_button, 3, 1 );
00051 
00052     movedown_button = new KPushButton( this, "movedown_button" );
00053 
00054     Form1Layout->addWidget( movedown_button, 4, 1 );
00055     spacer1 = new QSpacerItem( 20, 294, QSizePolicy::Minimum, QSizePolicy::Expanding );
00056     Form1Layout->addItem( spacer1, 5, 1 );
00057     languageChange();
00058     resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
00059     clearWState( WState_Polished );
00060 }
00061 
00062 /*
00063  *  Destroys the object and frees any allocated resources
00064  */
00065 KWinInternal::KCMRulesListBase::~KCMRulesListBase()
00066 {
00067     // no need to delete child widgets, Qt does it all for us
00068 }
00069 
00070 /*
00071  *  Sets the strings of the subwidgets using the current
00072  *  language.
00073  */
00074 void KWinInternal::KCMRulesListBase::languageChange()
00075 {
00076     new_button->setText( tr2i18n( "&New..." ) );
00077     modify_button->setText( tr2i18n( "&Modify..." ) );
00078     delete_button->setText( tr2i18n( "Delete" ) );
00079     delete_button->setAccel( QKeySequence( QString::null ) );
00080     moveup_button->setText( tr2i18n( "Move &Up" ) );
00081     movedown_button->setText( tr2i18n( "Move &Down" ) );
00082 }
00083 
00084 #include "ruleslistbase.moc"
KDE Logo
This file is part of the documentation for kwin Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jun 14 19:06:10 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003