Changeset 620 in dev for trunk/ab5.0/abdev/abdev/src


Ignore:
Timestamp:
May 19, 2008, 6:17:02 PM (16 years ago)
Author:
dai_9181
Message:

Projectクラスをリファクタリング中。

Location:
trunk/ab5.0/abdev/abdev/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/src/MainFrame.cpp

    r619 r620  
    446446        lstrcpy(temporary,NewFileName);
    447447        if(!strstr(temporary,".")) lstrcat(temporary,".ab");
    448         GetFullPath(temporary,projectInfo.dir);
     448
     449        lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
    449450    }
    450451    else bAddToProject=0;
     
    521522void MainFrame::OnCmdProjectFolderOpen( UINT uNotifyCode, int nID, CWindow wndCtl )
    522523{
    523     ShellExecute(m_hWnd,"explore",projectInfo.dir,NULL,NULL,SW_SHOWNORMAL);
     524    ShellExecute(m_hWnd,"explore",projectInfo.GetWorkDir().GetPath().c_str(),NULL,NULL,SW_SHOWNORMAL);
    524525}
    525526
     
    952953        //出力ファイル名をtemp3へ
    953954        lstrcpy(temp3,projectInfo.lpszOutput_Debug);
    954         GetFullPath(temp3,projectInfo.dir);
     955        lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() );
    955956
    956957        if(IsNeedCompileForProject(1))
     
    10301031        //出力ファイル名をtemp3へ
    10311032        lstrcpy(temp3,projectInfo.lpszOutput_Debug);
    1032         GetFullPath(temp3,projectInfo.dir);
     1033        lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() );
    10331034
    10341035        sprintf(temporary,"\"%s\" \"%s\" /debug /wnd:%08x",temp2,temp3,m_hWnd);
     
    11441145        //出力ファイル名をtemp3へ
    11451146        lstrcpy(temp3,projectInfo.lpszOutput_Release);
    1146         GetFullPath(temp3,projectInfo.dir);
     1147        lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() );
    11471148
    11481149        sprintf(temporary,"\"%s\" \"%s\" /wnd:%08x",temp2,temp3,m_hWnd);
     
    12081209        else{
    12091210            lstrcpy(temporary,projectInfo.lpszOutput_Debug);
    1210             GetFullPath(temporary,projectInfo.dir);
     1211            lstrcpy( temporary, projectInfo.GetWorkDir().GetFullPath( temporary ).c_str() );
    12111212        }
    12121213    }
  • trunk/ab5.0/abdev/abdev/src/ProjectManager/ProjectManager.cpp

    r619 r620  
    1818
    1919    //プロジェクトの作業ディレクトリを取得
    20     _splitpath(path,this->dir,temporary,0,0);
    21     lstrcat(this->dir,temporary);
     20    _splitpath(path,temporary,temp2,0,0);
     21    lstrcat( temporary, temp2 );
     22    this->workDir = Jenga::Common::Directory( temporary );
    2223
    2324    //ファイルを開く、保存の初期ディレクトリをセット
    24     lstrcpy(pobj_nv->DefSaveDir,this->dir);
     25    lstrcpy(pobj_nv->DefSaveDir,this->GetWorkDir().GetPath().c_str());
    2526
    2627
     
    253254        /////////////////////////////////////////////
    254255        //ウィンドウ定義ファイル(*.wnd)をオープン
    255         sprintf(temp2,"%s%s.wnd",this->dir,this->GetName().c_str());
     256        sprintf(temp2,"%s%s.wnd",this->GetWorkDir().GetPath().c_str(),this->GetName().c_str());
    256257        if(!OpenWindowFile(temp2)) return;
    257258    }
     
    263264    }
    264265
    265     OpenWorkfile( this->dir + this->GetName() + ".wrk" );
     266    OpenWorkfile( this->GetWorkDir().GetPath() + this->GetName() + ".wrk" );
    266267
    267268    this->modify=0;
     
    324325            for(i=0;this->res.NumberOfIconRes;i++){
    325326                lstrcpy(temporary,this->res.pIconResInfo[i].path);
    326                 GetFullPath(temporary,this->dir);
     327                lstrcpy( temporary, this->GetWorkDir().GetFullPath( temporary ).c_str() );
    327328                if(lstrcmpi(MdiInfo[WndNum].path,temporary)==0){
    328329                    SendMessage(hCloseChild,WM_CLOSE,0,0);
Note: See TracChangeset for help on using the changeset viewer.