Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2010-07-05 16:58:42 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2010-07-05 16:58:42 +0400
commitf6883a2c09507d0acb9ccbf0156e5948211dc480 (patch)
tree7789b4fecd6b2e846f070e2e0bdb1e16ea7555e9 /src/apps/mplayerc/LineNumberEdit.h
parente9b446380bc3bc122e3e3a1d0622163a5f1920a3 (diff)
astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2103 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/LineNumberEdit.h')
-rw-r--r--src/apps/mplayerc/LineNumberEdit.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/src/apps/mplayerc/LineNumberEdit.h b/src/apps/mplayerc/LineNumberEdit.h
index 1c2997e71..0fa541ffc 100644
--- a/src/apps/mplayerc/LineNumberEdit.h
+++ b/src/apps/mplayerc/LineNumberEdit.h
@@ -8,32 +8,32 @@ class CLineNumberStatic : public CStatic
{
// Construction/destruction
public:
- CLineNumberStatic();
- virtual ~CLineNumberStatic();
+ CLineNumberStatic();
+ virtual ~CLineNumberStatic();
// Operations
public:
- void SetFgColor( COLORREF col, BOOL redraw );
- void SetBgColor( COLORREF col, BOOL redraw );
- void SetTopAndBottom( int topline, int bottomline );
- void SetTopMargin( int topmargin );
- void SetLineNumberFormat( CString format );
+ void SetFgColor( COLORREF col, BOOL redraw );
+ void SetBgColor( COLORREF col, BOOL redraw );
+ void SetTopAndBottom( int topline, int bottomline );
+ void SetTopMargin( int topmargin );
+ void SetLineNumberFormat( CString format );
protected:
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnPaint();
- afx_msg void OnLButtonDown( UINT nFlags, CPoint point );
- DECLARE_MESSAGE_MAP()
+ afx_msg BOOL OnEraseBkgnd(CDC* pDC);
+ afx_msg void OnPaint();
+ afx_msg void OnLButtonDown( UINT nFlags, CPoint point );
+ DECLARE_MESSAGE_MAP()
private:
// Attributes
- COLORREF m_fgcol;
- COLORREF m_bgcol;
- CString m_format;
+ COLORREF m_fgcol;
+ COLORREF m_bgcol;
+ CString m_format;
- int m_topmargin; // Current top margin
- int m_topline; // Current top line number
- int m_bottomline; // Current bottom line number
+ int m_topmargin; // Current top margin
+ int m_topline; // Current top line number
+ int m_bottomline; // Current bottom line number
};
@@ -44,58 +44,58 @@ class CLineNumberEdit : public CEdit
{
// Construction/destruction
public:
- CLineNumberEdit();
- virtual ~CLineNumberEdit();
+ CLineNumberEdit();
+ virtual ~CLineNumberEdit();
// Operations
public:
- void SetMarginForegroundColor( COLORREF col, BOOL redraw = TRUE, BOOL bEnabled = TRUE );
- void SetMarginBackgroundColor( COLORREF col, BOOL redraw = TRUE, BOOL bEnabled = TRUE );
- void SetLineNumberFormat( CString format );
- void SetLineNumberRange( UINT nMin, UINT nMax = 0 );
- void UseSystemColours( BOOL bUseEnabled = TRUE, BOOL bUseDisabled = TRUE );
+ void SetMarginForegroundColor( COLORREF col, BOOL redraw = TRUE, BOOL bEnabled = TRUE );
+ void SetMarginBackgroundColor( COLORREF col, BOOL redraw = TRUE, BOOL bEnabled = TRUE );
+ void SetLineNumberFormat( CString format );
+ void SetLineNumberRange( UINT nMin, UINT nMax = 0 );
+ void UseSystemColours( BOOL bUseEnabled = TRUE, BOOL bUseDisabled = TRUE );
- int GetLineHeight()
- {
- return m_zero.cy;
- }
+ int GetLineHeight()
+ {
+ return m_zero.cy;
+ }
protected:
- virtual void PreSubclassWindow();
-
- virtual afx_msg void OnEnable( BOOL bEnable );
- virtual afx_msg void OnSysColorChange();
- virtual afx_msg void OnChange();
- virtual afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- virtual afx_msg void OnVscroll();
- virtual afx_msg void OnSize(UINT nType, int cx, int cy);
- virtual afx_msg LRESULT OnSetFont(WPARAM wParam, LPARAM lParam); // Maps to WM_SETFONT
- virtual afx_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam); // Maps to WM_SETTEXT
- virtual afx_msg LRESULT OnLineScroll(WPARAM wParam, LPARAM lParam); // Maps to EM_LINESCROLL
- virtual afx_msg LRESULT OnSelectLine(WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
+ virtual void PreSubclassWindow();
+
+ virtual afx_msg void OnEnable( BOOL bEnable );
+ virtual afx_msg void OnSysColorChange();
+ virtual afx_msg void OnChange();
+ virtual afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
+ virtual afx_msg void OnVscroll();
+ virtual afx_msg void OnSize(UINT nType, int cx, int cy);
+ virtual afx_msg LRESULT OnSetFont(WPARAM wParam, LPARAM lParam); // Maps to WM_SETFONT
+ virtual afx_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam); // Maps to WM_SETTEXT
+ virtual afx_msg LRESULT OnLineScroll(WPARAM wParam, LPARAM lParam); // Maps to EM_LINESCROLL
+ virtual afx_msg LRESULT OnSelectLine(WPARAM wParam, LPARAM lParam);
+ DECLARE_MESSAGE_MAP()
private:
- void Prepare();
- int CalcLineNumberWidth();
- void UpdateTopAndBottom();
+ void Prepare();
+ int CalcLineNumberWidth();
+ void UpdateTopAndBottom();
- // Method to set window colour only
- void SetWindowColour( BOOL bEnable = TRUE );
+ // Method to set window colour only
+ void SetWindowColour( BOOL bEnable = TRUE );
// Attributes
- BOOL m_bUseEnabledSystemColours;
- COLORREF m_EnabledFgCol;
- COLORREF m_EnabledBgCol;
- BOOL m_bUseDisabledSystemColours;
- COLORREF m_DisabledFgCol;
- COLORREF m_DisabledBgCol;
-
- CLineNumberStatic m_line;
- CSize m_zero;
- int m_maxval;
- CString m_format;
- int m_LineDelta; // Introduced to provide an offset to the first line number
+ BOOL m_bUseEnabledSystemColours;
+ COLORREF m_EnabledFgCol;
+ COLORREF m_EnabledBgCol;
+ BOOL m_bUseDisabledSystemColours;
+ COLORREF m_DisabledFgCol;
+ COLORREF m_DisabledBgCol;
+
+ CLineNumberStatic m_line;
+ CSize m_zero;
+ int m_maxval;
+ CString m_format;
+ int m_LineDelta; // Introduced to provide an offset to the first line number
};