Download Server Monitor(cqt-linux)/src/ui/Windows.h from mchuca/ServerMonitor: direct link, hf CLI and curl.
- Browser
- Download file 895 Bytes
-
https://huggingface.co/mchuca/ServerMonitor/resolve/main/Server%20Monitor(cqt-linux)/src/ui/Windows.h
- Command line
-
hf download 'hf://mchuca/ServerMonitor/Server Monitor(cqt-linux)/src/ui/Windows.h'
-
curl -L -o Windows.h 'https://huggingface.co/mchuca/ServerMonitor/resolve/main/Server%20Monitor(cqt-linux)/src/ui/Windows.h'
895 Bytes
| // Detail-page tab interface and the main window (sidebar, dashboard, server page, events, tray). | |
| struct Tab : QWidget { // one aspect of the bound server session | |
| QPointer<ServerSession> s; | |
| qint64 span = 15 * 60000; // live chart window | |
| std::function<void(const ServerConfig &)> 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<QPair<QString, Tab *>> 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; | |
| }; | |