53 lines
980 B
C++
53 lines
980 B
C++
#ifndef TESTPLUGIN_H
|
|
#define TESTPLUGIN_H
|
|
|
|
|
|
#include <../../src/interface.h>
|
|
|
|
#include <QObject>
|
|
#include <QtPlugin>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
#include <QImage>
|
|
#include <QLabel>
|
|
#include <QCheckBox>
|
|
#include <QSpinBox>
|
|
#include <QPushButton>
|
|
#include <QPixmap>
|
|
|
|
|
|
|
|
class ScreenShotPlugin : public QObject, public Interface
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID "org.SOM.Interface" FILE "ScreenShotPlugin.json")
|
|
Q_INTERFACES(Interface)
|
|
|
|
public:
|
|
QString pname() override;
|
|
QString pdesc() override;
|
|
QWidget *pcontent() override ;
|
|
void connectToHost(QObject* host) override;
|
|
|
|
|
|
public slots:
|
|
void updateceheck();
|
|
|
|
private slots:
|
|
void shootScreen();
|
|
void newScreenshot();
|
|
void saveScreenshot();
|
|
|
|
private:
|
|
|
|
void updateScreenshotLabel();
|
|
|
|
QLabel *screenshotLabel;
|
|
QCheckBox *hideThisWindowCheckBox;
|
|
QSpinBox *delaySpinBox;
|
|
QPushButton *newScreenshotButton;
|
|
QPixmap originalPixmap;
|
|
QWidget *test;
|
|
};
|
|
#endif
|