#ifndef SETUPSCREENSHOT_H
#define SETUPSCREENSHOT_H

#include "../themewidget.h"
#include <QDir>

class CheckBox;

class QLabel;
class QLineEdit;
class QComboBox;
class QHBoxLayout;
class QPushButton;
class QRadioButton;

#define DEFAULT_SAVE_PATH QDir::homePath().append(tr("Pictures"))

class SetupScreenshot : public ThemeWidget
{
    Q_OBJECT

public:
    explicit SetupScreenshot(QWidget *parent = nullptr);
    ~SetupScreenshot();

    void initData();
    void setBlackTheme();
    void setDefaultTheme();
    void setWidgetFont(QString family, int size);

private:
    QRadioButton *m_save2clipRadioButton;
    QRadioButton *m_save2fileRadioButton;

    QHBoxLayout *m_hboxLayout1;
    QLabel *m_label1;
    QLineEdit *m_lineEdit;
    QPushButton *m_browserButton;

    QHBoxLayout *m_hboxLayout2;
    QLabel *m_label2;
    QComboBox *m_comboBox;

    CheckBox *m_checkBox;

    int m_format_index;

    void initLayout();
    void initConnect();
};

#endif // SETUPSCREENSHOT_H
