X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.cpp;h=81ef10b3a4bb1e8ab1a4cd3e72502e3cfce65558;hb=996c5ad2c506048694b32988f7e376a97924c3e9;hp=dd3c82764537bc23cb588a1dc9978e54db21b667;hpb=6e116a6bbeb2c047a3bfb084395ec601ce211e6c;p=nageru diff --git a/futatabi/mainwindow.cpp b/futatabi/mainwindow.cpp index dd3c827..81ef10b 100644 --- a/futatabi/mainwindow.cpp +++ b/futatabi/mainwindow.cpp @@ -1,14 +1,17 @@ #include "mainwindow.h" +#include "shared/aboutdialog.h" #include "clip_list.h" -#include "disk_space_estimator.h" +#include "shared/disk_space_estimator.h" #include "flags.h" #include "frame_on_disk.h" #include "player.h" -#include "post_to_main_thread.h" -#include "timebase.h" +#include "shared/post_to_main_thread.h" +#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) {