A simple new event handler for tree selection change does it ( I have it working on svn 9857, 5mn coding ! )
openfileslist.cpp :
const int idTreeSelCHanged = wxNewId();
EVT_TREE_SEL_CHANGED( idOpenFilesTree, OpenFilesListPlugin::OnTreeSelectionChanged)
OpenFilesListPlugin::OnTreeSelectionChanged(...)
{
copy & paste of OpenFilesListPlugin::OnTreeItemActivated(..) code
}
openfileslist.h :
void OnTreeSelectionChanged(wxTreeEvent &event);
It is really great.
What is missing is an option dialog for openfileslist plugin.
Done on svn9915
Go to trunk/src/plugins/openfileslist then :
$ patch < openfileslistplugin-cpp_svn9915_oflsc.patch
$ patch < openfileslistplugin-h_svn9915_oflsc.patch
Enjoy.
Previous patches produces segfaults, due to a NULL wxTreeItemData in OpenFilesListPlugin::OnTreeSelChanged(wxTreeEvent &event).
Attached new patches for svn9916 that correct this.
Go to trunk/src/plugins/openfileslist then :
$ patch < oflp-sc_svn9916_cpp.patch
$ patch < oflp-sc_svn9916_h.patch
Enjoy.