From c0316ded85bbd2098fd51775632ad4c12be95cb9 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Fri, 21 Aug 2020 15:30:54 -0500 Subject: remove fantacrypt --- include/aoapplication.h | 3 --- include/aopacket.h | 4 ---- 2 files changed, 7 deletions(-) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 60d945e..dccc85e 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -63,9 +63,6 @@ public: /////////////////server metadata////////////////// - unsigned int s_decryptor = 5; - bool encryption_needed = true; - bool yellow_text_enabled = false; bool prezoom_enabled = false; bool flipping_enabled = false; diff --git a/include/aopacket.h b/include/aopacket.h index 4097be8..e636998 100644 --- a/include/aopacket.h +++ b/include/aopacket.h @@ -15,14 +15,10 @@ public: QStringList &get_contents() { return m_contents; } QString to_string(); - void encrypt_header(unsigned int p_key); - void decrypt_header(unsigned int p_key); - void net_encode(); void net_decode(); private: - bool encrypted = false; QString m_header; QStringList m_contents; -- cgit From 3f999455a935fd722bb49e3837b6ffb106abf870 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Fri, 21 Aug 2020 15:36:31 -0500 Subject: remove remaining traces of fantacrypt --- include/encryption_functions.h | 15 --------------- include/hex_functions.h | 16 ---------------- 2 files changed, 31 deletions(-) delete mode 100644 include/encryption_functions.h delete mode 100644 include/hex_functions.h (limited to 'include') diff --git a/include/encryption_functions.h b/include/encryption_functions.h deleted file mode 100644 index b70e8e6..0000000 --- a/include/encryption_functions.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef ENCRYPTION_FUNCTIONS_H -#define ENCRYPTION_FUNCTIONS_H - -#include - -#include -#include -#include -#include -#include - -QString fanta_encrypt(QString p_input, unsigned int key); -QString fanta_decrypt(QString p_input, unsigned int key); - -#endif // ENCRYPTION_FUNCTIONS_H diff --git a/include/hex_functions.h b/include/hex_functions.h deleted file mode 100644 index d178ba1..0000000 --- a/include/hex_functions.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef HEX_OPERATIONS_H -#define HEX_OPERATIONS_H - -#include -#include -#include -#include -#include -#include -#include - -namespace omni { -std::string int_to_hex(unsigned int input); -} - -#endif // HEX_OPERATIONS_H -- cgit From 565a3cce893c15ce5b0d8d01dbaf460bb0923ff1 Mon Sep 17 00:00:00 2001 From: scatterflower Date: Fri, 21 Aug 2020 15:52:07 -0500 Subject: remove slow loading --- include/aoapplication.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index dccc85e..c06f3f9 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -67,7 +67,6 @@ public: bool prezoom_enabled = false; bool flipping_enabled = false; bool custom_objection_enabled = false; - bool improved_loading_enabled = false; bool desk_mod_enabled = false; bool evidence_enabled = false; bool cccc_ic_support_enabled = false; -- cgit From 8cc067dee42ede24614f1a7bccef7f8752f56a01 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Fri, 11 Sep 2020 22:17:13 +0300 Subject: More accurate/consistent blip rate functionality inspired by https://youtu.be/Min0hkwO43g --- include/courtroom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index 5b5ff6c..31ab41c 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -311,7 +311,7 @@ private: int real_tick_pos = 0; // used to determine how often blips sound int blip_ticker = 0; - int blip_rate = 1; + int blip_rate = 2; int rainbow_counter = 0; bool rainbow_appended = false; bool blank_blip = false; -- cgit From d00d0769a9bf325df5bb25d7a7a4bd376b539b3c Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Fri, 11 Sep 2020 23:38:36 +0300 Subject: Lots of blip rate fixes: Remove qElapsedTimer method of blip earrape protection due to major inconsistency issues with this method (the same message would produce wildly different blip sounds - consistency is preferred) More sophisticated blip earrape prevention is calculated in the chat ticker function itself, it also properly adjusts itself depending on the blip_rate used. --- include/aoblipplayer.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include') diff --git a/include/aoblipplayer.h b/include/aoblipplayer.h index 4d3b5f1..a11e29d 100644 --- a/include/aoblipplayer.h +++ b/include/aoblipplayer.h @@ -22,12 +22,9 @@ public: int m_cycle = 0; private: - const int max_blip_ms = 60; - QWidget *m_parent; AOApplication *ao_app; qreal m_volume; - QElapsedTimer delay; void set_volume_internal(qreal p_volume); -- cgit From c392bb3415ca8a01dbfc5129527af25ae6de9c08 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Fri, 11 Sep 2020 23:39:32 +0300 Subject: Revert the meme of instant text. Instant text using }}} is not only meme-worthy in how limited it is in practice, it also makes the blip ticker completely confused how and when to play the blips (to make instant text possible, the entire system needs rewriting (again) --- include/courtroom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index 31ab41c..38621c8 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -275,7 +275,7 @@ private: bool message_is_centered = false; int current_display_speed = 3; - int message_display_speed[7] = {0, 10, 25, 40, 50, 70, 90}; + int message_display_speed[7] = {5, 10, 25, 40, 50, 70, 90}; // The character ID of the character this user wants to appear alongside with. int other_charid = -1; -- cgit From 48f8d8aa27ee08697d0f186a0ff6df9f244f7c53 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 19 Sep 2020 04:12:40 -0500 Subject: add variable check for evidence presenting --- include/courtroom.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index 5b5ff6c..172b9f1 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -424,8 +424,12 @@ private: // List of all currently available pos QStringList pos_dropdown_list; + // is the message we're about to send supposed to present evidence? bool is_presenting_evidence = false; + // have we already presented evidence for this message? + bool evidence_presented = false; + QString effect = ""; // Music effect flags we want to send to server when we play music -- cgit From f91fc5739cf45e2fd23661c7ba4ca9f28e3cacec Mon Sep 17 00:00:00 2001 From: scatterflower Date: Sun, 4 Oct 2020 01:41:23 -0500 Subject: fix doubleclick server being buggy --- include/lobby.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/lobby.h b/include/lobby.h index 42f5297..4278534 100644 --- a/include/lobby.h +++ b/include/lobby.h @@ -46,6 +46,7 @@ public: void set_loading_value(int p_value); bool public_servers_selected = true; + bool doubleclicked = false; ~Lobby(); -- cgit From 5aee23d56bc2153e830bb82d146c6188e57045d0 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Mon, 9 Nov 2020 14:47:51 -0600 Subject: Add context menu entry to stop music (#301) Also included in this commit are changes to the music packet handler that change the text from "has played a song" to "has stopped the music" in the case that the special "stop song" track is played, as well as a condition stopping music categories from triggering a music packet when double-clicked. Co-authored-by: oldmud0 --- include/courtroom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index 172b9f1..4631166 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -705,6 +705,7 @@ private slots: void music_random(); void music_list_expand_all(); void music_list_collapse_all(); + void music_stop(); void on_area_list_double_clicked(QTreeWidgetItem *p_item, int column); void select_emote(int p_id); -- cgit From fe3224d7e8ebc81e5389e46f38f2e1120a78f9b8 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Tue, 10 Nov 2020 08:43:18 -0600 Subject: Add vertical offset feature (#333) --- include/courtroom.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index 4631166..df13c69 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -280,9 +280,12 @@ private: // The character ID of the character this user wants to appear alongside with. int other_charid = -1; - // The offset this user has given if they want to appear alongside someone. + // The horizontal offset this user has given if they want to appear alongside someone. int char_offset = 0; + // The vertical offset this user has given. + int char_vert_offset = 0; + // 0 = in front, 1 = behind int pair_order = 0; @@ -524,6 +527,7 @@ private: AOButton *ui_pair_button; QListWidget *ui_pair_list; QSpinBox *ui_pair_offset_spinbox; + QSpinBox *ui_pair_vert_offset_spinbox; QComboBox *ui_pair_order_dropdown; @@ -779,6 +783,7 @@ private slots: void on_log_limit_changed(int value); void on_pair_offset_changed(int value); + void on_pair_vert_offset_changed(int value); void on_ooc_toggle_clicked(); -- cgit From 39a8ab8ab2d7791c1954649b1fb96c52d498105f Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Mon, 28 Dec 2020 00:54:08 -0600 Subject: Enable support for up to 6 SFX channels (#355) I'm somewhat confused as to why this wasn't enabled to begin with, since all the necessary code is here. Closes #306, and fixes the issue with realizations being cut off by other sounds. Co-authored-by: oldmud0 --- include/aosfxplayer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/aosfxplayer.h b/include/aosfxplayer.h index 0a5fffa..7597636 100644 --- a/include/aosfxplayer.h +++ b/include/aosfxplayer.h @@ -16,8 +16,7 @@ public: void clear(); void loop_clear(); - void play(QString p_sfx, QString p_char = "", QString shout = "", - int channel = -1); + void play(QString p_sfx, QString p_char = "", QString shout = ""); void stop(int channel = -1); void set_volume(qreal p_volume); void set_looping(bool toggle, int channel = -1); -- cgit From 29f8733dbaecdd51dc5855e259c5def1d03b90c2 Mon Sep 17 00:00:00 2001 From: scatterflower <2956568+scatterflower@users.noreply.github.com> Date: Sun, 3 Jan 2021 19:23:01 -0600 Subject: FL toggle for Y offset (#360) Use "y_offset" to enable the Y offset protocol extension. --- include/aoapplication.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index c06f3f9..790b445 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -76,6 +76,7 @@ public: bool looping_sfx_support_enabled = false; bool additive_enabled = false; bool effects_enabled = false; + bool y_offset_enabled = false; ///////////////loading info/////////////////// -- cgit From aabb256207b1905a31277f2593ed731ef1a0a071 Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Mon, 4 Jan 2021 06:13:54 -0600 Subject: Refactor AOPacket --- include/aopacket.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/aopacket.h b/include/aopacket.h index e636998..6d1deba 100644 --- a/include/aopacket.h +++ b/include/aopacket.h @@ -8,8 +8,7 @@ class AOPacket { public: AOPacket(QString p_packet_string); - AOPacket(QString header, QStringList &p_contents); - ~AOPacket(); + AOPacket(QString header, QStringList &p_contents) : m_header(header), m_contents(p_contents){} QString get_header() { return m_header; } QStringList &get_contents() { return m_contents; } -- cgit From 6570bcf0662d675cc3f0ed89820fc95efe4cace3 Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Mon, 4 Jan 2021 13:45:18 -0600 Subject: Fix timestamps when toggling showname On toggling shownames, regenerate_ic_chatlog() gets called to reprint the entire chatlog with append_ic_text(). The issue is that append_ic_text() uses QDateTime::currentDateTime() for the timestamp when it's called. Therefore the fix is adding a new timestamp parameter to the append_ic_text() which we supply from the datetime provided by each chatlogpiece --- include/courtroom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index f05b15a..9332481 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -225,7 +225,7 @@ public: // selected // or the user isn't already scrolled to the top void append_ic_text(QString p_text, QString p_name = "", QString action = "", - int color = 0); + int color = 0, QDateTime timestamp = {}); // prints who played the song to IC chat and plays said song(if found on local // filesystem) takes in a list where the first element is the song name and -- cgit From 8aaba6633ec8b3303e0e7f24d42b96f3d5a4a90e Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Mon, 4 Jan 2021 19:21:11 -0600 Subject: Change default parameter to be QDateTime::currentDateTime() Print debug message if provided timestamp is invalid --- include/courtroom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index 9332481..4610130 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -225,7 +225,7 @@ public: // selected // or the user isn't already scrolled to the top void append_ic_text(QString p_text, QString p_name = "", QString action = "", - int color = 0, QDateTime timestamp = {}); + int color = 0, QDateTime timestamp = QDateTime::currentDateTime()); // prints who played the song to IC chat and plays said song(if found on local // filesystem) takes in a list where the first element is the song name and -- cgit From 5abc685b47c7ebd9e8713c087f8c4f00d9c27396 Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Mon, 4 Jan 2021 19:49:40 -0600 Subject: Sort case evidence numerically before adding in inventories get displayed lexigraphically too but it is assumed to not matter --- include/courtroom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index f05b15a..4e8d86f 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -58,6 +58,7 @@ #include //#include +#include #include class AOApplication; -- cgit From 079c45e298e4198b9c6828603a3e9a71b07a08a7 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 9 Jan 2021 09:09:18 -0600 Subject: Define IC Log colors independent of character, define message colors according to character (#323) * IC Log colors now defined independent of character * Fix regression causing incorrect colors in the viewport * fix goof that broke chat scrolling * Only regenerate color vector when it's needed --- include/courtroom.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index eb33fd8..6a00bdc 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -412,6 +412,17 @@ private: // List of associated RGB colors for this color index QVector color_rgb_list; + // Same as above but populated from misc/default's config + QVector default_color_rgb_list; + + // Get a color index from an arbitrary misc config + void gen_char_rgb_list(QString p_char); + QVector char_color_rgb_list; + + // Misc we used for the last message, and the one we're using now. Used to avoid loading assets when it's not needed + QString current_misc; + QString last_misc; + // List of markdown start characters, their index is tied to the color index QStringList color_markdown_start_list; -- cgit From 15c3d607c616a6171118cfdd4967e35489c99312 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 9 Jan 2021 09:17:12 -0600 Subject: Log objections IC, overhaul custom objections context menu, add more configuration options per-character (#356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * initial commit * The Quick-Fix is a secondary weapon for the Medic. It is a prototype Medi Gun with a group of three gauges on one side, a (cosmetic) ÜberCharge gauge on the other side, and what appears to be a blender for a body. The main gun is coupled with a medicinal reactor backpack with glowing portions that replaces Medic's default backpack. * fixed settings dialog * slightly less stupid custom objection default Co-authored-by: oldmud0 Co-authored-by: oldmud0 --- include/aoapplication.h | 3 +++ include/aooptionsdialog.h | 2 ++ include/courtroom.h | 8 ++++++++ 3 files changed, 13 insertions(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 790b445..3465202 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -220,6 +220,9 @@ public: // Returns whether the log should have a timestamp. bool get_log_timestamp(); + // Returns whether to log IC actions. + bool get_log_ic_actions(); + // Returns the username the user may have set in config.ini. QString get_default_username(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index fe99626..2e2d7b8 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -52,6 +52,8 @@ private: QSpinBox *ui_log_margin_spinbox; QLabel *ui_log_timestamp_lbl; QCheckBox *ui_log_timestamp_cb; + QLabel *ui_log_ic_actions_lbl; + QCheckBox *ui_log_ic_actions_cb; QFrame *ui_log_names_divider; QLineEdit *ui_username_textbox; QLabel *ui_username_lbl; diff --git a/include/courtroom.h b/include/courtroom.h index 6a00bdc..a35d830 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -332,6 +332,9 @@ private: // True, if the log should display the message like name
text instead of name: text bool log_newline = false; + // True, if the log should include RP actions like interjections, showing evidence, etc. + bool log_ic_actions = true; + // Margin in pixels between log entries for the IC log. int log_margin = 0; @@ -398,6 +401,11 @@ private: int objection_state = 0; QString objection_custom = ""; + struct CustomObjection { + QString name; + QString filename; + }; + QList custom_objections_list; int realization_state = 0; int screenshake_state = 0; int text_color = 0; -- cgit From 883fa8547d2d650ab28fcc91169e1d0068760ac9 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 9 Jan 2021 09:24:06 -0600 Subject: replace "gender" with "blips" (#386) Co-authored-by: Crystalwarrior --- include/aoapplication.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 3465202..3325156 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -403,8 +403,8 @@ public: // Returns the desk modifier for p_char's p_emote int get_desk_mod(QString p_char, int p_emote); - // Returns p_char's gender - QString get_gender(QString p_char); + // Returns p_char's blips (previously called their "gender") + QString get_blips(QString p_char); // ====== // These are all casing-related settings. -- cgit From 5b34df1c5a6da97ad426a6cfb4a7c43c03fb0aad Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Sat, 9 Jan 2021 18:43:24 +0300 Subject: Rename noninterrupting_preanim and all its associated bullshit with more cooler and nicer bro immediate In themes, pre_no_interrupt old-style name is still supported if we cannot find "immediate" Resolves https://github.com/AttorneyOnline/AO2-Client/issues/64 --- include/courtroom.h | 4 ++-- include/datatypes.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index a35d830..94a115f 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -233,7 +233,7 @@ public: // the second is the char id of who played it void handle_song(QStringList *p_contents); - void play_preanim(bool noninterrupting); + void play_preanim(bool immediate); // plays the witness testimony or cross examination animation based on // argument @@ -607,7 +607,7 @@ private: QCheckBox *ui_guard; QCheckBox *ui_casing; - QCheckBox *ui_pre_non_interrupt; + QCheckBox *ui_immediate; QCheckBox *ui_showname_enable; AOButton *ui_custom_objection; diff --git a/include/datatypes.h b/include/datatypes.h index 21ade04..ebf2e38 100644 --- a/include/datatypes.h +++ b/include/datatypes.h @@ -91,7 +91,7 @@ enum CHAT_MESSAGE { SELF_OFFSET, OTHER_OFFSET, OTHER_FLIP, - NONINTERRUPTING_PRE, + IMMEDIATE, LOOPING_SFX, SCREENSHAKE, FRAME_SCREENSHAKE, -- cgit From 3993ba47e5f801d603b5da973d5e5e57eba14b0b Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 9 Jan 2021 12:32:24 -0600 Subject: Add desk_mods 2 -5 for more flexibility in emotes (#353) --- include/aoapplication.h | 1 + include/courtroom.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 3325156..a0121f2 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -77,6 +77,7 @@ public: bool additive_enabled = false; bool effects_enabled = false; bool y_offset_enabled = false; + bool expanded_desk_mods_enabled = false; ///////////////loading info/////////////////// diff --git a/include/courtroom.h b/include/courtroom.h index a35d830..d9c843a 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -175,6 +175,9 @@ public: // sets desk and bg based on pos in chatmessage void set_scene(QString f_desk_mod, QString f_side); + // sets ui_vp_player_char according to SELF_OFFSET, only a function bc it's used with desk_mod 4 and 5 + void set_self_offset(QString p_list); + // takes in serverD-formatted IP list as prints a converted version to server // OOC admittedly poorly named void set_ip_list(QString p_list); -- cgit From 3a207dccf0f20f344676ef00ed72c5e268d8c0c4 Mon Sep 17 00:00:00 2001 From: in1tiate Date: Sat, 9 Jan 2021 15:13:19 -0600 Subject: i barely had to modify this --- include/courtroom.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index 5fdbbac..cb1c458 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -254,6 +254,9 @@ public: void check_connection_received(); + // Truncates text so it fits within theme-specified boundaries and sets the tooltip to the full string + void truncate_label_text(QWidget* p_widget, QString p_identifier); + ~Courtroom(); private: -- cgit