Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2615 times and has 5 replies Next Thread
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Resizable photo panel?

In this thread , it is discussed the possibility of changing the size of the photo panel.

The simple solution to make it resizable involves other consequences:
- deformation without respect of the ratio
- maximum size limit not taken into account
- truncated text when changing language

The solution to include this size change in user preferences does not seem possible from a plug-in.

Is it possible to change the size of the photo panel as needed?
----------------------------------------
EnkoNyito
[Feb 19, 2018, 3:55:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Resizable photo panel?

You can accept that the dialog box showing the photo panel is resizable by calling
dialog.setResizable(true);
in displayView method.
But of course, you main have to pay more attention to the layout of the panel...
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Feb 21, 2018, 8:53:11 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Re: Resizable photo panel?

You can accept that the dialog box showing the photo panel is resizable by calling
dialog.setResizable(true);
in displayView method.
That's what I meant by simple solution (manual resizing). wink

But of course, you main have to pay more attention to the layout of the panel...
I noticed that there is a minimum size depending on LookAndFeel and language chosen.


On the other hand, is it normal that the maximum size is not taken into account when resizing?

Can you confirm that it is not possible to add a new user preference from a plug-in?

From your experience, what do you think of the option suggested by ndorigatti which is to add a button to change the size of the panel?
----------------------------------------
EnkoNyito
[Feb 22, 2018, 1:13:13 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Resizable photo panel?

setMinimumSize was added to Window class in Java 6, but there's still no setMaximumSize method sad

There's no API in UserPreferences class to manage additional preferences, and nothing in the user interface for that. At the moment, this can be done only by subclassing this class in a derived version of Sweet Home 3D.

Managing the size of the panel isn't difficult, just call dialog.setResizable(true). I checked in PhotoPanel class and the photo component at the top will be enlarged accordingly. But the space at the left and right of the components at the bottom may look uselessly large if you don't manage their layout differently. It's probably the reason why I didn't make the dialog resizable.
An other option could be to add some zoom -/+ buttons to view details in the photo component, like in the background image import wizard.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Feb 22, 2018, 2:19:27 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
enkonyito
Advanced Member
Member's Avatar


Joined: May 28, 2015
Post Count: 601
Status: Offline
Reply to this Post  Reply with Quote 
Re: Resizable photo panel?

I followed your advice by changing the layout of the components under the image preview.

with dummy label at left and right


without dummy label at left and right


Which one is best?
----------------------------------------
EnkoNyito
[Feb 24, 2018, 4:10:46 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3948
Status: Offline
Reply to this Post  Reply with Quote 
Re: Resizable photo panel?

Top version is best 😀
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Feb 24, 2018, 4:14:52 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved