diff --git a/Building/Windows/BUILD-WIN.md b/Building/Windows/BUILD-WIN.md index 9c3cf5d6..64598e3d 100644 --- a/Building/Windows/BUILD-WIN.md +++ b/Building/Windows/BUILD-WIN.md @@ -15,7 +15,7 @@ The following programs and files are required to create Windows installers: - Gawk is required. You can use the version included with Git for Windows or install Gawk for Windows from . The deployment batch file will use the Git for Windows version if gawk.exe is not in your PATH. -- QT Open Source edition from . I use version 5.12.4. More recent versions may also work but I have not tested any. +- QT Open Source edition from . I use version 5.12.5. More recent versions in the 5.12 series should also work. **Installing Inno Setup 6** @@ -59,7 +59,7 @@ Go to QT at and download the Open Source edition of - Select components: - - In QT 5.12.4: + - In QT 5.12.5: - MinGW 7.3.0 32-bit @@ -69,7 +69,7 @@ Go to QT at and download the Open Source edition of - In Developer and Designer Tools: - - QT Creator 4.10.0 CDB Debug (this may not be required) + - QT Creator 4.10.0 CDB Debug - MinGW 7.3.0 32-bit diff --git a/Building/Windows/buildall.bat b/Building/Windows/buildall.bat index 6c736b61..56430110 100644 --- a/Building/Windows/buildall.bat +++ b/Building/Windows/buildall.bat @@ -1,7 +1,7 @@ setlocal :::@echo off set qtpath=E:\Qt -set qtVersion=5.12.4 +set qtVersion=5.12.5 ::: ::: Build 32- and 64-bit versions of OSCAR for Windows. diff --git a/oscar/daily.cpp b/oscar/daily.cpp index 8fd8bc60..f0538202 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -908,17 +908,23 @@ void Daily::ResetGraphLayout() { GraphView->resetLayout(); } -void Daily::ResetGraphOrder() +void Daily::ResetGraphOrder(int type) { - Day * day = p_profile->GetDay(previous_date,MT_CPAP); + if (type == 0) { // Auto order + Day * day = p_profile->GetDay(previous_date,MT_CPAP); - int cpapMode = day->getCPAPMode(); -// qDebug() << "Daily::ResetGraphOrder cpapMode" << cpapMode; + int cpapMode = day->getCPAPMode(); + // qDebug() << "Daily::ResetGraphOrder cpapMode" << cpapMode; - if (useAdvancedGraphs.contains(cpapMode)) + if (useAdvancedGraphs.contains(cpapMode)) + GraphView->resetGraphOrder(true, advancedGraphOrder); + else + GraphView->resetGraphOrder(true, standardGraphOrder); + } else if (type == 2) { // Advanced order GraphView->resetGraphOrder(true, advancedGraphOrder); - else + } else { // type == 1, standard order GraphView->resetGraphOrder(true, standardGraphOrder); + } // Enable all graphs (make them not hidden) for (int i=0;igraphCombo->count();i++) { diff --git a/oscar/daily.h b/oscar/daily.h index 90fdd8a3..35e9d4cb 100644 --- a/oscar/daily.h +++ b/oscar/daily.h @@ -70,7 +70,7 @@ public: /*! \fn ResetGraphOrder() \brief Resets all graphs in the main gGraphView back to their initial order. */ - void ResetGraphOrder(); + void ResetGraphOrder(int type = 0); /*! \fn updateLeftSidebar() /brief Updtes left sidebar to reflect changes in pie chart visibility diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index 9bdbda9e..f9bfd5b7 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -1306,9 +1306,23 @@ void MainWindow::on_action_Reset_Graph_Layout_triggered() void MainWindow::on_action_Reset_Graph_Order_triggered() { - if (daily && (ui->tabWidget->currentWidget() == daily)) { daily->ResetGraphOrder(); } + if (daily && (ui->tabWidget->currentWidget() == daily)) { daily->ResetGraphOrder(0); } - if (overview && (ui->tabWidget->currentWidget() == overview)) { overview->ResetGraphOrder(); } + if (overview && (ui->tabWidget->currentWidget() == overview)) { overview->ResetGraphOrder(0); } +} + +void MainWindow::on_action_Standard_Graph_Order_triggered() +{ + if (daily && (ui->tabWidget->currentWidget() == daily)) { daily->ResetGraphOrder(1); } + + if (overview && (ui->tabWidget->currentWidget() == overview)) { overview->ResetGraphOrder(1); } +} + +void MainWindow::on_action_Advanced_Graph_Order_triggered() +{ + if (daily && (ui->tabWidget->currentWidget() == daily)) { daily->ResetGraphOrder(2); } + + if (overview && (ui->tabWidget->currentWidget() == overview)) { overview->ResetGraphOrder(2); } } void MainWindow::on_action_Preferences_triggered() diff --git a/oscar/mainwindow.h b/oscar/mainwindow.h index 8e18df43..bcf60e20 100644 --- a/oscar/mainwindow.h +++ b/oscar/mainwindow.h @@ -216,6 +216,12 @@ class MainWindow : public QMainWindow //! \brief passes the ResetGraphOrder menu click to the Daily & Overview views void on_action_Reset_Graph_Order_triggered(); + //! \brief passes the ResetGraphOrder menu click to the Daily & Overview views + void on_action_Standard_Graph_Order_triggered(); + + //! \brief passes the ResetGraphOrder menu click to the Daily & Overview views + void on_action_Advanced_Graph_Order_triggered(); + //! \brief Opens the Preferences Dialog, and saving changes if OK is pressed void on_action_Preferences_triggered(); diff --git a/oscar/mainwindow.ui b/oscar/mainwindow.ui index 65e595ec..ff346765 100644 --- a/oscar/mainwindow.ui +++ b/oscar/mainwindow.ui @@ -1211,7 +1211,7 @@ QToolBox::tab:selected { 0 0 - 175 + 174 687 @@ -1669,7 +1669,7 @@ border: 2px solid #56789a; border-radius: 30px; 0 0 - 175 + 174 687 @@ -2714,7 +2714,7 @@ border-radius: 10px; <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2';"><br /></p></body></html> false @@ -2728,7 +2728,7 @@ p, li { white-space: pre-wrap; } 0 0 - 175 + 174 687 @@ -2771,7 +2771,7 @@ p, li { white-space: pre-wrap; } <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2';"><br /></p></body></html> false @@ -2829,6 +2829,13 @@ p, li { white-space: pre-wrap; } &View + + + &Reset Graphs + + + + @@ -2836,7 +2843,7 @@ p, li { white-space: pre-wrap; } - + @@ -3231,12 +3238,20 @@ p, li { white-space: pre-wrap; } Ctrl+P - + - &Reset Graphs + Standard - Reset order of graphs page to initial order + Standard graph order, good for CPAP, APAP, Bi-Level + + + + + Advanced + + + Advanced graph order, good for ASV, AVAPS diff --git a/oscar/overview.cpp b/oscar/overview.cpp index 997e0e40..0b864566 100644 --- a/oscar/overview.cpp +++ b/oscar/overview.cpp @@ -451,8 +451,9 @@ void Overview::ResetGraphLayout() GraphView->resetLayout(); } -void Overview::ResetGraphOrder() +void Overview::ResetGraphOrder(int type) { + Q_UNUSED(type) GraphView->resetGraphOrder(false); ResetGraphLayout(); } diff --git a/oscar/overview.h b/oscar/overview.h index d1ea94bd..5a434b18 100644 --- a/oscar/overview.h +++ b/oscar/overview.h @@ -58,7 +58,7 @@ class Overview : public QWidget /*! \fn ResetGraphOrder() \brief Resets all graphs in the main gGraphView back to their initial order. */ - void ResetGraphOrder(); + void ResetGraphOrder(int type); //! \brief Calls updateGL to redraw the overview charts void RedrawGraphs(); diff --git a/oscar/profileselector.cpp b/oscar/profileselector.cpp index c23ec2c4..a6f5f92b 100644 --- a/oscar/profileselector.cpp +++ b/oscar/profileselector.cpp @@ -278,6 +278,12 @@ void ProfileSelector::on_profileFilter_textChanged(const QString &arg1) proxy->setFilterRegExp(regExp); } +// Clear filter list +void ProfileSelector::on_resetFilterButton_clicked() +{ + ui->profileFilter->clear(); +} + void ProfileSelector::on_buttonOpenProfile_clicked() { if (ui->profileView->currentIndex().isValid()) { diff --git a/oscar/profileselector.h b/oscar/profileselector.h index 3d6d8ecc..54663a96 100644 --- a/oscar/profileselector.h +++ b/oscar/profileselector.h @@ -57,6 +57,8 @@ private slots: void on_selectionChanged(const QModelIndex ¤t, const QModelIndex &previous); + void on_resetFilterButton_clicked(); + private: QString getProfileDiskInfo(Profile *profile); QString formatSize(qint64 size); diff --git a/oscar/profileselector.ui b/oscar/profileselector.ui index 1bb612ff..92749736 100644 --- a/oscar/profileselector.ui +++ b/oscar/profileselector.ui @@ -32,6 +32,25 @@ + + Reset filter to see all profiles + + + QToolButton { + background: transparent; + border-radius: 8px; + border: 2px solid transparent; +} + +QToolButton:hover { + border: 2px solid #456789; +} + +QToolButton:pressed { + border: 2px solid #456789; + background-color: #89abcd; +} + ...