diff options
Diffstat (limited to 'src/mir_app/src/chat_ui.cpp')
-rw-r--r-- | src/mir_app/src/chat_ui.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/mir_app/src/chat_ui.cpp b/src/mir_app/src/chat_ui.cpp index aacb22bf8a..1c4b4ef8e8 100644 --- a/src/mir_app/src/chat_ui.cpp +++ b/src/mir_app/src/chat_ui.cpp @@ -51,7 +51,7 @@ static UINT _eventorder[] = class CChatEventOptionDlg : public CDlgBase
{
CCtrlCheck chkTray, chkPopup, chkRightClick;
- CCtrlMButton btn1, btn2, btn3, btn4;
+ CCtrlMButton btn1, btn2, btn3, btn4, btn5;
void InvertColumn(int ctrlId)
{
@@ -67,19 +67,21 @@ public: chkTray(this, IDC_TRAYONLYFORINACTIVE),
chkPopup(this, IDC_POPUPONLYFORINACTIVE),
chkRightClick(this, IDC_RIGHTCLICK),
- btn1(this, IDC_ICON1, SKINICON_OTHER_POPUP, LPGEN("Popup")),
- btn2(this, IDC_ICON2, SKINICON_OTHER_MIRANDA, LPGEN("Tray")),
- btn3(this, IDC_ICON3, SKINICON_OTHER_SOUND, LPGEN("Sound")),
- btn4(this, IDC_ICON4, SKINICON_EVENT_FILE, LPGEN("Log to file"))
+ btn1(this, IDC_ICON1, SKINICON_OTHER_WINDOW, LPGEN("Window")),
+ btn2(this, IDC_ICON2, SKINICON_OTHER_POPUP, LPGEN("Popup")),
+ btn3(this, IDC_ICON3, SKINICON_OTHER_MIRANDA, LPGEN("Tray")),
+ btn4(this, IDC_ICON4, SKINICON_OTHER_SOUND, LPGEN("Sound")),
+ btn5(this, IDC_ICON5, SKINICON_EVENT_FILE, LPGEN("Log to file"))
{
CreateLink(chkTray, g_bChatTrayInactive);
CreateLink(chkPopup, g_bChatPopupInactive);
CreateLink(chkRightClick, g_chatApi.bRightClickFilter);
- btn1.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Popup);
- btn2.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Tray);
- btn3.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Sound);
- btn4.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Log);
+ btn1.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Window);
+ btn2.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Popup);
+ btn3.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Tray);
+ btn4.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Sound);
+ btn5.OnClick = Callback(this, &CChatEventOptionDlg::onClick_Log);
}
bool OnInitDialog() override
@@ -122,6 +124,7 @@ public: return true;
}
+ void onClick_Window(CCtrlButton *) { InvertColumn(IDC_1); }
void onClick_Popup(CCtrlButton *) { InvertColumn(IDC_P1); }
void onClick_Sound(CCtrlButton *) { InvertColumn(IDC_S1); }
void onClick_Tray(CCtrlButton *) { InvertColumn(IDC_T1); }
|