Logo Search packages:      
Sourcecode: callgit version File versions  Download package

form1.cpp

/****************************************************************************
** Form implementation generated from reading ui file 'form1.ui'
**
** Created: Mon Dec 10 11:38:44 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 "form1.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qlineedit.h>
#include <qtextedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "../form1.ui.h"
/*
 *  Constructs a Form1 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.
 */
Form1::Form1( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
      setName( "Form1" );

    exit_PB = new QPushButton( this, "exit_PB" );
    exit_PB->setGeometry( QRect( 270, 370, 111, 25 ) );
    QFont exit_PB_font(  exit_PB->font() );
    exit_PB_font.setBold( TRUE );
    exit_PB->setFont( exit_PB_font ); 

    textLabel1 = new QLabel( this, "textLabel1" );
    textLabel1->setGeometry( QRect( 13, 369, 170, 20 ) );
    QFont textLabel1_font(  textLabel1->font() );
    textLabel1_font.setPointSize( 8 );
    textLabel1->setFont( textLabel1_font ); 

    tabWidget2 = new QTabWidget( this, "tabWidget2" );
    tabWidget2->setGeometry( QRect( 1, 4, 380, 350 ) );

    tab = new QWidget( tabWidget2, "tab" );

    search_PB = new QPushButton( tab, "search_PB" );
    search_PB->setGeometry( QRect( 240, 50, 111, 25 ) );
    search_PB->setPaletteForegroundColor( QColor( 0, 170, 0 ) );
    search_PB->setPaletteBackgroundColor( QColor( 170, 255, 0 ) );
    QFont search_PB_font(  search_PB->font() );
    search_PB_font.setBold( TRUE );
    search_PB->setFont( search_PB_font ); 

    callsign_LE = new QLineEdit( tab, "callsign_LE" );
    callsign_LE->setGeometry( QRect( 10, 50, 123, 23 ) );
    callsign_LE->setPaletteBackgroundColor( QColor( 0, 170, 0 ) );
    QFont callsign_LE_font(  callsign_LE->font() );
    callsign_LE_font.setBold( TRUE );
    callsign_LE->setFont( callsign_LE_font ); 
    callsign_LE->setAlignment( int( QLineEdit::AlignHCenter ) );

    result_TE = new QTextEdit( tab, "result_TE" );
    result_TE->setGeometry( QRect( 10, 90, 340, 180 ) );
    result_TE->setPaletteBackgroundColor( QColor( 180, 180, 180 ) );
    result_TE->setReadOnly( TRUE );

    pushButton3 = new QPushButton( tab, "pushButton3" );
    pushButton3->setGeometry( QRect( 240, 280, 111, 25 ) );
    pushButton3->setPaletteForegroundColor( QColor( 0, 85, 255 ) );
    pushButton3->setPaletteBackgroundColor( QColor( 170, 170, 255 ) );
    QFont pushButton3_font(  pushButton3->font() );
    pushButton3_font.setBold( TRUE );
    pushButton3->setFont( pushButton3_font ); 
    tabWidget2->insertTab( tab, QString::fromLatin1("") );

    tab_2 = new QWidget( tabWidget2, "tab_2" );

    saved_TE = new QTextEdit( tab_2, "saved_TE" );
    saved_TE->setGeometry( QRect( 20, 20, 340, 180 ) );
    tabWidget2->insertTab( tab_2, QString::fromLatin1("") );
    languageChange();
    resize( QSize(389, 405).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( exit_PB, SIGNAL( clicked() ), this, SLOT( close() ) );
    connect( search_PB, SIGNAL( clicked() ), this, SLOT( getit() ) );
    connect( pushButton3, SIGNAL( clicked() ), this, SLOT( saveit() ) );

    // tab order
    setTabOrder( callsign_LE, search_PB );
    setTabOrder( search_PB, pushButton3 );
    setTabOrder( pushButton3, result_TE );
    setTabOrder( result_TE, exit_PB );
    setTabOrder( exit_PB, tabWidget2 );
    setTabOrder( tabWidget2, saved_TE );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Form1::languageChange()
{
    setCaption( tr( "CallGit 1.4" ) );
    setIconText( tr( "#aaaaff" ) );
    exit_PB->setText( tr( "EXIT" ) );
    textLabel1->setText( tr( "Written by Mike, K6EEP" ) );
    search_PB->setText( tr( "SEARCH" ) );
    callsign_LE->setText( tr( "w1aw" ) );
    result_TE->setText( tr( "<empty>" ) );
    pushButton3->setText( tr( "Save it" ) );
    tabWidget2->changeTab( tab, tr( "Main" ) );
    saved_TE->setText( tr( "<empty>" ) );
    tabWidget2->changeTab( tab_2, tr( "Saved" ) );
}


Generated by  Doxygen 1.6.0   Back to index