aboutsummaryrefslogtreecommitdiff
path: root/include/courtroom.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/courtroom.h')
-rw-r--r--include/courtroom.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/courtroom.h b/include/courtroom.h
index 73ef6fb..0c53c95 100644
--- a/include/courtroom.h
+++ b/include/courtroom.h
@@ -24,6 +24,7 @@
#include "lobby.h"
#include "scrolltext.h"
#include "eventfilters.h"
+#include "aoemotepreview.h"
#include <QCheckBox>
#include <QCloseEvent>
@@ -51,6 +52,9 @@
#include <QMessageBox>
#include <QParallelAnimationGroup>
#include <QPropertyAnimation>
+#if QT_VERSION > QT_VERSION_CHECK(5, 10, 0)
+#include <QRandomGenerator> //added in Qt 5.10
+#endif
#include <QRegExp>
#include <QScrollBar>
#include <QTextBoundaryFinder>
@@ -69,6 +73,8 @@ class Courtroom : public QMainWindow {
public:
explicit Courtroom(AOApplication *p_ao_app);
+ void update_audio_volume();
+
void append_char(char_type p_char) { char_list.append(p_char); }
void append_evidence(evi_type p_evi) { evidence_list.append(p_evi); }
void append_music(QString f_music) { music_list.append(f_music); }
@@ -338,6 +344,9 @@ public:
private:
AOApplication *ao_app;
+ // Percentage of audio that is suppressed when client is not in focus
+ int suppress_audio = 0;
+
int m_courtroom_width = 714;
int m_courtroom_height = 668;
@@ -685,6 +694,9 @@ private:
AOButton *ui_emote_left;
AOButton *ui_emote_right;
+ QMenu *emote_menu;
+ AOEmotePreview *emote_preview;
+
QComboBox *ui_emote_dropdown;
QComboBox *ui_pos_dropdown;
AOButton *ui_pos_remove;
@@ -915,6 +927,8 @@ private slots:
void on_custom_objection_clicked();
void show_custom_objection_menu(const QPoint &pos);
+ void show_emote_menu(const QPoint &pos);
+
void on_realization_clicked();
void on_screenshake_clicked();
@@ -988,10 +1002,15 @@ private slots:
void on_casing_clicked();
+ void on_application_state_changed(Qt::ApplicationState state);
+
void ping_server();
// Proceed to parse the oldest chatmessage and remove it from the stack
void chatmessage_dequeue();
+
+ void preview_emote(QString emote);
+ void update_emote_preview();
};
#endif // COURTROOM_H