atrooney-online-2/include/aoevidencebutton.h
oldmud0 156a760eba Full revert to tag 2.6.2
Due to a countless number of changes made to the core that were not
fully understood, tested, or documented, it was decided to roll
everything back to the last known stable version (2.6.2).

Changes dropped include:
 - Witness needed
 - Shake
 - Frame SFX
 - Multiple custom objections
 - Multithreaded thumbnail generation
 - Looping
 - Various translation additions
 - "Mirror IC"
 - Color in IC log
 - An invocation of clang-format

Next time, work together and split your big fork into independently
testable feature branches.
2020-05-22 17:02:32 -05:00

53 lines
1010 B
C++

#ifndef AOEVIDENCEBUTTON_H
#define AOEVIDENCEBUTTON_H
#include "aoapplication.h"
#include "aoimage.h"
#include <QPushButton>
#include <QString>
#include <QDebug>
class AOEvidenceButton : public QPushButton
{
Q_OBJECT
public:
AOEvidenceButton(QWidget *p_parent, AOApplication *p_ao_app, int p_x, int p_y);
void reset();
void set_image(QString p_image);
void set_theme_image(QString p_image);
void set_id(int p_id) {m_id = p_id;}
void set_selected(bool p_selected);
private:
AOApplication *ao_app;
QWidget *m_parent;
AOImage *ui_selected;
AOImage *ui_selector;
int m_id = 0;
protected:
void enterEvent(QEvent *e);
void leaveEvent(QEvent *e);
void mouseDoubleClickEvent(QMouseEvent *e);
/*
void dragLeaveEvent(QMouseEvent *e);
void dragEnterEvent(QMouseEvent *e);
*/
signals:
void evidence_clicked(int p_id);
void evidence_double_clicked(int p_id);
void on_hover(int p_id, bool p_state);
private slots:
void on_clicked();
};
#endif // AOEVIDENCEBUTTON_H