Feature Request: Add horizontal split view

A forum for research and development of the user interface of FreeCAD

Moderator: agryson

User avatar
Joel_graff
Posts: 1617
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby Joel_graff » Mon Nov 27, 2017 5:52 pm

microelly2 wrote:
Mon Nov 27, 2017 4:07 pm
resizing and moving is not a big deal.
That looks like it'll do for what I need. :)
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
yorik
Site Admin
Posts: 11618
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Feature Request: Add horizontal split view

Postby yorik » Tue Nov 28, 2017 1:28 pm

microelly2 wrote:
Mon Nov 27, 2017 4:07 pm
resizing and moving is not a big deal.
Yeah, that could be a way to do it:

1) hide the subwindow borders
2) tile the subwindows a certain "known" way (split horizontal, quad , etc)
3) handle resize events so when you resize one, others resize too

But certainly someone else did it before...
User avatar
Kunda1
Posts: 6220
Joined: Thu Jan 05, 2017 9:03 pm

Re: Feature Request: Add horizontal split view

Postby Kunda1 » Tue Nov 28, 2017 2:25 pm

yorik wrote:
Tue Nov 28, 2017 1:28 pm
microelly2 wrote:
Mon Nov 27, 2017 4:07 pm
resizing and moving is not a big deal.
Yeah, that could be a way to do it:

1) hide the subwindow borders
2) tile the subwindows a certain "known" way (split horizontal, quad , etc)
3) handle resize events so when you resize one, others resize too

But certainly someone else did it before...
Yorik, I could think of QGIS and possibly Krita.. do you have any idea who else would need such a function that uses Qt5 ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
wmayer
Site Admin
Posts: 15126
Joined: Thu Feb 19, 2009 10:32 am

Re: Feature Request: Add horizontal split view

Postby wmayer » Tue Nov 28, 2017 3:03 pm

Try this:

Code: Select all

Gui.createViewer(4)
User avatar
microelly2
Posts: 4508
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby microelly2 » Tue Nov 28, 2017 3:47 pm

wmayer wrote:
Tue Nov 28, 2017 3:03 pm
Try this:

Code: Select all

Gui.createViewer(4)
interesting, how I can bring shapes into this object?
wmayer
Site Admin
Posts: 15126
Joined: Thu Feb 19, 2009 10:32 am

Re: Feature Request: Add horizontal split view

Postby wmayer » Tue Nov 28, 2017 4:14 pm

Code: Select all

v=Gui.createViewer(4)
view=v.getViewer(0)
node = ... # Inventor nodes
view.setSceneGraph(node)
User avatar
microelly2
Posts: 4508
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby microelly2 » Tue Nov 28, 2017 9:39 pm

works fine,
now the next question: :roll:
is there a way to change the sizes of the "subwindows"
I can do this using the mouse drag, is there a method to do it by script
or do I have to go into the Widget with native Qt methods
wmayer
Site Admin
Posts: 15126
Joined: Thu Feb 19, 2009 10:32 am

Re: Feature Request: Add horizontal split view

Postby wmayer » Wed Nov 29, 2017 7:59 am

is there a way to change the sizes of the "subwindows"
I don't know. You can try to move the splitter by script.
User avatar
Joel_graff
Posts: 1617
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Feature Request: Add horizontal split view

Postby Joel_graff » Wed Dec 06, 2017 1:45 am

This issue was solved for me several posts back in this thread - I can manage it in code nicely enough.

That said, it seems like maybe an official feature request should be submitted... If so, what, specifically, should be included in the request?
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
regis
Posts: 656
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: Feature Request: Add horizontal split view

Postby regis » Fri Dec 08, 2017 3:10 pm

No nknowledge in this sector, but just to say that is there a way to implement the blender like splitting of views, it is very easy and allows for many combinations?