| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef KSNIP_WATERMARKSETTINGS_H |
| 21 |
#define KSNIP_WATERMARKSETTINGS_H |
| 22 |
|
| 23 |
#include <QGroupBox> |
| 24 |
#include <QGridLayout> |
| 25 |
#include <QCheckBox> |
| 26 |
#include <QLabel> |
| 27 |
#include <QPushButton> |
| 28 |
|
| 29 |
#include "src/backend/config/IConfig.h" |
| 30 |
#include "src/gui/operations/UpdateWatermarkOperation.h" |
| 31 |
#include "src/common/provider/scaledSizeProvider/IScaledSizeProvider.h" |
| 32 |
|
| 33 |
class WatermarkSettings : public QGroupBox |
| 34 |
{ |
| 35 |
Q_OBJECT |
| 36 |
public: |
| 37 |
explicit WatermarkSettings(const QSharedPointer<IConfig> &config, const QSharedPointer<IScaledSizeProvider> &scaledSizeProvider); |
| 38 |
~WatermarkSettings() override; |
| 39 |
void saveSettings(); |
| 40 |
|
| 41 |
private: |
| 42 |
QGridLayout *mLayout; |
| 43 |
QSharedPointer<IConfig> mConfig; |
| 44 |
QSharedPointer<IScaledSizeProvider> mScaledSizeProvider; |
| 45 |
QCheckBox *mRotateWatermarkCheckbox; |
| 46 |
QLabel *mWatermarkImageLabel; |
| 47 |
QPushButton *mUpdateWatermarkImageButton; |
| 48 |
WatermarkImageLoader mWatermarkImageLoader; |
| 49 |
|
| 50 |
void initGui(); |
| 51 |
void loadConfig(); |
| 52 |
|
| 53 |
private slots: |
| 54 |
void updateWatermarkImageClicked(); |
| 55 |
}; |
| 56 |
|
| 57 |
|
| 58 |
#endif |