Add in a few extra plugins
This commit is contained in:
50
plugins/ScreenShotPlugin/ScreenShotPlugin.h
Normal file
50
plugins/ScreenShotPlugin/ScreenShotPlugin.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#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 ;
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user