Add new files forgotton in last commit
This commit is contained in:
parent
94ca829e98
commit
c7531032d7
2 changed files with 193 additions and 0 deletions
41
src/basewindow.h
Normal file
41
src/basewindow.h
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* This file is a part of promoe, an XMMS2 Client
|
||||
*
|
||||
* Copyright (C) 2008 Thomas Frauendorfer
|
||||
*
|
||||
* 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 the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef __BASEWINDOW_H__
|
||||
#define __BASEWINDOW_H__
|
||||
|
||||
#include <QMainWindow>
|
||||
class QMouseEvent;
|
||||
class QPoint;
|
||||
|
||||
class BaseWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
BaseWindow (QWidget *parent);
|
||||
|
||||
protected:
|
||||
void mousePressEvent (QMouseEvent *event);
|
||||
void mouseReleaseEvent (QMouseEvent *event);
|
||||
void mouseMoveEvent (QMouseEvent *event);
|
||||
|
||||
QPoint snapWindow (QPoint pos);
|
||||
|
||||
private:
|
||||
QPoint m_diff;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue