Revision: 6908
http://winmerge.svn.sourceforge.net/winmerge/?rev=6908&view=rev
Author: kimmov
Date: 2009-07-11 08:29:49 +0000 (Sat, 11 Jul 2009)
Log Message:
-----------
Rename CProp* classes to Prop* to keep them named in same way.
Modified Paths:
--------------
trunk/Src/Common/PreferencesDlg.h
trunk/Src/MainFrm.cpp
trunk/Src/PropArchive.cpp
trunk/Src/PropArchive.h
trunk/Src/PropBackups.cpp
trunk/Src/PropBackups.h
trunk/Src/PropCodepage.cpp
trunk/Src/PropCodepage.h
trunk/Src/PropColors.cpp
trunk/Src/PropColors.h
trunk/Src/PropCompare.cpp
trunk/Src/PropCompare.h
trunk/Src/PropEditor.cpp
trunk/Src/PropEditor.h
trunk/Src/PropGeneral.cpp
trunk/Src/PropGeneral.h
trunk/Src/PropRegistry.cpp
trunk/Src/PropRegistry.h
trunk/Src/PropSyntaxColors.cpp
trunk/Src/PropSyntaxColors.h
trunk/Src/PropTextColors.cpp
trunk/Src/PropTextColors.h
trunk/Src/PropVss.cpp
trunk/Src/PropVss.h
Modified: trunk/Src/Common/PreferencesDlg.h
===================================================================
--- trunk/Src/Common/PreferencesDlg.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/Common/PreferencesDlg.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -59,17 +59,17 @@
CPropertyPageHost m_pphost;
- CPropGeneral m_pageGeneral;
- CPropCompare m_pageCompare;
- CPropEditor m_pageEditor;
- CPropVss m_pageVss;
- CPropRegistry m_pageSystem;
- CPropCodepage m_pageCodepage;
- CPropMergeColors m_pageMergeColors;
- CPropTextColors m_pageTextColors;
- CPropSyntaxColors m_pageSyntaxColors;
- CPropArchive m_pageArchive;
- CPropBackups m_pageBackups;
+ PropGeneral m_pageGeneral;
+ PropCompare m_pageCompare;
+ PropEditor m_pageEditor;
+ PropVss m_pageVss;
+ PropRegistry m_pageSystem;
+ PropCodepage m_pageCodepage;
+ PropMergeColors m_pageMergeColors;
+ PropTextColors m_pageTextColors;
+ PropSyntaxColors m_pageSyntaxColors;
+ PropArchive m_pageArchive;
+ PropBackups m_pageBackups;
PropShell m_pageShell;
PropCompareFolder m_pageCompareFolder;
Modified: trunk/Src/MainFrm.cpp
===================================================================
--- trunk/Src/MainFrm.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/MainFrm.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1346,13 +1346,13 @@
// Determine backup folder
if (GetOptionsMgr()->GetInt(OPT_BACKUP_LOCATION) ==
- CPropBackups::FOLDER_ORIGINAL)
+ PropBackups::FOLDER_ORIGINAL)
{
// Put backups to same folder than original file
bakPath = path;
}
else if (GetOptionsMgr()->GetInt(OPT_BACKUP_LOCATION) ==
- CPropBackups::FOLDER_GLOBAL)
+ PropBackups::FOLDER_GLOBAL)
{
// Put backups to global folder defined in options
bakPath = GetOptionsMgr()->GetString(OPT_BACKUP_GLOBALFOLDER);
Modified: trunk/Src/PropArchive.cpp
===================================================================
--- trunk/Src/PropArchive.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropArchive.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropArchive.cpp
*
- * @brief Implementation of CPropArchive propertysheet
+ * @brief Implementation of PropArchive propertysheet
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -20,10 +20,10 @@
static char THIS_FILE[] = __FILE__;
#endif
-// CPropArchive dialog
+// PropArchive dialog
-CPropArchive::CPropArchive(COptionsMgr *optionsMgr)
-: OptionsPanel(optionsMgr, CPropArchive::IDD)
+PropArchive::PropArchive(COptionsMgr *optionsMgr)
+: OptionsPanel(optionsMgr, PropArchive::IDD)
, m_bEnableSupport(false)
, m_nInstallType(0)
, m_bProbeType(false)
@@ -33,7 +33,7 @@
/**
* @brief Sets update handlers for dialog controls.
*/
-void CPropArchive::DoDataExchange(CDataExchange* pDX)
+void PropArchive::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
DDX_Control(pDX, IDC_ARCHIVE_WWW, m_wwwLink);
@@ -43,14 +43,14 @@
}
-BEGIN_MESSAGE_MAP(CPropArchive, CPropertyPage)
+BEGIN_MESSAGE_MAP(PropArchive, CPropertyPage)
ON_BN_CLICKED(IDC_ARCHIVE_ENABLE, OnEnableClicked)
END_MESSAGE_MAP()
/**
* @brief Reads options values from storage to UI.
*/
-void CPropArchive::ReadOptions()
+void PropArchive::ReadOptions()
{
int enable = GetOptionsMgr()->GetInt(OPT_ARCHIVE_ENABLE);
m_bEnableSupport = enable > 0;
@@ -61,7 +61,7 @@
/**
* @brief Writes options values from UI to storage.
*/
-void CPropArchive::WriteOptions()
+void PropArchive::WriteOptions()
{
if (m_bEnableSupport)
GetOptionsMgr()->SaveOption(OPT_ARCHIVE_ENABLE, m_nInstallType + 1);
@@ -73,7 +73,7 @@
/**
* @brief Called before propertysheet is drawn.
*/
-BOOL CPropArchive::OnInitDialog()
+BOOL PropArchive::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
m_wwwLink.m_link = DownloadUrl;
@@ -88,7 +88,7 @@
/**
* @brief Called when archive support is enabled or disabled.
*/
-void CPropArchive::OnEnableClicked()
+void PropArchive::OnEnableClicked()
{
UpdateControls();
}
@@ -96,7 +96,7 @@
/**
* @brief Called Updates controls enabled/disables state.
*/
-void CPropArchive::UpdateControls()
+void PropArchive::UpdateControls()
{
CButton *chkEnabled = (CButton *) GetDlgItem(IDC_ARCHIVE_ENABLE);
CButton *btnLocal = (CButton *) GetDlgItem(IDC_ARCHIVE_INSTALLOCAL);
Modified: trunk/Src/PropArchive.h
===================================================================
--- trunk/Src/PropArchive.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropArchive.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropArchive.h
*
- * @brief Declaration file for CPropArchive propertyheet
+ * @brief Declaration file for PropArchive propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -18,10 +18,10 @@
/**
* @brief Class for Archive Support options page.
*/
-class CPropArchive : public OptionsPanel
+class PropArchive : public OptionsPanel
{
public:
- CPropArchive(COptionsMgr *optionsMgr);
+ PropArchive(COptionsMgr *optionsMgr);
// Implement IOptionsPanel
virtual void ReadOptions();
Modified: trunk/Src/PropBackups.cpp
===================================================================
--- trunk/Src/PropBackups.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropBackups.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropBackups.cpp
*
- * @brief Implementation of CPropBackups propertysheet
+ * @brief Implementation of PropBackups propertysheet
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -24,8 +24,8 @@
* @brief Constructor taking OptionsManager parameter.
* @param [in] optionsMgr Pointer to OptionsManager.
*/
-CPropBackups::CPropBackups(COptionsMgr *optionsMgr)
- : OptionsPanel(optionsMgr, CPropBackups::IDD)
+PropBackups::PropBackups(COptionsMgr *optionsMgr)
+ : OptionsPanel(optionsMgr, PropBackups::IDD)
, m_bCreateForFolderCmp(FALSE)
, m_bCreateForFileCmp(FALSE)
, m_bAppendBak(FALSE)
@@ -34,7 +34,7 @@
{
}
-void CPropBackups::DoDataExchange(CDataExchange* pDX)
+void PropBackups::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Check(pDX, IDC_BACKUP_FOLDERCMP, m_bCreateForFolderCmp);
@@ -46,7 +46,7 @@
}
-BEGIN_MESSAGE_MAP(CPropBackups, CPropertyPage)
+BEGIN_MESSAGE_MAP(PropBackups, CPropertyPage)
ON_BN_CLICKED(IDC_BACKUP_BROWSE, OnBnClickedBackupBrowse)
END_MESSAGE_MAP()
@@ -54,7 +54,7 @@
/**
* @brief Reads options values from storage to UI.
*/
-void CPropBackups::ReadOptions()
+void PropBackups::ReadOptions()
{
m_bCreateForFolderCmp = GetOptionsMgr()->GetBool(OPT_BACKUP_FOLDERCMP);
m_bCreateForFileCmp = GetOptionsMgr()->GetBool(OPT_BACKUP_FILECMP);
@@ -67,7 +67,7 @@
/**
* @brief Writes options values from UI to storage.
*/
-void CPropBackups::WriteOptions()
+void PropBackups::WriteOptions()
{
m_sGlobalFolder.TrimLeft();
m_sGlobalFolder.TrimRight();
@@ -88,7 +88,7 @@
/**
* @brief Called before propertysheet is drawn.
*/
-BOOL CPropBackups::OnInitDialog()
+BOOL PropBackups::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
CPropertyPage::OnInitDialog();
@@ -100,7 +100,7 @@
/**
* @brief Called when user selects Browse-button.
*/
-void CPropBackups::OnBnClickedBackupBrowse()
+void PropBackups::OnBnClickedBackupBrowse()
{
CString path;
if (SelectFolder(path, m_sGlobalFolder, 0, GetSafeHwnd()))
Modified: trunk/Src/PropBackups.h
===================================================================
--- trunk/Src/PropBackups.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropBackups.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropBackups.h
*
- * @brief Declaration file for CPropBackups propertyheet
+ * @brief Declaration file for PropBackups propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -17,10 +17,10 @@
/**
* @brief A class for Backup file options page.
*/
-class CPropBackups : public OptionsPanel
+class PropBackups : public OptionsPanel
{
public:
- CPropBackups(COptionsMgr *optionsMgr);
+ PropBackups(COptionsMgr *optionsMgr);
// Implement IOptionsPanel
virtual void ReadOptions();
Modified: trunk/Src/PropCodepage.cpp
===================================================================
--- trunk/Src/PropCodepage.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropCodepage.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -21,7 +21,7 @@
/**
* @file PropCodepage.h
*
- * @brief Implementation file for CPropCodepage propertyheet
+ * @brief Implementation file for PropCodepage propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -40,21 +40,18 @@
static char THIS_FILE[] = __FILE__;
#endif
-/////////////////////////////////////////////////////////////////////////////
-// CPropCodepage property page
-
-CPropCodepage::CPropCodepage(COptionsMgr *optionsMgr)
- : OptionsPanel(optionsMgr, CPropCodepage::IDD)
+PropCodepage::PropCodepage(COptionsMgr *optionsMgr)
+ : OptionsPanel(optionsMgr, PropCodepage::IDD)
, m_nCodepageSystem(-1)
, m_nCustomCodepageValue(0)
, m_bDetectCodepage(FALSE)
{
}
-void CPropCodepage::DoDataExchange(CDataExchange* pDX)
+void PropCodepage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPropCodepage)
+ //{{AFX_DATA_MAP(PropCodepage)
DDX_Radio(pDX, IDC_CP_SYSTEM, m_nCodepageSystem);
DDX_Text(pDX, IDC_CUSTOM_CP_NUMBER, m_nCustomCodepageValue);
DDX_Check(pDX, IDC_DETECT_CODEPAGE, m_bDetectCodepage);
@@ -62,8 +59,8 @@
}
-BEGIN_MESSAGE_MAP(CPropCodepage, CPropertyPage)
- //{{AFX_MSG_MAP(CPropCodepage)
+BEGIN_MESSAGE_MAP(PropCodepage, CPropertyPage)
+ //{{AFX_MSG_MAP(PropCodepage)
ON_BN_CLICKED(IDC_CP_SYSTEM, OnCpSystem)
ON_BN_CLICKED(IDC_CP_CUSTOM, OnCpCustom)
ON_BN_CLICKED(IDC_CP_UI, OnCpUi)
@@ -73,7 +70,7 @@
/**
* @brief Reads options values from storage to UI.
*/
-void CPropCodepage::ReadOptions()
+void PropCodepage::ReadOptions()
{
m_nCodepageSystem = GetOptionsMgr()->GetInt(OPT_CP_DEFAULT_MODE);
m_nCustomCodepageValue = GetOptionsMgr()->GetInt(OPT_CP_DEFAULT_CUSTOM);
@@ -83,17 +80,14 @@
/**
* @brief Writes options values from UI to storage.
*/
-void CPropCodepage::WriteOptions()
+void PropCodepage::WriteOptions()
{
GetOptionsMgr()->SaveOption(OPT_CP_DEFAULT_MODE, (int)m_nCodepageSystem);
GetOptionsMgr()->SaveOption(OPT_CP_DEFAULT_CUSTOM, (int)m_nCustomCodepageValue);
GetOptionsMgr()->SaveOption(OPT_CP_DETECT, m_bDetectCodepage == TRUE);
}
-/////////////////////////////////////////////////////////////////////////////
-// CPropCodepage message handlers
-
-BOOL CPropCodepage::OnInitDialog()
+BOOL PropCodepage::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
CPropertyPage::OnInitDialog();
@@ -110,17 +104,17 @@
// EXCEPTION: OCX Property Pages should return FALSE
}
-void CPropCodepage::OnCpSystem()
+void PropCodepage::OnCpSystem()
{
GetDlgItem(IDC_CUSTOM_CP_NUMBER)->EnableWindow(FALSE);
}
-void CPropCodepage::OnCpCustom()
+void PropCodepage::OnCpCustom()
{
GetDlgItem(IDC_CUSTOM_CP_NUMBER)->EnableWindow(TRUE);
}
-void CPropCodepage::OnCpUi()
+void PropCodepage::OnCpUi()
{
GetDlgItem(IDC_CUSTOM_CP_NUMBER)->EnableWindow(FALSE);
}
Modified: trunk/Src/PropCodepage.h
===================================================================
--- trunk/Src/PropCodepage.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropCodepage.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropCodepage.h
*
- * @brief Declaration of CPropCodepage class
+ * @brief Declaration of PropCodepage class
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -13,21 +13,18 @@
class COptionsMgr;
-/////////////////////////////////////////////////////////////////////////////
-// CPropCodepage dialog
-
-class CPropCodepage : public OptionsPanel
+class PropCodepage : public OptionsPanel
{
// Construction
public:
- CPropCodepage(COptionsMgr *optionsMgr);
+ PropCodepage(COptionsMgr *optionsMgr);
// Implement IOptionsPanel
virtual void ReadOptions();
virtual void WriteOptions();
// Dialog Data
- //{{AFX_DATA(CPropCodepage)
+ //{{AFX_DATA(PropCodepage)
enum { IDD = IDD_PROPPAGE_CODEPAGE };
int m_nCodepageSystem;
int m_nCustomCodepageValue;
@@ -37,7 +34,7 @@
// Overrides
// ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CPropCodepage)
+ //{{AFX_VIRTUAL(PropCodepage)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
@@ -45,7 +42,7 @@
// Implementation
protected:
// Generated message map functions
- //{{AFX_MSG(CPropCodepage)
+ //{{AFX_MSG(PropCodepage)
virtual BOOL OnInitDialog();
afx_msg void OnCpSystem();
afx_msg void OnCpCustom();
Modified: trunk/Src/PropColors.cpp
===================================================================
--- trunk/Src/PropColors.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropColors.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,9 +1,9 @@
/**
* @file PropColors.cpp
*
- * @brief Implementation of CPropMergeColors propertysheet
+ * @brief Implementation of PropMergeColors propertysheet
*/
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
// $Id$
#include "stdafx.h"
@@ -24,15 +24,15 @@
/**
* @brief Default constructor.
*/
-CPropMergeColors::CPropMergeColors(COptionsMgr *optionsMgr)
- : OptionsPanel(optionsMgr, CPropMergeColors::IDD)
+PropMergeColors::PropMergeColors(COptionsMgr *optionsMgr)
+ : OptionsPanel(optionsMgr, PropMergeColors::IDD)
{
}
-void CPropMergeColors::DoDataExchange(CDataExchange* pDX)
+void PropMergeColors::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPropMergeColors)
+ //{{AFX_DATA_MAP(PropMergeColors)
DDX_Control(pDX, IDC_TRIVIAL_DIFF_DELETED_COLOR, m_cTrivialDeleted);
DDX_Control(pDX, IDC_TRIVIAL_DIFF_COLOR, m_cTrivial);
DDX_Control(pDX, IDC_SEL_DIFFERENCE_TEXT_COLOR, m_cSelDiffText);
@@ -58,8 +58,8 @@
}
-BEGIN_MESSAGE_MAP(CPropMergeColors, CDialog)
- //{{AFX_MSG_MAP(CPropMergeColors)
+BEGIN_MESSAGE_MAP(PropMergeColors, CDialog)
+ //{{AFX_MSG_MAP(PropMergeColors)
ON_BN_CLICKED(IDC_DIFFERENCE_COLOR, OnDifferenceColor)
ON_BN_CLICKED(IDC_DIFFERENCE_DELETED_COLOR, OnDifferenceDeletedColor)
ON_BN_CLICKED(IDC_SEL_DIFFERENCE_DELETED_COLOR, OnSelDifferenceDeletedColor)
@@ -88,7 +88,7 @@
/**
* @brief Called before propertysheet is drawn.
*/
-BOOL CPropMergeColors::OnInitDialog()
+BOOL PropMergeColors::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
return CPropertyPage::OnInitDialog();
@@ -98,7 +98,7 @@
* @brief Reads options values from storage to UI.
* (Property sheet calls this before displaying all property pages)
*/
-void CPropMergeColors::ReadOptions()
+void PropMergeColors::ReadOptions()
{
SerializeColors(READ_OPTIONS);
}
@@ -107,7 +107,7 @@
* @brief Writes options values from UI to storage.
* (Property sheet calls this after displaying all property pages)
*/
-void CPropMergeColors::WriteOptions()
+void PropMergeColors::WriteOptions()
{
SerializeColors(WRITE_OPTIONS);
}
@@ -115,7 +115,7 @@
/**
* @brief Let user browse common color dialog, and select a color
*/
-void CPropMergeColors::BrowseColor(CColorButton & colorButton, COLORREF & currentColor)
+void PropMergeColors::BrowseColor(CColorButton & colorButton, COLORREF & currentColor)
{
CColorDialog dialog(currentColor);
LoadCustomColors();
@@ -132,7 +132,7 @@
/**
* @brief User wants to change difference color
*/
-void CPropMergeColors::OnDifferenceColor()
+void PropMergeColors::OnDifferenceColor()
{
BrowseColor(m_cDiff, m_clrDiff);
}
@@ -140,7 +140,7 @@
/**
* @brief User wants to change selected difference color
*/
-void CPropMergeColors::OnSelDifferenceColor()
+void PropMergeColors::OnSelDifferenceColor()
{
BrowseColor(m_cSelDiff, m_clrSelDiff);
}
@@ -148,7 +148,7 @@
/**
* @brief User wants to change deleted difference color
*/
-void CPropMergeColors::OnDifferenceDeletedColor()
+void PropMergeColors::OnDifferenceDeletedColor()
{
BrowseColor(m_cDiffDeleted, m_clrDiffDeleted);
}
@@ -156,7 +156,7 @@
/**
* @brief User wants to change selected & deleted difference color
*/
-void CPropMergeColors::OnSelDifferenceDeletedColor()
+void PropMergeColors::OnSelDifferenceDeletedColor()
{
BrowseColor(m_cSelDiffDeleted, m_clrSelDiffDeleted);
}
@@ -164,7 +164,7 @@
/**
* @brief User wants to change difference text color
*/
-void CPropMergeColors::OnDifferenceTextColor()
+void PropMergeColors::OnDifferenceTextColor()
{
BrowseColor(m_cDiffText, m_clrDiffText);
}
@@ -172,7 +172,7 @@
/**
* @brief User wants to change selected difference text color
*/
-void CPropMergeColors::OnSelDifferenceTextColor()
+void PropMergeColors::OnSelDifferenceTextColor()
{
BrowseColor(m_cSelDiffText, m_clrSelDiffText);
}
@@ -180,7 +180,7 @@
/**
* @brief User wants to change trivial difference color
*/
-void CPropMergeColors::OnTrivialDiffColor()
+void PropMergeColors::OnTrivialDiffColor()
{
BrowseColor(m_cTrivial, m_clrTrivial);
}
@@ -188,42 +188,42 @@
/**
* @brief User wants to change deleted trivial difference color
*/
-void CPropMergeColors::OnTrivialDiffDeletedColor()
+void PropMergeColors::OnTrivialDiffDeletedColor()
{
BrowseColor(m_cTrivialDeleted, m_clrTrivialDeleted);
}
-void CPropMergeColors::OnTrivialDiffTextColor()
+void PropMergeColors::OnTrivialDiffTextColor()
{
BrowseColor(m_cTrivialText, m_clrTrivialText);
}
-void CPropMergeColors::OnMovedColor()
+void PropMergeColors::OnMovedColor()
{
BrowseColor(m_cMoved, m_clrMoved);
}
-void CPropMergeColors::OnMovedDeletedColor()
+void PropMergeColors::OnMovedDeletedColor()
{
BrowseColor(m_cMovedDeleted, m_clrMovedDeleted);
}
-void CPropMergeColors::OnMovedTextColor()
+void PropMergeColors::OnMovedTextColor()
{
BrowseColor(m_cMovedText, m_clrMovedText);
}
-void CPropMergeColors::OnSelMovedColor()
+void PropMergeColors::OnSelMovedColor()
{
BrowseColor(m_cSelMoved, m_clrSelMoved);
}
-void CPropMergeColors::OnSelMovedDeletedColor()
+void PropMergeColors::OnSelMovedDeletedColor()
{
BrowseColor(m_cSelMovedDeleted, m_clrSelMovedDeleted);
}
-void CPropMergeColors::OnSelMovedTextColor()
+void PropMergeColors::OnSelMovedTextColor()
{
BrowseColor(m_cSelMovedText, m_clrSelMovedText);
}
@@ -231,14 +231,14 @@
/**
* @brief User wants to change word difference color
*/
-void CPropMergeColors::OnWordDiffColor()
+void PropMergeColors::OnWordDiffColor()
{
BrowseColor(m_cWordDiff, m_clrWordDiff);
}
/**
* @brief User wants to change word difference deleted color
*/
-void CPropMergeColors::OnWordDiffDeletedColor()
+void PropMergeColors::OnWordDiffDeletedColor()
{
BrowseColor(m_cWordDiffDeleted, m_clrWordDiffDeleted);
}
@@ -246,7 +246,7 @@
/**
* @brief User wants to change selected word difference color
*/
-void CPropMergeColors::OnSelWordDiffColor()
+void PropMergeColors::OnSelWordDiffColor()
{
BrowseColor(m_cSelWordDiff, m_clrSelWordDiff);
}
@@ -254,7 +254,7 @@
/**
* @brief User wants to change word difference deleted color
*/
-void CPropMergeColors::OnSelWordDiffDeletedColor()
+void PropMergeColors::OnSelWordDiffDeletedColor()
{
BrowseColor(m_cSelWordDiffDeleted, m_clrSelWordDiffDeleted);
}
@@ -262,7 +262,7 @@
/**
* @brief User wants to change word difference text color
*/
-void CPropMergeColors::OnWordDiffTextColor()
+void PropMergeColors::OnWordDiffTextColor()
{
BrowseColor(m_cWordDiffText, m_clrWordDiffText);
}
@@ -270,12 +270,12 @@
/**
* @brief User wants to change selected word difference text color
*/
-void CPropMergeColors::OnSelWordDiffTextColor()
+void PropMergeColors::OnSelWordDiffTextColor()
{
BrowseColor(m_cSelWordDiffText, m_clrSelWordDiffText);
}
-void CPropMergeColors::SerializeColors(OPERATION op)
+void PropMergeColors::SerializeColors(OPERATION op)
{
SerializeColor(op, m_cDiff, OPT_CLR_DIFF, m_clrDiff);
SerializeColor(op, m_cDiffDeleted, OPT_CLR_DIFF_DELETED, m_clrDiffDeleted);
@@ -306,7 +306,7 @@
SerializeColor(op, m_cSelWordDiffText, OPT_CLR_SELECTED_WORDDIFF_TEXT, m_clrSelWordDiffText);
}
-void CPropMergeColors::SerializeColor(OPERATION op, CColorButton & btn, LPCTSTR optionName, COLORREF & color)
+void PropMergeColors::SerializeColor(OPERATION op, CColorButton & btn, LPCTSTR optionName, COLORREF & color)
{
switch (op)
{
@@ -330,7 +330,7 @@
/**
* @brief Resets colors to defaults
*/
-void CPropMergeColors::OnDefaults()
+void PropMergeColors::OnDefaults()
{
SerializeColors(SET_DEFAULTS);
}
@@ -338,7 +338,7 @@
/**
* @brief Loads color selection dialog's custom colors from registry
*/
-void CPropMergeColors::LoadCustomColors()
+void PropMergeColors::LoadCustomColors()
{
for (int i = 0; i < CustomColorsAmount; i++)
{
@@ -352,7 +352,7 @@
/**
* @brief Saves color selection dialog's custom colors to registry
*/
-void CPropMergeColors::SaveCustomColors()
+void PropMergeColors::SaveCustomColors()
{
for (int i = 0; i < CustomColorsAmount; i++)
{
Modified: trunk/Src/PropColors.h
===================================================================
--- trunk/Src/PropColors.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropColors.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropColors.h
*
- * @brief Declaration file for CPropMergeColors propertyheet
+ * @brief Declaration file for PropMergeColors propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -19,11 +19,11 @@
const int CustomColorsAmount = 16;
/** @brief Property page for colors options; used in options property sheet */
-class CPropMergeColors : public OptionsPanel
+class PropMergeColors : public OptionsPanel
{
// Construction
public:
- CPropMergeColors(COptionsMgr *optionsMgr);
+ PropMergeColors(COptionsMgr *optionsMgr);
// Implement IOptionsPanel
virtual void ReadOptions();
@@ -31,7 +31,7 @@
// Dialog Data
private:
- //{{AFX_DATA(CPropMergeColors)
+ //{{AFX_DATA(PropMergeColors)
enum { IDD = IDD_PROPPAGE_COLORS_WINMERGE };
CColorButton m_cTrivialDeleted;
CColorButton m_cTrivial;
@@ -81,7 +81,7 @@
// Overrides
// ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPropMergeColors)
+ //{{AFX_VIRTUAL(PropMergeColors)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
@@ -101,7 +101,7 @@
COLORREF m_cCustColors[CustomColorsAmount];
// Generated message map functions
- //{{AFX_MSG(CPropMergeColors)
+ //{{AFX_MSG(PropMergeColors)
afx_msg void OnDifferenceColor();
afx_msg void OnDifferenceDeletedColor();
afx_msg void OnSelDifferenceDeletedColor();
Modified: trunk/Src/PropCompare.cpp
===================================================================
--- trunk/Src/PropCompare.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropCompare.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropCompare.cpp
*
- * @brief Implementation of CPropCompare propertysheet
+ * @brief Implementation of PropCompare propertysheet
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -19,15 +19,12 @@
static char THIS_FILE[] = __FILE__;
#endif
-/////////////////////////////////////////////////////////////////////////////
-// CPropCompare property page
-
/**
* @brief Constructor.
* @param [in] optionsMgr Pointer to COptionsMgr.
*/
-CPropCompare::CPropCompare(COptionsMgr *optionsMgr)
- : OptionsPanel(optionsMgr, CPropCompare::IDD)
+PropCompare::PropCompare(COptionsMgr *optionsMgr)
+ : OptionsPanel(optionsMgr, PropCompare::IDD)
, m_bIgnoreCase(FALSE)
, m_bIgnoreBlankLines(FALSE)
, m_bIgnoreEol(TRUE)
@@ -38,10 +35,10 @@
{
}
-void CPropCompare::DoDataExchange(CDataExchange* pDX)
+void PropCompare::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPropCompare)
+ //{{AFX_DATA_MAP(PropCompare)
DDX_Check(pDX, IDC_IGNCASE_CHECK, m_bIgnoreCase);
DDX_Check(pDX, IDC_IGNBLANKS_CHECK, m_bIgnoreBlankLines);
DDX_Check(pDX, IDC_FILTERCOMMENTS_CHECK, m_bFilterCommentsLines);
@@ -53,8 +50,8 @@
}
-BEGIN_MESSAGE_MAP(CPropCompare, CPropertyPage)
- //{{AFX_MSG_MAP(CPropCompare)
+BEGIN_MESSAGE_MAP(PropCompare, CPropertyPage)
+ //{{AFX_MSG_MAP(PropCompare)
ON_BN_CLICKED(IDC_COMPARE_DEFAULTS, OnDefaults)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
@@ -64,7 +61,7 @@
* Property sheet calls this before displaying GUI to load values
* into members.
*/
-void CPropCompare::ReadOptions()
+void PropCompare::ReadOptions()
{
m_nIgnoreWhite = GetOptionsMgr()->GetInt(OPT_CMP_IGNORE_WHITESPACE);
m_bIgnoreBlankLines = GetOptionsMgr()->GetBool(OPT_CMP_IGNORE_BLANKLINES);
@@ -80,7 +77,7 @@
* Property sheet calls this after dialog is closed with OK button to
* store values in member variables.
*/
-void CPropCompare::WriteOptions()
+void PropCompare::WriteOptions()
{
GetOptionsMgr()->SaveOption(OPT_CMP_IGNORE_WHITESPACE, m_nIgnoreWhite);
GetOptionsMgr()->SaveOption(OPT_CMP_IGNORE_BLANKLINES, m_bIgnoreBlankLines == TRUE);
@@ -91,13 +88,10 @@
GetOptionsMgr()->SaveOption(OPT_CMP_MATCH_SIMILAR_LINES, m_bMatchSimilarLines == TRUE);
}
-/////////////////////////////////////////////////////////////////////////////
-// CPropCompare message handlers
-
/**
* @brief Called before propertysheet is drawn.
*/
-BOOL CPropCompare::OnInitDialog()
+BOOL PropCompare::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
CPropertyPage::OnInitDialog();
@@ -109,7 +103,7 @@
/**
* @brief Sets options to defaults
*/
-void CPropCompare::OnDefaults()
+void PropCompare::OnDefaults()
{
DWORD tmp;
GetOptionsMgr()->GetDefault(OPT_CMP_IGNORE_WHITESPACE, tmp);
Modified: trunk/Src/PropCompare.h
===================================================================
--- trunk/Src/PropCompare.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropCompare.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropCompare.h
*
- * @brief Declaration of CPropCompare propertysheet
+ * @brief Declaration of PropCompare propertysheet
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -13,9 +13,6 @@
class COptionsMgr;
-/////////////////////////////////////////////////////////////////////////////
-// CPropCompare dialog
-
/**
* @brief Property page to set compare options for WinMerge.
*
@@ -24,18 +21,18 @@
* - Ignore changes in whitespaces (amount of spaces etc)
* - Ignore all whitespace characters
*/
-class CPropCompare : public OptionsPanel
+class PropCompare : public OptionsPanel
{
// Construction
public:
- CPropCompare(COptionsMgr *optionsMgr);
+ PropCompare(COptionsMgr *optionsMgr);
// Implement IOptionsPanel
virtual void ReadOptions();
virtual void WriteOptions();
// Dialog Data
- //{{AFX_DATA(CPropCompare)
+ //{{AFX_DATA(PropCompare)
enum { IDD = IDD_PROPPAGE_COMPARE };
BOOL m_bIgnoreEol;
BOOL m_bIgnoreCase;
@@ -49,7 +46,7 @@
// Overrides
// ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPropCompare)
+ //{{AFX_VIRTUAL(PropCompare)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
@@ -57,7 +54,7 @@
// Implementation
protected:
// Generated message map functions
- //{{AFX_MSG(CPropCompare)
+ //{{AFX_MSG(PropCompare)
afx_msg BOOL OnInitDialog();
afx_msg void OnDefaults();
//}}AFX_MSG
Modified: trunk/Src/PropEditor.cpp
===================================================================
--- trunk/Src/PropEditor.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropEditor.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropEditor.cpp
*
- * @brief Implementation of CPropEditor propertysheet
+ * @brief Implementation of PropEditor propertysheet
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -22,15 +22,12 @@
/** @brief Maximum size for tabs in spaces. */
static const int MAX_TABSIZE = 64;
-/////////////////////////////////////////////////////////////////////////////
-// CPropEditor dialog
-
/**
* @brief Constructor.
* @param [in] optionsMgr Pointer to options manager for handling options.
*/
-CPropEditor::CPropEditor(COptionsMgr *optionsMgr)
-: OptionsPanel(optionsMgr, CPropEditor::IDD)
+PropEditor::PropEditor(COptionsMgr *optionsMgr)
+: OptionsPanel(optionsMgr, PropEditor::IDD)
, m_bHiliteSyntax(FALSE)
, m_nTabType(-1)
, m_nTabSize(0)
@@ -45,10 +42,10 @@
/**
* @brief Function handling dialog data exchange between GUI and variables.
*/
-void CPropEditor::DoDataExchange(CDataExchange* pDX)
+void PropEditor::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPropEditor)
+ //{{AFX_DATA_MAP(PropEditor)
DDX_Check(pDX, IDC_HILITE_CHECK, m_bHiliteSyntax);
DDX_Radio(pDX, IDC_PROP_INSERT_TABS, m_nTabType);
DDX_Text(pDX, IDC_TAB_EDIT, m_nTabSize);
@@ -62,8 +59,8 @@
}
-BEGIN_MESSAGE_MAP(CPropEditor, CDialog)
- //{{AFX_MSG_MAP(CPropEditor)
+BEGIN_MESSAGE_MAP(PropEditor, CDialog)
+ //{{AFX_MSG_MAP(PropEditor)
ON_BN_CLICKED(IDC_VIEW_LINE_DIFFERENCES, OnLineDiffControlClicked)
ON_BN_CLICKED(IDC_EDITOR_CHARLEVEL, OnLineDiffControlClicked)
ON_BN_CLICKED(IDC_EDITOR_WORDLEVEL, OnLineDiffControlClicked)
@@ -74,7 +71,7 @@
/**
* @brief Reads options values from storage to UI.
*/
-void CPropEditor::ReadOptions()
+void PropEditor::ReadOptions()
{
m_nTabSize = GetOptionsMgr()->GetInt(OPT_TAB_SIZE);
m_nTabType = GetOptionsMgr()->GetInt(OPT_TAB_TYPE);
@@ -90,7 +87,7 @@
/**
* @brief Writes options values from UI to storage.
*/
-void CPropEditor::WriteOptions()
+void PropEditor::WriteOptions()
{
// Sanity check tabsize
if (m_nTabSize < 1)
@@ -108,13 +105,10 @@
GetOptionsMgr()->SaveOption(OPT_BREAK_SEPARATORS, m_breakChars);
}
-/////////////////////////////////////////////////////////////////////////////
-// CPropEditor message handlers
-
/**
* @brief Called before propertysheet is drawn.
*/
-BOOL CPropEditor::OnInitDialog()
+BOOL PropEditor::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
CPropertyPage::OnInitDialog();
@@ -136,7 +130,7 @@
/**
* @brief Load strings (from resource) into combobox for break type
*/
-void CPropEditor::LoadBreakTypeStrings()
+void PropEditor::LoadBreakTypeStrings()
{
CComboBox * cbo = (CComboBox *)GetDlgItem(IDC_BREAK_TYPE);
cbo->AddString(theApp.LoadString(IDS_BREAK_ON_WHITESPACE).c_str());
@@ -146,7 +140,7 @@
/**
* @brief Handlers any clicks in any of the line differencing controls
*/
-void CPropEditor::OnLineDiffControlClicked()
+void PropEditor::OnLineDiffControlClicked()
{
UpdateLineDiffControls();
}
@@ -156,7 +150,7 @@
* @param [in] item ID of dialog control to enable/disable.
* @param [in] enable if true control is enabled, else disabled.
*/
-void CPropEditor::EnableDlgItem(int item, bool enable)
+void PropEditor::EnableDlgItem(int item, bool enable)
{
GetDlgItem(item)->EnableWindow(!!enable);
}
@@ -164,7 +158,7 @@
/**
* @brief Update availability of line difference controls
*/
-void CPropEditor::UpdateLineDiffControls()
+void PropEditor::UpdateLineDiffControls()
{
UpdateDataFromWindow();
// Can only choose char/word level if line differences are enabled
@@ -177,7 +171,7 @@
/**
* @brief Check tabsize value when control loses focus.
*/
-void CPropEditor::OnEnKillfocusTabEdit()
+void PropEditor::OnEnKillfocusTabEdit()
{
CEdit * pEdit = (CEdit *)GetDlgItem(IDC_TAB_EDIT);
CString valueAsText;
Modified: trunk/Src/PropEditor.h
===================================================================
--- trunk/Src/PropEditor.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropEditor.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropEditor.h
*
- * @brief Declaration file for CPropEditor propertyheet
+ * @brief Declaration file for PropEditor propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -14,27 +14,24 @@
class COptionsMgr;
-/////////////////////////////////////////////////////////////////////////////
-// CPropEditor dialog
-
/**
* @brief Property page for editor options.
*
* Editor options affect to editor behavior. For example syntax highlighting
* and tabs.
*/
-class CPropEditor : public OptionsPanel
+class PropEditor : public OptionsPanel
{
// Construction
public:
- CPropEditor(COptionsMgr *optionsMgr);
+ PropEditor(COptionsMgr *optionsMgr);
// Implement IOptionsPanel
virtual void ReadOptions();
virtual void WriteOptions();
// Dialog Data
- //{{AFX_DATA(CPropEditor)
+ //{{AFX_DATA(PropEditor)
enum { IDD = IDD_PROPPAGE_EDITOR };
BOOL m_bHiliteSyntax;
int m_nTabType;
@@ -57,7 +54,7 @@
// Overrides
// ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPropEditor)
+ //{{AFX_VIRTUAL(PropEditor)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
@@ -66,7 +63,7 @@
protected:
// Generated message map functions
- //{{AFX_MSG(CPropEditor)
+ //{{AFX_MSG(PropEditor)
afx_msg BOOL OnInitDialog();
afx_msg void OnLineDiffControlClicked();
afx_msg void OnEnKillfocusTabEdit();
Modified: trunk/Src/PropGeneral.cpp
===================================================================
--- trunk/Src/PropGeneral.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropGeneral.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -21,7 +21,7 @@
/**
* @file PropGeneral.h
*
- * @brief Implementation file for CPropGeneral propertyheet
+ * @brief Implementation file for PropGeneral propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -40,14 +40,11 @@
static char THIS_FILE[] = __FILE__;
#endif
-/////////////////////////////////////////////////////////////////////////////
-// CPropGeneral property page
-
/**
* @brief Constructor initialising members.
*/
-CPropGeneral::CPropGeneral(COptionsMgr *optionsMgr)
-: OptionsPanel(optionsMgr, CPropGeneral::IDD)
+PropGeneral::PropGeneral(COptionsMgr *optionsMgr)
+: OptionsPanel(optionsMgr, PropGeneral::IDD)
, m_bScroll(FALSE)
, m_bDisableSplash(FALSE)
, m_bSingleInstance(FALSE)
@@ -62,11 +59,11 @@
{
}
-CPropGeneral::~CPropGeneral()
+PropGeneral::~PropGeneral()
{
}
-BOOL CPropGeneral::OnInitDialog()
+BOOL PropGeneral::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
CPropertyPage::OnInitDialog();
@@ -83,10 +80,10 @@
return TRUE; // return TRUE unless you set the focus to a control
}
-void CPropGeneral::DoDataExchange(CDataExchange* pDX)
+void PropGeneral::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPropGeneral)
+ //{{AFX_DATA_MAP(PropGeneral)
DDX_Check(pDX, IDC_SCROLL_CHECK, m_bScroll);
DDX_Check(pDX, IDC_DISABLE_SPLASH, m_bDisableSplash);
DDX_Check(pDX, IDC_SINGLE_INSTANCE, m_bSingleInstance);
@@ -102,8 +99,8 @@
}
-BEGIN_MESSAGE_MAP(CPropGeneral, CPropertyPage)
- //{{AFX_MSG_MAP(CPropGeneral)
+BEGIN_MESSAGE_MAP(PropGeneral, CPropertyPage)
+ //{{AFX_MSG_MAP(PropGeneral)
ON_BN_CLICKED(IDC_RESET_ALL_MESSAGE_BOXES, OnResetAllMessageBoxes)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
@@ -111,7 +108,7 @@
/**
* @brief Reads options values from storage to UI.
*/
-void CPropGeneral::ReadOptions()
+void PropGeneral::ReadOptions()
{
m_bScroll = GetOptionsMgr()->GetBool(OPT_SCROLL_TO_FIRST);
m_bDisableSplash = GetOptionsMgr()->GetBool(OPT_DISABLE_SPLASH);
@@ -129,7 +126,7 @@
/**
* @brief Writes options values from UI to storage.
*/
-void CPropGeneral::WriteOptions()
+void PropGeneral::WriteOptions()
{
GetOptionsMgr()->SaveOption(OPT_SCROLL_TO_FIRST, m_bScroll == TRUE);
GetOptionsMgr()->SaveOption(OPT_DISABLE_SPLASH, m_bDisableSplash == TRUE);
@@ -144,13 +141,10 @@
GetOptionsMgr()->SaveOption(OPT_SHOW_SELECT_FILES_AT_STARTUP, m_bShowSelectFolderOnStartup);
}
-/////////////////////////////////////////////////////////////////////////////
-// CPropGeneral message handlers
-
/**
* @brief Called when user wants to see all messageboxes again.
*/
-void CPropGeneral::OnResetAllMessageBoxes()
+void PropGeneral::OnResetAllMessageBoxes()
{
CMessageBoxDialog::ResetMessageBoxes();
LangMessageBox(IDS_MESSAGE_BOX_ARE_RESET, MB_ICONINFORMATION);
Modified: trunk/Src/PropGeneral.h
===================================================================
--- trunk/Src/PropGeneral.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropGeneral.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropGeneral.h
*
- * @brief Declaration of CPropGeneral class
+ * @brief Declaration of PropGeneral class
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -13,25 +13,22 @@
class COptionsMgr;
-/////////////////////////////////////////////////////////////////////////////
-// CPropGeneral dialog
-
/**
* @brief Class for General options -propertypage.
*/
-class CPropGeneral : public OptionsPanel
+class PropGeneral : public OptionsPanel
{
// Construction
public:
- CPropGeneral(COptionsMgr *optionsMgr);
- ~CPropGeneral();
+ PropGeneral(COptionsMgr *optionsMgr);
+ ~PropGeneral();
// Implement IOptionsPanel
virtual void ReadOptions();
virtual void WriteOptions();
// Dialog Data
- //{{AFX_DATA(CPropGeneral)
+ //{{AFX_DATA(PropGeneral)
enum { IDD = IDD_PROPPAGE_GENERAL };
BOOL m_bScroll;
BOOL m_bDisableSplash;
@@ -49,7 +46,7 @@
// Overrides
// ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CPropGeneral)
+ //{{AFX_VIRTUAL(PropGeneral)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
@@ -59,7 +56,7 @@
virtual BOOL OnInitDialog();
// Generated message map functions
- //{{AFX_MSG(CPropGeneral)
+ //{{AFX_MSG(PropGeneral)
afx_msg void OnResetAllMessageBoxes();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
Modified: trunk/Src/PropRegistry.cpp
===================================================================
--- trunk/Src/PropRegistry.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropRegistry.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -17,7 +17,7 @@
/**
* @file PropRegistry.cpp
*
- * @brief CPropRegistry implementation file
+ * @brief PropRegistry implementation file
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -46,21 +46,17 @@
static LPCTSTR f_RegValueEnabled = _T("ContextMenuEnabled");
static LPCTSTR f_RegValuePath = _T("Executable");
-/////////////////////////////////////////////////////////////////////////////
-// CPropRegistry dialog
-
-
-CPropRegistry::CPropRegistry(COptionsMgr *optionsMgr)
-: OptionsPanel(optionsMgr, CPropRegistry::IDD)
+PropRegistry::PropRegistry(COptionsMgr *optionsMgr)
+: OptionsPanel(optionsMgr, PropRegistry::IDD)
, m_bUseRecycleBin(TRUE)
, m_tempFolderType(0)
{
}
-void CPropRegistry::DoDataExchange(CDataExchange* pDX)
+void PropRegistry::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPropRegistry)
+ //{{AFX_DATA_MAP(PropRegistry)
DDX_Text(pDX, IDC_EXT_EDITOR_PATH, m_strEditorPath);
DDX_Check(pDX, IDC_USE_RECYCLE_BIN, m_bUseRecycleBin);
DDX_Text(pDX, IDC_FILTER_USER_PATH, m_strUserFilterPath);
@@ -69,8 +65,8 @@
//}}AFX_DATA_MAP
}
-BEGIN_MESSAGE_MAP(CPropRegistry, CDialog)
- //{{AFX_MSG_MAP(CPropRegistry)
+BEGIN_MESSAGE_MAP(PropRegistry, CDialog)
+ //{{AFX_MSG_MAP(PropRegistry)
ON_BN_CLICKED(IDC_EXT_EDITOR_BROWSE, OnBrowseEditor)
ON_BN_CLICKED(IDC_FILTER_USER_BROWSE, OnBrowseFilterPath)
ON_BN_CLICKED(IDC_TMPFOLDER_BROWSE, OnBrowseTmpFolder)
@@ -80,7 +76,7 @@
/**
* @brief Reads options values from storage to UI.
*/
-void CPropRegistry::ReadOptions()
+void PropRegistry::ReadOptions()
{
m_strEditorPath = GetOptionsMgr()->GetString(OPT_EXT_EDITOR_CMD).c_str();
m_bUseRecycleBin = GetOptionsMgr()->GetBool(OPT_USE_RECYCLE_BIN);
@@ -92,7 +88,7 @@
/**
* @brief Writes options values from UI to storage.
*/
-void CPropRegistry::WriteOptions()
+void PropRegistry::WriteOptions()
{
CMergeApp *app = static_cast<CMergeApp*>(AfxGetApp());
CString sDefaultEditor = app->GetDefaultEditor();
@@ -120,10 +116,7 @@
GetOptionsMgr()->SaveOption(OPT_CUSTOM_TEMP_PATH, tempFolder);
}
-/////////////////////////////////////////////////////////////////////////////
-// CPropRegistry message handlers
-
-BOOL CPropRegistry::OnInitDialog()
+BOOL PropRegistry::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
CPropertyPage::OnInitDialog();
@@ -135,7 +128,7 @@
}
/// Open file browse dialog to locate editor
-void CPropRegistry::OnBrowseEditor()
+void PropRegistry::OnBrowseEditor()
{
CString path;
if (SelectFile(GetSafeHwnd(), path, NULL, IDS_OPEN_TITLE, IDS_PROGRAMFILES, TRUE))
@@ -145,7 +138,7 @@
}
/// Open Folder selection dialog for user to select filter folder.
-void CPropRegistry::OnBrowseFilterPath()
+void PropRegistry::OnBrowseFilterPath()
{
CString path;
if (SelectFolder(path, m_strUserFilterPath, IDS_OPEN_TITLE, GetSafeHwnd()))
@@ -155,7 +148,7 @@
}
/// Select temporary files folder.
-void CPropRegistry::OnBrowseTmpFolder()
+void PropRegistry::OnBrowseTmpFolder()
{
CString path;
if (SelectFolder(path, m_tempFolder, NULL, GetSafeHwnd()))
Modified: trunk/Src/PropRegistry.h
===================================================================
--- trunk/Src/PropRegistry.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropRegistry.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -17,7 +17,7 @@
/**
* @file PropRegistry.h
*
- * @brief Declaration file CPropRegistry
+ * @brief Declaration file PropRegistry
*/
// ID line follows -- this is updated by SVN
// $Id$
@@ -29,9 +29,6 @@
class COptionsMgr;
-/////////////////////////////////////////////////////////////////////////////
-// CPropRegistry dialog
-
/**
* @brief Property page for system options; used in options property sheet.
*
@@ -39,18 +36,18 @@
* It allows user to select options like whether to use Recycle Bin for
* deleted files and External text editor.
*/
-class CPropRegistry : public OptionsPanel
+class PropRegistry : public OptionsPanel
{
// Construction
public:
- CPropRegistry(COptionsMgr *optionsMgr);
+ PropRegistry(COptionsMgr *optionsMgr);
// Implement IOptionsPanel
virtual void ReadOptions();
virtual void WriteOptions();
// Dialog Data
- //{{AFX_DATA(CPropRegistry)
+ //{{AFX_DATA(PropRegistry)
enum { IDD = IDD_PROPPAGE_SYSTEM };
CString m_strEditorPath;
BOOL m_bUseRecycleBin;
@@ -61,7 +58,7 @@
// Overrides
// ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPropRegistry)
+ //{{AFX_VIRTUAL(PropRegistry)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
@@ -69,7 +66,7 @@
// Implementation methods
protected:
// Generated message map functions
- //{{AFX_MSG(CPropRegistry)
+ //{{AFX_MSG(PropRegistry)
virtual BOOL OnInitDialog();
afx_msg void OnBrowseEditor();
afx_msg void OnBrowseFilterPath();
Modified: trunk/Src/PropSyntaxColors.cpp
===================================================================
--- trunk/Src/PropSyntaxColors.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropSyntaxColors.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,9 +1,9 @@
/**
* @file PropSyntaxColors.cpp
*
- * @brief Implementation of CPropSyntaxColors propertysheet
+ * @brief Implementation of PropSyntaxColors propertysheet
*/
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
// $Id$
#include "stdafx.h"
@@ -19,13 +19,10 @@
static char THIS_FILE[] = __FILE__;
#endif
+IMPLEMENT_DYNAMIC(PropSyntaxColors, CPropertyPage)
-// CPropEditorColor dialog
-
-IMPLEMENT_DYNAMIC(CPropSyntaxColors, CPropertyPage)
-
-CPropSyntaxColors::CPropSyntaxColors(COptionsMgr *optionsMgr, SyntaxColors *pColors)
-: OptionsPanel(optionsMgr, CPropSyntaxColors::IDD)
+PropSyntaxColors::PropSyntaxColors(COptionsMgr *optionsMgr, SyntaxColors *pColors)
+: OptionsPanel(optionsMgr, PropSyntaxColors::IDD)
, m_nKeywordsBold(0)
, m_nFunctionsBold(0)
, m_nCommentsBold(0)
@@ -60,7 +57,7 @@
m_nUser2Bold = GetCheckVal(COLORINDEX_USER2);
}
-void CPropSyntaxColors::DoDataExchange(CDataExchange* pDX)
+void PropSyntaxColors::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
DDX_Control(pDX, IDC_SCOLOR_KEYWORDS, m_btnKeywordsText);
@@ -93,7 +90,7 @@
}
-BEGIN_MESSAGE_MAP(CPropSyntaxColors, CPropertyPage)
+BEGIN_MESSAGE_MAP(PropSyntaxColors, CPropertyPage)
ON_BN_CLICKED(IDC_SCOLOR_KEYWORDS, OnBnClickedEcolorKeywords)
ON_BN_CLICKED(IDC_SCOLOR_FUNCTIONS, OnBnClickedEcolorFunctions)
ON_BN_CLICKED(IDC_SCOLOR_COMMENTS, OnBnClickedEcolorComments)
@@ -115,12 +112,10 @@
ON_BN_CLICKED(IDC_SCOLOR_USER2_BOLD, OnBnClickedEcolorUser2Bold)
END_MESSAGE_MAP()
-// CPropSyntaxColor message handlers
-
/**
* @brief Called before propertysheet is drawn.
*/
-BOOL CPropSyntaxColors::OnInitDialog()
+BOOL PropSyntaxColors::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
return CPropertyPage::OnInitDialog();
@@ -130,7 +125,7 @@
* @brief Reads options values from storage to UI.
* (Property sheet calls this before displaying all property pages)
*/
-void CPropSyntaxColors::ReadOptions()
+void PropSyntaxColors::ReadOptions()
{
}
@@ -138,7 +133,7 @@
* @brief Writes options values from UI to storage.
* (Property sheet calls this after displaying all property pages)
*/
-void CPropSyntaxColors::WriteOptions()
+void PropSyntaxColors::WriteOptions()
{
// User can only change colors via BrowseColorAndSave,
// which writes to m_pTempColors
@@ -150,7 +145,7 @@
/**
* @brief Let user browse common color dialog, and select a color & save to registry
*/
-void CPropSyntaxColors::BrowseColorAndSave(CColorButton & colorButton, int colorIndex)
+void PropSyntaxColors::BrowseColorAndSave(CColorButton & colorButton, int colorIndex)
{
COLORREF currentColor = m_pTempColors->GetColor(colorIndex);
CColorDialog dialog(currentColor);
@@ -166,52 +161,52 @@
SaveCustomColors();
}
-void CPropSyntaxColors::OnBnClickedEcolorKeywords()
+void PropSyntaxColors::OnBnClickedEcolorKeywords()
{
BrowseColorAndSave(m_btnKeywordsText, COLORINDEX_KEYWORD);
}
-void CPropSyntaxColors::OnBnClickedEcolorFunctions()
+void PropSyntaxColors::OnBnClickedEcolorFunctions()
{
BrowseColorAndSave(m_btnFunctionsText, COLORINDEX_FUNCNAME);
}
-void CPropSyntaxColors::OnBnClickedEcolorComments()
+void PropSyntaxColors::OnBnClickedEcolorComments()
{
BrowseColorAndSave(m_btnCommentsText, COLORINDEX_COMMENT);
}
-void CPropSyntaxColors::OnBnClickedEcolorNumbers()
+void PropSyntaxColors::OnBnClickedEcolorNumbers()
{
BrowseColorAndSave(m_btnNumbersText, COLORINDEX_NUMBER);
}
-void CPropSyntaxColors::OnBnClickedEcolorOperators()
+void PropSyntaxColors::OnBnClickedEcolorOperators()
{
BrowseColorAndSave(m_btnOperatorsText, COLORINDEX_OPERATOR);
}
-void CPropSyntaxColors::OnBnClickedEcolorStrings()
+void PropSyntaxColors::OnBnClickedEcolorStrings()
{
BrowseColorAndSave(m_btnStringsText, COLORINDEX_STRING);
}
-void CPropSyntaxColors::OnBnClickedEcolorPreprocessor()
+void PropSyntaxColors::OnBnClickedEcolorPreprocessor()
{
BrowseColorAndSave(m_btnPreprocessorText, COLORINDEX_PREPROCESSOR);
}
-void CPropSyntaxColors::OnBnClickedEcolorUser1()
+void PropSyntaxColors::OnBnClickedEcolorUser1()
{
BrowseColorAndSave(m_btnUser1Text, COLORINDEX_USER1);
}
-void CPropSyntaxColors::OnBnClickedEcolorUser2()
+void PropSyntaxColors::OnBnClickedEcolorUser2()
{
BrowseColorAndSave(m_btnUser2Text, COLORINDEX_USER2);
}
-void CPropSyntaxColors::OnBnClickedEcolorsBdefaults()
+void PropSyntaxColors::OnBnClickedEcolorsBdefaults()
{
m_pTempColors->SetDefaults();
m_btnKeywordsText.SetColor(m_pTempColors->GetColor(COLORINDEX_KEYWORD));
@@ -240,7 +235,7 @@
/**
* @brief Loads color selection dialog's custom colors from registry
*/
-void CPropSyntaxColors::LoadCustomColors()
+void PropSyntaxColors::LoadCustomColors()
{
SyntaxColors_Load(m_cCustColors, sizeof(m_cCustColors)/sizeof(m_cCustColors[0]));
}
@@ -248,57 +243,57 @@
/**
* @brief Saves color selection dialog's custom colors to registry
*/
-void CPropSyntaxColors::SaveCustomColors()
+void PropSyntaxColors::SaveCustomColors()
{
SyntaxColors_Save(m_cCustColors, sizeof(m_cCustColors)/sizeof(m_cCustColors[0]));
}
-void CPropSyntaxColors::OnBnClickedEcolorKeywordsBold()
+void PropSyntaxColors::OnBnClickedEcolorKeywordsBold()
{
UpdateBoldStatus(m_btnKeywordsBold, COLORINDEX_KEYWORD);
}
-void CPropSyntaxColors::OnBnClickedEcolorFunctionsBold()
+void PropSyntaxColors::OnBnClickedEcolorFunctionsBold()
{
UpdateBoldStatus(m_btnFunctionsBold, COLORINDEX_FUNCNAME);
}
-void CPropSyntaxColors::OnBnClickedEcolorCommentsBold()
+void PropSyntaxColors::OnBnClickedEcolorCommentsBold()
{
UpdateBoldStatus(m_btnCommentsBold, COLORINDEX_COMMENT);
}
-void CPropSyntaxColors::OnBnClickedEcolorNumbersBold()
+void PropSyntaxColors::OnBnClickedEcolorNumbersBold()
{
UpdateBoldStatus(m_btnNumbersBold, COLORINDEX_NUMBER);
}
-void CPropSyntaxColors::OnBnClickedEcolorOperatorsBold()
+void PropSyntaxColors::OnBnClickedEcolorOperatorsBold()
{
UpdateBoldStatus(m_btnOperatorsBold, COLORINDEX_OPERATOR);
}
-void CPropSyntaxColors::OnBnClickedEcolorStringsBold()
+void PropSyntaxColors::OnBnClickedEcolorStringsBold()
{
UpdateBoldStatus(m_btnStringsBold, COLORINDEX_STRING);
}
-void CPropSyntaxColors::OnBnClickedEcolorPreprocessorBold()
+void PropSyntaxColors::OnBnClickedEcolorPreprocessorBold()
{
UpdateBoldStatus(m_btnPreProcessorBold, COLORINDEX_PREPROCESSOR);
}
-void CPropSyntaxColors::OnBnClickedEcolorUser1Bold()
+void PropSyntaxColors::OnBnClickedEcolorUser1Bold()
{
UpdateBoldStatus(m_btnUser1Bold, COLORINDEX_USER1);
}
-void CPropSyntaxColors::OnBnClickedEcolorUser2Bold()
+void PropSyntaxColors::OnBnClickedEcolorUser2Bold()
{
UpdateBoldStatus(m_btnUser2Bold, COLORINDEX_USER2);
}
-int CPropSyntaxColors::GetCheckVal(UINT nColorIndex)
+int PropSyntaxColors::GetCheckVal(UINT nColorIndex)
{
if (m_pTempColors->GetBold(nColorIndex))
return BST_CHECKED;
@@ -306,7 +301,7 @@
return BST_UNCHECKED;
}
-void CPropSyntaxColors::UpdateBoldStatus(CButton &btn, UINT colorIndex)
+void PropSyntaxColors::UpdateBoldStatus(CButton &btn, UINT colorIndex)
{
int state = btn.GetCheck();
if (state == BST_CHECKED)
Modified: trunk/Src/PropSyntaxColors.h
===================================================================
--- trunk/Src/PropSyntaxColors.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropSyntaxColors.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropSyntaxColors.h
*
- * @brief Declaration file for CPropSyntaxColors propertyheet
+ * @brief Declaration file for PropSyntaxColors propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -17,13 +17,13 @@
const int NumCustomColors = 16;
-class CPropSyntaxColors : public OptionsPanel
+class PropSyntaxColors : public OptionsPanel
{
- DECLARE_DYNAMIC(CPropSyntaxColors)
+ DECLARE_DYNAMIC(PropSyntaxColors)
// Construction & Destruction
public:
- CPropSyntaxColors(COptionsMgr *optionsMgr, SyntaxColors *pColors);
+ PropSyntaxColors(COptionsMgr *optionsMgr, SyntaxColors *pColors);
// Implement IOptionsPanel
virtual void ReadOptions();
@@ -36,8 +36,6 @@
enum { IDD = IDD_PROPPAGE_COLORS_SYNTAX };
protected:
-
-
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedEcolorKeywords();
Modified: trunk/Src/PropTextColors.cpp
===================================================================
--- trunk/Src/PropTextColors.cpp 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropTextColors.cpp 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,9 +1,9 @@
/**
* @file PropTextColors.cpp
*
- * @brief Implementation of CPropTextColors propertysheet
+ * @brief Implementation of PropTextColors propertysheet
*/
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
// $Id$
#include "stdafx.h"
@@ -24,23 +24,20 @@
/** @brief Section name for settings in registry. */
static const TCHAR Section[] = _T("Custom Colors");
-/////////////////////////////////////////////////////////////////////////////
-// CPropTextColors dialog
-
/**
* @brief Default constructor.
*/
-CPropTextColors::CPropTextColors(COptionsMgr *optionsMgr, SyntaxColors *pColors)
- : OptionsPanel(optionsMgr, CPropTextColors::IDD)
+PropTextColors::PropTextColors(COptionsMgr *optionsMgr, SyntaxColors *pColors)
+ : OptionsPanel(optionsMgr, PropTextColors::IDD)
, m_bCustomColors(FALSE)
, m_pTempColors(pColors)
{
}
-void CPropTextColors::DoDataExchange(CDataExchange* pDX)
+void PropTextColors::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPropTextColors)
+ //{{AFX_DATA_MAP(PropTextColors)
DDX_Control(pDX, IDC_DEFAULT_STANDARD_COLORS, m_btnDefaultStandardColors);
DDX_Check(pDX, IDC_DEFAULT_STANDARD_COLORS, m_bCustomColors);
DDX_Control(pDX, IDC_WHITESPACE_BKGD_COLOR, m_btnWhitespaceBackground);
@@ -52,8 +49,8 @@
}
-BEGIN_MESSAGE_MAP(CPropTextColors, CDialog)
- //{{AFX_MSG_MAP(CPropTextColors)
+BEGIN_MESSAGE_MAP(PropTextColors, CDialog)
+ //{{AFX_MSG_MAP(PropTextColors)
ON_BN_CLICKED(IDC_DEFAULT_STANDARD_COLORS, OnDefaultsStandardColors)
ON_BN_CLICKED(IDC_WHITESPACE_BKGD_COLOR, OnWhitespaceBackgroundColor)
ON_BN_CLICKED(IDC_REGULAR_BKGD_COLOR, OnRegularBackgroundColor)
@@ -66,7 +63,7 @@
/**
* @brief Enable/Disable controls when dialog is shown.
*/
-BOOL CPropTextColors::OnInitDialog()
+BOOL PropTextColors::OnInitDialog()
{
theApp.TranslateDialog(m_hWnd);
CPropertyPage::OnInitDialog();
@@ -83,7 +80,7 @@
* @brief Reads options values from storage to UI.
* (Property sheet calls this before displaying all property pages)
*/
-void CPropTextColors::ReadOptions()
+void PropTextColors::ReadOptions()
{
m_bCustomColors = GetOptionsMgr()->GetBool(OPT_CLR_DEFAULT_TEXT_COLORING) ? FALSE : TRUE;
SerializeColorsToFromScreen(LOAD_COLORS);
@@ -93,7 +90,7 @@
* @brief Writes options values from UI to storage.
* (Property sheet calls this after displaying all property pages)
*/
-void CPropTextColors::WriteOptions()
+void PropTextColors::WriteOptions()
{
GetOptionsMgr()->SaveOption(OPT_CLR_DEFAULT_TEXT_COLORING, m_bCustomColors == FALSE);
// User can only change colors via BrowseColorAndSave,
@@ -110,7 +107,7 @@
* @param [in] colorButton Button for which to change color.
* @param [in] colorIndex Index to color table.
*/
-void CPropTextColors::BrowseColorAndSave(CColorButton & colorButton, int colorIndex)
+void PropTextColors::BrowseColorAndSave(CColorButton & colorButton, int colorIndex)
{
// Ignore user if colors are slaved to system
if (m_btnDefaultStandardColors.GetCheck() == BST_UNCHECKED)
@@ -133,7 +130,7 @@
/**
* @brief User wants to change whitespace color
*/
-void CPropTextColors::OnWhitespaceBackgroundColor()
+void PropTextColors::OnWhitespaceBackgroundColor()
{
BrowseColorAndSave(m_btnWhitespaceBackground, COLORINDEX_WHITESPACE);
}
@@ -141,7 +138,7 @@
/**
* @brief User wants to change regular background color
*/
-void CPropTextColors::OnRegularBackgroundColor()
+void PropTextColors::OnRegularBackgroundColor()
{
BrowseColorAndSave(m_btnRegularBackground, COLORINDEX_BKGND);
}
@@ -149,7 +146,7 @@
/**
* @brief User wants to change regular text color
*/
-void CPropTextColors::OnRegularTextColor()
+void PropTextColors::OnRegularTextColor()
{
BrowseColorAndSave(m_btnRegularText, COLORINDEX_NORMALTEXT);
}
@@ -157,7 +154,7 @@
/**
* @brief User wants to change regular selection background color
*/
-void CPropTextColors::OnSelectionBackgroundColor()
+void PropTextColors::OnSelectionBackgroundColor()
{
BrowseColorAndSave(m_btnSelectionBackground, COLORINDEX_SELBKGND);
}
@@ -165,7 +162,7 @@
/**
* @brief User wants to change regular selection text color
*/
-void CPropTextColors::OnSelectionTextColor()
+void PropTextColors::OnSelectionTextColor()
{
BrowseColorAndSave(m_btnSelectionText, COLORINDEX_SELTEXT);
}
@@ -177,7 +174,7 @@
* - LOAD_COLORS : Loads colors from registry
* (No save operation because BrowseColorAndSave saves immediately when user chooses)
*/
-void CPropTextColors::SerializeColorsToFromScreen(OPERATION op)
+void PropTextColors::SerializeColorsToFromScreen(OPERATION op)
{
if (op == SET_DEFAULTS)
m_pTempColors->SetDefaults();
@@ -198,7 +195,7 @@
* - LOAD_COLORS : Loads colors from registry
* (No save operation because BrowseColorAndSave saves immediately when user chooses)
*/
-void CPropTextColors::SerializeColorToFromScreen(OPERATION op, CColorButton & btn, int colorIndex)
+void PropTextColors::SerializeColorToFromScreen(OPERATION op, CColorButton & btn, int colorIndex)
{
switch (op)
@@ -223,7 +220,7 @@
/**
* @brief Set colors to track standard (theme) colors
*/
-void CPropTextColors::OnDefaultsStandardColors()
+void PropTextColors::OnDefaultsStandardColors()
{
// Reset all text colors to default every time user checks defaults button
SerializeColorsToFromScreen(SET_DEFAULTS);
@@ -242,7 +239,7 @@
/**
* @brief Loads color selection dialog's custom colors from registry
*/
-void CPropTextColors::LoadCustomColors()
+void PropTextColors::LoadCustomColors()
{
SyntaxColors_Load(m_cCustColors, sizeof(m_cCustColors)/sizeof(m_cCustColors[0]));
}
@@ -250,7 +247,7 @@
/**
* @brief Saves color selection dialog's custom colors to registry
*/
-void CPropTextColors::SaveCustomColors()
+void PropTextColors::SaveCustomColors()
{
SyntaxColors_Save(m_cCustColors, sizeof(m_cCustColors)/sizeof(m_cCustColors[0]));
}
@@ -259,7 +256,7 @@
* @brief Enable / disable color controls on dialog.
* @param [in] bEnable If TRUE color controls are enabled.
*/
-void CPropTextColors::EnableColorButtons(BOOL bEnable)
+void PropTextColors::EnableColorButtons(BOOL bEnable)
{
CStatic * stc = (CStatic *) GetDlgItem(IDC_CUSTOM_COLORS_GROUP);
stc->EnableWindow(bEnable);
Modified: trunk/Src/PropTextColors.h
===================================================================
--- trunk/Src/PropTextColors.h 2009-07-11 07:47:04 UTC (rev 6907)
+++ trunk/Src/PropTextColors.h 2009-07-11 08:29:49 UTC (rev 6908)
@@ -1,7 +1,7 @@
/**
* @file PropTextColors.h
*
- * @brief Declaration file for CPropTextColors propertyheet
+ * @brief Declaration file for PropTextColors propertyheet
*
*/
// ID line follows -- this is updated by SVN
@@ -16,18 +16,14 @@
class COptionsMgr;
class SyntaxColors;
-
-/////////////////////////////////////////////////////////////////////////////
-// CPropTextColors dialog
-
/** @brief Property page for colors options; used in options property sheet */
-class CPropTextColors : public OptionsPanel
+class PropTextColors : public OptionsPanel
{
// Construction
public:
- CPropTextColors(COptionsMgr *optionsMgr, SyntaxColors *pColors);
+ PropTextColors(COptionsMgr *optionsMgr, SyntaxColors *pColors);
// Implement IOptionsPanel
virtual void ReadOptions();
@@ -39,7 +35,7 @@
SyntaxColors *m_pTempColors;
COLORREF m_cCustColors[COLORINDEX_COUNT];
- //{{AFX_DATA(CPropTextColors)
+ //{{AFX_DATA(PropTextColors)
enum { IDD = IDD_PROPPAGE_COLORS_TEXT };
CColorButton m_btnDefaultStandardColors;
CColorButton m_btnWhitespaceBackground;
@@ -58,7 +54,7 @@
// Overrides
// ClassWizard generated virtual fun...
[truncated message content] |