diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
commit | f6883a2c09507d0acb9ccbf0156e5948211dc480 (patch) | |
tree | 7789b4fecd6b2e846f070e2e0bdb1e16ea7555e9 /src/apps/mplayerc/EditListEditor.h | |
parent | e9b446380bc3bc122e3e3a1d0622163a5f1920a3 (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/EditListEditor.h')
-rw-r--r-- | src/apps/mplayerc/EditListEditor.h | 142 |
1 files changed, 71 insertions, 71 deletions
diff --git a/src/apps/mplayerc/EditListEditor.h b/src/apps/mplayerc/EditListEditor.h index 5f6f21b0b..de72a9735 100644 --- a/src/apps/mplayerc/EditListEditor.h +++ b/src/apps/mplayerc/EditListEditor.h @@ -28,97 +28,97 @@ class CClip
{
private :
- REFERENCE_TIME m_rtIn;
- REFERENCE_TIME m_rtOut;
- CString m_strName;
+ REFERENCE_TIME m_rtIn;
+ REFERENCE_TIME m_rtOut;
+ CString m_strName;
public :
- CClip();
-
- bool HaveIn()
- {
- return m_rtIn != _I64_MIN;
- };
- bool HaveOut()
- {
- return m_rtOut != _I64_MIN;
- };
-
- void SetOut (LPCTSTR strVal);
- void SetIn (LPCTSTR strVal);
- void SetIn (REFERENCE_TIME rtVal);
- void SetOut (REFERENCE_TIME rtVal);
- void SetName(LPCTSTR strName)
- {
- m_strName = strName;
- };
-
- CString GetIn();
- CString GetOut();
- CString GetName() const
- {
- return m_strName;
- };
+ CClip();
+
+ bool HaveIn()
+ {
+ return m_rtIn != _I64_MIN;
+ };
+ bool HaveOut()
+ {
+ return m_rtOut != _I64_MIN;
+ };
+
+ void SetOut (LPCTSTR strVal);
+ void SetIn (LPCTSTR strVal);
+ void SetIn (REFERENCE_TIME rtVal);
+ void SetOut (REFERENCE_TIME rtVal);
+ void SetName(LPCTSTR strName)
+ {
+ m_strName = strName;
+ };
+
+ CString GetIn();
+ CString GetOut();
+ CString GetName() const
+ {
+ return m_strName;
+ };
};
class CEditListEditor : public CSizingControlBarG
{
- DECLARE_DYNAMIC(CEditListEditor)
+ DECLARE_DYNAMIC(CEditListEditor)
- enum {COL_INDEX, COL_IN, COL_OUT, COL_NAME, COL_MAX};
+ enum {COL_INDEX, COL_IN, COL_OUT, COL_NAME, COL_MAX};
- CPlayerListCtrl m_list;
+ CPlayerListCtrl m_list;
CStatic m_stUsers;
CComboBox m_cbUsers;
CStatic m_stHotFolders;
CComboBox m_cbHotFolders;
- CImageList m_fakeImageList;
- POSITION m_CurPos;
- BOOL m_bDragging;
- int m_nDragIndex;
- int m_nDropIndex;
- CPoint m_ptDropPoint;
- CImageList* m_pDragImage;
-
- CString m_strFileName;
- bool m_bFileOpen;
- CList<CClip> m_EditList;
- CArray<CString> m_NameList;
-
- void SaveEditListToFile();
- void ResizeListColumn();
- POSITION InsertClip(POSITION pos, CClip& NewClip);
- void DropItemOnList();
- int FindIndex(POSITION pos);
- int FindNameIndex(LPCTSTR strName);
+ CImageList m_fakeImageList;
+ POSITION m_CurPos;
+ BOOL m_bDragging;
+ int m_nDragIndex;
+ int m_nDropIndex;
+ CPoint m_ptDropPoint;
+ CImageList* m_pDragImage;
+
+ CString m_strFileName;
+ bool m_bFileOpen;
+ CList<CClip> m_EditList;
+ CArray<CString> m_NameList;
+
+ void SaveEditListToFile();
+ void ResizeListColumn();
+ POSITION InsertClip(POSITION pos, CClip& NewClip);
+ void DropItemOnList();
+ int FindIndex(POSITION pos);
+ int FindNameIndex(LPCTSTR strName);
void FillCombo(LPCTSTR strFileName, CComboBox& Combo, bool bAllowNull);
void SelectCombo(LPCTSTR strValue, CComboBox& Combo);
protected :
- DECLARE_MESSAGE_MAP()
+ DECLARE_MESSAGE_MAP()
public:
- CEditListEditor(void);
- ~CEditListEditor(void);
+ CEditListEditor(void);
+ ~CEditListEditor(void);
- BOOL Create(CWnd* pParentWnd);
+ BOOL Create(CWnd* pParentWnd);
- void CloseFile();
- void OpenFile(LPCTSTR lpFileName);
- void SetIn (REFERENCE_TIME rtIn);
- void SetOut (REFERENCE_TIME rtOut);
- void NewClip (REFERENCE_TIME rtVal);
+ void CloseFile();
+ void OpenFile(LPCTSTR lpFileName);
+ void SetIn (REFERENCE_TIME rtIn);
+ void SetOut (REFERENCE_TIME rtOut);
+ void NewClip (REFERENCE_TIME rtVal);
void Save();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnLvnKeyDown(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnLvnItemchanged(NMHDR *pNMHDR, LRESULT *pResult);
- afx_msg void OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- afx_msg void OnBeginlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDolabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnEndlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
+ afx_msg void OnSize(UINT nType, int cx, int cy);
+ afx_msg void OnLvnKeyDown(NMHDR* pNMHDR, LRESULT* pResult);
+ afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
+ afx_msg void OnLvnItemchanged(NMHDR *pNMHDR, LRESULT *pResult);
+ afx_msg void OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult);
+ afx_msg void OnMouseMove(UINT nFlags, CPoint point);
+ afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
+ afx_msg void OnTimer(UINT_PTR nIDEvent);
+ afx_msg void OnBeginlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
+ afx_msg void OnDolabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
+ afx_msg void OnEndlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
};
|