atrooney-online-2/aocharbutton.h
Cerapter d314b8dd07 Moved includes out of the CPP files into the header files.
Reimplementation of `30a87d23c9c63bed072b3460e7482075dc530b2c` from the
old origin.
2018-08-19 09:37:34 +02:00

43 lines
697 B
C++

#ifndef AOCHARBUTTON_H
#define AOCHARBUTTON_H
#include "aoapplication.h"
#include "aoimage.h"
#include <QPushButton>
#include <QString>
#include <QWidget>
#include <QFile>
class AOCharButton : public QPushButton
{
Q_OBJECT
public:
AOCharButton(QWidget *parent, AOApplication *p_ao_app, int x_pos, int y_pos, bool is_taken);
AOApplication *ao_app;
void refresh();
void reset();
void set_taken();
void set_passworded();
void set_image(QString p_character);
private:
bool taken;
QWidget *m_parent;
AOImage *ui_taken;
AOImage *ui_passworded;
AOImage *ui_selector;
protected:
void enterEvent(QEvent *e);
void leaveEvent(QEvent *e);
};
#endif // AOCHARBUTTON_H