User forums > General (but related to Code::Blocks)

OpenFilesList plugin

(1/2) > >>

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 )

earlgrey:
A simple new event handler for tree selection change does it ( I have it working on svn 9857, 5mn coding ! )

openfileslist.cpp :

--- Code: ---const int idTreeSelCHanged = wxNewId();
EVT_TREE_SEL_CHANGED( idOpenFilesTree, OpenFilesListPlugin::OnTreeSelectionChanged)
OpenFilesListPlugin::OnTreeSelectionChanged(...)
{
   copy & paste of OpenFilesListPlugin::OnTreeItemActivated(..) code
}

--- End code ---
openfileslist.h :

--- Code: ---void OnTreeSelectionChanged(wxTreeEvent &event);

--- End code ---

It is really great.

What is missing is an option dialog for openfileslist plugin.

oBFusCATed:
Patch?

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 -

earlgrey:
Done on svn9915

Go to trunk/src/plugins/openfileslist then :


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

--- End code ---

Enjoy.

Navigation

[0] Message Index

[#] Next page

Go to full version