kstars
execute.cpp
Go to the documentation of this file.
43 setButtonGuiItem( KDialog::User1, KGuiItem( i18n("End Session"), QString(), i18n("Save and End the current session") ) );
109 ui.Target->setCurrentRow( findIndexOfTarget( currentTarget->name() ), QItemSelectionModel::SelectCurrent );
114 ui.Observer->setCurrentIndex( ui.Observer->findText( currentObserver->name() + ' ' + currentObserver->surname() ) );
148 ui.Target->setCurrentRow( findIndexOfTarget( prevTarget ), QItemSelectionModel::SelectCurrent );
164 currentSession->setSession( currentSession->id(), site->id(), ui.Begin->dateTime(), ui.Begin->dateTime(), ui.Weather->toPlainText(), ui.Equipment->toPlainText(), ui.Comment->toPlainText(), ui.Language->text() );
168 currentSession = new OAL::Session( i18n( "session_" ) + QString::number( nextSession++ ) , site->id(), ui.Begin->dateTime(), ui.Begin->dateTime(), ui.Weather->toPlainText(), ui.Equipment->toPlainText(), ui.Comment->toPlainText(), ui.Language->text() );
214 qSort( ks->observingList()->sessionList().begin(), ks->observingList()->sessionList().end(), Execute::timeLessThan );
218 QTime t1 = KStars::Instance()->observingList()->scheduledTime( o1 ), t2 = KStars::Instance()->observingList()->scheduledTime( o2 );
233 SkyObject *o = KStars::Instance()->observingList()->findObjectByName( ui.Target->currentItem()->text() );
250 while( logObject->findObservationByName( i18n( "observation_" ) + QString::number( nextObservation ) ) )
254 OAL::Observation *o = new OAL::Observation( i18n( "observation_" ) + QString::number( nextObservation++ ) , currentObserver, currentSession, currentTarget, dt, ui.FaintestStar->value(), ui.Seeing->value(), currentScope, currentEyepiece, currentLens, currentFilter, ui.Description->toPlainText(), ui.Language->text() );
308 if ( - 30.0 < currentTarget->mag() && currentTarget->mag() < 90.0 ) smag = QString::number( currentTarget->mag(), 'g', 2 ); // The lower limit to avoid display of unrealistic comet magnitudes
311 ui.SchTime->setText( ks->observingList()->scheduledTime(currentTarget).toString( "h:mm:ss AP" ) ) ;
Definition: eyepiece.h:25
Dialog for changing the geographic location of the observer.
Definition: locationdialog.h:57
static bool timeLessThan(SkyObject *, SkyObject *)
Custom LessThan function for the sort by time This compares the times of the two skyobjects using an ...
Definition: execute.cpp:217
void addTargetNotes()
Function to save the user notes set for the current object in the target combo box.
Definition: execute.cpp:230
Definition: scope.h:25
void slotSetTarget(QString name)
set the currentTarget when the user selection is changed in the target combo box
Definition: execute.cpp:296
void loadObservers()
loads the observer list from the global logObject into the comboBoxes
Definition: execute.cpp:207
void setTime(const QTime &t)
Assign the Time according to a QTime object.
Definition: kstarsdatetime.cpp:133
void slotNext()
Function to handle the UI when the 'next' button is pressed This calls the corresponding functions ba...
Definition: execute.cpp:132
void loadEquipment()
loads the equipment list from the global logObject into the comboBoxes
Definition: execute.cpp:192
void loadTargets()
Loads the sessionlist from the OL into the target combo box.
Definition: execute.cpp:184
static KStarsDateTime currentDateTime(KDateTime::Spec ts=KDateTime::Spec::ClockTime())
Definition: kstarsdatetime.cpp:67
Definition: filter.h:25
bool addObservation()
Function to add the current observation to the observation list.
Definition: execute.cpp:248
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
Definition: session.h:26
void EquatorialToHorizontal(const dms *LST, const dms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:55
void init()
This initializes the combo boxes, and sets up the dateTime and geolocation from the OL...
Definition: execute.cpp:86
void slotEndSession()
Function to handle the state of current observation, and hiding the execute window.
Definition: execute.cpp:259
Definition: observer.h:25
Definition: observation.h:36
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
void slotLocation()
Opens the location dialog for setting the current location.
Definition: execute.cpp:175
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.