|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
class CXy;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SymbolManager
|
|
|
|
|
|
{
|
|
|
|
|
|
class AFX_EXT_CLASS CLibraryItem
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CLibraryItem();
|
|
|
|
|
|
~CLibraryItem();
|
|
|
|
|
|
|
|
|
|
|
|
void ClearXy();
|
|
|
|
|
|
void SetXy(CXy* pxy);
|
|
|
|
|
|
|
|
|
|
|
|
CString GetItemName(void);
|
|
|
|
|
|
int Read(void);
|
|
|
|
|
|
void Write(void);
|
|
|
|
|
|
|
|
|
|
|
|
CXy* m_pxy;
|
|
|
|
|
|
CString m_strFileName;
|
|
|
|
|
|
BOOL m_bModified; ///< <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>Ĺ<DEB8>
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class AFX_EXT_CLASS CLibraryManager
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CLibraryManager();
|
|
|
|
|
|
virtual ~CLibraryManager();
|
|
|
|
|
|
|
|
|
|
|
|
CList<CLibraryItem*, CLibraryItem*> m_libXy; ///< <20><><EFBFBD>ſ<EFBFBD><C5BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>XY<58><59><EFBFBD><EFBFBD>
|
|
|
|
|
|
CString m_strPath;
|
|
|
|
|
|
|
|
|
|
|
|
BOOL IsSameLibraryPath(LPCTSTR lpszLibPath);
|
|
|
|
|
|
void RemoveAll(void);
|
|
|
|
|
|
void RemoveGroup(CString strNewFile);
|
|
|
|
|
|
void ReloadGroup(const CString& strFile);
|
|
|
|
|
|
BOOL RenameGroup(CString oldFile, CString newFile);
|
|
|
|
|
|
BOOL SaveAll();
|
|
|
|
|
|
bool InitLib(CString strNewPath, BOOL bNotJudgeSamePath);
|
|
|
|
|
|
POSITION AddNewGroup(CString strNewFile);
|
|
|
|
|
|
POSITION Find(CXy* pxy);
|
|
|
|
|
|
POSITION Find(CString strLibName);
|
|
|
|
|
|
CLibraryItem* GetAt(POSITION pos);
|
|
|
|
|
|
CXy* GetItemXy(POSITION pos);
|
|
|
|
|
|
CString GetTreePathName(LPCTSTR strFileName);
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>strGroup<75><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪstrName<6D>ķ<EFBFBD><C4B7><EFBFBD> */
|
|
|
|
|
|
CXy *FindMark(const CString &strGroup, const CString &strName);
|
|
|
|
|
|
|
|
|
|
|
|
/* @brief <20><><EFBFBD>ҷ<EFBFBD><D2B7><EFBFBD><EFBFBD><EFBFBD>ΪstrName<6D>ķ<EFBFBD><C4B7><EFBFBD> */
|
|
|
|
|
|
CXy *FindMark(const CString &strName);
|
|
|
|
|
|
|
|
|
|
|
|
void ReNameMark(const CString &strGroup, const CString &oldName,const CString &newName);
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using namespace SymbolManager;
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" AFX_EXT_API CLibraryManager *WINAPI AfxGetMarkLibMgr();
|