aboutsummaryrefslogtreecommitdiff
path: root/include/aooptionsdialog.h
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2022-07-16 06:47:04 -0700
committerGitHub <noreply@github.com>2022-07-16 15:47:04 +0200
commit368f2b04eaa153fed8a59518d8a43deb095748ea (patch)
tree9627005b755e626719e0d07010e81ea94340b9c8 /include/aooptionsdialog.h
parent15c2e0022dd33952eecda1082105d5dd2b209f5f (diff)
Reorganise logging option into its own settings tab (#790)
* Split logging options into its own tab This is so ugly its not even funny. * Update src/aooptionsdialog.cpp bot being annoying. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Can't trust the bot with anything Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'include/aooptionsdialog.h')
-rw-r--r--include/aooptionsdialog.h90
1 files changed, 67 insertions, 23 deletions
diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h
index 9c4d0d94..21803795 100644
--- a/include/aooptionsdialog.h
+++ b/include/aooptionsdialog.h
@@ -8,7 +8,6 @@
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
-#include <QtWidgets/QPushButton>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFormLayout>
@@ -16,6 +15,7 @@
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPlainTextEdit>
+#include <QtWidgets/QPushButton>
#include <QtWidgets/QScrollArea>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTabWidget>
@@ -45,6 +45,7 @@ private:
QWidget *ui_gameplay_tab;
QWidget *ui_form_layout_widget;
QFormLayout *ui_gameplay_form;
+
QLabel *ui_theme_label;
QComboBox *ui_theme_combobox;
QLabel *ui_subtheme_label;
@@ -53,30 +54,14 @@ private:
QLabel *ui_animated_theme_lbl;
QCheckBox *ui_animated_theme_cb;
QFrame *ui_theme_log_divider;
- QLabel *ui_downwards_lbl;
- QCheckBox *ui_downwards_cb;
- QLabel *ui_length_lbl;
- QSpinBox *ui_length_spinbox;
- QLabel *ui_log_newline_lbl;
- QCheckBox *ui_log_newline_cb;
- QLabel *ui_log_margin_lbl;
- QSpinBox *ui_log_margin_spinbox;
- QLabel *ui_log_timestamp_lbl;
- QCheckBox *ui_log_timestamp_cb;
- QLabel *ui_log_timestamp_format_lbl;
- QComboBox *ui_log_timestamp_format_combobox;
QLabel *ui_stay_time_lbl;
QSpinBox *ui_stay_time_spinbox;
- QLabel *ui_desync_logs_lbl;
- QCheckBox *ui_desync_logs_cb;
QLabel *ui_instant_objection_lbl;
QCheckBox *ui_instant_objection_cb;
QLabel *ui_text_crawl_lbl;
QSpinBox *ui_text_crawl_spinbox;
QLabel *ui_chat_ratelimit_lbl;
QSpinBox *ui_chat_ratelimit_spinbox;
- 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;
@@ -125,12 +110,6 @@ private:
QLabel *ui_category_stop_lbl;
QCheckBox *ui_category_stop_cb;
- QLabel *ui_log_text_lbl;
- QCheckBox *ui_log_text_cb;
-
- QLabel *ui_log_demo_lbl;
- QCheckBox *ui_log_demo_cb;
-
QWidget *ui_callwords_tab;
QWidget *ui_callwords_widget;
QVBoxLayout *ui_callwords_layout;
@@ -193,6 +172,71 @@ private:
QPushButton *ui_mount_down;
QPushButton *ui_mount_clear_cache;
+ QWidget *ui_logging_tab;
+ QWidget *ui_form_logging_widget;
+ QFormLayout *ui_logging_form;
+
+ /**
+ * Option for log direction. Supported options are downwards and wrong way.
+ */
+ QLabel *ui_downwards_lbl;
+ QCheckBox *ui_downwards_cb;
+
+ /**
+ * Option for log length. Controls how many IC-log entries are kept before it autowraps.
+ */
+ QLabel *ui_length_lbl;
+ QSpinBox *ui_length_spinbox;
+
+ /**
+ * Option for log newline. Controls if the IC-log contains newlines or as one consecutive string.
+ */
+ QLabel *ui_log_newline_lbl;
+ QCheckBox *ui_log_newline_cb;
+
+ /**
+ * Option for log margin. Controls how many pixels are between each log entry.
+ */
+ QLabel *ui_log_margin_lbl;
+ QSpinBox *ui_log_margin_spinbox;
+
+ /**
+ * Option for timestamp format. A checkmark to enable the timestamp dropdown.
+ * Why does this exist? Are we Dorico now?
+ */
+ QLabel *ui_log_timestamp_lbl;
+ QCheckBox *ui_log_timestamp_cb;
+
+ /**
+ * Option for timestamp format. Dropdown to select the preferred format.
+ */
+ QLabel *ui_log_timestamp_format_lbl;
+ QComboBox *ui_log_timestamp_format_combobox;
+
+ /**
+ * Option for desynched IC-log and viewport. Controls if entires are appended to the IC-log before displayed in the viewport.
+ */
+ QLabel *ui_desync_logs_lbl;
+ QCheckBox *ui_desync_logs_cb;
+
+ /**
+ * Option for logging IC-actions. Will add shouts, evidence or music changes to the IC-log.
+ */
+ QLabel *ui_log_ic_actions_lbl;
+ QCheckBox *ui_log_ic_actions_cb;
+
+ /**
+ * Option to enable logging. If enabled client will save all messages to the log folder.
+ */
+ QLabel *ui_log_text_lbl;
+ QCheckBox *ui_log_text_cb;
+
+ /**
+ * Option to enable demo logging. If enabled, client will save a demo file for replay trough the demo server.
+ */
+ QLabel *ui_log_demo_lbl;
+ QCheckBox *ui_log_demo_cb;
+
QWidget *ui_privacy_tab;
QVBoxLayout *ui_privacy_layout;
QCheckBox *ui_privacy_optout_cb;