mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Bold Fonts for graph titles
This commit is contained in:
parent
70585e5a99
commit
f8182fed8b
@ -28,7 +28,11 @@ void InitGraphs()
|
||||
if (!_graph_init) {
|
||||
defaultfont=new QFont("Sans Serif",10);
|
||||
bigfont=new QFont("Sans Serif",35);
|
||||
mediumfont=new QFont("Sans Serif",11);
|
||||
mediumfont=new QFont("Sans Serif",10,QFont::DemiBold);
|
||||
defaultfont->setStyleHint(QFont::SansSerif,QFont::OpenGLCompatible);
|
||||
mediumfont->setStyleHint(QFont::SansSerif,QFont::OpenGLCompatible);
|
||||
bigfont->setStyleHint(QFont::SansSerif,QFont::OpenGLCompatible);
|
||||
|
||||
for (int i=0;i<num_vert_arrays;i++) {
|
||||
// The extra 8 vertexes are important..
|
||||
GLshort *a=(GLshort *)calloc(maxverts+8,sizeof(GLshort));
|
||||
@ -117,7 +121,7 @@ void DrawTextQueue(gGraphWindow & wid)
|
||||
|
||||
if (wid.parentWidget()!=0) {
|
||||
QPainter painter(&wid);
|
||||
painter.setRenderHint(QPainter::HighQualityAntialiasing,true);
|
||||
|
||||
// TODO.. Prerotate the 90degree stuff here and keep the matrix for all of these..
|
||||
for (int i=0;i<TextQueRot.size();i++) {
|
||||
TextBuffer & t=TextQueRot[i];
|
||||
|
@ -692,7 +692,7 @@ bool ResmedLoader::LoadPLD(Session *sess,EDFParser &edf)
|
||||
a->setMax(1);
|
||||
a->setMin(0);
|
||||
} else if (es.label=="Therapy Pres") {
|
||||
code=CPAP_TherapyPressure;
|
||||
code=CPAP_IPAP; //TherapyPressure;
|
||||
//EventList *a=new EventList(code,EVL_Waveform,es.gain,es.offset,es.physical_minimum,es.physical_maximum,rate);
|
||||
//sess->eventlist[code].push_back(a);
|
||||
//a->AddWaveform(edf.startdate,es.data,recs,duration);
|
||||
@ -736,7 +736,7 @@ bool ResmedLoader::LoadPLD(Session *sess,EDFParser &edf)
|
||||
//es.gain=1;
|
||||
a=ToTimeDelta(sess,edf,es, code,recs,duration,0,0);
|
||||
} else if (es.label=="Exp Press") {
|
||||
code=CPAP_ExpiratoryPressure;
|
||||
code=CPAP_EPAP;//ExpiratoryPressure;
|
||||
a=ToTimeDelta(sess,edf,es, code,recs,duration,0,0);
|
||||
} else if (es.label=="") {
|
||||
if (emptycnt==0) {
|
||||
|
@ -142,9 +142,9 @@ Daily::Daily(QWidget *parent,QGLWidget * shared, MainWindow *mw)
|
||||
bool square=true;
|
||||
PRD->AddLayer(new gXAxis());
|
||||
PRD->AddLayer(new gYAxis());
|
||||
PRD->AddLayer(AddCPAP(new gLineChart(CPAP_Pressure,QColor("dark green"),square)));
|
||||
PRD->AddLayer(AddCPAP(new gLineChart(CPAP_EPAP,Qt::blue,square)));
|
||||
PRD->AddLayer(AddCPAP(new gLineChart(CPAP_IPAP,Qt::red,square)));
|
||||
PRD->AddLayer(AddCPAP(pressure=new gLineChart(CPAP_Pressure,QColor("dark green"),square)));
|
||||
PRD->AddLayer(AddCPAP(epap=new gLineChart(CPAP_EPAP,Qt::blue,square)));
|
||||
PRD->AddLayer(AddCPAP(ipap=new gLineChart(CPAP_IPAP,Qt::red,square)));
|
||||
PRD->setMinimumHeight(min_height);
|
||||
|
||||
THPR->AddLayer(new gXAxis());
|
||||
@ -172,6 +172,8 @@ Daily::Daily(QWidget *parent,QGLWidget * shared, MainWindow *mw)
|
||||
AddCPAP(g);
|
||||
g->ReportEmpty(true);
|
||||
MP->AddLayer(g);
|
||||
//MP->AddLayer(AddCPAP(new gLineChart(CPAP_EPAP,Qt::yellow,square)));
|
||||
//MP->AddLayer(AddCPAP(new gLineChart(CPAP_IPAP,Qt::red,square)));
|
||||
MP->setMinimumHeight(min_height);
|
||||
|
||||
//FRW->AddLayer(new gFooBar());
|
||||
|
2
daily.h
2
daily.h
@ -84,6 +84,8 @@ private:
|
||||
gGraphWindow *PRD,*FRW,*G_AHI,*TAP,*LEAK,*SF,*TAP_EAP,*TAP_IAP,*PULSE,*SPO2,
|
||||
*SNORE,*RR,*MP,*MV,*TV,*FLG,*PTB,*OF,*INTPULSE,*INTSPO2, *THPR;
|
||||
|
||||
gLineChart *pressure, *epap, *ipap;
|
||||
|
||||
QList<gLayer *> OXIData;
|
||||
QList<gLayer *> CPAPData;
|
||||
QVector<gGraphWindow *> Graphs;
|
||||
|
Loading…
Reference in New Issue
Block a user