blob: 7df6d404fe7ee1825bc819f24c2a6fb0982a3d16 (
plain) (
tree)
|
|
#ifndef BACKDROP_H_
#define BACKDROP_H_
#include <QWidget>
class QPixmap;
class QLocalServer;
class QLocalSocket;
class PwGui;
class Backdrop : public QWidget
{
Q_OBJECT
private:
const QPixmap * screenshot;
QWidget * mainWindow;
QLocalServer * server;
PwGui * pwgui;
QLocalSocket* getClient();
private slots:
void newConnection();
void closeConnection();
void incomingData();
void aboutToQuit();
protected:
virtual void paintEvent(QPaintEvent * event);
virtual void mouseReleaseEvent(QMouseEvent * event);
public:
explicit Backdrop();
virtual ~Backdrop();
void setMainWindow(QWidget *win) { mainWindow = win; }
};
#endif /* BACKDROP_H_ */
|