Bump version.
[LameXP.git] / src / Dialog_DropBox.h
blob5f24a5869422eaa80091500f090857c4f3621904
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.
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.
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
22 #pragma once
24 #include "../tmp/UIC_DropBox.h"
26 #include <QPoint>
28 class QDragEnterEvent;
29 class QMouseEvent;
30 class QAbstractItemModel;
31 class SettingsModel;
33 ////////////////////////////////////////////////////////////
34 // Splash Frame
35 ////////////////////////////////////////////////////////////
37 class DropBox: public QDialog, private Ui::DropBox
39 Q_OBJECT
41 public:
42 DropBox(QWidget *parent = 0, QAbstractItemModel *model = 0, SettingsModel *settings = 0);
43 ~DropBox(void);
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;
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);
66 public slots:
67 void modelChanged(void);
68 void showToolTip(void);