www.pudn.com > code-qt.rar > hello_base.cpp


/****************************************************************************
** Form implementation generated from reading ui file 'hello_base.ui'
**
** Created: Fri Jan 13 17:16:48 2006
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "hello_base.h"

#include 
#include 
#include 
#include 
#include 
#include 

/* 
 *  Constructs a HelloBaseForm which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
HelloBaseForm::HelloBaseForm( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "HelloBaseForm" );
    resize( 632, 480 ); 
    setMaximumSize( QSize( 640, 480 ) );
    setCaption( tr( "My first Qtopia Application" ) );
    QWhatsThis::add(  this, tr( "hello?" ) );

    PushButton1 = new QPushButton( this, "PushButton1" );
    PushButton1->setGeometry( QRect( 245, 140, 185, 35 ) ); 
    PushButton1->setText( tr( "Hello,MagicARM2410!" ) );
    PushButton1->setAutoResize( TRUE );

    MessageLabel = new QLabel( this, "MessageLabel" );
    MessageLabel->setGeometry( QRect( 250, 250, 270, 30 ) ); 
    MessageLabel->setText( tr( "" ) );

    // signals and slots connections
    connect( PushButton1, SIGNAL( clicked() ), this, SLOT( SayHello() ) );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
HelloBaseForm::~HelloBaseForm()
{
    // no need to delete child widgets, Qt does it all for us
}

void HelloBaseForm::SayHello()
{
    qWarning( "HelloBaseForm::SayHello(): Not implemented yet!" );
}