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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Request : C::B View::notebook enhancements
« Reply #105 on: June 08, 2011, 08:02:43 am »
I have a "half finished" work about "tab on left/right".
Is the code useful?
What component is modified? You can post a patch anyways to try...
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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #106 on: August 30, 2011, 09:34:02 am »
The notebook enhancements are pretty good, but there is one thing that is really annoying.
The problem is that when I click on a tab, the tab/notebook control gets the focus.
This means that all subsequent key presses (left/right arrow, home, end) are handled by the notebook, not the editor.

This is very annoying because, when I click on a tab, my intention is to work with the file in that tab,
not to use the keys to switch tabs or go to the first tab.

Jens, do you think this can be fixed?

Steps:
1. Open many files
2. Click on a tab
3. Press home
4. The result is that the first tab is selected and the notebook is switched to it. What should have happened is to go to to the beginning of the file.
(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 #107 on: August 30, 2011, 02:08:45 pm »
The notebook enhancements are pretty good, but there is one thing that is really annoying.
The problem is that when I click on a tab, the tab/notebook control gets the focus.
This means that all subsequent key presses (left/right arrow, home, end) are handled by the notebook, not the editor.

This is very annoying because, when I click on a tab, my intention is to work with the file in that tab,
not to use the keys to switch tabs or go to the first tab.

Jens, do you think this can be fixed?

Steps:
1. Open many files
2. Click on a tab
3. Press home
4. The result is that the first tab is selected and the notebook is switched to it. What should have happened is to go to to the beginning of the file.
This should be possible, but would lead to problems on windows, where I force the focus to the tabcontrol, if mousewheelscrolling for tabs is allowed and the mouse-pointer is over the tabs (of course), because otherwise the mousewheel-event is not catched.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #108 on: August 30, 2011, 02:54:11 pm »
Linux-only solution is OK  8)
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #109 on: October 19, 2011, 04:15:23 pm »
Another enhancement request:

Steps to reproduce:
1. Open many tabs
2. Make the last tab visible and active
3. Double click on the last tab
4. When switched to the minimal perspective the last tab is not at the right of the notebook, but there is empty space. Probably this could be optimized.
(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 #110 on: October 19, 2011, 04:59:48 pm »
Another enhancement request:

Steps to reproduce:
1. Open many tabs
2. Make the last tab visible and active
3. Double click on the last tab
4. When switched to the minimal perspective the last tab is not at the right of the notebook, but there is empty space. Probably this could be optimized.
This should not happen (and it used to work correctly, since I added the MinimizeFreeSpace-function in cbAuiNotebook), but I saw this issue also.
I will try to find the cause and fix it.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Request : C::B View::notebook enhancements
« Reply #111 on: October 20, 2011, 12:28:05 am »
Another enhancement request:

Steps to reproduce:
1. Open many tabs
2. Make the last tab visible and active
3. Double click on the last tab
4. When switched to the minimal perspective the last tab is not at the right of the notebook, but there is empty space. Probably this could be optimized.
This should not happen (and it used to work correctly, since I added the MinimizeFreeSpace-function in cbAuiNotebook), but I saw this issue also.
I will try to find the cause and fix it.

Should be fixed in trunk (svn r 7503).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #112 on: October 21, 2011, 12:43:13 pm »
Hm, Jens, is moving a tab with the mousewheel still working?
It doesn't for me. CentOS 5.6, debugger branch 7509.
(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 #113 on: October 21, 2011, 05:00:36 pm »
Hm, Jens, is moving a tab with the mousewheel still working?
It doesn't for me. CentOS 5.6, debugger branch 7509.
No, does not work here either.

I did not change anything related to it.
I will look into it.


It still works, sorry.
I tried it in my "Logs & others", but the amount of tabs I have open fits into it exactly, so nothing happens and I just thought, that it is broken.
« Last Edit: October 21, 2011, 05:18:36 pm by jens »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Request : C::B View::notebook enhancements
« Reply #114 on: October 24, 2011, 10:01:06 pm »
Hm, It works on my gentoo, but doesn't on the centos, I'll check tomorrow again.

On the centos another problem I see is that when I have tabs side by side and I open a new file,
the tab is added to the first notebook, not the active one. And again it works on my gentoo :(
I hate 'stable' distros :(
(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!]