1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
|
/****************************************************************************
** Form implementation generated from reading ui file 'form1.ui'
**
** Created: Sat Nov 3 23:20:10 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.3" ) );
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" ) );
}
|