pineapple-pictures/app/bottombuttongroup.h

30 lines
680 B
C
Raw Normal View History

2019-09-29 01:40:19 +08:00
#ifndef BOTTOMBUTTONGROUP_H
#define BOTTOMBUTTONGROUP_H
#include <QAbstractButton>
#include <QGroupBox>
2019-10-06 14:58:01 +08:00
class OpacityHelper;
2019-09-29 01:40:19 +08:00
class BottomButtonGroup : public QGroupBox
{
Q_OBJECT
public:
explicit BottomButtonGroup(QWidget *parent = nullptr);
2019-10-06 14:58:01 +08:00
void setOpacity(qreal opacity, bool animated = true);
2019-09-29 01:40:19 +08:00
void addButton(QAbstractButton *button);
2019-09-30 23:02:44 +08:00
signals:
void resetToOriginalBtnClicked();
2019-10-04 21:34:20 +08:00
void toggleWindowMaximum();
2019-09-30 23:02:44 +08:00
void zoomInBtnClicked();
void zoomOutBtnClicked();
void toggleCheckerboardBtnClicked();
2019-10-02 14:31:24 +08:00
void rotateRightBtnClicked();
2019-10-06 14:58:01 +08:00
private:
OpacityHelper * m_opacityHelper;
2019-09-29 01:40:19 +08:00
};
#endif // BOTTOMBUTTONGROUP_H