blob: ebb2e2184d91382d6b247bf3bf355f0da89e270c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
* Ctrl_com.h
* ----------
* Purpose: Song comments tab, upper panel.
* Notes : (currently none)
* Authors: Olivier Lapicque
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma once
#include "openmpt/all/BuildSettings.hpp"
OPENMPT_NAMESPACE_BEGIN
class CCtrlComments final : public CModControlDlg
{
protected:
CEdit m_EditComments;
int charWidth = 0;
bool m_Reformatting = false;
public:
CCtrlComments(CModControlView &parent, CModDoc &document);
//{{AFX_VIRTUAL(CCtrlComments)
Setting<LONG> &GetSplitPosRef() override { return TrackerSettings::Instance().glCommentsWindowHeight; }
BOOL OnInitDialog() override;
void DoDataExchange(CDataExchange *pDX) override; // DDX/DDV support
void RecalcLayout() override;
void UpdateView(UpdateHint hint, CObject *pObj = nullptr) override;
CRuntimeClass *GetAssociatedViewClass() override;
void OnActivatePage(LPARAM) override;
void OnDeactivatePage() override;
BOOL PreTranslateMessage(MSG *pMsg) override;
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(CCtrlComments)
afx_msg void OnCommentsUpdated();
afx_msg void OnCommentsChanged();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
OPENMPT_NAMESPACE_END
|