Changeset 477 in dev for trunk/ab5.0/abdev/ProjectEditor
- Timestamp:
- Apr 6, 2008, 8:07:40 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/ProjectEditor
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ProjectEditor/Attach.cpp
r475 r477 91 91 ///////////////////////////////////////////////////// 92 92 93 std::string enumProcess64ExePath = Program::GetApplicationSystemDirPath() + "\\enum_process64\\enum_process64.exe";93 std::string enumProcess64ExePath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\enum_process64\\enum_process64.exe"; 94 94 95 95 STARTUPINFO si; … … 106 106 ////////////////////////////////// 107 107 108 std::string listPath = Program::GetApplicationSystemDirPath() + "\\enum_process64\\list.dat";108 std::string listPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\enum_process64\\list.dat"; 109 109 110 110 char *buffer; -
trunk/ab5.0/abdev/ProjectEditor/ChildWndOnRebar.cpp
r475 r477 85 85 i=SendMessage(hwnd,CB_GETCURSEL,0,0); 86 86 87 extern char *lpszCompilerName; 88 if(i==0) lpszCompilerName=WIN32_COMPILER_NAME; 89 if(i==1) lpszCompilerName=WIN64_COMPILER_NAME; 87 extern ActiveBasic::Common::Platform::EnumType selectingPlatform; 88 if( i == 0 ) 89 { 90 selectingPlatform = ActiveBasic::Common::Platform::X86; 91 } 92 else if( i == 1 ) 93 { 94 selectingPlatform = ActiveBasic::Common::Platform::X64; 95 } 90 96 } 91 97 break; -
trunk/ab5.0/abdev/ProjectEditor/Common.h
r475 r477 69 69 #endif 70 70 71 72 73 #define WIN32_COMPILER_NAME "BasicCompiler32.exe"74 #define WIN64_COMPILER_NAME "BasicCompiler64.exe"75 71 76 72 -
trunk/ab5.0/abdev/ProjectEditor/DesignTheme.cpp
r475 r477 39 39 } 40 40 CTheme::CTheme(){ 41 CTheme(0,THEMENAME_USER); 41 bActive=0; 42 lstrcpy(m_name,THEMENAME_USER); 42 43 } 43 44 CTheme::~CTheme(){ -
trunk/ab5.0/abdev/ProjectEditor/ProjectControl.cpp
r475 r477 898 898 } 899 899 else if(NewProjectInfo.dwTypeID==IDC_EXE_DIRECTX){ 900 const std::string mainExeDirectXAbpPath = Program::GetApplicationSystemDirPath() + "\\system\\dx\\main_exe_directx.abp";900 const std::string mainExeDirectXAbpPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\dx\\main_exe_directx.abp"; 901 901 pTemp = ReadBuffer( mainExeDirectXAbpPath ); 902 902 … … 969 969 if(NewProjectInfo.dwTypeID==IDC_EXE_WINDOWBASE) 970 970 { 971 mainWndSbpPath = Program::GetApplicationSystemDirPath() + "\\MainWnd_exe_windowbase.sbp";971 mainWndSbpPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\MainWnd_exe_windowbase.sbp"; 972 972 } 973 973 else if(NewProjectInfo.dwTypeID==IDC_EXE_DIRECTX) 974 974 { 975 mainWndSbpPath = Program::GetApplicationSystemDirPath() + "\\MainWnd_exe_directx.sbp";975 mainWndSbpPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\MainWnd_exe_directx.sbp"; 976 976 } 977 977 … … 1017 1017 1018 1018 //dx_graphics.sbpをコピー 1019 const std::string dxGraphicsSbpPath = Program::GetApplicationSystemDirPath() + "\\dx\\dx_graphics.sbp";1019 const std::string dxGraphicsSbpPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\dx\\dx_graphics.sbp"; 1020 1020 pTemp = ReadBuffer( dxGraphicsSbpPath ); 1021 1021 sprintf(temporary,"%sdx_graphics.sbp",dir,NewProjectInfo.name); … … 1024 1024 1025 1025 //dx_input.sbpをコピー 1026 const std::string dxInputSbpPath = Program::GetApplicationSystemDirPath() + "\\dx\\dx_input.sbp";1026 const std::string dxInputSbpPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\dx\\dx_input.sbp"; 1027 1027 pTemp = ReadBuffer( dxInputSbpPath ); 1028 1028 sprintf(temporary,"%sdx_input.sbp",dir,NewProjectInfo.name); … … 1031 1031 1032 1032 //dx_music.sbpをコピー 1033 const std::string dxMusicSbpPath = Program::GetApplicationSystemDirPath() + "\\dx\\dx_music.sbp";1033 const std::string dxMusicSbpPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\dx\\dx_music.sbp"; 1034 1034 pTemp = ReadBuffer( dxMusicSbpPath ); 1035 1035 sprintf(temporary,"%sdx_music.sbp",dir,NewProjectInfo.name); … … 1097 1097 //マニフェストを作成 1098 1098 char temp2[MAX_PATH]; 1099 const std::string manifestTempXmlPath = Program::GetApplicationSystemDirPath() + "\\manifest_temp.xml";1099 const std::string manifestTempXmlPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\manifest_temp.xml"; 1100 1100 sprintf(temp2,"%s%s.manifest.xml",dir,NewProjectInfo.name); 1101 1101 CopyFile( manifestTempXmlPath.c_str(), temp2, 0 ); … … 2372 2372 BOOL SetProjectToRun(void){ 2373 2373 extern PROJECTINFO ProjectInfo; 2374 char temporary[MAX_PATH];2375 2374 HANDLE hFind; 2376 2375 WIN32_FIND_DATA wfd; … … 2382 2381 } 2383 2382 2384 extern char *lpszCompilerName; 2385 sprintf(temporary,"%s%s",pj_editor_Dir,lpszCompilerName); 2386 hFind=FindFirstFile(temporary,&wfd); 2383 extern ActiveBasic::Common::Platform::EnumType selectingPlatform; 2384 hFind=FindFirstFile( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ).c_str(), &wfd ); 2387 2385 if(hFind==INVALID_HANDLE_VALUE){ 2388 2386 //"BasicCompiler.exe が見つかりません" -
trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.cpp
r475 r477 89 89 90 90 91 void CreateProcessWithStdHandle( const char *appPath, const char *cmdLine)91 void CreateProcessWithStdHandle( const std::string &appPath, const std::string &cmdLine) 92 92 { 93 93 std::string argsStr = (std::string)"\"" + appPath + "\" " + cmdLine; … … 2082 2082 lstrcat(temporary,temp2); 2083 2083 2084 sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName); 2085 2086 CreateProcessWithStdHandle( str, temporary ); 2084 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary ); 2087 2085 2088 2086 return 0; … … 2134 2132 lstrcat(temporary,temp2); 2135 2133 2136 sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName); 2137 2138 CreateProcessWithStdHandle( str, temporary ); 2134 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary ); 2139 2135 2140 2136 return 0; … … 2167 2163 lstrcat(temporary,temp2); 2168 2164 2165 ActiveBasic::Common::Platform::EnumType platform; 2169 2166 if(dwPlatform==IMAGE_FILE_MACHINE_I386) 2170 sprintf(str,"%s%s",pj_editor_Dir,WIN32_COMPILER_NAME); 2167 { 2168 platform = ActiveBasic::Common::Platform::X86; 2169 } 2171 2170 else if(dwPlatform==IMAGE_FILE_MACHINE_AMD64) 2172 sprintf(str,"%s%s",pj_editor_Dir,WIN64_COMPILER_NAME); 2173 2174 CreateProcessWithStdHandle( str, temporary ); 2171 { 2172 platform = ActiveBasic::Common::Platform::X64; 2173 } 2174 else 2175 { 2176 throw; 2177 } 2178 2179 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( platform ), temporary ); 2175 2180 2176 2181 return 0; … … 2222 2227 lstrcat(temporary,temp2); 2223 2228 2224 sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName); 2225 2226 CreateProcessWithStdHandle( str, temporary ); 2229 CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary ); 2227 2230 2228 2231 return 0; -
trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.h
r83 r477 39 39 HBRUSH h3DFaceBackBrush; 40 40 DWORD dwRadClipboardID; 41 char *lpszCompilerName;41 ActiveBasic::Common::Platform::EnumType selectingPlatform = ActiveBasic::Common::Platform::X86; 42 42 43 43 FWINLAYER pSetLayeredWindowAttributes; -
trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.vcproj
r475 r477 411 411 </Configurations> 412 412 <References> 413 <ProjectReference 414 ReferencedProjectIdentifier="{87835C33-64C9-4BA5-9B39-608BA5394387}" 415 RelativePathToProject=".\ab_common\ab_common.vcproj" 416 /> 417 <ProjectReference 418 ReferencedProjectIdentifier="{F01805B6-65B4-4708-88F4-A5E07DEA9FBD}" 419 RelativePathToProject="..\jenga\projects\jenga\jenga.vcproj" 420 /> 413 421 </References> 414 422 <Files> -
trunk/ab5.0/abdev/ProjectEditor/SubOperation.cpp
r475 r477 911 911 912 912 //リソース用DLLをマッピング 913 const std::string resDllPath = Program::GetApplicationSystemDirPath() + "\\res.dll";913 const std::string resDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\res.dll"; 914 914 hResInst = LoadLibrary( resDllPath.c_str() ); 915 915 916 916 //アイコンリソースDLLをマッピング 917 const std::string iconResDllPath = Program::GetApplicationSystemDirPath() + "\\icon_res.dll";917 const std::string iconResDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\icon_res.dll"; 918 918 hIconResInst = LoadLibrary( iconResDllPath.c_str() ); 919 919 920 920 //LuxCtrl.dllをマッピング 921 const std::string luxCtrlDllPath = Program::GetApplicationSystemDirPath() + "\\LuxCtrl.dll";921 const std::string luxCtrlDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\LuxCtrl.dll"; 922 922 hLib_LuxCtrl = LoadLibrary( luxCtrlDllPath.c_str() ); 923 923 if(!hLib_LuxCtrl){ … … 949 949 ScreenX=GetSystemMetrics(SM_CXSCREEN); 950 950 ScreenY=GetSystemMetrics(SM_CYSCREEN); 951 952 //コンパイラ名をセット(デフォルトはWin32)953 extern char *lpszCompilerName;954 lpszCompilerName=WIN32_COMPILER_NAME;955 951 956 952 //不揮発性のデータを取得 … … 1220 1216 HANDLE hFile; 1221 1217 DWORD dw; 1222 const std::string pltPath = Program::GetApplicationSystemDirPath() + "\\8bit.plt";1218 const std::string pltPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\8bit.plt"; 1223 1219 hFile=CreateFile(pltPath.c_str(),GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); 1224 1220 if(hFile==INVALID_HANDLE_VALUE){ … … 1473 1469 extern LPSTR DefFileFilter; 1474 1470 int WndNum; 1475 char temp orary[MAX_PATH],temp2[MAX_PATH];1471 char temp2[MAX_PATH]; 1476 1472 HANDLE hFind; 1477 1473 WIN32_FIND_DATA wfd; 1478 1474 1479 extern char *lpszCompilerName; 1480 sprintf(temporary,"%s%s",pj_editor_Dir,lpszCompilerName); 1481 hFind=FindFirstFile(temporary,&wfd); 1475 extern ActiveBasic::Common::Platform::EnumType selectingPlatform; 1476 hFind=FindFirstFile(ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ).c_str(),&wfd); 1482 1477 if(hFind==INVALID_HANDLE_VALUE){ 1483 1478 //"BasicCompiler.exe が見つかりません" -
trunk/ab5.0/abdev/ProjectEditor/WindowControl.cpp
r475 r477 2259 2259 2260 2260 //テンプレートを読み込む 2261 const std::string newWindowTemplateSbpPath = Program::GetApplicationSystemDirPath() + "\\new_window_template.sbp";2261 const std::string newWindowTemplateSbpPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\new_window_template.sbp"; 2262 2262 pTemp = ReadBuffer( newWindowTemplateSbpPath ); 2263 2263 -
trunk/ab5.0/abdev/ProjectEditor/common_msg_jpn.h
r83 r477 78 78 #define STRING_FILE_OVERWRIDE "\"%s\" ファイルは既に存在しています。上書きしますか?" 79 79 #define STRING_ERROR_MAXLENGTH "これ以上、テキストを入力することができません" 80 #define STRING_ERROR_NOBASICCOMPILER " BasicCompilerが見つかりません"80 #define STRING_ERROR_NOBASICCOMPILER "対象プラットフォームのビルドモジュールが見つかりません" 81 81 #define STRING_ERROR_PROJECTTOPCHAR "プロジェクト名の先頭文字はアルファベット(A~Z、a~z)またはアンダーバー(_)でなければなりません。" 82 82 #define STRING_ERROR_PROJECTNAME "プロジェクト名に不正な文字コードが含まれています。" -
trunk/ab5.0/abdev/ProjectEditor/include/Program.h
r475 r477 7 7 { 8 8 public: 9 static const std::string GetApplicationSystemDirPath()10 {11 return Jenga::Common::Environment::GetAppDir() + "\\system";12 }13 9 }; 14 10 -
trunk/ab5.0/abdev/ProjectEditor/nkf_class.cpp
r475 r477 10 10 CNkf::CNkf() 11 11 { 12 const std::string nkf32DllPath = Program::GetApplicationSystemDirPath() + "\\system\\nkf32.dll";12 const std::string nkf32DllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\nkf32.dll"; 13 13 hLib = LoadLibrary( nkf32DllPath.c_str() ); 14 if( !hLib ) 15 { 16 MessageBox( NULL, "nkf32.dll が見つかりません。", "エラー", MB_OK | MB_ICONEXCLAMATION ); 17 } 14 18 15 19 pGetNkfVersion=(GetNkfVersion)GetProcAddress(hLib,"GetNkfVersion"); -
trunk/ab5.0/abdev/ProjectEditor/reg_exp.cpp
r475 r477 9 9 CRegExp::CRegExp() 10 10 { 11 const std::string bregexpDllPath = Program::GetApplicationSystemDirPath() + "\\system\\BREGEXP.dll";11 const std::string bregexpDllPath = ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\BREGEXP.dll"; 12 12 hLib = LoadLibrary( bregexpDllPath.c_str() ); 13 if( !hLib ) 14 { 15 MessageBox( NULL, "BREGEXP.dll �����Â���Ü��B", "Gñ��[", MB_OK | MB_ICONEXCLAMATION ); 16 } 13 17 14 18 BMatch=(PFUNC_BMatch)GetProcAddress(hLib,"BMatch"); … … 37 41 else sprintf(pTemp,"m/(%s)/",exp); 38 42 39 //Shift-JIS ナ表43 //Shift-JIS? 40 44 lstrcat(pTemp,"k"); 41 45 42 // 蝠カE46 //?E 43 47 if(!IsBigSmall) lstrcat(pTemp,"i"); 44 48 … … 81 85 else sprintf(pTemp,"s/%s/%s/",exp,szPermu); 82 86 83 //Shift-JIS ナ表87 //Shift-JIS? 84 88 lstrcat(pTemp,"k"); 85 89 86 // 蝠カE90 //?E 87 91 if(!IsBigSmall) lstrcat(pTemp,"i"); 88 92 -
trunk/ab5.0/abdev/ProjectEditor/stdafx.h
r475 r477 28 28 #include <jenga/include/common/String.h> 29 29 30 #include <abdev/ab_common/Environment.h> 31 30 32 #include <Program.h>
Note:
See TracChangeset
for help on using the changeset viewer.