Kstars
observinglist.h
173 inline bool contains(const SkyObject *o, bool session = false) { return bool(findObject(o, session)); }
361 inline QList<QSharedPointer<SkyObject>> &getActiveList() { return ((sessionView) ? m_SessionList : m_WishList); }
365 * @return the session model or the wishlist model depending on which tab is currently being viewed.
367 inline QStandardItemModel *getActiveModel() const { return (sessionView ? m_SessionModel.get() : m_WishListModel.get()); }
371 * @return the session sort model or the wishlist sort model depending on which tab is currently being viewed.
380 * @return the active view in the UI -- session view or wishlist view depending on which one is active.
382 inline QTableView *getActiveView() const { return ((sessionView) ? (ui->SessionView) : (ui->WishListView)); }
388 inline QModelIndexList getSelectedItems() const { return getActiveView()->selectionModel()->selectedRows(); }
Q_OBJECTQ_OBJECT
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition: kstarsdatetime.h:35
virtual bool eventFilter(QObject *o, QEvent *e) override
void slotClearList()
slotClearList Remove all objects from current list
Definition: observinglist.cpp:958
void slotSaveAllImages()
Downloads the images of all the objects in the session list Note: This downloads the SDSS image,...
Definition: observinglist.cpp:1474
void selectObject(const SkyObject *o)
make a selection in the session view
Definition: observinglist.cpp:1716
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:1363
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
void slotRemoveObject(const SkyObject *o=nullptr, bool session=false, bool update=false)
Remove skyobject from the observing list.
Definition: observinglist.cpp:396
void update()
virtual bool event(QEvent *event) override
QItemSelectionModel * selectionModel() const const
QString getObjectName(const SkyObject *o, bool translated=true)
get object name.
Definition: observinglist.cpp:1737
Manages the catalog database and provides an interface to provide an interface to query and modify th...
Definition: catalogsdb.h:181
double findAltitude(SkyPoint *p, double hour=0)
Return the altitude of the given SkyObject for the given hour.
Definition: observinglist.cpp:1251
void slotSaveSessionAs(bool nativeSave=true)
save the current observing session plan to disk, specify filename.
Definition: observinglist.cpp:1006
QList< QSharedPointer< SkyObject > > & obsList()
Definition: observinglist.h:85
void slotCustomDSS()
Present the user with options to get the right DSS image for the job.
Definition: observinglist.cpp:1331
void slotSaveSession(bool nativeSave=true)
save the current session
Definition: observinglist.cpp:1159
void slotRemoveSelectedObjects()
Remove skyobjects which are highlighted in the observing list tool from the observing list.
Definition: observinglist.cpp:460
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:242
bool contains(const SkyObject *o, bool session=false)
Definition: observinglist.h:173
void saveThumbImage()
saves a thumbnail image for the details dialog from the downloaded image
Definition: observinglist.cpp:1651
virtual void showEvent(QShowEvent *event) override
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:1496
QString getCurrentImagePath()
Returns a path to the current image, or a writable image.
Definition: observinglist.cpp:1463
void slotDeleteAllImages()
Removes all the save DSS/SDSS images from the disk.
Definition: observinglist.cpp:1522
This is the main window for KStars. In addition to the GUI elements, the class contains the program c...
Definition: kstars.h:92
void setCurrentImage(const SkyObject *o)
Sets the image parameters for the current object o The passed object for setting the parameters.
Definition: observinglist.cpp:1417
void plot(SkyObject *o)
Plot the SkyObject's Altitude vs Time in the AVTPlotWidget.
Definition: observinglist.cpp:1218
SkyObject * findObjectByName(QString name)
return the object with the name as the passed QString from the Session List, return null otherwise
Definition: observinglist.cpp:1706
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:1323
void slotUpdateAltitudes()
Recalculate and update the values of the altitude in the wishlist for the current time.
Definition: observinglist.cpp:1754
QModelIndexList selectedRows(int column) const const
Definition: obslistpopupmenu.h:18
void saveCurrentList()
If the current list has unsaved changes, ask the user about saving it.
Definition: observinglist.cpp:990
void slotOALExport()
Export a target list to the oal compliant format.
Definition: observinglist.cpp:1678
void slotLocation()
Opens the Location dialog to set the GeoLocation for the sessionlist.
Definition: observinglist.cpp:1286
void slotAddToEkosScheduler()
slotAddToEkosScheduler Add object to Ekos scheduler
Definition: observinglist.cpp:714
void slotChangeTab(int index)
toggle the setEnabled flags according to current view set the m_currentItem to nullptr and clear sele...
Definition: observinglist.cpp:1263
void slotNewSelection()
Tasks needed when changing the selected object Save the user log of the previous selected object,...
Definition: observinglist.cpp:495
void setSaveImagesButton()
decides on whether to enable the SaveImages button or not
Definition: observinglist.cpp:1550
QList< QSharedPointer< SkyObject > > & sessionList()
Definition: observinglist.h:89
void slotUpdate()
Updates the tableviews for the new geolocation and date.
Definition: observinglist.cpp:1297
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.