⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alieditorview.h

📁 AliEditor_Source code
💻 H
字号:
// AliEditorView.h : interface of the CAliEditorView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ALIEDITORVIEW_H__9E1C3ECA_5FB6_4761_990C_CFE0F5557D35__INCLUDED_)
#define AFX_ALIEDITORVIEW_H__9E1C3ECA_5FB6_4761_990C_CFE0F5557D35__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "StringLine.h"
//#include "DlgFavoriteEdit.h"

class CAliEditorDoc;

class CAliEditorView : public CListView
{
public: // create from serialization only
	CAliEditorView();
	DECLARE_DYNCREATE(CAliEditorView)

// Attributes
public:
	CAliEditorDoc* GetDocument();

protected:

public:
	CStringLines m_strlines;
	enum NodeType m_cur_node_type;
	int m_av_type;
	SatTPMod *m_pCurSat;

// Operations
public:
	//scripter relation
	void InitProgField();
	BOOL InitScript(CString pathname);
	BOOL ReadScriptFile(CString script_path);

	//UI--由Prog List更新List Ctrl
	void UpdateMainInfoByFile(enum NodeType type);
	void UpdateListByNodeInfo(NodeField**pNode);

	//.h -> .ini
	BOOL LoadTemplate(BOOL bSaveTemplate);
	BOOL ParseTemplate(CString tpath);
	BOOL SaveScriptFile(CString script_path);
	
	CString ClearFileComment(CString filepath);

	long GetDataValue(const char *bufsz);

	//list relation
	int GetCurSel();
	void SetCurSel(int index, BOOL bClearFoucs = FALSE);
	void DeleteAllProg();
	void InitFavorGroup();
	void UpdateListView(SatTPMod *pSatTpMod);
	void UpdateListItem(SatTPMod *pSatTpMod, int index, int offset);
	void UpdateListViewByType(int type);
	char *GetCookBuffer(cook_node_t *pcnt, int count, char *bufsz);
	void GetGroupCount(char *bufsz);
	CString CookNodeInfo(char *bufsz, int offset);

	BOOL EditChannel();
	int GetProgFieldIndex(char *keysz, BOOL bFull = FALSE);
//	void UpdateProgNodeOnlyOne(int offset, int list_index, SatTPMod *pSatTpMod);
//	void UpdateProgNodeInArea(int begin, int end, int offset, SatTPMod *pSatTpMod);
	BOOL SwitchChannel(int nItem, int nItemTarget);
	void RenameFavGroup();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAliEditorView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CAliEditorView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CAliEditorView)
	afx_msg void OnEditChannel();
	afx_msg void OnMoveChannel();
	afx_msg void OnSwitchChannel();
	afx_msg void OnInsertChannel();
	afx_msg void OnDelChannel();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMoveUpChannel();
	afx_msg void OnMoveDownChannel();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnEidtFavGroup();
	afx_msg void OnRemoveitemFavGroup();
	afx_msg void OnRenameFavGroup();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in AliEditorView.cpp
inline CAliEditorDoc* CAliEditorView::GetDocument()
   { return (CAliEditorDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ALIEDITORVIEW_H__9E1C3ECA_5FB6_4761_990C_CFE0F5557D35__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -