Author Topic: Request : C::B View::notebook enhancements  (Read 73852 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #15 on: December 10, 2010, 07:29:19 am »
@daniloz :

====================================================
On thing I miss is the ability to scroll through the tabs (notebooks) by using the mouse wheel.
====================================================

I just tried this :

- Left click on a tab, dont release the button
- In the same time, use Left / Right arrow keyboard keys

Better than clicking the little black arrows !


I suggest using Ctrl+Tab and Ctrl+Shift+Tab instead, because it also jumps from the last to the first tab if you move righ through the tabs and vice versa.

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Re: Request : C::B View::notebook enhancements
« Reply #16 on: December 10, 2010, 08:45:40 am »
@jens & @earlgrey:

Thank you for the tips. Actually, I already knew Ctrl+Tab and Ctrl+Shift+Tab, but this is slightly different from what I want. By using this shortcuts we actually jump from one tab to the other.

What I wanted is something that I've seen in other editors (maybe notepad++, but I'm not sure here), which is just positioning the mouse into the tab area and using the wheel to make the tabs scroll, with out changing the focus from the actual tab, i.e. without jumping. Then, if wished, I could just click on the tab I want to go to...

[edit]
It also doesn't work on notepad++... so it must have been some other not-opensource software, most probabily Understand (http://www.scitools.com/)
[/edit]

@morten:

Please, please, please, post the patch... :-)
« Last Edit: December 10, 2010, 09:12:08 am by daniloz »

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
Re: Request : C::B View::notebook enhancements
« Reply #17 on: December 10, 2010, 09:19:07 am »
Sounds like it would cool to have something like this, instead of notebook tabs :
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #18 on: December 10, 2010, 09:41:33 am »
earlgrey: Why do you think so? To me it looks like it will waste to much vertical space.

By the way there is the open files plugin, which uses a list control to switch files. It could be useful for someone...
(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!]

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Re: Request : C::B View::notebook enhancements
« Reply #19 on: December 10, 2010, 09:50:12 am »
earlgrey: Why do you think so? To me it looks like it will waste to much vertical space.

By the way there is the open files plugin, which uses a list control to switch files. It could be useful for someone...

@oBFusCATed:

- I agree, waste of vertical space...
- I already use the Open Files Plugin, just thought the scrolling would be a neat feature, but it doesn't block my workflow... :-)

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
Re: Request : C::B View::notebook enhancements
« Reply #20 on: December 10, 2010, 11:58:46 am »
@oBFusCATed:
I agree, it was just suggestion for daniloz

@All :
Dragging the file list plugins at the right of the management winfow perfectly emulates the vertical tabs positionning, so for me it is OK
( I only use C::B since a few weeks, so I didnt know the open file plugin. )


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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Request : C::B View::notebook enhancements
« Reply #21 on: December 10, 2010, 09:06:18 pm »
Please, please, please, post the patch... :-)
Hey, I just realised it IS already in trunk! See the codesnippet here:

Code
void wxMultiColumnListCtrl::OnMouseEvent(wxMouseEvent& event)
{
    if (event.GetEventType() == wxEVT_MOUSEWHEEL)
    {
...coming from switcherdlg.cpp.

It's not exactly what you are asking for, but IMHO it's even better as you see all tabs in addition. Did you try this already?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #22 on: December 11, 2010, 08:46:03 am »
Just for the record, since yesterday evening, I have a working patch for having a tooltip when hovering over the tabs of cbAuiNotebook (our class used for the notebooks, derived from wxAuiNotebook).
It's not (yet) tested on windows.
After some code-cleaning (mostly removing debug-statements), I will attach it here, so it can be tested by more users.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #23 on: December 11, 2010, 10:47:23 am »
Jens: great news, me wonna test  :lol:
(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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #24 on: December 11, 2010, 07:08:24 pm »
Jens: great news, me wonna test  :lol:

Here comes the patch, tested on debian 64-bit and on win7.

EDIT:
Patch updated: http://forums.codeblocks.org/index.php/topic,13826.msg93167.html#msg93167
« Last Edit: December 12, 2010, 12:27:46 am by jens »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #25 on: December 11, 2010, 11:53:57 pm »
Found first bug: the tooltips show even if I'm on another virtual desktop. Happens with Enlightenment dr 17. I don't know it can happen with gnome/kde.
(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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #26 on: December 12, 2010, 12:26:05 am »
Found first bug: the tooltips show even if I'm on another virtual desktop. Happens with Enlightenment dr 17. I don't know it can happen with gnome/kde.
Should be fixed with this (updated) patch.

Edit:

Patch updated: http://forums.codeblocks.org/index.php/topic,13826.msg93178.html#msg93178
« Last Edit: December 12, 2010, 10:50:59 am by jens »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Request : C::B View::notebook enhancements
« Reply #27 on: December 12, 2010, 09:14:42 am »
Should be fixed with this (updated) patch.
...looks good to me! :-)

Just one minor note: The destructor should be virtual to avoid warnings... unless you have an implicit reason not to do so.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #28 on: December 12, 2010, 10:50:10 am »
Should be fixed with this (updated) patch.
...looks good to me! :-)

Just one minor note: The destructor should be virtual to avoid warnings... unless you have an implicit reason not to do so.
Done, also removed a warning about unused parameters.
What's still missing (not only for the new code, but the wole class) are (doxyblocks) comments.

Updated patch attached (no change of functionality).

EDIT:

Patch updated: http://forums.codeblocks.org/index.php/topic,13826.msg93186.html#msg93186
« Last Edit: December 12, 2010, 03:15:44 pm by jens »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Request : C::B View::notebook enhancements
« Reply #29 on: December 12, 2010, 12:04:33 pm »
Updated patch attached (no change of functionality).
Well, I notice another thing (which I thought was due to a background app on my PC when I tried the first time):
1.) The tooltip flickers quite ugly on Windows XP. It seems it's set a "million" times when I keep hovering over the tab. Notice that I don't move the mouse. Probably a little caching (like checking if the old tooltip is the same as the new one) might help...?!
2.) While the tooltip is showing I have no access any longer to the menu using the right mosue button. :-(

Edit: [additional info to 2.)] -> Again this is only, if I don't move the mouse. f I move the mouse a little bit on the tab and press the right mouse button I see the menu. Hence I guess it's because he tooltip is no longer shown in that case.
« Last Edit: December 12, 2010, 12:13:51 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ