Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Begin implementation of "scroll to zoom" functionality #906

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

etosan
Copy link

@etosan etosan commented Feb 11, 2017

Intent of this tiny change is to modify "database overview" model
in such a way, that "scroll to zoom" behaviour is possible.

Changes made affect these two files:
modified: libpgmodeler_ui/src/modelwidget.cpp
modified: libpgmodeler_ui/src/modelwidget.h

These changes finalize modifications to ease navigation in large
projects with standard, 3-button and scroll wheel enabled mouse.

Users now can zoom in and out and pan around the database really
quickly. This is also immensely useful, when analyzing already
existing databases with big numbers of tables.

Code expects this behaviour to be toggleable, given some users
might be used to "scroll wheel to pan up and down" in some
environments, on some platforms.

Second phase would be adding gui toggle into the preferences
dialog and code to config file praser. Although I tried really
hard, I was unable to modify both the gui or config parsing
on my machine.

Quick zoomability also uncovered new tiny glitch as well,
where in small database models, database view ends up in
upper left corner, when fully zoomed out. This can get
pretty confusing on high zoom out levels.

It would be preferrable instead, if model remained centered
to the pgmodeler window, when zooming out too far.
Unfortunately I don't understand the code well enough to do
that either, but I am recording my intent in this commit.

Intent of this tiny change is to modify "database overview" model
in such a way, that "scroll to zoom" behaviour is possible.

Changes made affect these two files:
	modified:   libpgmodeler_ui/src/modelwidget.cpp
	modified:   libpgmodeler_ui/src/modelwidget.h

These changes finalize modifications to ease navigation in large
projects with standard, 3-button and scroll wheel enabled mouse.

Users now can zoom in and out and pan around the database really
quickly. This is also immensely useful, when analyzing already
existing databases with big numbers of tables.

Code expects this behaviour to be toggleable, given some users
might be used to "scroll wheel to pan up and down" in some
environments, on some platforms.

Second phase would be adding gui toggle into the preferences
dialog and code to config file praser. Although I tried really
hard, I was unable to modify both the gui or config parsing
on my machine.

Quick zoomability also uncovered new tiny glitch as well,
where in small database models, database view ends up in
upper left corner, when fully zoomed out. This can get
pretty confusing on high zoom out levels.

It would be preferrable instead, if model remained centered
to the pgmodeler window, when zooming out too far.
Unfortunately I don't understand the code well enough to do
that either, but I am recording my intent in this commit.
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.

None yet

1 participant