Joined: Jul 4, 2011
Post Count: 22
Status:
Offline
add "faivorites"
Hello Emmanuel,
A good addition to people who use SH3D extensively would be the ability for the software to remember frequently used text. For example, when you're filling the room name text field you're almost always picking an item from small set, so why not have the field have those items built on it? The user could pick one item or add an item to the collection. Those items can have an entry on the UserPreferences Class so they can be persisted. I've written a Widget that does those things, it's a kind of a checkbox that lets the user add and remove items from it. Here's a screenshot :
Of course, the user can ignore the "bookmarks" and go on to type anything else.
Our company would really like to have this feature integrated into SH3D and I think it can be useful to many people too. Please let me know what you think. Thanks.
Joined: Jul 4, 2011
Post Count: 22
Status:
Offline
Re: add "faivorites"
Sorry for the indescriptive title. I was in a hurry and I forgot to re-write it. Here's a small app too so you can see it in action. Hope you like it :) http://dl.free.fr/veCrgE093
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: add "faivorites"
As I'm not very found of editable combo boxes and similar components, I preferred to add an auto completion feature inspired from this blog article. The list of suggested strings I implemented in Sweet Home 3D is automatically updated and saved with preferences, as and when new texts are entered in the text fields of furniture, room and label dialogs. It's also possible to have a default list of localized texts, and at this time, I just set the values for room names with the autoCompletionStrings#RoomName key in DefaultUserPreferences.properties (the two other keys are autoCompletionStrings#HomePieceOfFurnitureName and autoCompletionStrings#LabelText).
I hope you'll like it. Please test it the last version committed in CVS before I create a public beta.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Jul 4, 2011
Post Count: 22
Status:
Offline
Re: add "faivorites"
Hi Emmanuel. Thank you for your response. Unfortunately mere autocompletion without a dropdown doesn't work for us. We're using PC Tablets and we have to keep the number of clicks to a minimum whenever possible. As it is now, if two strings start with a commun fragment, and the user intends to use the second one (alphabetical order wise), he has to type all those characters of the fragment up to the first charcater where the two strings diverge. For example :
salle à manger salle de bain
Here if the user wants to produce "salle de bain", he has to type : "salle d".
So I really believe a dropdown is more effective here. It also has the benefit of letting the user see at a glance the out-of-box input and remove items he no longer needs.
Here I attached the component I've written so you can have a look or customize it if you want. I hope you'll reconsider. Thanks
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: add "faivorites"
I understand your point but sorry, as said earlier, I don't like editable combo boxes. If ever I find a nicer way, I'll improve the changes I programmed.
By the way, you didn't explain what your project is about. It would be nice to share this information with the community.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Jul 4, 2011
Post Count: 22
Status:
Offline
Re: add "faivorites"
All right thank you. The project is internal to the company and, apart from some specific features, the core won't be of much use to the community. So, we probably will acquire the edit licence for SH3D.
Joined: Nov 3, 2009
Post Count: 11
Status:
Offline
Re: add "faivorites"
Why the wompletion list is displayed only when there is one result ?
I think it will be better if when we wrote the first character we have immediatly several (4 or 5) proposition begining with this letter, like google... I do not know a user that not understand and use this google completion. Morover, and for tablet user it s a benediction.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: add "faivorites"
I didn't think about the Google way (hope they didn't patent it!). I'll see how it can be done in Java.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator