KDevelop API Documentation

phpinfodlg.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 './phpinfodlg.ui'
00005 **
00006 ** Created: Tue Mar 22 23:55:27 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 "phpinfodlg.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qmultilineedit.h>
00017 #include <qpushbutton.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a PHPInfoDlg as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  *
00026  *  The dialog will by default be modeless, unless you set 'modal' to
00027  *  TRUE to construct a modal dialog.
00028  */
00029 PHPInfoDlg::PHPInfoDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
00030     : QDialog( parent, name, modal, fl )
00031 {
00032     if ( !name )
00033     setName( "PHPInfoDlg" );
00034     PHPInfoDlgLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "PHPInfoDlgLayout"); 
00035 
00036     php_edit = new QMultiLineEdit( this, "php_edit" );
00037 
00038     PHPInfoDlgLayout->addMultiCellWidget( php_edit, 0, 0, 0, 2 );
00039 
00040     ok_button = new QPushButton( this, "ok_button" );
00041     ok_button->setDefault( TRUE );
00042 
00043     PHPInfoDlgLayout->addWidget( ok_button, 1, 1 );
00044     Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00045     PHPInfoDlgLayout->addItem( Spacer3, 1, 2 );
00046     Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00047     PHPInfoDlgLayout->addItem( Spacer4, 1, 0 );
00048     languageChange();
00049     resize( QSize(412, 301).expandedTo(minimumSizeHint()) );
00050     clearWState( WState_Polished );
00051 
00052     // signals and slots connections
00053     connect( ok_button, SIGNAL( clicked() ), this, SLOT( accept() ) );
00054 }
00055 
00056 /*
00057  *  Destroys the object and frees any allocated resources
00058  */
00059 PHPInfoDlg::~PHPInfoDlg()
00060 {
00061     // no need to delete child widgets, Qt does it all for us
00062 }
00063 
00064 /*
00065  *  Sets the strings of the subwidgets using the current
00066  *  language.
00067  */
00068 void PHPInfoDlg::languageChange()
00069 {
00070     setCaption( tr2i18n( "PHP Information" ) );
00071     ok_button->setText( tr2i18n( "&OK" ) );
00072 }
00073 
00074 #include "phpinfodlg.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:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003