Kstars

scheduleraltitudegraph.h
1/*
2 SPDX-FileCopyrightText: 2024 Hy Murveit <hy@murveit.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ui_scheduleraltitudegraph.h"
10
11#include "ekos/ekos.h"
12
13#include <QFrame>
14#include <QDateTime>
15
16namespace Ekos
17{
18
19class SchedulerModuleState;
20
21class SchedulerAltitudeGraph : public QFrame, public Ui::SchedulerAltitudeGraph
22{
24
25 public:
26 SchedulerAltitudeGraph(QWidget * parent = nullptr);
27
28 // Must be called at setup to point to the scheduler state.
29 void setState(QSharedPointer<SchedulerModuleState> state);
30
31 // Plots the graph.
32 void plot();
33
34 // Calls plot, but only if it hasn't been called in the past 120s.
35 void tickle();
36
37 private:
38 void setup();
39 void handleButtons(bool disable = false);
40
41 QSharedPointer<SchedulerModuleState> m_State;
42
43 // Last time we plotted.
44 QDateTime m_AltitudeGraphUpdateTime;
45
46 // Tells plot to increment the day to be plotted by this many days.
47 int m_AltGraphDay { 0 };
48
49 protected slots:
50 void next();
51 void prev();
52};
53}
54
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 7 2025 11:55:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.