summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scriver/res/chat/strike.icobin0 -> 1150 bytes
-rw-r--r--plugins/Scriver/res/resource.rc2
-rw-r--r--plugins/Scriver/src/globals.cpp17
-rw-r--r--plugins/Scriver/src/msgs.cpp11
-rw-r--r--plugins/Scriver/src/resource.h1
-rw-r--r--plugins/TabSRMM/src/buttonsbar.cpp1
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp3
-rw-r--r--plugins/TabSRMM/src/msgs.h2
8 files changed, 23 insertions, 14 deletions
diff --git a/plugins/Scriver/res/chat/strike.ico b/plugins/Scriver/res/chat/strike.ico
new file mode 100644
index 0000000000..6cd770f384
--- /dev/null
+++ b/plugins/Scriver/res/chat/strike.ico
Binary files differ
diff --git a/plugins/Scriver/res/resource.rc b/plugins/Scriver/res/resource.rc
index 487a396b6e..eaff37e35c 100644
--- a/plugins/Scriver/res/resource.rc
+++ b/plugins/Scriver/res/resource.rc
@@ -456,6 +456,8 @@ IDI_BBOLD ICON "chat/bold.ico"
IDI_BITALICS ICON "chat/italic.ico"
+IDI_STRIKEOUT ICON "chat/strike.ico"
+
IDI_JOIN ICON "chat/join.ico"
IDI_TOPIC ICON "chat/topic.ico"
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
diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp
index 95a49fe61b..7d1a1bcebe 100644
--- a/plugins/TabSRMM/src/buttonsbar.cpp
+++ b/plugins/TabSRMM/src/buttonsbar.cpp
@@ -39,7 +39,6 @@ static int CB_InitDefaultButtons(WPARAM, LPARAM)
bbd.pwszTooltip = LPGENW("Underlined text");
g_plugin.addButton(&bbd);
- bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISPUSHBUTTON | BBBF_CANBEHIDDEN | BBBF_CREATEBYID | BBBF_NOREADONLY;
bbd.dwButtonID = IDC_SRMM_STRIKEOUT;
bbd.dwDefPos = 70;
bbd.hIcon = g_plugin.getIconHandle(IDI_STRIKEOUT);
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 2a1f028379..794c4078a3 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -325,8 +325,7 @@ CMsgDialog::CMsgDialog(int iDlgId, MCONTACT hContact) :
timerAwayMsg(this, 100),
m_btnAdd(this, IDC_ADD),
m_btnQuote(this, IDC_QUOTE),
- m_btnCancelAdd(this, IDC_CANCELADD),
- m_btnStrikeout(this, IDC_SRMM_STRIKEOUT)
+ m_btnCancelAdd(this, IDC_CANCELADD)
{
m_hContact = hContact;
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h
index b1c30b00c5..e734f5f30e 100644
--- a/plugins/TabSRMM/src/msgs.h
+++ b/plugins/TabSRMM/src/msgs.h
@@ -550,7 +550,7 @@ public:
SESSION_INFO *m_pLastSession;
CTimer timerAwayMsg;
- CCtrlButton m_btnAdd, m_btnQuote, m_btnCancelAdd, m_btnStrikeout;
+ CCtrlButton m_btnAdd, m_btnQuote, m_btnCancelAdd;
public:
CMsgDialog(int dlgId, MCONTACT hContact);