News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

OpenFilesList plugin

Started by earlgrey, September 07, 2014, 06:12:15 PM

Previous topic - Next topic

earlgrey

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 )
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

earlgrey

#1
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.
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

earlgrey

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 -
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

earlgrey

Done on svn9915

Go to trunk/src/plugins/openfileslist then :


$ patch < openfileslistplugin-cpp_svn9915_oflsc.patch
$ patch < openfileslistplugin-h_svn9915_oflsc.patch


Enjoy.
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

earlgrey

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.
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

oBFusCATed

Sorry for the late reply.

If you're still interested in this change you should make it configurable.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]