aboutsummaryrefslogtreecommitdiff
path: root/aoevidencedisplay.h
blob: b973a29607bcda2380de2f536b9dabf054727b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef AOEVIDENCEDISPLAY_H
#define AOEVIDENCEDISPLAY_H

#include <QLabel>
#include <QMovie>

#include "aoapplication.h"
#include "aosfxplayer.h"

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