/**************************************************************************** ** Form implementation generated from reading ui file 'qsodata.ui' ** ** Created: Wed Aug 25 14:54:55 2004 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.2 edited Nov 24 13:47 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "qsodata.h" #include #include #include #include #include #include #include #include #include "qsodata.ui.h" /* * Constructs a QSOData which is a child of 'parent', with the * name 'name'.' */ QSOData::QSOData( QWidget* parent, const char* name ) : QGroupBox( parent, name ) { if ( !name ) setName( "QSOData" ); setMinimumSize( QSize( 200, 190 ) ); setMaximumSize( QSize( 250, 200 ) ); setBaseSize( QSize( 190, 180 ) ); setAlignment( int( QGroupBox::AlignHCenter ) ); Date = new QLabel( this, "Date" ); Date->setGeometry( QRect( 5, 140, 35, 15 ) ); Date->setMaximumSize( QSize( 60, 15 ) ); Time = new QLabel( this, "Time" ); Time->setGeometry( QRect( 135, 140, 40, 15 ) ); His = new QLabel( this, "His" ); His->setGeometry( QRect( 5, 120, 55, 15 ) ); His->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, His->sizePolicy().hasHeightForWidth() ) ); His->setMaximumSize( QSize( 60, 15 ) ); His->setTextFormat( QLabel::PlainText ); Frequency = new QLabel( this, "Frequency" ); Frequency->setGeometry( QRect( 10, 97, 70, 15 ) ); Frequency->setMaximumSize( QSize( 80, 15 ) ); QTH = new QLabel( this, "QTH" ); QTH->setGeometry( QRect( 10, 56, 33, 16 ) ); line3 = new QFrame( this, "line3" ); line3->setGeometry( QRect( 1, 52, 255, 5 ) ); line3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, line3->sizePolicy().hasHeightForWidth() ) ); line3->setFrameShape( QFrame::HLine ); line3->setFrameShadow( QFrame::Sunken ); line3->setFrameShape( QFrame::HLine ); line5 = new QFrame( this, "line5" ); line5->setGeometry( QRect( 1, 93, 255, 5 ) ); line5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, line5->sizePolicy().hasHeightForWidth() ) ); line5->setFrameShape( QFrame::HLine ); line5->setFrameShadow( QFrame::Sunken ); line5->setFrameShape( QFrame::HLine ); line4 = new QFrame( this, "line4" ); line4->setGeometry( QRect( 1, 115, 255, 5 ) ); line4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, line4->sizePolicy().hasHeightForWidth() ) ); line4->setFrameShape( QFrame::HLine ); line4->setFrameShadow( QFrame::Sunken ); line4->setFrameShape( QFrame::HLine ); Locator = new QLabel( this, "Locator" ); Locator->setGeometry( QRect( 10, 75, 50, 15 ) ); QsoDate = new QLineEdit( this, "QsoDate" ); QsoDate->setGeometry( QRect( 45, 140, 80, 15 ) ); QsoDate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QsoDate->sizePolicy().hasHeightForWidth() ) ); QsoDate->setMaximumSize( QSize( 80, 15 ) ); HisRST = new QLineEdit( this, "HisRST" ); HisRST->setGeometry( QRect( 73, 120, 50, 15 ) ); HisRST->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 60, 20, HisRST->sizePolicy().hasHeightForWidth() ) ); HisRST->setMaximumSize( QSize( 60, 15 ) ); Mine = new QLabel( this, "Mine" ); Mine->setGeometry( QRect( 130, 120, 60, 15 ) ); Mine->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, Mine->sizePolicy().hasHeightForWidth() ) ); Mine->setMaximumSize( QSize( 60, 15 ) ); Mine->setTextFormat( QLabel::PlainText ); Name = new QLabel( this, "Name" ); Name->setGeometry( QRect( 10, 35, 50, 16 ) ); Name->setFrameShape( QLabel::NoFrame ); Name->setFrameShadow( QLabel::Plain ); RemoteCall = new QLabel( this, "RemoteCall" ); RemoteCall->setGeometry( QRect( 10, 18, 50, 15 ) ); RemoteCall->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, RemoteCall->sizePolicy().hasHeightForWidth() ) ); RemoteCall->setTextFormat( QLabel::PlainText ); RemoteCall->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); Refresh = new QPushButton( this, "Refresh" ); Refresh->setGeometry( QRect( 95, 170, 67, 29 ) ); QFont Refresh_font( Refresh->font() ); Refresh->setFont( Refresh_font ); Clear = new QPushButton( this, "Clear" ); Clear->setGeometry( QRect( 180, 170, 60, 30 ) ); QFont Clear_font( Clear->font() ); Clear->setFont( Clear_font ); Save = new QPushButton( this, "Save" ); Save->setGeometry( QRect( 10, 170, 61, 30 ) ); Save->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, Save->sizePolicy().hasHeightForWidth() ) ); Save->setMinimumSize( QSize( 30, 20 ) ); QFont Save_font( Save->font() ); Save->setFont( Save_font ); Save->setFlat( FALSE ); MyRST = new QLineEdit( this, "MyRST" ); MyRST->setGeometry( QRect( 185, 120, 50, 15 ) ); MyRST->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 60, 20, MyRST->sizePolicy().hasHeightForWidth() ) ); MyRST->setMaximumSize( QSize( 50, 15 ) ); Loc = new QLineEdit( this, "Loc" ); Loc->setGeometry( QRect( 75, 75, 165, 15 ) ); Loc->setMaximumSize( QSize( 200, 15 ) ); QsoFrequency = new QLineEdit( this, "QsoFrequency" ); QsoFrequency->setGeometry( QRect( 105, 97, 100, 15 ) ); QsoFrequency->setMaximumSize( QSize( 100, 15 ) ); QsoTime = new QLineEdit( this, "QsoTime" ); QsoTime->setGeometry( QRect( 185, 140, 50, 15 ) ); QsoTime->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, QsoTime->sizePolicy().hasHeightForWidth() ) ); QsoTime->setMaximumSize( QSize( 50, 15 ) ); RemoteCallsign = new QLineEdit( this, "RemoteCallsign" ); RemoteCallsign->setGeometry( QRect( 75, 18, 165, 15 ) ); RemoteCallsign->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, RemoteCallsign->sizePolicy().hasHeightForWidth() ) ); RemoteCallsign->setMaximumSize( QSize( 200, 15 ) ); OpName = new QLineEdit( this, "OpName" ); OpName->setGeometry( QRect( 75, 35, 165, 15 ) ); OpName->setMaximumSize( QSize( 200, 15 ) ); Qth = new QLineEdit( this, "Qth" ); Qth->setGeometry( QRect( 75, 56, 165, 15 ) ); Qth->setMaximumSize( QSize( 200, 15 ) ); languageChange(); resize( QSize(250, 200).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( Clear, SIGNAL( clicked() ), this, SLOT( clear() ) ); connect( Refresh, SIGNAL( clicked() ), this, SLOT( refreshDateTime() ) ); connect( RemoteCallsign, SIGNAL( returnPressed() ), this, SLOT( Callsignchanged() ) ); connect( OpName, SIGNAL( returnPressed() ), this, SLOT( Namechanged() ) ); connect( Qth, SIGNAL( returnPressed() ), this, SLOT( QTHchanged() ) ); connect( Loc, SIGNAL( returnPressed() ), this, SLOT( Locatorchanged() ) ); connect( QsoFrequency, SIGNAL( returnPressed() ), this, SLOT( Frequencychanged() ) ); connect( HisRST, SIGNAL( returnPressed() ), this, SLOT( HisRSTchanged() ) ); connect( MyRST, SIGNAL( returnPressed() ), this, SLOT( MyRSTchanged() ) ); connect( QsoDate, SIGNAL( returnPressed() ), this, SLOT( Datechanged() ) ); connect( QsoTime, SIGNAL( returnPressed() ), this, SLOT( Timechanged() ) ); connect( RemoteCallsign, SIGNAL( lostFocus() ), this, SLOT( Callsignchanged() ) ); connect( OpName, SIGNAL( lostFocus() ), this, SLOT( Namechanged() ) ); connect( Qth, SIGNAL( lostFocus() ), this, SLOT( QTHchanged() ) ); connect( Loc, SIGNAL( lostFocus() ), this, SLOT( Locatorchanged() ) ); connect( QsoFrequency, SIGNAL( lostFocus() ), this, SLOT( Frequencychanged() ) ); connect( HisRST, SIGNAL( lostFocus() ), this, SLOT( HisRSTchanged() ) ); connect( MyRST, SIGNAL( lostFocus() ), this, SLOT( MyRSTchanged() ) ); connect( QsoDate, SIGNAL( lostFocus() ), this, SLOT( Datechanged() ) ); connect( QsoTime, SIGNAL( lostFocus() ), this, SLOT( Timechanged() ) ); connect( RemoteCallsign, SIGNAL( returnPressed() ), this, SLOT( Callsignchanged() ) ); connect( OpName, SIGNAL( returnPressed() ), this, SLOT( Namechanged() ) ); connect( Qth, SIGNAL( returnPressed() ), this, SLOT( QTHchanged() ) ); connect( Loc, SIGNAL( returnPressed() ), this, SLOT( Locatorchanged() ) ); connect( QsoFrequency, SIGNAL( returnPressed() ), this, SLOT( Frequencychanged() ) ); connect( HisRST, SIGNAL( returnPressed() ), this, SLOT( HisRSTchanged() ) ); connect( MyRST, SIGNAL( returnPressed() ), this, SLOT( MyRSTchanged() ) ); connect( QsoDate, SIGNAL( returnPressed() ), this, SLOT( Datechanged() ) ); connect( QsoTime, SIGNAL( returnPressed() ), this, SLOT( Timechanged() ) ); connect( Save, SIGNAL( clicked() ), this, SLOT( save() ) ); connect( RemoteCallsign, SIGNAL( lostFocus() ), this, SLOT( Callsignchanged() ) ); // tab order setTabOrder( RemoteCallsign, OpName ); setTabOrder( OpName, Qth ); setTabOrder( Qth, Loc ); setTabOrder( Loc, QsoFrequency ); setTabOrder( QsoFrequency, HisRST ); setTabOrder( HisRST, MyRST ); setTabOrder( MyRST, QsoDate ); setTabOrder( QsoDate, QsoTime ); setTabOrder( QsoTime, Save ); setTabOrder( Save, Refresh ); setTabOrder( Refresh, Clear ); init(); } /* * Destroys the object and frees any allocated resources */ QSOData::~QSOData() { destroy(); // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void QSOData::languageChange() { setCaption( tr( "QSOData" ) ); setTitle( tr( "QSOData" ) ); Date->setText( tr( "Date" ) ); Time->setText( tr( "Time" ) ); His->setText( tr( "His RST" ) ); Frequency->setText( tr( "Frequency" ) ); QTH->setText( tr( "QTH" ) ); Locator->setText( tr( "Locator" ) ); Mine->setText( tr( "My RST" ) ); Name->setText( tr( "Name" ) ); RemoteCall->setText( tr( "Callsign" ) ); Refresh->setText( tr( "Refresh" ) ); Clear->setText( tr( "Clear" ) ); Save->setText( tr( "Save" ) ); }