OSDN Git Service

Update MediaInfo binaries to v0.7.53 (2012-01-24), compiled with ICL 12.1.6 and MSVC...
[lamexp/LameXP.git] / src / Dialog_DropBox.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2012 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.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 //
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
21
22 #pragma once
23
24 #include "../tmp/UIC_DropBox.h"
25
26 #include <QPoint>
27
28 class QDragEnterEvent;
29 class QMouseEvent;
30 class QAbstractItemModel;
31 class SettingsModel;
32
33 ////////////////////////////////////////////////////////////
34 // Splash Frame
35 ////////////////////////////////////////////////////////////
36
37 class DropBox: public QDialog, private Ui::DropBox
38 {
39         Q_OBJECT
40
41 public:
42         DropBox(QWidget *parent = 0, QAbstractItemModel *model = 0, SettingsModel *settings = 0);
43         ~DropBox(void);
44         
45 private:
46         bool m_canClose;
47         QPoint m_mouseReferencePoint;
48         QPoint m_windowReferencePoint;
49         QLabel m_counterLabel;
50         QAbstractItemModel *m_model;
51         SettingsModel *m_settings;
52         bool m_moving;
53         bool m_firstShow;
54
55 protected:
56         void keyPressEvent(QKeyEvent *event);
57         void keyReleaseEvent(QKeyEvent *event);
58         void closeEvent(QCloseEvent *event);
59         void showEvent(QShowEvent *event);
60         void mousePressEvent(QMouseEvent *event);
61         void mouseMoveEvent(QMouseEvent *event);
62         void mouseReleaseEvent(QMouseEvent *event);
63         void changeEvent(QEvent *e);
64         bool event(QEvent *event);
65
66 public slots:
67         void modelChanged(void);
68         void showToolTip(void);
69 };