///////////////////////////////////////////////////////////////////////////////
// Simple x264 Launcher
-// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2020 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
//Qt
#include <QMainWindow>
+//Forward declarations
class JobListModel;
class OptionsModel;
class SysinfoModel;
namespace MUtils
{
+ class IPCChannel;
+ class Taskbar7;
namespace CPUFetaures
{
- struct _cpu_info_t;
typedef struct _cpu_info_t cpu_info_t;
}
-
- class IPCChannel;
}
class MainWindow: public QMainWindow
MainWindow(const MUtils::CPUFetaures::cpu_info_t &cpuFeatures, MUtils::IPCChannel *const ipcChannel);
~MainWindow(void);
- typedef QList<QFile*> QFileList;
-
protected:
virtual void closeEvent(QCloseEvent *e);
virtual void showEvent(QShowEvent *e);
virtual void resizeEvent(QResizeEvent *e);
virtual void dragEnterEvent(QDragEnterEvent *event);
virtual void dropEvent(QDropEvent *event);
- virtual bool winEvent(MSG *message, long *result);
private:
+ typedef enum
+ {
+ POST_OP_DONOTHING = 0,
+ POST_OP_POWERDOWN = 1,
+ POST_OP_HIBERNATE = 2
+ }
+ postOp_t;
+
Ui::MainWindow *const ui;
+ MUtils::IPCChannel *const m_ipcChannel;
+ postOp_t m_postOperation;
bool m_initialized;
- QScopedPointer<QLabel> m_label;
+
+ QScopedPointer<QLabel> m_label[2];
+ QScopedPointer<QMovie> m_animation;
QScopedPointer<QTimer> m_fileTimer;
- MUtils::IPCChannel *const m_ipcChannel;
- QScopedPointer<IPCThread_Recv> m_ipcThread;
- QScopedPointer<QSystemTrayIcon> m_sysTray;
+ QScopedPointer<IPCThread_Recv> m_ipcThread;
+ QScopedPointer<MUtils::Taskbar7> m_taskbar;
+ QScopedPointer<QSystemTrayIcon> m_sysTray;
QScopedPointer<InputEventFilter> m_inputFilter_jobList;
QScopedPointer<InputEventFilter> m_inputFilter_version;
QScopedPointer<JobListModel> m_jobList;
QScopedPointer<OptionsModel> m_options;
QScopedPointer<QStringList> m_pendingFiles;
- QScopedPointer<QFileList> m_toolsList;
QScopedPointer<SysinfoModel> m_sysinfo;
QScopedPointer<PreferencesModel> m_preferences;
private slots:
void addButtonPressed();
void openActionTriggered();
+ void cleanupActionTriggered(void);
+ void postOpActionTriggered(void);
void abortButtonPressed(void);
void browseButtonPressed(void);
void deleteButtonPressed(void);
void copyLogToClipboard(bool checked);
+ void saveLogToLocalFile(bool checked);
+ void toggleLineWrapping(bool checked);
void checkUpdates(void);
void handlePendingFiles(void);
void init(void);