summaryrefslogblamecommitdiffstats
path: root/src/maingui/backdrop.h
blob: 7df6d404fe7ee1825bc819f24c2a6fb0982a3d16 (plain) (tree)
1
2
3
4
5
6
7
8
9





                   


                   







                                   









                                  











                                                              
#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_ */