aboutsummaryrefslogtreecommitdiff
path: root/include/aoapplication.h
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-25 02:05:52 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-25 02:05:52 +0300
commit923548c99746858846764e47fa96899e7c5ef2ab (patch)
tree5418619cdc32395229c87227ae8ba3f9c13c0a01 /include/aoapplication.h
parent7097053723bab5cb91c312abaafeb69dc07dd4ac (diff)
Hellcommit of doom and suffering
Create two new helper functions - get_chat_markdown and remake read_char_ini_tag to be read_ini_tags for more general purpose Modify aolineedit to support preserving selection after unfocusing (building this for using dropdown list for setting colors), as well as remove the setReadOnly functionality and use it in signals instead Overhaul the color system to get rid of inline colors, allow full customization of colors and usage of configuration files for every facet of how a color functions (should we be talking, should we remove that markdown char, etc.) Complete overhaul of color markdowns system TODO: Make this thing not lag to hell, fix chat messages hogging the IC as the animation never ends apparently
Diffstat (limited to 'include/aoapplication.h')
-rw-r--r--include/aoapplication.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index fef299b2..89bfaa26 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -242,6 +242,9 @@ public:
//Returns the color with p_identifier from p_file
QColor get_color(QString p_identifier, QString p_file);
+ // Returns the markdown symbol used for specified p_identifier such as colors
+ QString get_chat_markdown(QString p_identifier, QString p_file);
+
// Returns the color from the misc folder.
QColor get_chat_color(QString p_identifier, QString p_chat);
@@ -261,7 +264,7 @@ public:
QString read_char_ini(QString p_char, QString p_search_line, QString target_tag);
//Returns a QStringList of all key=value definitions on a given tag.
- QStringList read_char_ini_tag(QString p_char, QString target_tag);
+ QStringList read_ini_tags(QString p_file, QString target_tag = "");
//Sets the char.ini p_search_line key under tag target_tag to value.
void set_char_ini(QString p_char, QString value, QString p_search_line, QString target_tag);