Author Topic: Open files list single click  (Read 4562 times)

Offline Krice

  • Almost regular
  • **
  • Posts: 159
Open files list single click
« on: February 09, 2025, 12:25:05 pm »
I think open files list would work better if it had single click select to choose the source file rather than double click. It's driving me crazy to have to double click to view the file, I guess mainly because how it's implemented in Visual Studio (the right way). I tried to search if anyone had mentioned this, but no one, really? Also, Visual Studio doesn't even show tabs for files, because if you have them in the list it's not needed, because you can just select the file from the list. I'm using 20.03.

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 110
  • Where there is a will, there is a way.
Re: Open files list single click
« Reply #1 on: February 09, 2025, 01:32:46 pm »
It is this code in src/plugins/openfileslist/openfileslistplugin.cpp which handles that event:
Code
EVT_TREE_ITEM_ACTIVATED(idOpenFilesTree, OpenFilesListPlugin::OnTreeItemActivated)
But there's no such event that will be triggered when the item is single-clicked in wxTreeEvent.
Probably this thread.
« Last Edit: February 09, 2025, 03:19:22 pm by Grit Clef »
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline Krice

  • Almost regular
  • **
  • Posts: 159
Re: Open files list single click
« Reply #2 on: February 10, 2025, 12:40:49 pm »
So it's possible or not? Is wxWidgets blocking this too, like it always does?

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 110
  • Where there is a will, there is a way.
Re: Open files list single click
« Reply #3 on: February 10, 2025, 12:49:46 pm »
Maybe possible; that depends on whether the devs will accept adding some extra code in the source.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline Krice

  • Almost regular
  • **
  • Posts: 159
Re: Open files list single click
« Reply #4 on: February 20, 2025, 12:03:10 pm »
Source code for open files list is short, but when I was reading it I was surprised that it has almost no comments explaining what the code does. Bad developers! Trying to understand wxWidgets antics is annoying, it's just so wacky style of programming.

Offline Krice

  • Almost regular
  • **
  • Posts: 159
Re: Open files list single click
« Reply #5 on: February 28, 2025, 05:19:15 pm »
QtCreator has also one click open files list. It seems to be the standard. But other than that QtCreator, at least the open source version, is not that great. It really made me think about how lucky we are to have Code::Blocks which I think is the only (useful) open source IDE. Most so called IDEs are more like text editors, like QtCreator.

Offline christo

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: Open files list single click
« Reply #6 on: February 28, 2025, 07:00:47 pm »
I've a patch which works based on https://forums.wxwidgets.org/viewtopic.php?t=43852

https://github.com/josephch/codeblocks/commit/9344b8b216ad593a1b0117211c946b2a8af04f1c

It works. It is really easier to navigate with single click.
« Last Edit: February 28, 2025, 07:15:06 pm by christo »