X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.cpp;h=81ef10b3a4bb1e8ab1a4cd3e72502e3cfce65558;hb=44606be7327eb9160b9de6c7be5c5006a3d5670e;hp=2a05a24428a3774c76bfb04b67079e85e0c9f4d6;hpb=e9bec1e17f41f66d3567148e110fe8a3b6451fb3;p=nageru diff --git a/futatabi/mainwindow.cpp b/futatabi/mainwindow.cpp index 2a05a24..81ef10b 100644 --- a/futatabi/mainwindow.cpp +++ b/futatabi/mainwindow.cpp @@ -1,5 +1,6 @@ #include "mainwindow.h" +#include "shared/aboutdialog.h" #include "clip_list.h" #include "shared/disk_space_estimator.h" #include "flags.h" @@ -9,6 +10,8 @@ #include "shared/timebase.h" #include "ui_mainwindow.h" +#include +#include #include #include #include @@ -36,6 +39,8 @@ MainWindow::MainWindow() // The menus. connect(ui->exit_action, &QAction::triggered, this, &MainWindow::exit_triggered); + connect(ui->manual_action, &QAction::triggered, this, &MainWindow::manual_triggered); + connect(ui->about_action, &QAction::triggered, this, &MainWindow::about_triggered); global_disk_space_estimator = new DiskSpaceEstimator(bind(&MainWindow::report_disk_space, this, _1, _2)); disk_free_label = new QLabel(this); @@ -735,6 +740,20 @@ void MainWindow::exit_triggered() close(); } +void MainWindow::manual_triggered() +{ + if (!QDesktopServices::openUrl(QUrl("https://nageru.sesse.net/doc/"))) { + QMessageBox msgbox; + msgbox.setText("Could not launch manual in web browser.\nPlease see https://nageru.sesse.net/doc/ manually."); + msgbox.exec(); + } +} + +void MainWindow::about_triggered() +{ + AboutDialog("Futatabi", "Multicamera slow motion video server").exec(); +} + void MainWindow::highlight_camera_input(int stream_idx) { if (stream_idx == 0) {