Skip to content

Development#160

Merged
jsiegle merged 4 commits intoopen-ephys:developmentfrom
godwincharan:development
Sep 3, 2017
Merged

Development#160
jsiegle merged 4 commits intoopen-ephys:developmentfrom
godwincharan:development

Conversation

@godwincharan
Copy link
Copy Markdown
Contributor

Fixed the bug #65.
Analysis:
This bug is there for following reasons.
1.ElectrodeButton for channels is directly added to the ChannelMappingEditor component.
2.When we drag the button we set the visibility of the lastHoverButton which makes it visible and shows on top of other components.
3. Also finding the correct button Logic is not proper as we are not considering the buttons which are scrolled up and invisible.

Solution:

  1. Create Viewport for holding the ElectrodeButton for channels.
  2. Also create a Holder Component to hold all ElectrodeButton.
  3. Add the ElectrodeButton to Holder Component and set the size of the Holder Component to fit all buttons.
  4. Set setViewPosition for Viewport based on the scroll and drag.

More Improvement:

  1. We can remove upButton and downButton.
  2. Viewport has its own scrolling which can be used for scrolling. Currently its been hidden using code "electrodeButtonViewport->setScrollBarsShown(false,false,true,true);"

Please review and let me know the feedback @jsiegle

Analysis:
This bug is there for following reasons.
1.ElectrodeButton for channels is directly added to the ChannelMappingEditor component.
2.When we drag the button we set the visibility of the lastHoverButton which makes it visible and shows on top of other components.
3. Also finding the correct button Logic is not proper as we are not considering the buttons which are scrolled up and invisible.

Solution:
1. Create Viewport for holding the ElectrodeButton for channels.
2. Also create a Holder Component to hold all ElectrodeButton.
3. Add the ElectrodeButton to Holder Component and set the size of the Holder Component to fit all buttons.
4. Set setViewPosition for Viewport based on the scroll and drag.

More Improvement:
1. We can remove upButton and downButton.
2. Viewport has its own scrolling which can be used for scrolling. Currently its been hidden using code "electrodeButtonViewport->setScrollBarsShown(false,false,true,true);"
Analysis:
This bug is there for following reasons.
1.ElectrodeButton for channels is directly added to the ChannelMappingEditor component.
2.When we drag the button we set the visibility of the lastHoverButton which makes it visible and shows on top of other components.
3. Also finding the correct button Logic is not proper as we are not considering the buttons which are scrolled up and invisible.

Solution:
1. Create Viewport for holding the ElectrodeButton for channels.
2. Also create a Holder Component to hold all ElectrodeButton.
3. Add the ElectrodeButton to Holder Component and set the size of the Holder Component to fit all buttons.
4. Set setViewPosition for Viewport based on the scroll and drag.

More Improvement:
1. We can remove upButton and downButton.
2. Viewport has its own scrolling which can be used for scrolling. Currently its been hidden using code "electrodeButtonViewport->setScrollBarsShown(false,false,true,true);"
@jsiegle
Copy link
Copy Markdown
Member

jsiegle commented Sep 1, 2017

Thanks a lot! This fixes the issue with the electrode buttons appearing in strange places, but now it's scrolling very slowly in "REMAP" mode. Can you try to figure out what's going on there?

@godwincharan
Copy link
Copy Markdown
Contributor Author

Can you elaborate more on this.
I could not see any slowness in scrolling.

@jsiegle
Copy link
Copy Markdown
Member

jsiegle commented Sep 2, 2017

On my Linux machine, scrolling works fine until you switch to "REMAP" mode. Then, moving the scroll wheel moves the electrode buttons at a fraction of the normal speed. If you're not seeing this on your computer, then maybe it's a platform-specific issue.

Analysis:
This bug is there for following reasons.
1.ElectrodeButton for channels is directly added to the ChannelMappingEditor component.
2.When we drag the button we set the visibility of the lastHoverButton which makes it visible and shows on top of other components.
3. Also finding the correct button Logic is not proper as we are not considering the buttons which are scrolled up and invisible.

Solution:
1. Create Viewport for holding the ElectrodeButton for channels.
2. Also create a Holder Component to hold all ElectrodeButton.
3. Add the ElectrodeButton to Holder Component and set the size of the Holder Component to fit all buttons.
4. Set setViewPosition for Viewport based on the scroll and drag.

More Improvement:
1. We can remove upButton and downButton.
2. Viewport has its own scrolling which can be used for scrolling. Currently its been hidden using code "electrodeButtonViewport->setScrollBarsShown(false,false,true,true);"

Implemented the improvements. Removed the upButton and DownButton. We have scrolling bar on the right to do the same. �
Now scrolling in Remap works  fine.
@godwincharan
Copy link
Copy Markdown
Contributor Author

Fixed the problem.
Can you please check now.

Copy link
Copy Markdown
Member

@jsiegle jsiegle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that fixed it!

@jsiegle jsiegle merged commit 2232816 into open-ephys:development Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants