1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
/*
* Bespin style for Qt4
* Copyright 2007-2012 by Thomas Lübking <thomas.luebking@gmail.com>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License version 2
*
* 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 Library General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef BESPIN_HACKS_H
#define BESPIN_HACKS_H
#include <QObject>
class QWidget;
class QScrollBar;
namespace Bespin
{
class Hacks : public QObject
{
Q_OBJECT
public:
Hacks() {}
enum HackAppType { Unknown = 0, SMPlayer, Dragon, KDM, Gwenview, VLC };
static bool add(QWidget *w);
static void releaseApp();
static void remove(QWidget *w);
static struct Config
{
bool messages, KHTMLView, treeViews, windowMovement, killThrobber, fixGwenview,
opaqueDolphinViews, opaqueAmarokViews, opaquePlacesViews,
lockToolBars, invertDolphinUrlBar, fixKMailFolderList, extendDolphinViews, lockDocks,
konsoleScanlines, suspendFullscreenPlayers, titleWidgets, transparentDolphinView;
} config;
protected:
bool eventFilter( QObject *, QEvent *);
void timerEvent(QTimerEvent *te);
private slots:
void toggleToolBarLock();
void fixGwenviewPosition();
private:
Q_DISABLE_COPY(Hacks)
};
} // namespace
#endif // BESPIN_HACKS_H
|