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

logform.cpp

/****************************************************************************
** Form implementation generated from reading ui file 'logform.ui'
**
** Created: Fri Dec 24 13:15:39 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.3   edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "logform.h"

#include <qvariant.h>
#include <qframe.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "logform.ui.h"
/*
 *  Constructs a LogForm 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.
 */
LogForm::LogForm( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
      setName( "LogForm" );
    QFont f( font() );
    f.setFamily( "Sans Serif" );
    f.setPointSize( 10 );
    setFont( f ); 

    frame18 = new QFrame( this, "frame18" );
    frame18->setGeometry( QRect( 0, 0, 230, 360 ) );
    frame18->setFrameShape( QFrame::StyledPanel );
    frame18->setFrameShadow( QFrame::Raised );

    line1 = new QFrame( frame18, "line1" );
    line1->setGeometry( QRect( 0, 290, 230, 20 ) );
    line1->setFrameShape( QFrame::HLine );
    line1->setFrameShadow( QFrame::Sunken );
    line1->setFrameShape( QFrame::HLine );

    pushButton44 = new QPushButton( frame18, "pushButton44" );
    pushButton44->setGeometry( QRect( 50, 320, 140, 24 ) );

    textLabel1_6 = new QLabel( frame18, "textLabel1_6" );
    textLabel1_6->setGeometry( QRect( 40, 10, 160, 20 ) );
    QFont textLabel1_6_font(  textLabel1_6->font() );
    textLabel1_6_font.setBold( TRUE );
    textLabel1_6->setFont( textLabel1_6_font ); 
    textLabel1_6->setAlignment( int( QLabel::AlignCenter ) );

    textLabel2 = new QLabel( frame18, "textLabel2" );
    textLabel2->setGeometry( QRect( 30, 70, 72, 20 ) );
    QFont textLabel2_font(  textLabel2->font() );
    textLabel2_font.setBold( TRUE );
    textLabel2->setFont( textLabel2_font ); 

    textLabel2_2 = new QLabel( frame18, "textLabel2_2" );
    textLabel2_2->setGeometry( QRect( 130, 70, 72, 20 ) );
    QFont textLabel2_2_font(  textLabel2_2->font() );
    textLabel2_2_font.setBold( TRUE );
    textLabel2_2->setFont( textLabel2_2_font ); 

    textLabel1 = new QLabel( frame18, "textLabel1" );
    textLabel1->setGeometry( QRect( 40, 140, 160, 20 ) );
    QFont textLabel1_font(  textLabel1->font() );
    textLabel1_font.setBold( TRUE );
    textLabel1->setFont( textLabel1_font ); 
    textLabel1->setAlignment( int( QLabel::AlignCenter ) );

    RS_LE = new QLineEdit( frame18, "RS_LE" );
    RS_LE->setGeometry( QRect( 40, 100, 50, 22 ) );

    RR_LE = new QLineEdit( frame18, "RR_LE" );
    RR_LE->setGeometry( QRect( 140, 100, 50, 22 ) );

    notes_LE = new QLineEdit( frame18, "notes_LE" );
    notes_LE->setGeometry( QRect( 40, 170, 157, 22 ) );

    call_LE = new QLineEdit( frame18, "call_LE" );
    call_LE->setGeometry( QRect( 40, 40, 157, 22 ) );

    pushButton43 = new QPushButton( frame18, "pushButton43" );
    pushButton43->setGeometry( QRect( 50, 250, 130, 24 ) );
    languageChange();
    resize( QSize(230, 361).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButton44, SIGNAL( clicked() ), this, SLOT( close() ) );
    connect( pushButton43, SIGNAL( clicked() ), this, SLOT( dolog() ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void LogForm::languageChange()
{
    setCaption( tr( "Marote QSO Logger" ) );
    pushButton44->setText( tr( "Close Window" ) );
    textLabel1_6->setText( tr( "Callsign to Log" ) );
    textLabel2->setText( tr( "RST Sent" ) );
    textLabel2_2->setText( tr( "RST Rcvd" ) );
    textLabel1->setText( tr( "Notes" ) );
    QToolTip::add( notes_LE, tr( "Put contest data here" ) );
    pushButton43->setText( tr( "Log QSO" ) );
}


Generated by  Doxygen 1.6.0   Back to index