summaryrefslogtreecommitdiff
path: root/include/m_chat_int.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-29 12:29:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-29 12:29:55 +0300
commit9782e244f376d38fb9bc91faf5005a659814f4a7 (patch)
tree885cdbecb60118dbedf5626a2ac81ac8f512adb5 /include/m_chat_int.h
parentf74ae187d68f851c11b11d273c56bf31f03d87d5 (diff)
code reordering
Diffstat (limited to 'include/m_chat_int.h')
-rw-r--r--include/m_chat_int.h82
1 files changed, 0 insertions, 82 deletions
diff --git a/include/m_chat_int.h b/include/m_chat_int.h
index 55793409b4..e6270e5044 100644
--- a/include/m_chat_int.h
+++ b/include/m_chat_int.h
@@ -399,86 +399,4 @@ EXTERN_C MIR_APP_DLL(BOOL) Chat_DoEventHook(SESSION_INFO *si, int iType, const U
// calculates width or height of a string
EXTERN_C MIR_APP_DLL(int) Chat_GetTextPixelSize(const wchar_t *pszText, HFONT hFont, bool bWidth);
-// message procedures' stubs
-EXTERN_C MIR_APP_DLL(LRESULT) CALLBACK stubLogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
-EXTERN_C MIR_APP_DLL(LRESULT) CALLBACK stubMessageProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
-EXTERN_C MIR_APP_DLL(LRESULT) CALLBACK stubNicklistProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-#include <chat_resource.h>
-
-class MIR_APP_EXPORT CSrmmBaseDialog : public CDlgBase
-{
- CSrmmBaseDialog(const CSrmmBaseDialog&) = delete;
- CSrmmBaseDialog& operator=(const CSrmmBaseDialog&) = delete;
-
-protected:
- CSrmmBaseDialog(CMPluginBase&, int idDialog, SESSION_INFO *si = nullptr);
-
- bool OnInitDialog() override;
- void OnDestroy() override;
-
- INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) override;
-
- int NotifyEvent(int code);
- bool ProcessHotkeys(int key, bool bShift, bool bCtrl, bool bAlt);
- void RefreshButtonStatus(void);
- void RunUserMenu(HWND hwndOwner, USERINFO *ui, const POINT &pt);
-
-protected:
- CCtrlRichEdit m_message, m_log;
- SESSION_INFO *m_si;
- COLORREF m_clrInputBG, m_clrInputFG;
- time_t m_iLastEnterTime;
-
- CCtrlListBox m_nickList;
- CCtrlButton m_btnColor, m_btnBkColor;
- CCtrlButton m_btnBold, m_btnItalic, m_btnUnderline;
- CCtrlButton m_btnHistory, m_btnChannelMgr, m_btnNickList, m_btnFilter;
-
- void onClick_BIU(CCtrlButton*);
- void onClick_Color(CCtrlButton*);
- void onClick_BkColor(CCtrlButton*);
-
- void onClick_ChanMgr(CCtrlButton*);
- void onClick_History(CCtrlButton*);
-
- void onDblClick_List(CCtrlListBox*);
-
-public:
- MCONTACT m_hContact;
- int m_iLogFilterFlags;
- bool m_bFilterEnabled, m_bNicklistEnabled;
- bool m_bFGSet, m_bBGSet;
- bool m_bInMenu;
- COLORREF m_iFG, m_iBG;
-
- void ClearLog();
- void RedrawLog();
- void ShowColorChooser(int iCtrlId);
-
- virtual void AddLog();
- virtual void CloseTab() {}
- virtual bool IsActive() const PURE;
- virtual void LoadSettings() PURE;
- virtual void ScrollToBottom() {}
- virtual void SetStatusText(const wchar_t*, HICON) {}
- virtual void ShowFilterMenu() {}
- virtual void StreamInEvents(LOGINFO*, bool) {}
- virtual void UpdateNickList() {}
- virtual void UpdateOptions();
- virtual void UpdateStatusBar() {}
- virtual void UpdateTitle() PURE;
-
- virtual LRESULT WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam);
- virtual LRESULT WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam);
- virtual LRESULT WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam);
-
- __forceinline bool isChat() const { return m_si != nullptr; }
-
- __inline void* operator new(size_t size){ return calloc(1, size); }
- __inline void operator delete(void* p) { free(p); }
-};
-
#endif // M_CHAT_INT_H__