UI: Add stats dialog

Shows performance stats, and streaming/recording stats, and helps warn
the user when they have less-than-optimal values with coloring on the
values (e.g. yellow when getting low on disk space, red when getting
really low)
This commit is contained in:
jp9000
2017-05-10 19:37:45 -07:00
parent ee734c17a5
commit 0e1ae62355
7 changed files with 556 additions and 0 deletions

View File

@@ -43,6 +43,7 @@
#include "window-basic-auto-config.hpp"
#include "window-basic-source-select.hpp"
#include "window-basic-main.hpp"
#include "window-basic-stats.hpp"
#include "window-basic-main-outputs.hpp"
#include "window-basic-properties.hpp"
#include "window-log-reply.hpp"
@@ -2866,6 +2867,8 @@ void OBSBasic::CloseDialogs()
delete projector;
projector.clear();
}
delete stats;
}
void OBSBasic::EnumDialogs()
@@ -5486,3 +5489,13 @@ void OBSBasic::on_autoConfigure_triggered()
test.show();
test.exec();
}
void OBSBasic::on_stats_triggered()
{
stats.clear();
OBSBasicStats *statsDlg;
statsDlg = new OBSBasicStats(nullptr);
statsDlg->setModal(false);
statsDlg->show();
stats = statsDlg;
}