OSDN Git Service

Rename CWMGotoDlg to WMGotoDlg. Add/improve doxygen comments.
authorKimmo Varis <kimmov@gmail.com>
Mon, 14 Apr 2008 08:09:06 +0000 (08:09 +0000)
committerKimmo Varis <kimmov@gmail.com>
Mon, 14 Apr 2008 08:09:06 +0000 (08:09 +0000)
Src/MergeEditView.cpp
Src/WMGotoDlg.cpp
Src/WMGotoDlg.h

index ae9ceb4..756096a 100644 (file)
@@ -1141,8 +1141,7 @@ void CMergeEditView::OnL2r()
                // If cursor is inside diff get number of that diff
                if (m_bCurrentLineIsDiff)
                {
-                       CPoint pt;
-                       pt = GetCursorPos();
+                       CPoint pt = GetCursorPos();
                        currentDiff = pDoc->m_diffList.LineToDiff(pt.y);
                }
        }
@@ -2227,7 +2226,7 @@ void CMergeEditView::OnUpdateChangePane(CCmdUI* pCmdUI)
  */
 void CMergeEditView::OnWMGoto()
 {
-       CWMGotoDlg dlg;
+       WMGotoDlg dlg;
        CMergeDoc *pDoc = GetDocument();
        CPoint pos = GetCursorPos();
        int nRealLine = 0;
index 69d5371..2517103 100644 (file)
@@ -17,7 +17,7 @@
 /**
  * @file  WMGotoDlg.cpp
  *
- * @brief Implementation of the CWMGotoDlg class
+ * @brief Implementation of the WMGotoDlg dialog.
  */
 // ID line follows -- this is updated by SVN
 // $Id$
@@ -35,16 +35,20 @@ static char THIS_FILE[] = __FILE__;
 /////////////////////////////////////////////////////////////////////////////
 // CGotoDlg dialog
 
-
-CWMGotoDlg::CWMGotoDlg(CWnd* pParent /*=NULL*/)
-       : CDialog(CWMGotoDlg::IDD, pParent)
+/**
+ * @brief Constructor.
+ */
+WMGotoDlg::WMGotoDlg(CWnd* pParent /*=NULL*/)
+       : CDialog(WMGotoDlg::IDD, pParent)
        , m_nFile(-1)
        , m_nGotoWhat(-1)
 {
 }
 
-
-BOOL CWMGotoDlg::OnInitDialog()
+/**
+ * @brief Initialize dialog.
+ */
+BOOL WMGotoDlg::OnInitDialog()
 {
        theApp.TranslateDialog(m_hWnd);
        CDialog::OnInitDialog();
@@ -52,10 +56,10 @@ BOOL CWMGotoDlg::OnInitDialog()
 }
 
 
-void CWMGotoDlg::DoDataExchange(CDataExchange* pDX)
+void WMGotoDlg::DoDataExchange(CDataExchange* pDX)
 {
        CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CWMGotoDlg)
+       //{{AFX_DATA_MAP(WMGotoDlg)
        DDX_Text(pDX, IDC_WMGOTO_PARAM, m_strParam);
        DDX_Radio(pDX, IDC_WMGOTO_FILELEFT, m_nFile);
        DDX_Radio(pDX, IDC_WMGOTO_TOLINE, m_nGotoWhat);
@@ -63,11 +67,11 @@ void CWMGotoDlg::DoDataExchange(CDataExchange* pDX)
 }
 
 
-BEGIN_MESSAGE_MAP(CWMGotoDlg, CDialog)
-       //{{AFX_MSG_MAP(CWMGotoDlg)
+BEGIN_MESSAGE_MAP(WMGotoDlg, CDialog)
+       //{{AFX_MSG_MAP(WMGotoDlg)
                // NOTE: the ClassWizard will add message map macros here
        //}}AFX_MSG_MAP
 END_MESSAGE_MAP()
 
 /////////////////////////////////////////////////////////////////////////////
-// CWMGotoDlg message handlers
+// WMGotoDlg message handlers
index f01a0e8..29741a5 100644 (file)
 /**
  * @file  WMGotoDlg.h
  *
- * @brief Declaration file for CWMGotoDlg
+ * @brief Declaration file for WMGotoDlg dialog.
  *
  */
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
 // $Id$
 
 #if !defined(AFX_WMGOTODLG_H__A9D2366D_6358_4A74_9A45_6681D22EC786__INCLUDED_)
 
 
 /**
- * @brief Class for Goto-dialog
+ * @brief Class for Goto-dialog.
+ * This dialog allows user to go to certain line or or difference in the file
+ * compare. As there are two panels with different line numbers, there is a
+ * choice for target panel. When dialog is opened, its values are initialized
+ * for active file's line number.
  */
-class CWMGotoDlg : public CDialog
+class WMGotoDlg : public CDialog
 {
 // Construction
 public:
-       CWMGotoDlg(CWnd* pParent = NULL);   // standard constructor
+       WMGotoDlg(CWnd* pParent = NULL);   // standard constructor
 
 // Dialog Data
-       //{{AFX_DATA(CWMGotoDlg)
+       //{{AFX_DATA(WMGotoDlg)
        enum { IDD = IDD_WMGOTO };
-       CString m_strParam;
-       int             m_nFile;
-       int             m_nGotoWhat;
+       CString m_strParam;  /**< Line/difference number. */
+       int m_nFile;         /**< Target file number. */
+       int m_nGotoWhat;     /**< Goto line or difference? */
        //}}AFX_DATA
 
 
 // Overrides
        // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CWMGotoDlg)
+       //{{AFX_VIRTUAL(WMGotoDlg)
        protected:
        virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
        //}}AFX_VIRTUAL
@@ -56,7 +60,7 @@ public:
 protected:
 
        // Generated message map functions
-       //{{AFX_MSG(CWMGotoDlg)
+       //{{AFX_MSG(WMGotoDlg)
     virtual BOOL OnInitDialog();
                // NOTE: the ClassWizard will add member functions here
        //}}AFX_MSG