mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-12 08:33:05 -04:00
Created V0.3.x branch and moved the head into the trunk directory.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@246 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
commit
935745a08e
1318 changed files with 348809 additions and 0 deletions
90
retroshare-gui/src/gui/qskinobject/qskinobject.h
Normal file
90
retroshare-gui/src/gui/qskinobject/qskinobject.h
Normal file
|
@ -0,0 +1,90 @@
|
|||
/********************************************************************************************************
|
||||
* PROGRAM : childform
|
||||
* DATE - TIME : Samstag 30 Dezember 2006 - 12h04
|
||||
* AUTHOR : ( )
|
||||
* FILENAME : QSkinMainWindow.h
|
||||
* LICENSE :
|
||||
* COMMENTARY :
|
||||
********************************************************************************************************/
|
||||
#ifndef QSkinObject_H
|
||||
#define QSkinObject_H
|
||||
#include "qskinwidgetresizehandler.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QObject>
|
||||
#include <QApplication>
|
||||
#include <QWidget>
|
||||
#include <QMouseEvent>
|
||||
#include <QDesktopWidget>
|
||||
#include <QBitmap>
|
||||
#include <QEvent>
|
||||
#include <QPainter>
|
||||
#include <QPixmap>
|
||||
#include <QSettings>
|
||||
#include <QBasicTimer>
|
||||
#ifdef WIN32
|
||||
#define _WIN32_WINNT 0x0500
|
||||
#define WINVER 0x0500
|
||||
#include <windows.h>
|
||||
#endif
|
||||
class QSkinWidgetResizeHandler;
|
||||
class QSkinObject : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class QSkinWidgetResizeHandler;
|
||||
public:
|
||||
QSkinObject(QWidget* wgtParent);
|
||||
~QSkinObject(){}
|
||||
void setSkinPath(const QString & skinpath);
|
||||
QString getSkinPath();
|
||||
int customFrameWidth();
|
||||
public slots:
|
||||
void updateStyle();
|
||||
void updateButtons();
|
||||
void startSkinning();
|
||||
void stopSkinning();
|
||||
protected:
|
||||
bool eventFilter(QObject *o, QEvent *e);
|
||||
//Events to filter
|
||||
//void mouseMoveEvent(QMouseEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
//void mouseReleaseEvent(QMouseEvent *mouseEvent);
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
//void closeEvent(QCloseEvent *e);
|
||||
|
||||
void loadSkinIni();
|
||||
void manageRegions();
|
||||
QPixmap drawCtrl(QWidget * widget);
|
||||
QRegion childRegion;
|
||||
void timerEvent ( QTimerEvent * event );
|
||||
private:
|
||||
QRect saveRect;
|
||||
QRect skinGeometry;
|
||||
QPixmap widgetMask;//the pixmap, in which the ready frame is stored on pressed?
|
||||
QString skinPath;
|
||||
QFont titleFont;
|
||||
QColor titleColor;
|
||||
bool milchglas;
|
||||
bool gotMousePress;
|
||||
QRegion quitButton;
|
||||
QRegion maxButton;
|
||||
QRegion minButton;
|
||||
QRect contentsRect;
|
||||
QSkinWidgetResizeHandler * resizeHandler;
|
||||
bool mousePress;
|
||||
QBasicTimer *skinTimer;
|
||||
QWidget *skinWidget;
|
||||
void fastbluralpha(QImage &img, int radius);
|
||||
Qt::WindowFlags flags;
|
||||
int wlong;
|
||||
#ifdef WIN32
|
||||
public slots:
|
||||
void setLayered();
|
||||
void updateAlpha();
|
||||
private:
|
||||
double alpha;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue