aboutsummaryrefslogtreecommitdiff
path: root/src/aoevidencedisplay.h
blob: a2590738bf20a13a623fd70c0a0ea551435e6732 (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
32
33
34
35
36
37
#pragma once

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

#include <QDebug>
#include <QLabel>
#include <QPushButton>

class AOEvidenceDisplay : public QLabel
{
  Q_OBJECT

public:
  AOEvidenceDisplay(AOApplication *p_ao_app, QWidget *p_parent = nullptr);

  void show_evidence(int p_index, QString p_evidence_image, bool is_left_side, int p_volume);
  void reset();
  void combo_resize(int w, int h);

Q_SIGNALS:
  void show_evidence_details(int index);

private:
  AOApplication *ao_app;

  int m_last_evidence_index = -1;
  AOSfxPlayer *m_sfx_player;

  kal::InterfaceAnimationLayer *m_evidence_movie;
  QPushButton *ui_prompt_details;

private Q_SLOTS:
  void show_done();
  void icon_clicked();
};