File indexing completed on 2024-07-14 07:17:23

0001 /*
0002     SPDX-FileCopyrightText: 2007 James B. Bowlin <bowlin@mindspring.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "skyobjects/skyobject.h"
0010 
0011 #include <QList>
0012 #include <QPointF>
0013 
0014 class SkyLabel;
0015 typedef QList<SkyLabel> LabelList;
0016 
0017 class SkyLabel
0018 {
0019   public:
0020     SkyLabel(qreal ra, qreal dec, SkyObject *obj_in) : o(ra, dec), obj(obj_in) {}
0021 
0022     //        SkyLabel( double ra, double dec, QString& text_in) :
0023     //            o( ra, dec), text(text_in)
0024     //        {}
0025 
0026     SkyLabel(const QPointF o_in, SkyObject *obj_in) : o(o_in), obj(obj_in) {}
0027 
0028     //~StarLabel() { delete m_p; }
0029 
0030     QPointF &point() { return o; }
0031     QPointF o;
0032     SkyObject *obj;
0033 };