OSDN Git Service

autoit.cpp - Macros >> User 1 ..... Variable >> User 2 (#749) (2)
[winmerge-jp/winmerge-jp.git] / Src / ProjectFile.cpp
index 8beff24..0fc486e 100755 (executable)
@@ -1,19 +1,4 @@
-/////////////////////////////////////////////////////////////////////////////
-//    License (GPLv2+):
-//    This program is free software; you can redistribute it and/or modify
-//    it under the terms of the GNU General Public License as published by
-//    the Free Software Foundation; either version 2 of the License, or (at
-//    your option) any later version.
-//    
-//    This program is distributed in the hope that it will be useful, but
-//    WITHOUT ANY WARRANTY; without even the implied warranty of
-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-//    GNU General Public License for more details.
-//
-//    You should have received a copy of the GNU General Public License
-//    along with this program; if not, write to the Free Software
-//    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-/////////////////////////////////////////////////////////////////////////////
+// SPDX-License-Identifier: GPL-2.0-or-later
 /** 
  * @file  ProjectFile.cpp
  *
@@ -168,50 +153,6 @@ const String ProjectFile::PROJECTFILE_EXT = toTString("WinMerge");
 }
 
 /** 
- * @brief Returns if left path is defined in project file.
- * @return true if project file has left path.
- */
-bool ProjectFileItem::HasLeft() const
-{
-       return m_bHasLeft;
-}
-
-/** 
- * @brief Returns if middle path is defined.
- */
-bool ProjectFileItem::HasMiddle() const
-{
-       return m_bHasMiddle;
-}
-
-/** 
- * @brief Returns if right path is defined in project file.
- * @return true if project file has right path.
- */
-bool ProjectFileItem::HasRight() const
-{
-       return m_bHasRight;
-}
-
-/** 
- * @brief Returns if filter is defined in project file.
- * @return true if project file has filter.
- */
-bool ProjectFileItem::HasFilter() const
-{
-       return m_bHasFilter;
-}
-
-/** 
- * @brief Returns if subfolder is defined in projectfile.
- * @return true if project file has subfolder definition.
- */
-bool ProjectFileItem::HasSubfolders() const
-{
-       return m_bHasSubfolders;
-}
-
-/** 
  * @brief Returns left path.
  * @param [out] pReadOnly true if readonly was specified for path.
  * @return Left path.
@@ -224,15 +165,6 @@ String ProjectFileItem::GetLeft(bool * pReadOnly /*= nullptr*/) const
 }
 
 /** 
- * @brief Returns if left path is specified read-only.
- * @return true if left path is read-only, false otherwise.
- */
-bool ProjectFileItem::GetLeftReadOnly() const
-{
-       return m_bLeftReadOnly;
-}
-
-/** 
  * @brief Set left path, returns old left path.
  * @param [in] sLeft Left path.
  * @param [in] bReadOnly Will path be recorded read-only?
@@ -256,14 +188,6 @@ String ProjectFileItem::GetMiddle(bool * pReadOnly /*= nullptr*/) const
 }
 
 /** 
- * @brief Returns if middle path is specified read-only.
- */
-bool ProjectFileItem::GetMiddleReadOnly() const
-{
-       return m_bMiddleReadOnly;
-}
-
-/** 
  * @brief Set middle path, returns old middle path.
  * @param [in] sMiddle Middle path.
  * @param [in] bReadOnly Will path be recorded read-only?
@@ -290,15 +214,6 @@ String ProjectFileItem::GetRight(bool * pReadOnly /*= nullptr*/) const
 }
 
 /** 
- * @brief Returns if right path is specified read-only.
- * @return true if right path is read-only, false otherwise.
- */
-bool ProjectFileItem::GetRightReadOnly() const
-{
-       return m_bRightReadOnly;
-}
-
-/** 
  * @brief Set right path, returns old right path.
  * @param [in] sRight Right path.
  * @param [in] bReadOnly Will path be recorded read-only?
@@ -311,54 +226,6 @@ void ProjectFileItem::SetRight(const String& sRight, const bool * pReadOnly /*=
 }
 
 /** 
- * @brief Returns filter.
- * @return Filter string.
- */
-String ProjectFileItem::GetFilter() const
-{
-       return m_filter;
-}
-
-/** 
- * @brief Set filter.
- * @param [in] sFilter New filter string to set.
- */
-void ProjectFileItem::SetFilter(const String& sFilter)
-{
-       m_filter = sFilter;
-}
-
-/** 
- * @brief Returns subfolder included -setting.
- * @return != 0 if subfolders are included.
- */
-int ProjectFileItem::GetSubfolders() const
-{
-       return m_subfolders;
-}
-
-/** 
- * @brief set subfolder.
- * @param [in] iSubfolder New value for subfolder inclusion.
- */
-void ProjectFileItem::SetSubfolders(bool bSubfolder)
-{
-       m_subfolders = bSubfolder ? 1 : 0;
-}
-
-/** 
- * @brief 
- *
- * @param [in] files Files in project
- * @param [in] bSubFolders If true subfolders included (recursive compare)
- */
-void ProjectFileItem::SetPaths(const PathContext& files, bool bSubfolders)
-{
-       m_paths = files;
-       m_subfolders = bSubfolders;
-}
-
-/** 
  * @brief Returns left and right paths and recursive from project file
  * 
  * @param [out] files Files in project