| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef KSNIP_IMAGEGRABBERSETTINGS_H |
| 21 |
#define KSNIP_IMAGEGRABBERSETTINGS_H |
| 22 |
|
| 23 |
#include <QGroupBox> |
| 24 |
#include <QCheckBox> |
| 25 |
#include <QGridLayout> |
| 26 |
#include <QLabel> |
| 27 |
|
| 28 |
#include "src/backend/config/IConfig.h" |
| 29 |
#include "src/widgets/CustomSpinBox.h" |
| 30 |
|
| 31 |
class ImageGrabberSettings : public QGroupBox |
| 32 |
{ |
| 33 |
Q_OBJECT |
| 34 |
public: |
| 35 |
explicit ImageGrabberSettings(const QSharedPointer<IConfig> &config); |
| 36 |
~ImageGrabberSettings() override = default; |
| 37 |
void saveSettings(); |
| 38 |
|
| 39 |
private: |
| 40 |
QCheckBox *mCaptureCursorCheckbox; |
| 41 |
QCheckBox *mHideMainWindowDuringScreenshotCheckbox; |
| 42 |
QCheckBox *mShowMainWindowAfterTakingScreenshotCheckbox; |
| 43 |
QCheckBox *mForceGenericWaylandCheckbox; |
| 44 |
QCheckBox *mScaleGenericWaylandScreenshotsCheckbox; |
| 45 |
QLabel *mImplicitCaptureDelayLabel; |
| 46 |
CustomSpinBox *mImplicitCaptureDelaySpinBox; |
| 47 |
QGridLayout *mLayout; |
| 48 |
QSharedPointer<IConfig> mConfig; |
| 49 |
|
| 50 |
void initGui(); |
| 51 |
void loadConfig(); |
| 52 |
}; |
| 53 |
|
| 54 |
#endif |