diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-09 20:29:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-09 20:29:02 +0300 |
commit | e5fdfcde3880eb7edaf573fb883dd4ef86972082 (patch) | |
tree | c5d4ee388876f78024a82c4bd8ee9712e3877dbb /include/m_chat_int.h | |
parent | 2d737d50469b965c2787823a94757f4c9f0a7107 (diff) |
moving session data into dialog classes
Diffstat (limited to 'include/m_chat_int.h')
-rw-r--r-- | include/m_chat_int.h | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/include/m_chat_int.h b/include/m_chat_int.h index c8d9c9bc27..1b28c454ab 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -178,10 +178,6 @@ struct GCSessionInfoBase {
MCONTACT hContact;
- bool bFGSet;
- bool bBGSet;
- bool bFilterEnabled;
- bool bNicklistEnabled;
bool bInitDone;
bool bHasToolTip;
bool bTrimmed;
@@ -193,9 +189,6 @@ struct GCSessionInfoBase wchar_t* ptszTopic;
int iType;
- int iFG;
- int iBG;
- int iLogFilterFlags;
int nUsersInNicklist;
int iEventCount;
int iWidth;
@@ -211,15 +204,12 @@ struct GCSessionInfoBase int currentHovered;
CChatRoomDlg *pDlg;
- COMMANDINFO* lpCommands;
- COMMANDINFO* lpCurrentCommand;
- LOGINFO* pLog;
- LOGINFO* pLogEnd;
- USERINFO* pUsers;
- USERINFO* pMe;
- STATUSINFO* pStatuses;
-
- wchar_t pszLogFileName[MAX_PATH];
+ COMMANDINFO *lpCommands, *lpCurrentCommand;
+ LOGINFO *pLog, *pLogEnd;
+ USERINFO *pUsers, *pMe;
+ STATUSINFO *pStatuses;
+
+ wchar_t pszLogFileName[MAX_PATH];
};
struct GCLogStreamDataBase
@@ -430,7 +420,7 @@ class MIR_APP_EXPORT CSrmmBaseDialog : public CDlgBase {
protected:
- CSrmmBaseDialog(HINSTANCE hInst, int idDialog);
+ CSrmmBaseDialog(HINSTANCE hInst, int idDialog, SESSION_INFO *si = nullptr);
protected:
virtual INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) override;
@@ -441,6 +431,10 @@ protected: public:
MCONTACT m_hContact;
+ int m_iLogFilterFlags;
+ bool m_bFilterEnabled, m_bNicklistEnabled;
+ bool m_bFGSet, m_bBGSet;
+ COLORREF m_iFG, m_iBG;
__forceinline bool isChat() const { return m_si != nullptr; }
|