Skip to content

Commit

Permalink
Add links for vvdec and ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Feb 25, 2021
1 parent 2d29d61 commit cdf071d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
16 changes: 9 additions & 7 deletions YUViewLib/src/ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,17 @@ void MainWindow::createMenusAndActions()
helpMenu->addAction("About YUView", this, &MainWindow::showAbout);
helpMenu->addAction("Help", this, &MainWindow::showHelp);
helpMenu->addSeparator();
helpMenu->addAction("Open Project Website...", this, &MainWindow::openProjectWebsite);
helpMenu->addAction("Check for new version", this, &MainWindow::checkForNewVersion);
helpMenu->addAction("Open Project Website...", [](){ QDesktopServices::openUrl(QUrl("https://github.com/IENT/YUView")); });
helpMenu->addAction("Check for new version", [this](){ this->updater->startCheckForNewVersion(); });
QMenu *downloadsMenu = helpMenu->addMenu("Downloads");
downloadsMenu->addAction("libde265 HEVC decoder", this, &MainWindow::openLibde265Website);
downloadsMenu->addAction("HM reference HEVC decoder", this, &MainWindow::openHMWebsite);
downloadsMenu->addAction("VTM VVC decoder", this, &MainWindow::openVTMWebsize);
downloadsMenu->addAction("dav1d AV1 decoder", this, &MainWindow::openDav1dWebsite);
downloadsMenu->addAction("libde265 HEVC decoder", [](){ QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/libde265/releases")); });
downloadsMenu->addAction("HM reference HEVC decoder", [](){ QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/libHM/releases")); });
downloadsMenu->addAction("VTM VVC decoder", [](){ QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/VTM/releases")); });
downloadsMenu->addAction("dav1d AV1 decoder", [](){ QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/dav1d/releases")); });
downloadsMenu->addAction("FFmpeg libraries", [](){ QDesktopServices::openUrl(QUrl("https://ffmpeg.org/")); });
downloadsMenu->addAction("VVDec libraries", [](){ QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/vvdec/releases/tag/libv0.2.0.1")); });
helpMenu->addSeparator();
helpMenu->addAction("Performance Tests", this, &MainWindow::performanceTest);
helpMenu->addAction("Performance Tests", [this](){ this->performanceTest(); });
helpMenu->addAction("Reset Window Layout", this, &MainWindow::resetWindowLayout);
helpMenu->addAction("Clear Settings", this, &MainWindow::closeAndClearSettings);

Expand Down
11 changes: 2 additions & 9 deletions YUViewLib/src/ui/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,6 @@ private slots:
bool handleKeyPressFromSeparateView(QKeyEvent *event) { return handleKeyPress(event); }
bool handleKeyPress(QKeyEvent *event, bool keyFromSeparateView=true);

// Some slots for the actions.
void openProjectWebsite() { QDesktopServices::openUrl(QUrl("https://github.com/IENT/YUView")); }
void openLibde265Website() { QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/libde265/releases")); }
void openHMWebsite() { QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/libHM/releases")); }
void openVTMWebsize() { QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/VTM/releases")); }
void openDav1dWebsite() { QDesktopServices::openUrl(QUrl("https://github.com/ChristianFeldmann/dav1d/releases")); }
void checkForNewVersion() { updater->startCheckForNewVersion(); }
void performanceTest();

private:

Ui::MainWindow ui;
Expand All @@ -126,6 +117,8 @@ private slots:
void showAboutHelp(bool about);
void updateSettings();

void performanceTest();

QPointer<QAction> recentFileActions[MAX_RECENT_FILES];
QScopedPointer<videoCache> cache;
bool saveWindowsStateOnExit;
Expand Down

0 comments on commit cdf071d

Please sign in to comment.