Ignore:
Timestamp:
May 19, 2008, 5:41:26 PM (16 years ago)
Author:
dai_9181
Message:

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

File:
1 edited

Legend:

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

    r618 r619  
    8888
    8989    //プロジェクトを閉じる
    90     if(projectInfo.name[0]){
    91         if(!CloseProject()) return;
     90    if( projectInfo.IsOpened() ){
     91        if(!projectInfo.Close()) return;
    9292    }
    9393
     
    506506    }
    507507
    508     OpenProject(temporary);
     508    projectInfo.Open(temporary);
    509509}
    510510
     
    516516void MainFrame::OnCmdProjectClose( UINT uNotifyCode, int nID, CWindow wndCtl )
    517517{
    518     CloseProject();
     518    projectInfo.Close();
    519519}
    520520
     
    550550        if(MdiInfo[i].hwnd) SaveDocument(MdiInfo[i].hwnd,NULL);
    551551    }
    552     if(projectInfo.name[0]) SaveProject();
     552    if( projectInfo.IsOpened() ) SaveProject();
    553553}
    554554
     
    935935
    936936    HWND hChild = ::GetWindow(hClient,GW_CHILD);
    937     if(projectInfo.name[0]){
     937    if( projectInfo.IsOpened() ){
    938938        //プロジェクトが開かれている場合
    939939        if(!SetProjectToRun()) return;
     
    960960
    961961        // DLLオプション
    962         if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll");
     962        if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll )
     963        {
     964            lstrcat(temporary," /dll");
     965        }
    963966
    964967        // SLLオプション
    965         if( projectInfo.dwModuleType == MT_SLL ) lstrcat( temporary, " /static_library" );
     968        if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Sll )
     969        {
     970            lstrcat(temporary," /static_library");
     971        }
    966972
    967973        //Unicodeオプション
     
    10151021
    10161022    HWND hChild=::GetWindow(hClient,GW_CHILD);
    1017     if(projectInfo.name[0]){
     1023    if( projectInfo.IsOpened() ){
    10181024        //プロジェクトが開かれている場合
    10191025        if(!SetProjectToRun()) return;
     
    10291035
    10301036        //DLLオプション
    1031         if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll");
     1037        if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll )
     1038        {
     1039            lstrcat(temporary," /dll");
     1040        }
    10321041
    10331042        //Unicodeオプション
     
    11261135
    11271136    HWND hChild=::GetWindow(hClient,GW_CHILD);
    1128     if(projectInfo.name[0]){
     1137    if( projectInfo.IsOpened() ){
    11291138        //プロジェクトが開かれている場合
    11301139        if(!SetProjectToRun()) return;
     
    11401149
    11411150        //DLLオプション
    1142         if(projectInfo.dwModuleType==MT_DLL) lstrcat(temporary," /dll");
     1151        if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll )
     1152        {
     1153            lstrcat(temporary," /dll");
     1154        }
    11431155
    11441156        //Unicodeオプション
     
    11821194
    11831195    HWND hChild=::GetWindow(hClient,GW_CHILD);
    1184     if(projectInfo.name[0]){
     1196    if( projectInfo.IsOpened() ){
    11851197/*                      //プロジェクトが開かれている場合
    11861198        if(!SetProjectToRun()) return;
     
    11901202            SendMessage(WM_COMMAND,IDM_RELEASECOMPILE,0);*/
    11911203
    1192         if(projectInfo.dwModuleType==MT_DLL){
     1204        if( projectInfo.GetModuleType() == ActiveBasic::Common::TargetModuleType::Dll )
     1205        {
    11931206            lstrcpy(temporary,projectInfo.szExePath);
    11941207        }
     
    12361249void MainFrame::OnCmdBreakPoint( UINT uNotifyCode, int nID, CWindow wndCtl )
    12371250{
    1238     if(projectInfo.name[0]){
     1251    if( projectInfo.IsOpened() ){
    12391252        projectInfo.pobj_DBBreakPoint->Event_BreakPoint();
    12401253    }
Note: See TracChangeset for help on using the changeset viewer.