From b9aa2039d3eccf00985b1ffb91465f571006b896 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Sun, 31 Jul 2022 21:05:09 +0300 Subject: Add "edit" and "open folder" actions for dropdowns (#776) * Add "edit" and "open folder" actions for dropdowns: - CharSelect char button with "edit char.ini," "open this char folder" - pos dropdown with "open this background" - text color dropdown with "open chat_config.ini" - evidence button with "open evidence folder" - sound list with "open sounds folder" - music list with "open music folder" - theme list with "open themes folder" * Implement "Play " for the Play action, and only show it if the sfx is not "0" or "1" or "-" Co-authored-by: stonedDiscord Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: oldmud0 --- include/aooptionsdialog.h | 1 + include/courtroom.h | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index daf1b35..be305d2 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -51,6 +51,7 @@ private: QLabel *ui_subtheme_label; QComboBox *ui_subtheme_combobox; QPushButton *ui_theme_reload_button; + QPushButton *ui_theme_folder_button; QLabel *ui_evidence_double_click_lbl; QCheckBox *ui_evidence_double_click_cb; QLabel *ui_animated_theme_lbl; diff --git a/include/courtroom.h b/include/courtroom.h index e8c4e00..45c040f 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -824,6 +824,7 @@ private: void set_char_select(); void set_char_select_page(); void char_clicked(int n_char); + void on_char_button_context_menu_requested(const QPoint &pos); void put_button_in_place(int starting, int chars_on_this_page); void filter_character_list(); @@ -893,6 +894,7 @@ private slots: void on_emote_dropdown_changed(int p_index); void on_pos_dropdown_changed(int p_index); void on_pos_dropdown_changed(QString p_text); + void on_pos_dropdown_context_menu_requested(const QPoint &pos); void on_pos_remove_clicked(); void on_iniswap_dropdown_changed(int p_index); @@ -952,6 +954,7 @@ private slots: void on_prosecution_plus_clicked(); void on_text_color_changed(int p_color); + void on_text_color_context_menu_requested(const QPoint &pos); void set_text_color_dropdown(); void on_music_slider_moved(int p_value); @@ -982,6 +985,7 @@ private slots: void on_showname_enable_clicked(); void on_evidence_button_clicked(); + void on_evidence_context_menu_requested(const QPoint &pos); void on_evidence_delete_clicked(); bool on_evidence_x_clicked(); -- cgit