summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index e126a4b289..3c1b5051e0 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -1002,6 +1002,22 @@ int IconsChanged(WPARAM, LPARAM)
}
/////////////////////////////////////////////////////////////////////////////////////////
+// services needed for assembly management
+
+static INT_PTR ReloadSkin(WPARAM, LPARAM)
+{
+ Skin->setFileName();
+ Skin->Load();
+ return 0;
+}
+
+static INT_PTR ReloadSettings(WPARAM, LPARAM lParam)
+{
+ PluginConfig.reloadSettings(lParam != 0);
+ return 0;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
// initialises the internal API, services, events etc...
static void TSAPI InitAPI()
@@ -1010,8 +1026,12 @@ static void TSAPI InitAPI()
CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommand_W);
CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText);
+ CreateServiceFunction("TabSRMsg/ReloadSkin", ReloadSkin);
+ CreateServiceFunction("TabSRMsg/ReloadSettings", ReloadSettings);
+
CreateServiceFunction("SRMsg/ReadMessage", ReadMessageCommand);
CreateServiceFunction("SRMsg/TypingMessage", TypingMessageCommand);
+
CreateServiceFunction(MS_TABMSG_SETUSERPREFS, SetUserPrefs);
CreateServiceFunction(MS_TABMSG_TRAYSUPPORT, Service_OpenTrayMenu);
CreateServiceFunction(MS_TABMSG_SLQMGR, CSendLater::svcQMgr);