Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode
Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode [message #46025] Fri, 19 February 2016 22:26 Go to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello all!

If Stacking mode enabled Ctrl+Alt+left key kink the composite tab and goes on. And the Ctrl+Alt+right gets trapped on the composite tab!
Both situations not very pleasant.

It is much easier to define a new hot key specially for integral tab, such as Ctrl+Alt+Shift+right and Ctrl+Alt+Shift+left. Ctrl+Alt+right and Ctrl+Alt+left should work as in the Stacking mode off - turns show all tabs, including all component tabs in the composite tab.

With best regards Navadvipa Chandra das.
Re: Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode [message #46029 is a reply to message #46025] Sun, 21 February 2016 14:13 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

The bug is true! It is funny, because it's only stuck only in right direction. Try to move from right to left Smile It would be hard to repair, because the tab order is dynamically change. So we should remember direction and last visited tab to fix this? It would be good if original author of this feature uttered in this thread.

For now you can turn off this feature and use hockeys normally (Personally, I don't use stacking).

Added to redmine: http://www.ultimatepp.org/redmine/issues/1385.

Sincerely,
Klugier


U++ - one framework to rule them all.
Re: Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode [message #46031 is a reply to message #46029] Sun, 21 February 2016 15:53 Go to previous messageGo to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello Zbigniew Rębacz and all!

Thanck you Rębacz for the answer!

1. I'll describe the logic. Imagine that the tabs are the pancakes, which lie on the ground on the same line. From left to right line. And integral tab is a stack of pancakes - it has some height. This is a mountain. This roller coaster has two sides - left and right. These slopes have different inclination, like real mountains. The bottom pancake in grief is a tab that is visible in the composite tab. It is always the same in each composite tab. If we come to the mountain on the left side, we first find ourselves on the bottom pancake, and the mountains climb with the help of Ctrl+Alt+Right, and descend from the mountains with the help of Ctrl+Alt+Left. Once we reach the top of the mountain we have two options - either using Ctrl+Alt+Right to jump from the mountain to the next tab, which on earth is right and simultaneously move a pancake from the top of the mountain to the bottom of the mountain, or quietly walking down the mountain using Ctrl+Alt+Left. But if we get on the mountain on the right side, all the same, but keys Ctrl+Alt+Right and Ctrl+Alt+Left switch places. The very first time we again find ourselves at the bottom pancake, then key Ctrl+Alt+Left to up, and the Ctrl+Alt+Right descends. Once we reach the top of the mountain, next press Ctrl+Alt+Left leads to the jump from the mountain to the tab that is on the earth is to the left and simultaneously move a pancake from the top of the mountain to the bottom of the mountain, and the Ctrl+Alt+Right - maybe quietly down the mountain step by step.

2. Plus it would be nice to have keys Shift+Ctrl+Alt+Right and Shift+Ctrl+Alt+Left which would just scroll through all tabs within a single integral tab in a circle.

3. Plus it would be nice to have a key for fast pereklyucheniya between tabs *.cpp and *.h in a circle. For example MyFile.cpp and MyFile.h press F11. I this feature not found in U++ .

Thanks!

With best regards Navadvipa Chandra das.

[Updated on: Sun, 21 February 2016 15:56]

Report message to a moderator

Re: Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode [message #46084 is a reply to message #46029] Tue, 01 March 2016 22:51 Go to previous messageGo to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello Zbigniew Rębacz and all!

I fixed the behavior of keys Ctrl+Alt+Right and Ctrl+Alt+Left.
You need to write about it in Redmine, so that no one was doing this work over again.
But I don't know how to change code in U++.

Here is a list of changes:

EditorTabBar.cpp :
Changed void Ide::TabsLR(...) function.
ide.cpp
Changed the function call TabsLR
ide.h
Changed the function declaration TabsLR(...)
TabBar.h - add this :
enum class JumpDirect { Left, Right };
class JumpStack : Moveable< JumpStack > { ...
JumpStack jump_stack;
int GetTabLR( JumpDirect jd );
int GetLR( int c, JumpDirect jd );
Changed function virtual void CursorChanged()
TabBar.cpp
Added function bodies
int GetTabLR( JumpDirect jd );
int GetLR( int c, JumpDirect jd );
Changed function void TabBar::Clear() { add jump_stack.Reset();}

Please check the code. Maybe something will advise. And make the changes in U++.

Thank you very much!

With best regards Navadvipa Chandra das.

[Updated on: Wed, 02 March 2016 08:29]

Report message to a moderator

Re: Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode [message #46086 is a reply to message #46029] Wed, 02 March 2016 11:38 Go to previous messageGo to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello Zbigniew Rębacz and all!

I've updated the list of changes in previous message.

Thank you very much!

With best regards Navadvipa Chandra das.
Re: Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode [message #46096 is a reply to message #46025] Fri, 04 March 2016 22:33 Go to previous messageGo to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello all!

New version.
New opportunities.
Tidied the function code int GetTabLR( JumpDirect jd );

Added the ability to spin around the cycle in the composite tab with the Ctrl+Alt+B left Ctrl+Alt+N to the right. Now in U++ can only be spin cycle in the composite tab with the mouse and only right. Using the keyboard is impossible, but it's not very good.

EditorTabBar.cpp :
Changed void Ide::TabsLR(...) function.
Add function void Ide::TabsStackLR( TabBar::JumpDirect jd )

ide.cpp
in function ide::Key(...)
Changed the function call TabsLR
and add
case K_CTRL|K_ALT_B:
TabsStackLR( TabBar::JumpDirect::Left );
return true;
case K_CTRL|K_ALT_N:
TabsStackLR( TabBar::JumpDirect::Right );
return true;

ide.h
Changed the function declaration TabsLR(...)
Add function declaration TabsStackLR(...)

TabBar.h - add this :
enum class JumpDirect { Left, Right };
class JumpStack : Moveable< JumpStack > { ...
JumpStack jump_stack;
int GetTabLR( JumpDirect jd );
int GetTabStackLR( JumpDirect jd );
int GetLR( int c, JumpDirect jd );
Changed function virtual void CursorChanged()

TabBar.cpp
Added function bodies
int GetTabLR( JumpDirect jd );
int GetTabStackLR( JumpDirect jd );
int GetLR( int c, JumpDirect jd );
Changed function void TabBar::Clear() { add jump_stack.Reset();}


With best regards Navadvipa Chandra das.
Re: Ridiculous behavior of the hotkeys Ctrl+Alt+right and Ctrl+Alt+left in the Stacking mode [message #46147 is a reply to message #46096] Thu, 17 March 2016 23:05 Go to previous message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello all!

Zbigniew Rębacz revealed to me the secret of professional changes display source code in U++! Thank you! Send a new file. Really convenient. Here is the secret:

cd $(uppdir)
rm -r uppsrc
svn checkout svn://www.ultimatepp.org/upp/trunk/uppsrc
# Apply your changes to source code
cd uppsrc
svn diff > ../MyFix.diff


Thank!

With best regards Navadvipa Chandra das.
Previous Topic: Can't Ultimate++ use Japanese?
Next Topic: Big problem updating upp from version 6163 to 9614
Goto Forum:
  


Current Time: Fri Mar 29 07:43:16 CET 2024

Total time taken to generate the page: 0.01573 seconds