• R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision761 (tree)
Time2022-08-14 21:36:35
Authorhgtterry

Log Message

Equity_SB 140822 Recent Projects (WIP)

Change Summary

Incremental Difference

--- Anim19_OSDN/GD19_OSDN.cpp (revision 760)
+++ Anim19_OSDN/GD19_OSDN.cpp (revision 761)
@@ -399,7 +399,14 @@
399399 return 1;
400400 }
401401
402- // ------------------------------------- Recent Files
402+ // ------------------------------------- Recent Projects
403+
404+ case ID_FILE_CLEARRESENTPROJECTS:
405+ {
406+ App->CL_Vm_FileIO->ResentHistory_Clear();
407+ return 1;
408+ }
409+
403410 case 5000 + 7: // Top Recent Files 1
404411 {
405412 char mFileName[1024];
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
--- Anim19_OSDN/SB_FileView.cpp (revision 760)
+++ Anim19_OSDN/SB_FileView.cpp (revision 761)
@@ -325,8 +325,8 @@
325325 tvinsert.hInsertAfter = TVI_LAST;
326326 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
327327 tvinsert.item.pszText = "Objects";
328- tvinsert.item.iImage = 2;
329- tvinsert.item.iSelectedImage = 3;
328+ tvinsert.item.iImage = 0;
329+ tvinsert.item.iSelectedImage = 1;
330330 GD_ObjectsFolder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)&tvinsert);
331331
332332 tvinsert.hParent = GD_LevelFolder;
@@ -333,8 +333,8 @@
333333 tvinsert.hInsertAfter = TVI_LAST;
334334 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
335335 tvinsert.item.pszText = "Entities";
336- tvinsert.item.iImage = 2;
337- tvinsert.item.iSelectedImage = 3;
336+ tvinsert.item.iImage = 0;
337+ tvinsert.item.iSelectedImage = 1;
338338 GD_EntitiesFolder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)&tvinsert);
339339
340340 tvinsert.hParent = GD_EntitiesFolder;
@@ -341,8 +341,8 @@
341341 tvinsert.hInsertAfter = TVI_LAST;
342342 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
343343 tvinsert.item.pszText = "Sounds";
344- tvinsert.item.iImage = 2;
345- tvinsert.item.iSelectedImage = 3;
344+ tvinsert.item.iImage = 0;
345+ tvinsert.item.iSelectedImage = 1;
346346 GD_Entities_Sound_Folder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)&tvinsert);
347347
348348 tvinsert.hParent = GD_EntitiesFolder;
@@ -349,8 +349,8 @@
349349 tvinsert.hInsertAfter = TVI_LAST;
350350 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
351351 tvinsert.item.pszText = "Messages";
352- tvinsert.item.iImage = 2;
353- tvinsert.item.iSelectedImage = 3;
352+ tvinsert.item.iImage = 0;
353+ tvinsert.item.iSelectedImage = 1;
354354 GD_Entities_Message_Folder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)&tvinsert);
355355
356356 tvinsert.hParent = GD_EntitiesFolder;
@@ -357,8 +357,8 @@
357357 tvinsert.hInsertAfter = TVI_LAST;
358358 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
359359 tvinsert.item.pszText = "Move_Entities";
360- tvinsert.item.iImage = 2;
361- tvinsert.item.iSelectedImage = 3;
360+ tvinsert.item.iImage = 0;
361+ tvinsert.item.iSelectedImage = 1;
362362 GD_Entities_Move_Folder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)&tvinsert);
363363
364364 tvinsert.hParent = GD_EntitiesFolder;
@@ -365,8 +365,8 @@
365365 tvinsert.hInsertAfter = TVI_LAST;
366366 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
367367 tvinsert.item.pszText = "Collectables";
368- tvinsert.item.iImage = 2;
369- tvinsert.item.iSelectedImage = 3;
368+ tvinsert.item.iImage = 0;
369+ tvinsert.item.iSelectedImage = 1;
370370 GD_Collectables_Folder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)& tvinsert);
371371
372372 //----------------------------------------------------
@@ -374,8 +374,8 @@
374374 tvinsert.hInsertAfter = TVI_LAST;
375375 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
376376 tvinsert.item.pszText = "Teleporters";
377- tvinsert.item.iImage = 2;
378- tvinsert.item.iSelectedImage = 3;
377+ tvinsert.item.iImage = 0;
378+ tvinsert.item.iSelectedImage = 1;
379379 GD_Teleporters_Folder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)& tvinsert);
380380
381381 //----------------------------------------------------
@@ -383,8 +383,8 @@
383383 tvinsert.hInsertAfter = TVI_LAST;
384384 tvinsert.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
385385 tvinsert.item.pszText = "Particles";
386- tvinsert.item.iImage = 2;
387- tvinsert.item.iSelectedImage = 3;
386+ tvinsert.item.iImage = 0;
387+ tvinsert.item.iSelectedImage = 1;
388388 GD_Particles_Folder = (HTREEITEM)SendDlgItemMessage(App->ListPanel, IDC_TREE1, TVM_INSERTITEM, 0, (LPARAM)& tvinsert);
389389
390390 }
--- Anim19_OSDN/SB_Project.cpp (revision 760)
+++ Anim19_OSDN/SB_Project.cpp (revision 761)
@@ -710,7 +710,7 @@
710710 delete Options;
711711
712712 App->Set_Main_TitleBar(App->CL_Vm_FileIO->Model_Path_FileName);
713-
713+ App->CL_Vm_FileIO->RecentFileHistory_Update();
714714 return 1;
715715 }
716716
--- Anim19_OSDN/VM_FileIO.cpp (revision 760)
+++ Anim19_OSDN/VM_FileIO.cpp (revision 761)
@@ -309,7 +309,7 @@
309309 char DirCheck[1024];
310310 strcpy(DirCheck, UserData_Folder);
311311 strcat(DirCheck, "\\");
312- strcat(DirCheck, "Vima19");
312+ strcat(DirCheck, "Equity");
313313
314314 bool check = 0;
315315 check = Search_For_Folder(DirCheck);
@@ -338,7 +338,7 @@
338338 char buf[1024];
339339
340340 strcpy(buf, UserData_Folder);
341- strcat(buf, "\\Vima19\\Vima19.ini");
341+ strcat(buf, "\\Equity\\Equity_SB.ini");
342342
343343 ReadRecentFiles = fopen(buf, "rt");
344344
@@ -398,7 +398,7 @@
398398
399399 char buf[1024];
400400 strcpy(buf, UserData_Folder);
401- strcat(buf, "\\Vima19\\Vima19.ini");
401+ strcat(buf, "\\Equity\\Equity_SB.ini");
402402
403403
404404 WriteRecentFiles = fopen(buf, "wt");
@@ -426,39 +426,39 @@
426426 // *************************************************************************
427427 void VM_FileIO::RecentFileHistory_Update()
428428 {
429- //if (!mHistoryMenu)return;
429+ if (!mHistoryMenu)return;
430430
431- //std::string sz = std::string(App->CL_Vm_Model->Path_FileName);
432- //if (mPreviousFiles[EQUITY_NUM_RECENT_FILES - 1] == sz)return;
431+ std::string sz = std::string(App->CL_Vm_FileIO->Model_Path_FileName);
432+ if (mPreviousFiles[EQUITY_NUM_RECENT_FILES - 1] == sz)return;
433433
434- //// add the new file to the list of recent files
435- //for (unsigned int i = 0; i < EQUITY_NUM_RECENT_FILES - 1; ++i)
436- //{
437- // mPreviousFiles[i] = mPreviousFiles[i + 1];
438- //}
434+ // add the new file to the list of recent files
435+ for (unsigned int i = 0; i < EQUITY_NUM_RECENT_FILES - 1; ++i)
436+ {
437+ mPreviousFiles[i] = mPreviousFiles[i + 1];
438+ }
439439
440- //mPreviousFiles[EQUITY_NUM_RECENT_FILES - 1] = sz;
440+ mPreviousFiles[EQUITY_NUM_RECENT_FILES - 1] = sz;
441441
442- //// Check for empty slots and gray out
443- //for (int i = EQUITY_NUM_RECENT_FILES - 1; i >= 0; --i)
444- //{
445- // char szText[1024];
446- // strcpy(szText, mPreviousFiles[i].c_str());
442+ // Check for empty slots and gray out
443+ for (int i = EQUITY_NUM_RECENT_FILES - 1; i >= 0; --i)
444+ {
445+ char szText[1024];
446+ strcpy(szText, mPreviousFiles[i].c_str());
447447
448- // UINT iFlags = 0;
449- // int Result = 0;
450- // Result = strcmp("<empty>", szText);
451- // if (Result == 0)
452- // {
453- // iFlags = MF_GRAYED | MF_DISABLED;
454- // }
448+ UINT iFlags = 0;
449+ int Result = 0;
450+ Result = strcmp("<empty>", szText);
451+ if (Result == 0)
452+ {
453+ iFlags = MF_GRAYED | MF_DISABLED;
454+ }
455455
456- // ModifyMenu(mHistoryMenu, EQUITY_RECENT_FILE_ID(i),
457- // MF_STRING | MF_BYCOMMAND | iFlags, EQUITY_RECENT_FILE_ID(i), szText);
458- //}
456+ ModifyMenu(mHistoryMenu, EQUITY_RECENT_FILE_ID(i),
457+ MF_STRING | MF_BYCOMMAND | iFlags, EQUITY_RECENT_FILE_ID(i), szText);
458+ }
459459
460- //// Save Changes
461- //Save_FileHistory();
460+ // Save Changes
461+ Save_FileHistory();
462462
463463 return;
464464 }
Show on old repository browser