Changeset 2315

Show
Ignore:
Timestamp:
03/10/10 12:11:26 (5 months ago)
Author:
ws79
Message:

re #435 : Added code to add a Plugin Manager option to the FalconView Tool menu, and to run the Plugin Manager executable when the option is selected.

Location:
FalconView/trunk/public/Applications/FalconView
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • FalconView/trunk/public/Applications/FalconView/fvw.cpp

    r1968 r2315  
    114114    ON_COMMAND(ID_TOOLS_TEST, OnToolsTest)      // added manually by DEP 31 July 96 
    115115    ON_COMMAND(ID_SLAT_TOOL, OnSLAT)                // added manually by WHS on 14 Mar 08 
     116    ON_COMMAND(ID_PLUGIN_MANAGER, OnPluginManager)              // added manually by WHS on 9 Mar 2010 
    116117   ON_COMMAND(ID_SAVE_ALL, OnSaveAll) 
    117118   ON_UPDATE_COMMAND_UI(ID_SAVE_ALL, OnUpdateSaveAll) 
     
    14541455 
    14551456 
     1457void CFVApp::OnPluginManager()  
     1458{ 
     1459    // use ShellExecute() to run PluginManager.exe located in Program Files\PFPS\falcon 
     1460    CString pluginmanager_path = PRM_get_registry_string("Main", "HD_DATA", "") + "\\..\\PluginManager.exe"; 
     1461 
     1462   ShellExecute(AfxGetMainWnd()->m_hWnd, "open", pluginmanager_path, NULL, NULL, SW_SHOWNORMAL); 
     1463} 
     1464 
     1465 
     1466 
    14561467///////////////////////////////////////////////////////////////////////////// 
    14571468// MRU file list default implementation 
  • FalconView/trunk/public/Applications/FalconView/fvw.h

    r81 r2315  
    120120    afx_msg void OnToolsTest(); 
    121121    afx_msg void OnSLAT(); 
     122    afx_msg void OnPluginManager();  
    122123    afx_msg void OnPurgeRecentFileList(); 
    123124    afx_msg void OnUpdatePurgeRecentFileList(CCmdUI* pCmdUI); 
  • FalconView/trunk/public/Applications/FalconView/fvw.rc

    r2289 r2315  
    414414        MENUITEM "Photo Geotagging Tools...",   ID_PHOTO_GEOTAGGING_TOOL 
    415415        MENUITEM "Solar Lunar Analysis Tool",   ID_SLAT_TOOL 
     416        MENUITEM "Plugin Manager",              ID_PLUGIN_MANAGER 
    416417    END 
    417418    POPUP "O&ptions" 
  • FalconView/trunk/public/Applications/FalconView/mainfrm.cpp

    r2259 r2315  
    952952 
    953953 
     954    // check to see if the Plugin Manager is currently installed (check if PluginManager.exe exists in Program Files\PFPS\falcon); 
     955    // if the Plugin Manager is NOT installed, remove the Plugin Manager item from the Tools menu... 
     956    CString pluginmanager_path = PRM_get_registry_string("Main", "HD_DATA", "") + "\\..\\PluginManager.exe"; 
     957    if (!CFile::GetStatus(pluginmanager_path, status)) 
     958    { 
     959        // file does not exist, so remove the Plugin Manager item from the Tools menu... 
     960        if (pToolsMenu) 
     961            pToolsMenu->RemoveMenu(ID_PLUGIN_MANAGER, MF_BYCOMMAND); 
     962    }    
     963 
     964 
    954965    // Add the "optional" menu items to the Tools menu as needed. 
    955966    // In Debug builds, memory debugging items are added. 
  • FalconView/trunk/public/Applications/FalconView/resource.h

    r2180 r2315  
    30543054#define ID_TAB_EDIT_PASTE               35055 
    30553055#define ID_MDM_SCALE_TO_EXTENTS         35056 
     3056#define ID_TOOLS_PLUGINMANAGER          35057 
     3057#define ID_PLUGIN_MANAGER               35058 
    30563058#define IDRANGE_OVERLAY_VIEW_MENU_1     36000 
    30573059#define IDRANGE_OVERLAY_VIEW_MENU_1000  37000 
     
    36513653#ifndef APSTUDIO_READONLY_SYMBOLS 
    36523654#define _APS_NEXT_RESOURCE_VALUE        4816 
    3653 #define _APS_NEXT_COMMAND_VALUE         35057 
     3655#define _APS_NEXT_COMMAND_VALUE         35059 
    36543656#define _APS_NEXT_CONTROL_VALUE         4788 
    36553657#define _APS_NEXT_SYMED_VALUE           34957