Kstars
execute.cpp
76 // JM: Aren't we suppose to take KStars time? The one returned by the OL is the time of the LAST object
112 ui.Target->setCurrentRow(findIndexOfTarget(currentTarget->name()), QItemSelectionModel::SelectCurrent);
117 ui.Observer->setCurrentIndex(ui.Observer->findText(currentObserver->name() + ' ' + currentObserver->surname()));
176 currentSession->setSession(currentSession->id(), site->id(), KStarsDateTime(ui.Begin->dateTime()),
185 currentSession = new OAL::Session(i18n("session_") + QString::number(nextSession++), site->id(),
266 SkyObject *o = KStarsData::Instance()->observingList()->findObjectByName(ui.Target->currentItem()->text());
286 while (logObject->findObservationByName(i18n("observation_") + QString::number(nextObservation)))
291 i18n("observation_") + QString::number(nextObservation++), currentObserver, currentSession, currentTarget, dt,
302 currentSession->setSession(currentSession->id(), currentSession->site(), KStarsDateTime(ui.Begin->dateTime()),
306 QUrl fileURL = QFileDialog::getSaveFileUrl(nullptr, i18nc("@title:window", "Save Session"), QUrl(QDir::homePath()), "*.xml");
void slotEndSession()
Function to handle the state of current observation, and hiding the execute window.
Definition execute.cpp:298
void slotLocation()
Opens the location dialog for setting the current location.
Definition execute.cpp:195
void slotNext()
Function to handle the UI when the 'next' button is pressed This calls the corresponding functions ba...
Definition execute.cpp:136
QString getObjectName(const SkyObject *o, bool translated=true)
get object name.
Definition execute.cpp:455
void addTargetNotes()
Function to save the user notes set for the current object in the target combo box.
Definition execute.cpp:262
void init()
This initializes the combo boxes, and sets up the dateTime and geolocation from the OL.
Definition execute.cpp:70
void loadTargets()
Loads the sessionlist from the OL into the target combo box.
Definition execute.cpp:206
void loadObservers()
loads the observer list from the global logObject into the comboBoxes
Definition execute.cpp:233
bool addObservation()
Function to add the current observation to the observation list.
Definition execute.cpp:283
void loadEquipment()
loads the equipment list from the global logObject into the comboBoxes
Definition execute.cpp:217
void slotSetTarget(const QString &name)
set the currentTarget when the user selection is changed in the target combo box
Definition execute.cpp:343
std::pair< bool, QString > updateUserLog(const QString &name, const QString &newLog)
Update the user log of the object with the name to contain newLog (find and replace).
Definition kstarsdata.cpp:1701
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
static KStarsDateTime currentDateTime()
Definition kstarsdatetime.cpp:73
void setTime(const QTime &t)
Assign the Time according to a QTime object.
Definition kstarsdatetime.cpp:161
Dialog for changing the geographic location of the observer.
Definition locationdialog.h:61
void slotAddObject(const SkyObject *o=nullptr, bool session=false, bool update=false)
add a new object to list o pointer to the object to add to the list session flag toggle adding the ob...
Definition observinglist.cpp:244
void selectObject(const SkyObject *o)
make a selection in the session view
Definition observinglist.cpp:1707
SkyObject * findObjectByName(QString name)
return the object with the name as the passed QString from the Session List, return null otherwise
Definition observinglist.cpp:1697
void slotRemoveObject(const SkyObject *o=nullptr, bool session=false, bool update=false)
Remove skyobject from the observing list.
Definition observinglist.cpp:398
SkyObject * findByName(const QString &name, bool exact=true) override
Search the children of this SkyMapComposite for a SkyObject whose name matches the argument.
Definition skymapcomposite.cpp:563
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
SkyPoint recomputeCoords(const KStarsDateTime &dt, const GeoLocation *geo=nullptr) const
The equatorial coordinates for the object on date dt are computed and returned, but the object's inte...
Definition skyobject.cpp:295
void EquatorialToHorizontal(const CachingDms *LST, const CachingDms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates,...
Definition skypoint.cpp:77
const QString toDMSString(const bool forceSign=false, const bool machineReadable=false, const bool highPrecision=false) const
Definition dms.cpp:287
const QString toHMSString(const bool machineReadable=false, const bool highPrecision=false) const
Definition dms.cpp:378
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
Accepted
virtual int exec()
virtual void reject()
void rejected()
ActionRole
QPushButton * addButton(StandardButton button)
QString homePath()
QUrl getSaveFileUrl(QWidget *parent, const QString &caption, const QUrl &dir, const QString &filter, QString *selectedFilter, Options options, const QStringList &supportedSchemes)
WriteOnly
SelectCurrent
void append(QList< T > &&value)
void clear()
bool isEmpty() const const
QVariant data(int role) const const
bool isValid() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString arg(Args &&... args) const const
QString number(double n, char format, int precision)
Tool
int hour() const const
int minute() const const
int second() const const
bool setHMS(int h, int m, int s, int ms)
bool isEmpty() const const
bool isValid() const const
QString toLocalFile() const const
QString toString() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
void hide()
void setLayout(QLayout *layout)
void setToolTip(const QString &)
void setWindowFlags(Qt::WindowFlags type)
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.