Kstars
observinglist.h
2 SPDX-FileCopyrightText: 2004 Jeff Woods Jason Harris <jcwoods@bellsouth.net, jharris@30doradus.org>
173 inline bool contains(const SkyObject *o, bool session = false) { return bool(findObject(o, session)); }
356 inline QList<QSharedPointer<SkyObject>> &getActiveList() { return ((sessionView) ? m_SessionList : m_WishList); }
360 * @return the session model or the wishlist model depending on which tab is currently being viewed.
362 inline QStandardItemModel *getActiveModel() const { return (sessionView ? m_SessionModel.get() : m_WishListModel.get()); }
366 * @return the session sort model or the wishlist sort model depending on which tab is currently being viewed.
375 * @return the active view in the UI -- session view or wishlist view depending on which one is active.
377 inline QTableView *getActiveView() const { return ((sessionView) ? (ui->SessionView) : (ui->WishListView)); }
383 inline QModelIndexList getSelectedItems() const { return getActiveView()->selectionModel()->selectedRows(); }
Manages the catalog database and provides an interface to provide an interface to query and modify th...
Definition catalogsdb.h:183
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
void slotUpdateAltitudes()
Recalculate and update the values of the altitude in the wishlist for the current time.
Definition observinglist.cpp:1745
void saveThumbImage()
saves a thumbnail image for the details dialog from the downloaded image
Definition observinglist.cpp:1642
void saveCurrentList()
If the current list has unsaved changes, ask the user about saving it.
Definition observinglist.cpp:987
void slotSaveSessionAs(bool nativeSave=true)
save the current observing session plan to disk, specify filename.
Definition observinglist.cpp:1003
void slotOALExport()
Export a target list to the oal compliant format.
Definition observinglist.cpp:1669
QString getCurrentImagePath()
Returns a path to the current image, or a writable image.
Definition observinglist.cpp:1454
QList< QSharedPointer< SkyObject > > & sessionList()
Definition observinglist.h:89
void setCurrentImage(const SkyObject *o)
Sets the image parameters for the current object o The passed object for setting the parameters.
Definition observinglist.cpp:1408
void slotUpdate()
Updates the tableviews for the new geolocation and date.
Definition observinglist.cpp:1294
QString getObjectName(const SkyObject *o, bool translated=true)
get object name.
Definition observinglist.cpp:1728
void slotSaveAllImages()
Downloads the images of all the objects in the session list Note: This downloads the SDSS image,...
Definition observinglist.cpp:1465
void setSaveImagesButton()
decides on whether to enable the SaveImages button or not
Definition observinglist.cpp:1541
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 slotGetImage(bool _dss=false, const SkyObject *o=nullptr)
Downloads the corresponding DSS or SDSS image from the web and displays it.
Definition observinglist.cpp:1360
void slotLocation()
Opens the Location dialog to set the GeoLocation for the sessionlist.
Definition observinglist.cpp:1283
void slotRemoveSelectedObjects()
Remove skyobjects which are highlighted in the observing list tool from the observing list.
Definition observinglist.cpp:462
bool contains(const SkyObject *o, bool session=false)
Definition observinglist.h:173
void slotAddToEkosScheduler()
slotAddToEkosScheduler Add object to Ekos scheduler
Definition observinglist.cpp:716
void slotClearList()
slotClearList Remove all objects from current list
Definition observinglist.cpp:955
void slotDeleteAllImages()
Removes all the save DSS/SDSS images from the disk.
Definition observinglist.cpp:1513
void saveImage(QUrl url, QString filename, const SkyObject *o=nullptr)
saves the image synchronously from a given URL into a given file url the url from which the image has...
Definition observinglist.cpp:1487
void slotCustomDSS()
Present the user with options to get the right DSS image for the job.
Definition observinglist.cpp:1328
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
double findAltitude(SkyPoint *p, double hour=0)
Return the altitude of the given SkyObject for the given hour.
Definition observinglist.cpp:1248
void slotSetTime()
Takes the time from the QTimeEdit box and sets it as the time parameter in the tableview of the Sessi...
Definition observinglist.cpp:1320
void slotNewSelection()
Tasks needed when changing the selected object Save the user log of the previous selected object,...
Definition observinglist.cpp:497
void plot(SkyObject *o)
Plot the SkyObject's Altitude vs Time in the AVTPlotWidget.
Definition observinglist.cpp:1215
void slotChangeTab(int index)
toggle the setEnabled flags according to current view set the m_currentItem to nullptr and clear sele...
Definition observinglist.cpp:1260
bool eventFilter(QObject *obj, QEvent *event) override
This is the declaration of the event filter function which is installed on the KImageFilePreview and ...
Definition observinglist.cpp:1552
void slotRemoveObject(const SkyObject *o=nullptr, bool session=false, bool update=false)
Remove skyobject from the observing list.
Definition observinglist.cpp:398
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
QItemSelectionModel * selectionModel() const const
QModelIndexList selectedRows(int column) const const
Q_OBJECTQ_OBJECT
QObject * parent() const const
virtual bool event(QEvent *event) override
void update()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.