Kstars

scheduleraltitudegraph.cpp
1/*
2 SPDX-FileCopyrightText: 2024 Hy Murveit <hy@murveit.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "scheduleraltitudegraph.h"
8#include "ui_scheduleraltitudegraph.h"
9#include "kplotwidget.h"
10#include "kplotobject.h"
11#include "kplotaxis.h"
12#include "ksalmanac.h"
13#include <QPen>
14
15namespace Ekos
16{
17SchedulerAltitudeGraph::SchedulerAltitudeGraph(QWidget *parent) :
18 QDialog(parent),
19 ui(new Ui::SchedulerAltitudeGraph)
20{
21 ui->setupUi(this);
22}
23
24void SchedulerAltitudeGraph::setTitle(const QString &title)
25{
26 //setWindowTitle(title);
27 ui->label->setText(title);
28}
29
30// If scheduledRun is true, you previously needed to call plot with it false.
31// It doesn't makes sense to call it with false after a call with it true,
32// as that would wipe out the data from the previous call.
33void SchedulerAltitudeGraph::plot(const GeoLocation *geo, KSAlmanac *ksal,
34 const QVector<double> &times, const QVector<double> &alts, bool scheduledRun)
35{
36 ui->avt->plot(geo, ksal, times, alts, scheduledRun);
37}
38
39SchedulerAltitudeGraph::~SchedulerAltitudeGraph()
40{
41 delete ui;
42}
43
44}
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
A class that implements methods to find sun rise, sun set, twilight begin / end times,...
Definition ksalmanac.h:27
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
void setupUi(QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.