Changeset 749 in dev for trunk/ab5.0/jenga


Ignore:
Timestamp:
Sep 15, 2008, 6:06:34 PM (16 years ago)
Author:
dai
Message:

「フォルダを開く」コマンドで、ファイル選択を可能にした。

Location:
trunk/ab5.0/jenga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/jenga/include/common/Path.h

    r630 r749  
    3939        return driveName;
    4040    }
    41     const std::string &GetDirName() const
     41    const std::string GetDirPath() const
    4242    {
    43         return dirName;
     43        return driveName + dirName;
    4444    }
    4545    const std::string &GetFileName() const
     
    5050    {
    5151        return ext;
     52    }
     53    const std::string GetFullFileName() const
     54    {
     55        return fileName + ext;
    5256    }
    5357    const std::string &GetFullPath() const
  • trunk/ab5.0/jenga/src/common/FileSystem.cpp

    r694 r749  
    1111
    1212    Jenga::Common::Path path( tempFindStr );
    13     std::string dirPath = path.GetDriveName() + path.GetDirName();
     13    std::string dirPath = path.GetDirPath();
    1414    if( !dirPath.empty() && dirPath[dirPath.size()-1] == '\\' )
    1515    {
  • trunk/ab5.0/jenga/src/common/Path.cpp

    r623 r749  
    7979std::string Jenga::Common::Path::ExtractDirPath( const std::string &filepath )
    8080{
    81     Path path( filepath );
    82     std::string result = path.GetDriveName() + path.GetDirName();
    83     return result;
     81    return Path( filepath ).GetDirPath();
    8482}
Note: See TracChangeset for help on using the changeset viewer.