#include /**************************************************************************** ** Form implementation generated from reading ui file './serverspybase.ui' ** ** Created: Thu Jul 19 18:57:19 2007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.6 edited Aug 31 2005 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "serverspybase.h" #include #include #include #include #include #include #include /* * Constructs a ServerspyBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ ServerspyBase::ServerspyBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "ServerspyBase" ); ServerspyBaseLayout = new QVBoxLayout( this, 11, 6, "ServerspyBaseLayout"); layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); textLabel1 = new QLabel( this, "textLabel1" ); layout2->addWidget( textLabel1 ); m_address = new QLineEdit( this, "m_address" ); layout2->addWidget( m_address ); ServerspyBaseLayout->addLayout( layout2 ); m_output = new QLabel( this, "m_output" ); ServerspyBaseLayout->addWidget( m_output ); m_ip = new QLabel( this, "m_ip" ); ServerspyBaseLayout->addWidget( m_ip ); m_hostname = new QLabel( this, "m_hostname" ); ServerspyBaseLayout->addWidget( m_hostname ); layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); spacer1 = new QSpacerItem( 111, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); layout1->addItem( spacer1 ); m_find = new QPushButton( this, "m_find" ); layout1->addWidget( m_find ); m_quit = new QPushButton( this, "m_quit" ); layout1->addWidget( m_quit ); ServerspyBaseLayout->addLayout( layout1 ); languageChange(); resize( QSize(310, 144).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( m_find, SIGNAL( clicked() ), this, SLOT( findServer() ) ); connect( m_quit, SIGNAL( clicked() ), this, SLOT( close() ) ); connect( m_address, SIGNAL( returnPressed() ), this, SLOT( findServer() ) ); } /* * Destroys the object and frees any allocated resources */ ServerspyBase::~ServerspyBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ServerspyBase::languageChange() { setCaption( tr2i18n( "ServerSpy" ) ); textLabel1->setText( tr2i18n( "Server address:" ) ); m_output->setText( tr2i18n( "Response:" ) ); m_ip->setText( tr2i18n( "IP-address:" ) ); m_hostname->setText( tr2i18n( "Orig. hostname" ) ); m_find->setText( tr2i18n( "Find" ) ); m_quit->setText( tr2i18n( "Quit" ) ); } void ServerspyBase::findServer() { qWarning( "ServerspyBase::findServer(): Not implemented yet" ); } #include "serverspybase.moc"