#include <eclipsefinderdlgbase.uic.h>
Inheritance diagram for EclipseFinderDlgBase:

Public Slots | |
| virtual void | gotoEclipse (QListViewItem *, const QPoint &, int) |
| virtual void | search () |
Public Member Functions | |
| EclipseFinderDlgBase (QWidget *parent=0, const char *name=0, WFlags fl=WType_TopLevel) | |
| ~EclipseFinderDlgBase () | |
Public Attributes | |
| KPushButton * | buttonClose |
| QButtonGroup * | buttonGroup1 |
| KPushButton * | buttonSearch |
| KComboBox * | comboBody |
| KIntSpinBox * | fromDSpin |
| KIntSpinBox * | fromMSpin |
| KIntSpinBox * | fromYSpin |
| QListView * | listEclipses |
| QRadioButton * | radioMoon |
| QRadioButton * | radioSolar |
| QLabel * | textLabel1_3 |
| QLabel * | textLabel2_3 |
| QLabel * | textLabel3_3 |
| KIntSpinBox * | toDSpin |
| KIntSpinBox * | toMSpin |
| KIntSpinBox * | toYSpin |
Protected Slots | |
| virtual void | languageChange () |
Protected Attributes | |
| QGridLayout * | buttonGroup1Layout |
| QVBoxLayout * | EclipseFinderDlgBaseLayout |
| QHBoxLayout * | layout1 |
| QHBoxLayout * | layout5 |
| QHBoxLayout * | layout6 |
| QHBoxLayout * | layout8 |
| QSpacerItem * | spacer2 |
| QSpacerItem * | spacer3 |
|
||||||||||||||||
|
Definition at line 35 of file eclipsefinderdlgbase.uic.cpp. References buttonClose, buttonGroup1, buttonGroup1Layout, buttonSearch, comboBody, EclipseFinderDlgBaseLayout, fromDSpin, fromMSpin, fromYSpin, gotoEclipse(), languageChange(), layout1, layout5, layout6, layout8, listEclipses, radioMoon, radioSolar, search(), spacer2, spacer3, textLabel1_3, textLabel2_3, textLabel3_3, toDSpin, toMSpin, and toYSpin. 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 }
|
|
|
Definition at line 163 of file eclipsefinderdlgbase.uic.cpp. 00164 {
00165 // no need to delete child widgets, Qt does it all for us
00166 }
|
|
||||||||||||||||
|
Reimplemented in EclipseFinderDlg. Definition at line 202 of file eclipsefinderdlgbase.uic.cpp. Referenced by EclipseFinderDlgBase(). 00203 {
00204 qWarning( "EclipseFinderDlgBase::gotoEclipse(QListViewItem*,const QPoint&,int): Not implemented yet" );
00205 }
|
|
|
Definition at line 172 of file eclipsefinderdlgbase.uic.cpp. References buttonClose, buttonGroup1, buttonSearch, comboBody, listEclipses, radioMoon, radioSolar, textLabel1_3, textLabel2_3, and textLabel3_3. Referenced by EclipseFinderDlgBase(). 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 }
|
|
|
Reimplemented in EclipseFinderDlg. Definition at line 197 of file eclipsefinderdlgbase.uic.cpp. Referenced by EclipseFinderDlgBase(). 00198 {
00199 qWarning( "EclipseFinderDlgBase::search(): Not implemented yet" );
00200 }
|
|
|
Definition at line 56 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 42 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 64 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 47 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 45 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 63 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 55 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 54 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 53 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 66 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 68 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 67 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 69 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 41 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 46 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 43 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 65 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 70 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 44 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 52 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 48 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(), and languageChange(). |
|
|
Definition at line 51 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 50 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
|
|
Definition at line 49 of file eclipsefinderdlgbase.uic.h. Referenced by EclipseFinderDlgBase(). |
1.4.1