Updated SoX binary to v14.4.2-Git (2014-10-06), compiled with ICL 15.0 and MSVC 12.0.
[LameXP.git] / src / Dialog_SplashScreen.h
blob64123569177372636168590e15604fc30a0664b8
1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version, but always including the *additional*
9 // restrictions defined in the "License.txt" file.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 // http://www.gnu.org/licenses/gpl-2.0.txt
21 ///////////////////////////////////////////////////////////////////////////////
23 #pragma once
25 #include "../tmp/UIC_SplashScreen.h"
27 ////////////////////////////////////////////////////////////
28 // Splash Frame
29 ////////////////////////////////////////////////////////////
31 class SplashScreen: public QFrame, private Ui::SplashScreen
33 Q_OBJECT
35 public:
36 static void showSplash(QThread *thread);
38 private:
39 SplashScreen(QWidget *parent = 0);
40 ~SplashScreen(void);
42 enum
44 STATUS_FADE_IN = 0,
45 STATUS_WAIT = 1,
46 STATUS_FADE_OUT = 2,
47 STATUS_DONE = 3
49 status_t;
51 QMovie *m_working;
52 QEventLoop *m_loop;
53 QTimer *m_timer;
55 const unsigned int m_opacitySteps;
57 unsigned int m_status;
58 unsigned int m_fadeValue;
60 volatile bool m_canClose;
61 volatile bool m_taskBarInit;
63 private slots:
64 void updateHandler(void);
65 void threadComplete(void);
67 protected:
68 void keyPressEvent(QKeyEvent *event);
69 void keyReleaseEvent(QKeyEvent *event);
70 void closeEvent(QCloseEvent *event);
71 bool winEvent(MSG *message, long *result);