languages/php/phpinfodlg.cpp
Go to the documentation of this file.00001
#include <kdialog.h>
00002
#include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
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
00024
00025
00026
00027
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
00053 connect(
ok_button, SIGNAL( clicked() ),
this, SLOT( accept() ) );
00054 }
00055
00056
00057
00058
00059 PHPInfoDlg::~PHPInfoDlg()
00060 {
00061
00062 }
00063
00064
00065
00066
00067
00068 void PHPInfoDlg::languageChange()
00069 {
00070 setCaption( tr2i18n(
"PHP Information" ) );
00071
ok_button->setText( tr2i18n(
"&OK" ) );
00072 }
00073
00074
#include "phpinfodlg.moc"
This file is part of the documentation for KDevelop Version 3.0.4.