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: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4231 times and has 2 replies Next Thread
danielfranklinr
Newbie



Venezuela
Joined: Apr 5, 2012
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Preload Structure Plans

Hello everyone.

I got some other questions and i was hoping that you could give me some bearings to get to the answers.

I was thinking in the possibility to add some preloaded plans of rooms in the application so that the users could have some starting points when they begin to design their plans.

I made up some cuts and slices through the code and reached the Furniture Catalog Pane and a bit later to the class CatalogPieceOfFurniture, but the info it contains is pretty specific to furnitures.

The only solution i'm thinking of is to create a whole new Panel for the plans. Do you think is possible at all? Has anyone worked on this?

The other question i have is a lot trickier for what i managed to see in the code. Does anyone tried to add a button to make the dimensions of walls show in the PlanPane. Any hints in this?

Finally, i read in another post that the UML diagrams posted are not updated, is there any diagram updated? confused

Thanks for the help in advance!.
[Apr 9, 2012, 2:46:40 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: 9427
Status: Offline
Reply to this Post  Reply with Quote 
Re: Preload Structure Plans

The only solution i'm thinking of is to create a whole new Panel for the plans. Do you think is possible at all?
You could create a new panel that will propose a list with icons of the different plans, or an Open from sample menu that would list these plans in a sub menu. Then it would copy the sh3d file of the sample home from a resource file to a temporary file and open it with existing classes of Sweet Home 3D.

Has anyone worked on this?
I did, but never programmed it yet, mainly because of the time required to create a library of sample plans based only on default models (to make them as small as possible).

The other question i have is a lot trickier for what i managed to see in the code. Does anyone tried to add a button to make the dimensions of walls show in the PlanPane. Any hints in this?
You can do that with a plug-in action by setting its SMALL_ICON and TOOL_BAR properties. Studying existing plug-ins (like the Advanced plan editing plug-in) should help you. If you prefer to work on Sweet Home 3D code, study how menu items and tool bar buttons are created in the HomePane class.

Finally, i read in another post that the UML diagrams posted are not updated, is there any diagram updated
No yet. But there weren't so many classes added to the model layer (mainly the Level class which is bound to many other classes).

By the way, it would be nice to present yourself and your goal to the community.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Apr 9, 2012, 3:54:13 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
danielfranklinr
Newbie



Venezuela
Joined: Apr 5, 2012
Post Count: 7
Status: Offline
Reply to this Post  Reply with Quote 
Re: Preload Structure Plans

Hehe, you're right. My name is Daniel, I'm from Venezuela. I'm sorry if i made some mistakes writing but English is not my native language.

I'm a Java Developer helping a friend to make some changes to the Software. Basically he wants to achieve two things:

1.- Offer the users the option to pick a handful of preloaded plans and if it were possible give them the capacity to drag into the plan predesigned spaces: L shaped rooms, Square rooms, something like that.

2.- On the other hand he would like that the users could toggle the dimensions of the walls or room areas in the plan view.

So i was thinking to give it a try and share the results if it was a success, because he can't be the only one trying to achieve that.

If you have some comments i would love to discuss them, it's my first time messing with the code of an open source project. I don't want to make something poor because it would be a shame.
[Apr 10, 2012, 2:14:47 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 2024 Space Mushrooms - All rights reserved