mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Ask before opening oximetry screen, W.I.P. message in preferences->Graph
This commit is contained in:
parent
a440d91e1b
commit
91da11e936
@ -77,9 +77,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
//new QGLContext(fmt);
|
//new QGLContext(fmt);
|
||||||
//shared_context->create(shared_context);
|
//shared_context->create(shared_context);
|
||||||
|
|
||||||
daily=NULL;
|
|
||||||
//overview=NULL;
|
|
||||||
//oximetry=NULL;
|
|
||||||
qstatusbar=ui->statusbar;
|
qstatusbar=ui->statusbar;
|
||||||
qprogress=new QProgressBar(this);
|
qprogress=new QProgressBar(this);
|
||||||
qprogress->setMaximum(100);
|
qprogress->setMaximum(100);
|
||||||
@ -160,8 +157,6 @@ MainWindow::~MainWindow()
|
|||||||
|
|
||||||
void MainWindow::Startup()
|
void MainWindow::Startup()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
qDebug() << pref["AppName"].toString().toAscii()+" v"+pref["VersionString"].toString().toAscii() << "built with Qt"<< QT_VERSION_STR << "on" << __DATE__ << __TIME__;
|
qDebug() << pref["AppName"].toString().toAscii()+" v"+pref["VersionString"].toString().toAscii() << "built with Qt"<< QT_VERSION_STR << "on" << __DATE__ << __TIME__;
|
||||||
qstatus->setText(tr("Loading Data"));
|
qstatus->setText(tr("Loading Data"));
|
||||||
qprogress->show();
|
qprogress->show();
|
||||||
@ -178,9 +173,6 @@ void MainWindow::Startup()
|
|||||||
overview=new Overview(ui->tabWidget,profile,daily->SharedWidget());
|
overview=new Overview(ui->tabWidget,profile,daily->SharedWidget());
|
||||||
ui->tabWidget->insertTab(2,overview,tr("Overview"));
|
ui->tabWidget->insertTab(2,overview,tr("Overview"));
|
||||||
|
|
||||||
oximetry=new Oximetry(ui->tabWidget,profile,daily->SharedWidget());
|
|
||||||
ui->tabWidget->insertTab(3,oximetry,tr("Oximetry"));
|
|
||||||
|
|
||||||
if (daily) daily->ReloadGraphs();
|
if (daily) daily->ReloadGraphs();
|
||||||
if (overview) overview->ReloadGraphs();
|
if (overview) overview->ReloadGraphs();
|
||||||
qprogress->hide();
|
qprogress->hide();
|
||||||
@ -376,11 +368,17 @@ void MainWindow::on_action_Preferences_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_oximetryButton_clicked()
|
void MainWindow::on_oximetryButton_clicked()
|
||||||
{
|
{
|
||||||
if (oximetry) {
|
bool first=false;
|
||||||
ui->tabWidget->setCurrentWidget(oximetry);
|
if (!oximetry) {
|
||||||
qstatus2->setText("Oximetry");
|
if (QMessageBox::question(this,"Question","Do you have a CMS50[x] Oximeter?\nOne is required to use this section.",QMessageBox::Yes,QMessageBox::No)==QMessageBox::No) return;
|
||||||
oximetry->RedrawGraphs();
|
oximetry=new Oximetry(ui->tabWidget,profile,daily->SharedWidget());
|
||||||
|
ui->tabWidget->insertTab(3,oximetry,tr("Oximetry"));
|
||||||
|
first=true;
|
||||||
}
|
}
|
||||||
|
ui->tabWidget->setCurrentWidget(oximetry);
|
||||||
|
if (!first) oximetry->RedrawGraphs();
|
||||||
|
qstatus2->setText("Oximetry");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionCheck_for_Updates_triggered()
|
void MainWindow::on_actionCheck_for_Updates_triggered()
|
||||||
|
@ -486,6 +486,13 @@ p, li { white-space: pre-wrap; }
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_9">
|
||||||
|
<property name="text">
|
||||||
|
<string>This page is yet another work in progress. Please ignore.</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTreeWidget" name="graphTree">
|
<widget class="QTreeWidget" name="graphTree">
|
||||||
<property name="headerHidden">
|
<property name="headerHidden">
|
||||||
|
Loading…
Reference in New Issue
Block a user