diff options
| author | MangosArentLiterature <58055358+MangosArentLiterature@users.noreply.github.com> | 2021-04-28 00:43:06 -0500 |
|---|---|---|
| committer | MangosArentLiterature <58055358+MangosArentLiterature@users.noreply.github.com> | 2021-04-28 00:43:06 -0500 |
| commit | 99d083d114844ce3f8274663da212784595421ed (patch) | |
| tree | 23dc0f0b2d3737dffb259c105c02d4aae83373cb /include | |
| parent | f08a293a2f052806480984717cf2961f8b6824ac (diff) | |
Add default shownames
Adds a new setting to config.ini to set a default showname. This works similarly to default username, but for IC shownames, setting the client's showname automatically. Like default username, this has a 30 character limit.
* Adds a new option to config.ini, default_showname.
* Adds this setting to the options dialog.
* Adds get_default_showname() for retrieving this showname.
* Sets the showname box to this value upon joining a server.
Diffstat (limited to 'include')
| -rw-r--r-- | include/aoapplication.h | 3 | ||||
| -rw-r--r-- | include/aooptionsdialog.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h index 16bbb9f2..77154750 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -278,6 +278,9 @@ public: // Returns whether the user would like to have custom shownames on by default. bool get_showname_enabled_by_default(); + //Returns the showname the user may have set in config.ini. + QString get_default_showname(); + // Returns the list of words in callwords.ini QStringList get_call_words(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index 45fc86ca..a6c8b8e9 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -78,6 +78,8 @@ private: QLabel *ui_username_lbl; QLabel *ui_showname_lbl; QCheckBox *ui_showname_cb; + QLabel *ui_default_showname_lbl; + QLineEdit *ui_default_showname_textbox; QFrame *ui_net_divider; QLabel *ui_ms_lbl; QLineEdit *ui_ms_textbox; |
