atrooney-online-2/include/aoevidencedisplay.h
oldmud0 13942345c6 Run clang-format on entire project
Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style.
Lines reflow at 80 characters. One-line method bodies are on the same
line as the signature. Space always after `//`. No indentation
on preprocessor macros. Includes are sorted lexicographically.

If you don't want to see this commit on blames, use the hidden
whitespace option on GitHub, or use `-w` in git-blame.
2020-04-17 21:57:16 -05:00

32 lines
618 B
C++

#ifndef AOEVIDENCEDISPLAY_H
#define AOEVIDENCEDISPLAY_H
#include "aoapplication.h"
#include "aosfxplayer.h"
#include <QDebug>
#include <QLabel>
#include <QMovie>
class AOEvidenceDisplay : public QLabel {
Q_OBJECT
public:
AOEvidenceDisplay(QWidget *p_parent, AOApplication *p_ao_app);
void show_evidence(QString p_evidence_image, bool is_left_side, int p_volume);
QLabel *get_evidence_icon();
void reset();
private:
AOApplication *ao_app;
QMovie *evidence_movie;
QLabel *evidence_icon;
AOSfxPlayer *sfx_player;
private slots:
void frame_change(int p_frame);
};
#endif // AOEVIDENCEDISPLAY_H