forked from MrBesen/lolautoaccept
32 lines
693 B
C++
32 lines
693 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include <QObject>
|
|
#include <QVector>
|
|
|
|
class RuneAspektButton;
|
|
class RuneAspektButtonGroup : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
RuneAspektButtonGroup(QObject* parent, uint32_t size);
|
|
virtual ~RuneAspektButtonGroup();
|
|
|
|
void addButton(RuneAspektButton* button);
|
|
void setSelectedRunes(const QVector<int>& newRunes);
|
|
|
|
constexpr const QVector<int>& getSelectedRunes() const { return selectedRune; }
|
|
constexpr uint32_t getSize() const { return size; }
|
|
|
|
signals:
|
|
void changed(); // signal that the group was changed -> all buttons should refresh
|
|
|
|
private slots:
|
|
void buttonPressed(int aspektId);
|
|
|
|
private:
|
|
QVector<int> selectedRune;
|
|
uint32_t size = 0;
|
|
};
|