void Reset();
void SetCompareState(CompareStats::CMP_STATE state);
CompareStats::CMP_STATE GetCompareState() const;
- void SetCurrentDiffItem(const DIFFITEM *di);
bool IsCompareDone() const { return m_bCompareDone; }
CompareStats::RESULT GetResultFromCode(unsigned diffcode) const;
void Swap(int idx1, int idx2);
/**
* @brief Write plugin names
*/
-void CConfigLog::WritePluginsInLogFile(LPCWSTR transformationEvent)
+void CConfigLog::WritePluginsInLogFile(const wchar_t *transformationEvent)
{
// get an array with the available scripts
PluginArray * piPluginArray;
/**
* @brief Write string item
*/
-void CConfigLog::WriteItem(int indent, const String& key, LPCTSTR value)
+void CConfigLog::WriteItem(int indent, const String& key, const TCHAR *value)
{
String text = strutils::format(value ? _T("%*.0s%s: %s\r\n") : _T("%*.0s%s:\r\n"), indent, key.c_str(), key.c_str(), value);
m_pfile->WriteString(text);
bool isDirectory() const { return Check(diffcode, DIFFCODE::TYPEFLAGS, DIFFCODE::DIR); }
// left/right
bool isSideFirstOnly() const { return CheckSide(diffcode, DIFFCODE::FIRST); }
- bool isSideLeftOnlyOrBoth() const { return isSideFirstOnly() || isSideBoth(); }
- void setSideFirstOnly() { SetSide(DIFFCODE::FIRST); }
bool isSideSecondOnly() const { return CheckSide(diffcode, DIFFCODE::SECOND); }
- bool isSideRightOnlyOrBoth() const { return isSideSecondOnly() || isSideBoth(); }
- void setSideSecondOnly() { SetSide(DIFFCODE::SECOND); }
bool isSideThirdOnly() const { return CheckSide(diffcode, DIFFCODE::THIRD); }
- void setSideThirdOnly() { SetSide(DIFFCODE::THIRD); }
bool isSideBoth() const { return CheckSide(diffcode, DIFFCODE::BOTH); }
- void setSideBoth() { SetSide(DIFFCODE::BOTH); }
bool isSideAll() const { return CheckSide(diffcode, DIFFCODE::ALL); }
- void setSideAll() { SetSide(DIFFCODE::ALL); }
void setSideNone() { SetSide(0); }
void setSideFlag(int nIndex)
{
bool isEmpty() const { return this == &emptyitem; }
String getFilepath(int nIndex, const String &sRoot) const;
- String getLeftFilepath(const String &sLeftRoot) const;
- String getRightFilepath(const String &sRightRoot) const;
int GetDepth() const;
bool IsAncestor(const DIFFITEM *pdi) const;
bool HasChildren() const;
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar * pScrollBar);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnPaint();
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
afx_msg void OnUpdateFileSaveLeft(CCmdUI* pCmdUI);