mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-29 21:50:26 +00:00
66a5b394d7
In the preferences widget warn the user when they enter a non-executable path to ffmpeg. Thus they don't have to start thumbnailing just to find out that the path is wrong. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
35 lines
834 B
C++
35 lines
834 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef PREFERENCES_DEFAULTS_H
|
|
#define PREFERENCES_DEFAULTS_H
|
|
|
|
#include "abstractpreferenceswidget.h"
|
|
#include "core/pref.h"
|
|
|
|
namespace Ui {
|
|
class PreferencesDefaults;
|
|
}
|
|
|
|
class PreferencesDefaults : public AbstractPreferencesWidget {
|
|
Q_OBJECT
|
|
public:
|
|
PreferencesDefaults();
|
|
~PreferencesDefaults();
|
|
void refreshSettings() override;
|
|
void syncSettings() override;
|
|
public slots:
|
|
void on_chooseFile_clicked();
|
|
void on_btnUseDefaultFile_toggled(bool toggled);
|
|
void on_localDefaultFile_toggled(bool toggled);
|
|
void on_ffmpegFile_clicked();
|
|
void on_ffmpegExecutable_editingFinished();
|
|
void on_extractVideoThumbnails_toggled(bool toggled);
|
|
void on_resetSettings_clicked();
|
|
void on_resetRememberedDCs_clicked();
|
|
|
|
private:
|
|
Ui::PreferencesDefaults *ui;
|
|
void checkFfmpegExecutable();
|
|
};
|
|
|
|
|
|
#endif
|