#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './warndlgbase.ui' ** ** Created: Вск Мар 4 15:40:51 2007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "warndlgbase.h" #include #include #include #include #include #include #include /* * Constructs a WarnDlgBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ WarnDlgBase::WarnDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "WarningDlg" ); setProperty( "sizeGripEnabled", QVariant( TRUE, 0 ) ); WarningDlgLayout = new QVBoxLayout( this, 11, 6, "WarningDlgLayout"); lblInfo = new QLabel( this, "lblInfo" ); lblInfo->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); WarningDlgLayout->addWidget( lblInfo ); chkAnon = new QCheckBox( this, "chkAnon" ); WarningDlgLayout->addWidget( chkAnon ); TextLabel4 = new QLabel( this, "TextLabel4" ); TextLabel4->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignTop | QLabel::AlignLeft ) ); WarningDlgLayout->addWidget( TextLabel4 ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Horizontal_Spacing2 ); buttonOk = new QPushButton( this, "buttonOk" ); buttonOk->setProperty( "autoDefault", QVariant( TRUE, 0 ) ); buttonOk->setProperty( "default", QVariant( TRUE, 0 ) ); Layout1->addWidget( buttonOk ); buttonCancel = new QPushButton( this, "buttonCancel" ); buttonCancel->setProperty( "autoDefault", QVariant( TRUE, 0 ) ); Layout1->addWidget( buttonCancel ); WarningDlgLayout->addLayout( Layout1 ); languageChange(); resize( QSize(374, 193).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); } /* * Destroys the object and frees any allocated resources */ WarnDlgBase::~WarnDlgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void WarnDlgBase::languageChange() { setProperty( "caption", i18n( "Send warning" ) ); lblInfo->setProperty( "text", i18n( "Click OK to send warning to %1. This will raise %1's warning and limit his or her activity. Do this only if %1 has done something to merit a warning." ) ); chkAnon->setProperty( "text", i18n( "Warn &anonymously" ) ); TextLabel4->setProperty( "text", i18n( "Check this if you don't want your screen name revealed.\n" "Anonymous warnings are less severe." ) ); buttonOk->setProperty( "text", i18n( "&OK" ) ); buttonCancel->setProperty( "text", i18n( "&Cancel" ) ); } #include "warndlgbase.moc"