Is it possible to implement a "single-click" option in the OpenFilesList plugin : Instead of double-clicking on a file name to display it, I would like this to be possible with a single-click.
Regards -
( It is just a suggestion, not an order , neither a request )
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.
Patch?
Tomorrow or thursday on latest svn available, I'm falling asleep now.
Note it changes the behaviour of the plugin, double-click event handler is then unuseful.
Regards -
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.
Sorry for the late reply.
If you're still interested in this change you should make it configurable.