diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-24 18:07:19 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-24 18:07:19 +0300 |
commit | 1dc3cf591258453a282785335fa8107663d4811b (patch) | |
tree | fa49c417e5c5973ede0bb4f09c7bd7941521281f /plugins/Scriver/src | |
parent | 6927078455e017dac4b274e5aaee99ed9ce93109 (diff) |
fixes #4758 (StdMsg/Scriver: добавить кнопку "зачеркнутый текст")
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/globals.cpp | 17 | ||||
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 11 | ||||
-rw-r--r-- | plugins/Scriver/src/resource.h | 1 |
3 files changed, 19 insertions, 10 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index a6e7023f36..aa9966bcbe 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -52,14 +52,15 @@ static IconItem iconList2[] = { LPGEN("Bold"), "bold", IDI_BBOLD }, // 4
{ LPGEN("Italics"), "italics", IDI_BITALICS }, // 5
{ LPGEN("Underlined"), "underline", IDI_BUNDERLINE }, // 6
- { LPGEN("Smiley button"), "smiley", IDI_SMILEY }, // 7
- { LPGEN("Room history"), "history", IDI_HISTORY }, // 8
- { LPGEN("Room settings"), "settings", IDI_TOPICBUT }, // 9
- { LPGEN("Event filter disabled"), "filter", IDI_FILTER }, // 10
- { LPGEN("Event filter enabled"), "filter2", IDI_FILTER2 }, // 11
- { LPGEN("Hide nick list"), "nicklist", IDI_NICKLIST }, // 12
- { LPGEN("Show nick list"), "nicklist2", IDI_NICKLIST2 }, // 13
- { LPGEN("Icon overlay"), "overlay", IDI_OVERLAY }, // 14
+ { LPGEN("Strike through"), "strikeout", IDI_STRIKEOUT }, // 7
+ { LPGEN("Smiley button"), "smiley", IDI_SMILEY }, // 8
+ { LPGEN("Room history"), "history", IDI_HISTORY }, // 9
+ { LPGEN("Room settings"), "settings", IDI_TOPICBUT }, // 10
+ { LPGEN("Event filter disabled"), "filter", IDI_FILTER }, // 11
+ { LPGEN("Event filter enabled"), "filter2", IDI_FILTER2 }, // 12
+ { LPGEN("Hide nick list"), "nicklist", IDI_NICKLIST }, // 13
+ { LPGEN("Show nick list"), "nicklist2", IDI_NICKLIST2 }, // 14
+ { LPGEN("Icon overlay"), "overlay", IDI_OVERLAY }, // 15
};
static IconItem iconList3[] =
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 7414955646..ee34ee0b91 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -417,15 +417,22 @@ int RegisterToolbarIcons(WPARAM, LPARAM) bbd.pwszTooltip = LPGENW("Make the text underlined (Ctrl+U)");
g_plugin.addButton(&bbd);
- bbd.dwButtonID = IDC_SRMM_COLOR;
+ bbd.dwButtonID = IDC_SRMM_STRIKEOUT;
bbd.dwDefPos = 25;
+ bbd.hIcon = g_plugin.getIconHandle(IDI_STRIKEOUT);
+ bbd.pwszText = LPGENW("&Strike-through ");
+ bbd.pwszTooltip = LPGENW("Make the text strike-through");
+ g_plugin.addButton(&bbd);
+
+ bbd.dwButtonID = IDC_SRMM_COLOR;
+ bbd.dwDefPos = 30;
bbd.hIcon = g_plugin.getIconHandle(IDI_COLOR);
bbd.pwszText = LPGENW("&Color");
bbd.pwszTooltip = LPGENW("Select a foreground color for the text (Ctrl+K)");
g_plugin.addButton(&bbd);
bbd.dwButtonID = IDC_SRMM_BKGCOLOR;
- bbd.dwDefPos = 30;
+ bbd.dwDefPos = 35;
bbd.hIcon = g_plugin.getIconHandle(IDI_BKGCOLOR);
bbd.pwszText = LPGENW("&Background color");
bbd.pwszTooltip = LPGENW("Select a background color for the text (Ctrl+L)");
diff --git a/plugins/Scriver/src/resource.h b/plugins/Scriver/src/resource.h index 9fc3b2e7dc..7b8c990c7f 100644 --- a/plugins/Scriver/src/resource.h +++ b/plugins/Scriver/src/resource.h @@ -43,6 +43,7 @@ #define IDI_BUNDERLINE 420
#define IDI_BBOLD 421
#define IDI_BITALICS 422
+#define IDI_STRIKEOUT 423
#define IDI_TOPICBUT 424
#define IDI_BKGCOLOR 425
#define IDI_CHANMGR 426
|