OSDN Git Service

Add GetDescription() function
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 28 Jun 2017 15:03:59 +0000 (00:03 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 28 Jun 2017 15:03:59 +0000 (00:03 +0900)
Src/HexMergeDoc.h
Src/ImgMergeFrm.h
Src/MergeDoc.h

index bef319b..9076e00 100644 (file)
@@ -87,6 +87,7 @@ public:
        void RefreshOptions();
        bool OpenDocs(int nFiles, const FileLocation fileloc[], const bool bRO[], const String strDesc[], int nPane);
        void CheckFileChanged(void);
+       String GetDescription(int pane) const { return m_strDesc[pane]; };
 private:
        static void CopySel(CHexMergeView *pViewSrc, CHexMergeView *pViewDst);
        static void CopyAll(CHexMergeView *pViewSrc, CHexMergeView *pViewDst);
index 1064b2d..939ce4b 100644 (file)
@@ -74,6 +74,7 @@ public:
        bool IsModified() const;
        bool IsFileChangedOnDisk(int pane) const;
        void CheckFileChanged(void);
+       String GetDescription(int pane) const { return m_strDesc[pane]; }
 
 // Attributes
 protected:
index a1952f7..92d0844 100644 (file)
@@ -228,7 +228,8 @@ public:
        bool DeleteSyncPoint(int pane, int nLine, bool bRescan = true);
        void ClearSyncPoints();
        bool HasSyncPoints();
-       std::vector<std::vector<int> > CMergeDoc::GetSyncPointList();
+       std::vector<std::vector<int> > GetSyncPointList();
+       String GetDescription(int pane) const { return m_strDesc[pane]; }
 
        // Overrides
        // ClassWizard generated virtual function overrides