1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
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.
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 ///////////////////////////////////////////////////////////////////////////////
24 #include "../tmp/UIC_DropBox.h"
28 class QDragEnterEvent;
30 class QAbstractItemModel;
33 ////////////////////////////////////////////////////////////
35 ////////////////////////////////////////////////////////////
37 class DropBox: public QDialog, private Ui::DropBox
42 DropBox(QWidget *parent = 0, QAbstractItemModel *model = 0, SettingsModel *settings = 0);
47 QPoint m_mouseReferencePoint;
48 QPoint m_windowReferencePoint;
49 QLabel m_counterLabel;
50 QAbstractItemModel *m_model;
51 SettingsModel *m_settings;
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);
67 void modelChanged(void);
68 void showToolTip(void);