// Detail-page tab interface and the main window (sidebar, dashboard, server page, events, tray). #pragma once #include "core/Session.h" #include struct Tab : QWidget { // one aspect of the bound server session QPointer s; qint64 span = 15 * 60000; // live chart window std::function save; // persists config edits virtual void bind(ServerSession *x) { s = x; } virtual void refresh() {} // new sample (only while visible) virtual void analysis() {} // analyzer ran }; QVector> makeTabs(); struct MainWindow : QMainWindow { explicit MainWindow(ServerManager *mgr); void saveSnapshots(const QString &dir); // developer aid: PNG of every page void closeEvent(QCloseEvent *e) override; struct Ui; Ui *ui; };