mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-26 10:31:39 +08:00
32 lines
802 B
C++
32 lines
802 B
C++
#pragma once
|
|
#include <QApplication>
|
|
#include "jkqtplotter/jkqtplotter.h"
|
|
#include "jkqtpappsettingcontroller.h"
|
|
#include <QDir>
|
|
|
|
|
|
|
|
class JKQTPExampleApplication: public QApplication {
|
|
Q_OBJECT
|
|
public:
|
|
JKQTPExampleApplication(int &argc, char **argv, bool waitForScreenshotReady=false);
|
|
|
|
virtual ~JKQTPExampleApplication();
|
|
|
|
int exec();
|
|
public slots:
|
|
void notifyReadyForScreenshot();
|
|
protected:
|
|
bool waitForScreenshotReady;
|
|
bool readyForScreenshot;
|
|
QDir screenshotDir;
|
|
bool saveScreenshot;
|
|
bool saveSmallScreenshot;
|
|
bool saveScreenshotPlot;
|
|
bool saveSmallScreenshotPlot;
|
|
bool scaleDownFromHighDPI;
|
|
QStringList screenshotBasename;
|
|
void readCmdLine();
|
|
QRect getBoundsWithoutColor(QImage qImage, const QColor &exclusionColor = Qt::white);
|
|
};
|