removed unused includes and files

This commit is contained in:
LoudSnorer 2024-01-13 15:02:04 -05:00
parent d84c5353b5
commit 743b935650
3 changed files with 0 additions and 261 deletions

View File

@ -1,122 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
*
* gGraphData Header
*
* Copyright (c) 2011-2014 Mark Watkins <jedimark@users.sourceforge.net>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of the Linux
* distribution for more details. */
#ifndef GRAPHDATA_H
#define GRAPHDATA_H
#include "graphlayer.h"
#include "SleepLib/day.h"
#include <list>
using namespace std;
/*enum gDataType { gDT_Point, gDT_Point3D, gDT_Stacked, gDT_Segmented };
class gLayer;
class gGraphData
{
public:
gGraphData(int mp,gDataType t=gDT_Point);
virtual ~gGraphData();
virtual void Reload(Day *day=nullptr) { day=day; }
virtual void Update(Day *day=nullptr);
//inline wxRealPoint & operator [](int i) { return vpoint[seg][i]; }
//inline vector<double> & Vec(int i) { return yaxis[i]; }
//virtual inline const int & NP(int i) { return vnp[i]; }
//virtual inline const int & MP(int i) { return vsize[i]; }
inline const gDataType & Type() { return type; }
virtual double CalcAverage()=0;
virtual double CalcMinY()=0;
virtual double CalcMaxY()=0;
virtual inline double MaxX() { return max_x; }
virtual inline double MinX() { return min_x; }
virtual inline double MaxY() { return max_y; }
virtual inline double MinY() { return min_y; }
virtual inline void SetMaxX(double v) { max_x=v; if (max_x>real_max_x) max_x=real_max_x; }
virtual inline void SetMinX(double v) { min_x=v; if (min_x<real_min_x) min_x=real_min_x; }
virtual inline void SetMaxY(double v) { max_y=v; if (max_y>real_max_y) max_y=real_max_y; }
virtual inline void SetMinY(double v) { min_y=v; if (min_y<real_min_y) min_y=real_min_y; }
virtual inline double RealMaxX() { return real_max_x; }
virtual inline double RealMinX() { return real_min_x; }
virtual inline double RealMaxY() { return real_max_y; }
virtual inline double RealMinY() { return real_min_y; }
virtual inline void SetRealMaxX(double v) { real_max_x=v; }
virtual inline void SetRealMinX(double v) { real_min_x=v; }
virtual inline void SetRealMaxY(double v) { real_max_y=v; }
virtual inline void SetRealMinY(double v) { real_min_y=v; }
virtual inline void ForceMinY(double v) { force_min_y=v; }
virtual inline void ForceMaxY(double v) { force_max_y=v; }
inline void ResetX() { min_x=real_min_x; max_x=real_max_x; }
inline void ResetY() { min_y=real_min_y; max_y=real_max_y; }
virtual inline int VC() { return vc; }
void SetVC(int v) { vc=v; }
vector<int> np;
vector<int> maxsize;
bool IsReady() { return m_ready; }
void SetReady(bool b) { m_ready=b; }
bool isEmpty();
void AddLayer(gLayer *g);
protected:
virtual void AddSegment(int max_points) { max_points=max_points; }
double real_min_x, real_max_x, real_min_y, real_max_y;
double min_x, max_x, min_y, max_y;
double force_min_y,force_max_y;
int vc;
gDataType type;
int max_points;
bool m_ready;
list<gLayer *> notify_layers;
};
class QPointD
{
public:
QPointD() {};
QPointD(double _x,double _y):X(_x),Y(_y) {};
//QPointD(const QPointD & ref):X(ref.X),Y(ref.Y) {};
double x() { return X; };
double y() { return Y; };
void setX(double v) { X=v; };
void setY(double v) { Y=v; };
protected:
double X,Y;
};
class gPointData:public gGraphData
{
public:
gPointData(int mp);
virtual ~gPointData();
virtual void Reload(Day *day=nullptr){ day=day; };
virtual void AddSegment(int max_points);
virtual double CalcAverage();
virtual double CalcMinY();
virtual double CalcMaxY();
vector<QPointD *> point;
};
*/
#endif // GRAPHDATA_H

View File

@ -1,138 +0,0 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
*
* Custom graph data Headers
*
* Copyright (c) 2011-2014 Mark Watkins <jedimark@users.sourceforge.net>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of the Linux
* distribution for more details. */
/*#ifndef GRAPHDATA_CUSTOM_H
#define GRAPHDATA_CUSTOM_H
#include <QDateTime>
#include "SleepLib/profiles.h"
#include "SleepLib/day.h"
#include "SleepLib/machine_common.h"
#include "graphdata.h"
class FlagData:public gPointData
{
public:
FlagData(MachineCode _code,int _field=-1,int _offset=-1);
virtual ~FlagData();
virtual void Reload(Day *day=nullptr);
protected:
MachineCode code;
int field;
int offset;
};
class TAPData:public gPointData
{
public:
TAPData(MachineCode _code);
virtual ~TAPData();
virtual void Reload(Day *day=nullptr);
static const int max_slots=4096;
double pTime[max_slots];
MachineCode code;
};
class WaveData:public gPointData
{
public:
WaveData(MachineCode _code,int _size=1000000);
virtual ~WaveData();
virtual void Reload(Day *day=nullptr);
protected:
MachineCode code;
};
class EventData:public gPointData
{
public:
EventData(MachineCode _code,int _field=0,int _size=250000,bool _skipzero=false);
virtual ~EventData();
virtual void Reload(Day *day=nullptr);
protected:
MachineCode code;
int field;
bool skipzero;
};
class AHIData:public gPointData
{
public:
AHIData();
virtual ~AHIData();
virtual void Reload(Day *day=nullptr);
};
class HistoryData:public gPointData
{
public:
HistoryData(Profile * _profile,int mpts=2048);
virtual ~HistoryData();
void SetProfile(Profile *_profile) { profile=_profile; Reload(); }
Profile * GetProfile() { return profile; }
//double GetAverage();
virtual double Calc(Day *day);
virtual void Reload(Day *day=nullptr);
virtual void ResetDateRange();
virtual void SetDateRange(QDate start,QDate end);
// virtual void Reload(Machine *machine=nullptr);
protected:
Profile * profile;
};
class SessionTimes:public HistoryData
{
public:
SessionTimes(Profile * _profile);
virtual ~SessionTimes();
//void SetProfile(Profile *_profile) { profile=_profile; Reload(); }
//Profile * GetProfile() { return profile; }
//virtual double GetAverage(); // length??
virtual void Reload(Day *day=nullptr);
//virtual void ResetDateRange();
//virtual void SetDateRange(QDate start,QDate end);
protected:
// Profile * profile;
};
class HistoryCodeData:public HistoryData
{
public:
HistoryCodeData(Profile *_profile,MachineCode _code);
virtual ~HistoryCodeData();
virtual double Calc(Day *day);
protected:
MachineCode code;
};
enum T_UHD { UHD_Bedtime, UHD_Waketime, UHD_Hours };
class UsageHistoryData:public HistoryData
{
public:
UsageHistoryData(Profile *_profile,T_UHD _uhd);
virtual ~UsageHistoryData();
virtual double Calc(Day *day);
protected:
T_UHD uhd;
};
#endif // GRAPHDATA_CUSTOM_H
*/

View File

@ -35,7 +35,6 @@
#include "common_gui.h"
#include "SleepLib/profiles.h"
#include "SleepLib/session.h"
#include "Graphs/graphdata_custom.h"
#include "Graphs/gLineOverlay.h"
#include "Graphs/gFlagsLine.h"
#include "Graphs/gFooBar.h"