X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fwin_main.h;h=0df916e3ca96eea3eb57fcd37cfe21d392858274;hb=7e7ac8c7037571693078602d4d85579e07f5024f;hp=c9227b3b0c2b5e64de0cad3601ab38f5b9b52a30;hpb=f64f67606adde19ea072069f96d7b0dfcb655601;p=x264-launcher%2Fx264-launcher.git diff --git a/src/win_main.h b/src/win_main.h index c9227b3..0df916e 100644 --- a/src/win_main.h +++ b/src/win_main.h @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////// // Simple x264 Launcher -// Copyright (C) 2004-2015 LoRd_MuldeR +// Copyright (C) 2004-2020 LoRd_MuldeR // // 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 @@ -27,6 +27,7 @@ //Qt #include +//Forward declarations class JobListModel; class OptionsModel; class SysinfoModel; @@ -48,14 +49,12 @@ namespace Ui namespace MUtils { + class IPCChannel; + class Taskbar7; namespace CPUFetaures { - struct _cpu_info_t; typedef struct _cpu_info_t cpu_info_t; } - - class IPCChannel; - class Taskbar7; } class MainWindow: public QMainWindow @@ -66,8 +65,6 @@ public: MainWindow(const MUtils::CPUFetaures::cpu_info_t &cpuFeatures, MUtils::IPCChannel *const ipcChannel); ~MainWindow(void); - typedef QList QFileList; - protected: virtual void closeEvent(QCloseEvent *e); virtual void showEvent(QShowEvent *e); @@ -76,11 +73,22 @@ protected: virtual void dropEvent(QDropEvent *event); 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 m_label; + + QScopedPointer m_label[2]; + QScopedPointer m_animation; QScopedPointer m_fileTimer; QScopedPointer m_ipcThread; @@ -94,7 +102,6 @@ private: QScopedPointer m_jobList; QScopedPointer m_options; QScopedPointer m_pendingFiles; - QScopedPointer m_toolsList; QScopedPointer m_sysinfo; QScopedPointer m_preferences; @@ -114,10 +121,14 @@ private: 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);