Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

eclipsefinderdlgbase.uic.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'eclipsefinderdlgbase.ui'
00003 **
00004 ** Created: Sun Dec 11 15:21:30 2005
00005 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 
00010 #include "eclipsefinderdlgbase.uic.h"
00011 
00012 #include <qvariant.h>
00013 #include <qpushbutton.h>
00014 #include <qheader.h>
00015 #include <qlistview.h>
00016 #include <qbuttongroup.h>
00017 #include <qradiobutton.h>
00018 #include <qlabel.h>
00019 #include <kcombobox.h>
00020 #include <kpushbutton.h>
00021 #include <knuminput.h>
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qwhatsthis.h>
00025 #include <qaction.h>
00026 #include <qmenubar.h>
00027 #include <qpopupmenu.h>
00028 #include <qtoolbar.h>
00029 
00030 /*
00031  *  Constructs a EclipseFinderDlgBase as a child of 'parent', with the
00032  *  name 'name' and widget flags set to 'f'.
00033  *
00034  */
00035 EclipseFinderDlgBase::EclipseFinderDlgBase( QWidget* parent, const char* name, WFlags fl )
00036     : QMainWindow( parent, name, fl )
00037 {
00038     (void)statusBar();
00039     if ( !name )
00040         setName( "EclipseFinderDlgBase" );
00041     setCentralWidget( new QWidget( this, "qt_central_widget" ) );
00042     EclipseFinderDlgBaseLayout = new QVBoxLayout( centralWidget(), 11, 6, "EclipseFinderDlgBaseLayout"); 
00043 
00044     listEclipses = new QListView( centralWidget(), "listEclipses" );
00045     listEclipses->addColumn( tr( "Planet" ) );
00046     listEclipses->addColumn( tr( "Moon" ) );
00047     listEclipses->addColumn( tr( "Date" ) );
00048     listEclipses->addColumn( tr( "Start" ) );
00049     listEclipses->addColumn( tr( "End" ) );
00050     listEclipses->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 2, listEclipses->sizePolicy().hasHeightForWidth() ) );
00051     listEclipses->setAllColumnsShowFocus( TRUE );
00052     listEclipses->setShowSortIndicator( TRUE );
00053     listEclipses->setResizeMode( QListView::AllColumns );
00054     EclipseFinderDlgBaseLayout->addWidget( listEclipses );
00055 
00056     buttonGroup1 = new QButtonGroup( centralWidget(), "buttonGroup1" );
00057     buttonGroup1->setColumnLayout(0, Qt::Vertical );
00058     buttonGroup1->layout()->setSpacing( 6 );
00059     buttonGroup1->layout()->setMargin( 11 );
00060     buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() );
00061     buttonGroup1Layout->setAlignment( Qt::AlignTop );
00062 
00063     radioSolar = new QRadioButton( buttonGroup1, "radioSolar" );
00064     radioSolar->setChecked( TRUE );
00065 
00066     buttonGroup1Layout->addWidget( radioSolar, 0, 0 );
00067 
00068     layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 
00069 
00070     textLabel1_3 = new QLabel( buttonGroup1, "textLabel1_3" );
00071     layout1->addWidget( textLabel1_3 );
00072 
00073     comboBody = new KComboBox( FALSE, buttonGroup1, "comboBody" );
00074     layout1->addWidget( comboBody );
00075 
00076     buttonGroup1Layout->addLayout( layout1, 2, 0 );
00077 
00078     radioMoon = new QRadioButton( buttonGroup1, "radioMoon" );
00079 
00080     buttonGroup1Layout->addWidget( radioMoon, 1, 0 );
00081     spacer2 = new QSpacerItem( 190, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00082     buttonGroup1Layout->addItem( spacer2, 2, 1 );
00083 
00084     buttonSearch = new KPushButton( buttonGroup1, "buttonSearch" );
00085 
00086     buttonGroup1Layout->addWidget( buttonSearch, 2, 2 );
00087 
00088     layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); 
00089 
00090     textLabel3_3 = new QLabel( buttonGroup1, "textLabel3_3" );
00091     layout6->addWidget( textLabel3_3 );
00092 
00093     toYSpin = new KIntSpinBox( buttonGroup1, "toYSpin" );
00094     toYSpin->setMaxValue( 1000000000 );
00095     toYSpin->setMinValue( -1000000000 );
00096     layout6->addWidget( toYSpin );
00097 
00098     toMSpin = new KIntSpinBox( buttonGroup1, "toMSpin" );
00099     toMSpin->setWrapping( TRUE );
00100     toMSpin->setMaxValue( 12 );
00101     toMSpin->setMinValue( 1 );
00102     layout6->addWidget( toMSpin );
00103 
00104     toDSpin = new KIntSpinBox( buttonGroup1, "toDSpin" );
00105     toDSpin->setWrapping( TRUE );
00106     toDSpin->setMaxValue( 31 );
00107     toDSpin->setMinValue( 1 );
00108     layout6->addWidget( toDSpin );
00109 
00110     buttonGroup1Layout->addMultiCellLayout( layout6, 1, 1, 1, 2 );
00111 
00112     layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); 
00113 
00114     textLabel2_3 = new QLabel( buttonGroup1, "textLabel2_3" );
00115     layout5->addWidget( textLabel2_3 );
00116 
00117     fromYSpin = new KIntSpinBox( buttonGroup1, "fromYSpin" );
00118     fromYSpin->setMaxValue( 1000000000 );
00119     fromYSpin->setMinValue( -1000000000 );
00120     layout5->addWidget( fromYSpin );
00121 
00122     fromMSpin = new KIntSpinBox( buttonGroup1, "fromMSpin" );
00123     fromMSpin->setWrapping( TRUE );
00124     fromMSpin->setMaxValue( 12 );
00125     fromMSpin->setMinValue( 1 );
00126     layout5->addWidget( fromMSpin );
00127 
00128     fromDSpin = new KIntSpinBox( buttonGroup1, "fromDSpin" );
00129     fromDSpin->setWrapping( TRUE );
00130     fromDSpin->setMaxValue( 31 );
00131     fromDSpin->setMinValue( 1 );
00132     layout5->addWidget( fromDSpin );
00133 
00134     buttonGroup1Layout->addMultiCellLayout( layout5, 0, 0, 1, 2 );
00135     EclipseFinderDlgBaseLayout->addWidget( buttonGroup1 );
00136 
00137     layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 
00138     spacer3 = new QSpacerItem( 181, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00139     layout8->addItem( spacer3 );
00140 
00141     buttonClose = new KPushButton( centralWidget(), "buttonClose" );
00142     buttonClose->setAcceptDrops( FALSE );
00143     buttonClose->setOn( FALSE );
00144     buttonClose->setDefault( TRUE );
00145     layout8->addWidget( buttonClose );
00146     EclipseFinderDlgBaseLayout->addLayout( layout8 );
00147 
00148     // toolbars
00149 
00150     languageChange();
00151     resize( QSize(468, 461).expandedTo(minimumSizeHint()) );
00152     clearWState( WState_Polished );
00153 
00154     // signals and slots connections
00155     connect( listEclipses, SIGNAL( rightButtonClicked(QListViewItem*,const QPoint&,int) ), this, SLOT( gotoEclipse(QListViewItem*,const QPoint&,int) ) );
00156     connect( buttonSearch, SIGNAL( clicked() ), this, SLOT( search() ) );
00157     connect( buttonClose, SIGNAL( clicked() ), this, SLOT( close() ) );
00158 }
00159 
00160 /*
00161  *  Destroys the object and frees any allocated resources
00162  */
00163 EclipseFinderDlgBase::~EclipseFinderDlgBase()
00164 {
00165     // no need to delete child widgets, Qt does it all for us
00166 }
00167 
00168 /*
00169  *  Sets the strings of the subwidgets using the current
00170  *  language.
00171  */
00172 void EclipseFinderDlgBase::languageChange()
00173 {
00174     setCaption( tr( "Eclipse Finder" ) );
00175     listEclipses->header()->setLabel( 0, tr( "Planet" ) );
00176     listEclipses->header()->setLabel( 1, tr( "Moon" ) );
00177     listEclipses->header()->setLabel( 2, tr( "Date" ) );
00178     listEclipses->header()->setLabel( 3, tr( "Start" ) );
00179     listEclipses->header()->setLabel( 4, tr( "End" ) );
00180     buttonGroup1->setTitle( tr( "Search parameters" ) );
00181     radioSolar->setText( tr( "Solar Eclipses" ) );
00182     textLabel1_3->setText( tr( "<p align=\"right\">On:</p>" ) );
00183     comboBody->clear();
00184     comboBody->insertItem( tr( "Earth" ) );
00185     comboBody->insertItem( tr( "Jupiter" ) );
00186     comboBody->insertItem( tr( "Saturn" ) );
00187     comboBody->insertItem( tr( "Uranus" ) );
00188     comboBody->insertItem( tr( "Neptune" ) );
00189     comboBody->insertItem( tr( "Pluto" ) );
00190     radioMoon->setText( tr( "Moon Eclipses" ) );
00191     buttonSearch->setText( tr( "Search" ) );
00192     textLabel3_3->setText( tr( "<p align=\"right\">To:</p>" ) );
00193     textLabel2_3->setText( tr( "<p align=\"right\">From:</p>" ) );
00194     buttonClose->setText( tr( "Close" ) );
00195 }
00196 
00197 void EclipseFinderDlgBase::search()
00198 {
00199     qWarning( "EclipseFinderDlgBase::search(): Not implemented yet" );
00200 }
00201 
00202 void EclipseFinderDlgBase::gotoEclipse(QListViewItem*,const QPoint&,int)
00203 {
00204     qWarning( "EclipseFinderDlgBase::gotoEclipse(QListViewItem*,const QPoint&,int): Not implemented yet" );
00205 }
00206 

Generated on Sat Jan 14 22:30:31 2006 for Celestia by  doxygen 1.4.1