2012-02-03 00:53:14 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Simple x264 Launcher
|
|
|
|
// Copyright (C) 2004-2012 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
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "uic_win_preferences.h"
|
|
|
|
|
|
|
|
class PreferencesDialog : public QDialog, private Ui::PreferencesDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
bool autoRunNextJob;
|
2012-02-03 12:31:51 +01:00
|
|
|
unsigned int maxRunningJobCount;
|
2012-02-04 01:12:21 +01:00
|
|
|
bool shutdownComputer;
|
2012-03-25 22:11:07 +02:00
|
|
|
bool use10BitEncoding;
|
2012-02-05 02:49:08 +01:00
|
|
|
bool useAvisyth64Bit;
|
2012-04-30 19:26:41 +02:00
|
|
|
bool saveLogFiles;
|
2012-02-03 00:53:14 +01:00
|
|
|
}
|
|
|
|
Preferences;
|
|
|
|
|
2012-02-05 02:49:08 +01:00
|
|
|
PreferencesDialog(QWidget *parent, Preferences *preferences, bool x64);
|
2012-02-03 00:53:14 +01:00
|
|
|
~PreferencesDialog(void);
|
|
|
|
|
2012-02-05 02:49:08 +01:00
|
|
|
const bool m_x64;
|
|
|
|
|
2012-02-05 15:42:41 +01:00
|
|
|
static void initPreferences(Preferences *preferences);
|
2012-02-03 00:53:14 +01:00
|
|
|
static void loadPreferences(Preferences *preferences);
|
|
|
|
static void savePreferences(Preferences *preferences);
|
|
|
|
|
|
|
|
protected:
|
2012-02-05 15:42:41 +01:00
|
|
|
virtual void done(int n);
|
2012-02-03 00:53:14 +01:00
|
|
|
virtual void showEvent(QShowEvent *event);
|
2012-02-04 01:12:21 +01:00
|
|
|
virtual bool eventFilter(QObject *o, QEvent *e);
|
2012-02-03 00:53:14 +01:00
|
|
|
|
2012-02-05 04:41:42 +01:00
|
|
|
void emulateMouseEvent(QObject *object, QEvent *event, QWidget *source, QWidget *target);
|
|
|
|
|
2012-02-03 00:53:14 +01:00
|
|
|
private:
|
|
|
|
Preferences *m_preferences;
|
2012-02-05 15:42:41 +01:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void resetButtonPressed(void);
|
2012-03-25 22:11:07 +02:00
|
|
|
void use10BitEncodingToggled(bool checked);
|
2012-02-03 00:53:14 +01:00
|
|
|
};
|