///////////////////////////////////////////////////////////////////////////////
// Simple x264 Launcher
-// Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2021 LoRd_MuldeR <MuldeR2@GMX.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
class OptionsModel;
class RecentlyUsed;
+class SysinfoModel;
+class PreferencesModel;
+class AbstractEncoderInfo;
class QComboBox;
namespace Ui
Q_OBJECT
public:
- AddJobDialog(QWidget *parent, OptionsModel *options, RecentlyUsed *recentlyUsed, bool x64supported, bool use10BitEncoding, bool saveToSourceFolder);
+ AddJobDialog(QWidget *parent, OptionsModel *const options, RecentlyUsed *const recentlyUsed, const SysinfoModel *const sysinfo, const PreferencesModel *const preferences);
~AddJobDialog(void);
QString sourceFile(void);
static QString getInputFilterLst(void);
protected:
- OptionsModel *m_options;
- OptionsModel *m_defaults;
- RecentlyUsed *m_recentlyUsed;
+ OptionsModel *const m_options;
+ RecentlyUsed *const m_recentlyUsed;
- const bool m_x64supported;
- const bool m_use10BitEncoding;
- const bool m_saveToSourceFolder;
+ const SysinfoModel *const m_sysinfo;
+ const PreferencesModel *const m_preferences;
+ const OptionsModel *m_defaults;
virtual void showEvent(QShowEvent *event);
virtual bool eventFilter(QObject *o, QEvent *e);
private slots:
void encoderIndexChanged(int index);
+ void variantIndexChanged(int index);
void modeIndexChanged(int index);
void browseButtonClicked(void);
void configurationChanged(void);
private:
Ui::AddJobDialog *const ui;
+ bool m_monitorConfigChanges;
+ QString m_lastTemplateName;
void loadTemplateList(void);
- void restoreOptions(OptionsModel *options);
+ void restoreOptions(const OptionsModel *options);
void saveOptions(OptionsModel *options);
- void updateComboBox(QComboBox *cbox, const QString &text);
+ void updateComboBox(QComboBox *const cbox, const QString &text);
+ void updateComboBox(QComboBox *const cbox, const int &data);
+ void updateComboBox(QComboBox *const cbox, const quint32 &data);
QString currentSourcePath(const bool bWithName = false);
QString currentOutputPath(const bool bWithName = false);