diff options
-rw-r--r-- | plugins/Clist_nicer/src/clcopts.cpp | 4 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/clistopts.cpp | 8 | ||||
-rw-r--r-- | plugins/IEHistory/src/dlgHandlers.cpp | 1 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/Options.cpp | 3 | ||||
-rw-r--r-- | plugins/Scriver/src/msgoptions.cpp | 22 | ||||
-rw-r--r-- | plugins/SeenPlugin/src/options.cpp | 1 | ||||
-rw-r--r-- | plugins/StatusManager/src/ss_options.cpp | 8 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgoptions.cpp | 1 | ||||
-rw-r--r-- | protocols/Discord/src/options.cpp | 2 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/options.cpp | 4 | ||||
-rw-r--r-- | src/core/stdclist/src/clistopts.cpp | 2 | ||||
-rw-r--r-- | src/core/stdfile/src/fileopts.cpp | 2 | ||||
-rw-r--r-- | src/core/stdmsg/src/chat_options.cpp | 1 | ||||
-rw-r--r-- | src/core/stdmsg/src/msgoptions.cpp | 7 | ||||
-rw-r--r-- | src/mir_app/src/sounds.cpp | 1 | ||||
-rw-r--r-- | src/mir_core/src/CCtrlBase.cpp | 10 | ||||
-rw-r--r-- | src/mir_core/src/CCtrlCheck.cpp | 1 |
17 files changed, 8 insertions, 70 deletions
diff --git a/plugins/Clist_nicer/src/clcopts.cpp b/plugins/Clist_nicer/src/clcopts.cpp index ded6e52933..fc3d14ecfc 100644 --- a/plugins/Clist_nicer/src/clcopts.cpp +++ b/plugins/Clist_nicer/src/clcopts.cpp @@ -277,11 +277,7 @@ public: SendDlgItemMessage(m_hwnd, IDC_AVATARSIZESPIN, UDM_SETRANGE, 0, MAKELONG(100, 16));
SendDlgItemMessage(m_hwnd, IDC_AVATARSIZESPIN, UDM_SETPOS, 0, cfg::dat.avatarSize);
- onChange_AvatarsBorder(0);
- onChange_AvatarsRounded(0);
-
chkLocalTime.SetState(cfg::dat.bShowLocalTime);
- onChange_LocalTime(0);
if (cfg::dat.dwFlags & CLUI_FRAME_AVATARSLEFT)
SendDlgItemMessage(m_hwnd, IDC_ALIGNMENT, CB_SETCURSEL, 1, 0);
diff --git a/plugins/Clist_nicer/src/clistopts.cpp b/plugins/Clist_nicer/src/clistopts.cpp index cc6bc3e3ee..6f8e11e4ac 100644 --- a/plugins/Clist_nicer/src/clistopts.cpp +++ b/plugins/Clist_nicer/src/clistopts.cpp @@ -61,7 +61,6 @@ public: chkCycle.SetState(g_plugin.getByte("TrayIcon", SETTING_TRAYICON_DEFAULT) == SETTING_TRAYICON_CYCLE);
chkMulti.SetState(g_plugin.getByte("TrayIcon", SETTING_TRAYICON_DEFAULT) == SETTING_TRAYICON_MULTI);
chkDontCycle.SetState(g_plugin.getByte("TrayIcon", SETTING_TRAYICON_DEFAULT) == SETTING_TRAYICON_SINGLE);
- onChange_Cycle(0);
SendDlgItemMessage(m_hwnd, IDC_CYCLETIMESPIN, UDM_SETRANGE, 0, MAKELONG(120, 1));
SendDlgItemMessage(m_hwnd, IDC_CYCLETIMESPIN, UDM_SETPOS, 0, MAKELONG(g_plugin.getWord("CycleTime", SETTING_CYCLETIME_DEFAULT), 0));
@@ -204,13 +203,11 @@ public: for (auto &it : checkBoxToStyleEx)
CheckDlgButton(m_hwnd, it.id, (exStyle & it.flag) ^ (it.flag * it.not_t) ? BST_CHECKED : BST_UNCHECKED);
- onChange_Smooth(0);
CheckDlgButton(m_hwnd, IDC_FULLROWSELECT, (cfg::dat.dwFlags & CLUI_FULLROWSELECT) ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_DBLCLKAVATARS, cfg::dat.bDblClkAvatars ? BST_CHECKED : BST_UNCHECKED);
chkGreyOut.SetState(db_get_dw(0, "CLC", "GreyoutFlags", CLCDEFAULT_GREYOUTFLAGS));
- onChange_GreyOut(0);
DWORD style = db_get_dw(0, "CLC", "FullGreyoutFlags", CLCDEFAULT_FULLGREYOUTFLAGS);
TVINSERTSTRUCT tvis;
@@ -314,7 +311,6 @@ public: CheckDlgButton(m_hwnd, IDC_ONDESKTOP, g_plugin.getByte("OnDesktop", 0) ? BST_CHECKED : BST_UNCHECKED);
chkAutoSize.SetState(cfg::dat.autosize);
- onChange_AutoSize(0);
SendDlgItemMessage(m_hwnd, IDC_BORDERSTYLE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Title bar"));
SendDlgItemMessage(m_hwnd, IDC_BORDERSTYLE, CB_INSERTSTRING, -1, (LPARAM)TranslateT("Tool Window"));
@@ -344,7 +340,6 @@ public: SendDlgItemMessage(m_hwnd, IDC_HIDETIMESPIN, UDM_SETPOS, 0, MAKELONG(g_plugin.getWord("HideTime", SETTING_HIDETIME_DEFAULT), 0));
chkAutoHide.SetState(g_plugin.getByte("AutoHide", SETTING_AUTOHIDE_DEFAULT));
- onChange_AutoHide(0);
ptrW tszTitle(g_plugin.getWStringA("TitleText"));
if (tszTitle != NULL)
@@ -355,7 +350,6 @@ public: CheckDlgButton(m_hwnd, IDC_FULLTRANSPARENT, cfg::dat.bFullTransparent ? BST_CHECKED : BST_UNCHECKED);
chkTransparent.SetState(cfg::dat.isTransparent);
- onChange_Transparent(0);
SendDlgItemMessage(m_hwnd, IDC_TRANSACTIVE, TBM_SETRANGE, FALSE, MAKELONG(1, 255));
SendDlgItemMessage(m_hwnd, IDC_TRANSINACTIVE, TBM_SETRANGE, FALSE, MAKELONG(1, 255));
@@ -574,7 +568,6 @@ public: bool OnInitDialog() override
{
chkBitmap.SetState(db_get_b(0, "CLC", "UseBitmap", CLCDEFAULT_USEBITMAP));
- onChange_Bitmap(0);
CheckDlgButton(m_hwnd, IDC_WINCOLOUR, db_get_b(0, "CLC", "UseWinColours", 0) ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(m_hwnd, IDC_SKINMODE, cfg::dat.bWallpaperMode ? BST_CHECKED : BST_UNCHECKED);
@@ -682,7 +675,6 @@ public: bool OnInitDialog() override
{
chkShowSbar.SetState(db_get_b(0, "CLUI", "ShowSBar", 1));
- onChange_Show(0);
BYTE showOpts = db_get_b(0, "CLUI", "SBarShow", 1);
CheckDlgButton(m_hwnd, IDC_SHOWICON, showOpts & 1 ? BST_CHECKED : BST_UNCHECKED);
diff --git a/plugins/IEHistory/src/dlgHandlers.cpp b/plugins/IEHistory/src/dlgHandlers.cpp index be1115708d..4fcab2bdf9 100644 --- a/plugins/IEHistory/src/dlgHandlers.cpp +++ b/plugins/IEHistory/src/dlgHandlers.cpp @@ -607,7 +607,6 @@ public: {
chkLoadAll.SetState(g_plugin.iLoadCount == 0);
chkLoadNumber.SetState(!chkLoadAll.GetState());
- onChange_All(0);
return true;
}
diff --git a/plugins/PluginUpdater/src/Options.cpp b/plugins/PluginUpdater/src/Options.cpp index 24c379b0e5..08b6c86a9a 100644 --- a/plugins/PluginUpdater/src/Options.cpp +++ b/plugins/PluginUpdater/src/Options.cpp @@ -218,9 +218,6 @@ public: chkPlatform.Hide();
}
#endif
-
- onChange_Startup(0);
- onChange_Period(0);
return true;
}
diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp index b056b8bf27..6193b1a9d0 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -286,8 +286,6 @@ public: cmbSendMode.AddString(TranslateT("Ctrl+Enter"));
cmbSendMode.AddString(TranslateT("Shift+Enter"));
cmbSendMode.SetCurSel(g_dat.sendMode);
-
- onChange_AutoPopup(0);
return true;
}
@@ -361,13 +359,7 @@ public: chkLimitChatTabs.OnChange = Callback(this, &CTabsOptionsDlg::onChange_LimitChatTabs);
chkSeparateChats.OnChange = Callback(this, &CTabsOptionsDlg::onChange_SeparateChats);
}
-
- bool OnInitDialog() override
- {
- onChange_UseTabs(0);
- return true;
- }
-
+
void onChange_UseTabs(CCtrlCheck*)
{
int bChecked = chkUseTabs.GetState();
@@ -462,9 +454,6 @@ public: mir_snprintf(str, "%d%%", (int)(100 * SendDlgItemMessage(m_hwnd, IDC_ITRANSPARENCYVALUE, TBM_GETPOS, 0, 0) / 255));
SetDlgItemTextA(m_hwnd, IDC_ITRANSPARENCYPERC, str);
-
- onChange_Transparency(0);
- onChange_ShowTitlebar(0);
return true;
}
@@ -616,12 +605,6 @@ public: break;
}
- onChange_Time(0);
- onChange_Times(0);
- onChange_Dates(0);
- onChange_GroupMsg(0);
- onChange_IndentText(0);
-
PARAFORMAT2 pf2;
memset(&pf2, 0, sizeof(pf2));
pf2.cbSize = sizeof(pf2);
@@ -746,9 +729,6 @@ public: onResetClist(0);
chkTypingBalloon.SetState(!g_plugin.bShowTypingClist);
-
- onChange_Notify(0);
- onChange_Tray(0);
return true;
}
diff --git a/plugins/SeenPlugin/src/options.cpp b/plugins/SeenPlugin/src/options.cpp index 670d4be195..4ba368a2df 100644 --- a/plugins/SeenPlugin/src/options.cpp +++ b/plugins/SeenPlugin/src/options.cpp @@ -119,7 +119,6 @@ public: SendDlgItemMessage(m_hwnd, i, CPM_SETCOLOUR, 0, back);
SendDlgItemMessage(m_hwnd, i + 20, CPM_SETCOLOUR, 0, text);
}
- onChange_Popups(0);
SetDlgItemText(m_hwnd, IDC_POPUPSTAMP, g_plugin.getMStringW("PopupStamp", DEFAULT_POPUPSTAMP));
SetDlgItemText(m_hwnd, IDC_POPUPSTAMPTEXT, g_plugin.getMStringW("PopupStampText", DEFAULT_POPUPSTAMPTEXT));
diff --git a/plugins/StatusManager/src/ss_options.cpp b/plugins/StatusManager/src/ss_options.cpp index d1e10551c0..999dc65032 100644 --- a/plugins/StatusManager/src/ss_options.cpp +++ b/plugins/StatusManager/src/ss_options.cpp @@ -264,7 +264,6 @@ class CSSMainOptDlg : public CSSOptionsBaseDlg chkSetDocked.Enable(db_get_b(0, MODULE_CLIST, SETTING_TOOLWINDOW, 1)); if (!chkSetDocked.Enabled()) chkSetDocked.SetState(false); - onChange_Docked(0); int val = SSPlugin.getByte(SETTING_WINSTATE, SETTING_STATE_NORMAL); SendDlgItemMessage(m_hwnd, IDC_WINSTATE, CB_RESETCONTENT, 0, 0); @@ -285,8 +284,6 @@ class CSSMainOptDlg : public CSSOptionsBaseDlg SendDlgItemMessage(m_hwnd, IDC_WINSTATE, CB_SETITEMDATA, item, SETTING_STATE_NORMAL); if (val == SETTING_STATE_NORMAL || (val == SETTING_STATE_MINIMIZED) && db_get_b(0, MODULE_CLIST, SETTING_TOOLWINDOW, 0)) SendDlgItemMessage(m_hwnd, IDC_WINSTATE, CB_SETCURSEL, item, 0); - - onChange_SetWinSize(0); } CCtrlButton btnShowCmdl; @@ -354,11 +351,6 @@ public: if (val == DOCKED_NONE) SendDlgItemMessage(m_hwnd, IDC_DOCKED, CB_SETCURSEL, (WPARAM)item, 0); - onChange_SetProfile(0); - onChange_ShowDialog(0); - onChange_SetWinState(0); - onChange_SetWinLocation(0); - ReinitProfiles(); timer.Start(100); return true; diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 7b09df4edc..4cb9603898 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -1209,7 +1209,6 @@ public: chkLimit.SetState(M.GetByte("cuttitle", 0));
spnLimit.SetPosition(db_get_w(0, SRMSGMOD_T, "cut_at", 15));
- onChange_Cut(&chkLimit);
cmbEscMode.AddString(TranslateT("Normal - close tab, if last tab is closed also close the window"));
cmbEscMode.AddString(TranslateT("Minimize the window to the task bar"));
diff --git a/protocols/Discord/src/options.cpp b/protocols/Discord/src/options.cpp index bd4c3cd493..f704ae029f 100644 --- a/protocols/Discord/src/options.cpp +++ b/protocols/Discord/src/options.cpp @@ -52,8 +52,6 @@ public: ptrW buf(m_proto->getWStringA(DB_KEY_PASSWORD)); if (buf) m_edPassword.SetText(buf); - - onChange_GroupChats(0); return true; } diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp index bf9426e790..fd92dcc7f0 100644 --- a/protocols/ICQ-WIM/src/options.cpp +++ b/protocols/ICQ-WIM/src/options.cpp @@ -248,8 +248,6 @@ public: { wszOldPass = m_proto->getMStringW("Password"); edtPassword.SetText(wszOldPass); - - onChange_Tray(0); return true; } @@ -330,8 +328,6 @@ public: if (iStatus == m_proto->m_iStatus2) cmbStatus2.SetCurSel(idx); } - - onChange_Timeout1(0); } return true; diff --git a/src/core/stdclist/src/clistopts.cpp b/src/core/stdclist/src/clistopts.cpp index 691b93074c..0d6fd81391 100644 --- a/src/core/stdclist/src/clistopts.cpp +++ b/src/core/stdclist/src/clistopts.cpp @@ -65,10 +65,8 @@ public: chkCycle.SetState(iTrayIcon == SETTING_TRAYICON_CYCLE);
chkMulti.SetState(iTrayIcon == SETTING_TRAYICON_MULTI);
chkDontCycle.SetState(iTrayIcon == SETTING_TRAYICON_SINGLE);
- onChange_Tray(0);
chkDisableBlink.SetState(g_plugin.getBool("DisableTrayFlash", false));
- onChange_DisableBlink(0);
blink.SetPosition(g_plugin.getWord("IconFlashTime", 550));
cycleTime.SetPosition(g_plugin.getWord("CycleTime", SETTING_CYCLETIME_DEFAULT));
diff --git a/src/core/stdfile/src/fileopts.cpp b/src/core/stdfile/src/fileopts.cpp index cabbcdeba9..8587219961 100644 --- a/src/core/stdfile/src/fileopts.cpp +++ b/src/core/stdfile/src/fileopts.cpp @@ -132,8 +132,6 @@ public: default: CheckDlgButton(m_hwnd, IDC_ASK, BST_CHECKED); break;
}
- onChange_NoScanner(0);
- onChange_AutoAccept(0);
return true;
}
diff --git a/src/core/stdmsg/src/chat_options.cpp b/src/core/stdmsg/src/chat_options.cpp index a089c3d70f..97cd62c2bb 100644 --- a/src/core/stdmsg/src/chat_options.cpp +++ b/src/core/stdmsg/src/chat_options.cpp @@ -382,7 +382,6 @@ public: edtHighlight.Enable(g_Settings.bHighlightEnabled); chkLogging.SetState(g_Settings.bLoggingEnabled); - onChange_Logging(nullptr); return true; } diff --git a/src/core/stdmsg/src/msgoptions.cpp b/src/core/stdmsg/src/msgoptions.cpp index 561ef27cf0..3af47d719d 100644 --- a/src/core/stdmsg/src/msgoptions.cpp +++ b/src/core/stdmsg/src/msgoptions.cpp @@ -245,8 +245,6 @@ public: DWORD msgTimeout = g_dat.msgTimeout;
edtSecs.SetInt((msgTimeout >= 5000) ? msgTimeout / 1000 : 5);
- onChange_Avatar(nullptr);
-
chkCascade.Enable(!g_dat.bSavePerContact);
chkCtrlSupport.Enable(!g_dat.bAutoClose);
return true;
@@ -358,8 +356,6 @@ public: spinCount.SetPosition(g_dat.nLoadCount);
spinTime.SetPosition(g_dat.nLoadTime);
-
- onChange_Time(nullptr);
return true;
}
@@ -485,8 +481,6 @@ public: clist.OnListRebuilt = Callback(this, &COptionTypingDlg::RebuildList);
clist.OnCheckChanged = Callback(this, &COptionTypingDlg::onChange_Clist);
clist.OnOptionsChanged = Callback(this, &COptionTypingDlg::ResetCList);
-
- onChange_ShowNotify(nullptr);
return true;
}
@@ -542,7 +536,6 @@ public: m_chkTabs.SetState(g_Settings.bTabsEnable);
m_chkTabsBottom.SetState(g_Settings.bTabsAtBottom);
m_chkTabsClose.SetState(g_Settings.bTabCloseOnDblClick);
- onChange_Tabs(&m_chkTabs);
return true;
}
diff --git a/src/mir_app/src/sounds.cpp b/src/mir_app/src/sounds.cpp index 64d7a58a6f..99061f85a7 100644 --- a/src/mir_app/src/sounds.cpp +++ b/src/mir_app/src/sounds.cpp @@ -132,7 +132,6 @@ public: RebuildTree();
m_tree.SetItemState(0, TVIS_SELECTED, TVIS_SELECTED);
chkSounds.SetState(db_get_b(0, "Skin", "UseSound", 0) != 0);
- onChange_Sounds(0);
return true;
}
diff --git a/src/mir_core/src/CCtrlBase.cpp b/src/mir_core/src/CCtrlBase.cpp index 3c1c08db87..50d3366454 100644 --- a/src/mir_core/src/CCtrlBase.cpp +++ b/src/mir_core/src/CCtrlBase.cpp @@ -89,12 +89,14 @@ bool CCtrlBase::Enabled() const void CCtrlBase::NotifyChange() { - if (!m_parentWnd || !m_parentWnd->IsInitialized()) + if (!m_parentWnd) return; - m_bChanged = true; - if (!m_bSilent) - m_parentWnd->NotifyChange(); + if (m_parentWnd->IsInitialized()) { + m_bChanged = true; + if (!m_bSilent) + m_parentWnd->NotifyChange(); + } OnChange(this); } diff --git a/src/mir_core/src/CCtrlCheck.cpp b/src/mir_core/src/CCtrlCheck.cpp index 9c50db8849..6c94fa20cc 100644 --- a/src/mir_core/src/CCtrlCheck.cpp +++ b/src/mir_core/src/CCtrlCheck.cpp @@ -58,6 +58,7 @@ int CCtrlCheck::GetState() void CCtrlCheck::SetState(int state) { ::SendMessage(m_hwnd, BM_SETCHECK, state, 0); + OnChange(this); } bool CCtrlCheck::IsChecked() |