thanks for the suggestion. I believe i read a sort-of suggestion once before but couldn't find it in this forum..
Yes it was me, I sent it as a PM but wanted to post it here too with some modifications, then I've been busy and lost the way, so finally here I am back late (and still busy...)
I think your apprauch (a converter) is a good one. [...] About your quick hack: isn't is a matter of enhancing your converter script?
Yes I think so, and enhancing it to support all of the ClanLib components is trivial, requiring just some copy/paste in the switch statement and very little mods (I think I'll rewrite the code to avoid the copy/paste job though).
But what the conversion can't support really are components' attributes: ClanLib ones are different from those you provide in the editor, so what would allow a complete conversion is the addition in the editor of support for ClanLib components' attributes, I can't do nothing about that.
Simplifying, where in your editor there's a dropdown menu labeled "Available properties" (in the "Available properties in the current selection" section) there should be, together with those sections framed by two "===" (Numerical Properties, Alphanumerical Properties, Boolean Properties, Font Properties), another one ("=== ClanLib Properties ===" ) where one can find those attributes that are available for ClanGUI components (it doesn't matter if Numerical, Alphanumerical and Choice input will be all enabled, ClanLib users will have to pay more attention filling with right values the right fields...); I think a checkbox "Show ClanLib attributes" would be nice to let non-ClanLib users get rid of these additional list of properties in the dropdown menu.
At this moment i cannot decide about the best way to go yet. So maybe other people can give input on this matter?
What I've just suggested should be a satisfactory compromise, if that feature will be added I'll complete the php converter with support for all the components, as it is easily adjustable by people in case of changes in your editor's output. And happily trash it when someone will write an export plugin for the editor.
You can find other ways than what I'm suggested, but it seems to me the more convenient for you (well, of course the more convenient is to just don't add ClanLib support ;)
Feel free to ignore my posts, anyway just in case here it is a reference list of all ClanGUI's components and their attributes: there is the ClanGUI tag followed by its counterpart in CELayoutEditor ("like CE's ..." ), then component's attributes are listed, with type and default value in brackets, followed by a short description of the attribute's scope.
Thanks for your reply, I'll try to avoid you waste time for some other reply to this one, so here it is a pre-made format for you ;) (put an "x" on the right checkbox):
A: Will you add that stuff or something?
[ ] Ok, but it will cost a postcard from your town.
[ ] Ok, but if we meet I want a beer payed by you.
[ ] Ok.
[ ] No way, I'll pretend this message has never been written.
[ ] No way, besides this message hurts me and I'll find your nice cat and close it in your fridge.
ClanLib's components and their attributes (this list may be enhanced, it's from ClanLib's manual wich may be outdated compared to the svn version, but not sure about it):
Code: Select all
<component> like CE's "DefaultWindow"
visible (Boolean, true): Visibility of component
enabled (Boolean, true): If the component is enabled or disabled.
tab_id (integer, 0): Tab id.
-----------------------------------------------------------------
<button> like CE's "Button"
toggled (Boolean, false): If the button is toggled by default or not.
togglemode (Boolean, false): The togglemode, if false the button is sticky.
-----------------------------------------------------------------
<frame> like CE's "TabPane"
filled (Boolean, false): If the frame should be filled or transparent.
-----------------------------------------------------------------
<image> like CE's "StaticImage"
-----------------------------------------------------------------
<inputbox> like CE's "EditBox"
text (Sring, ""): Default input of the inputbox.
passwordmode (Boolean, false): Password mode sets if the inputbox should display only * when entering text.
read_only (Boolean, false): If read only, it is not possible to enter text into the inputbox.
max_length (Integer, unlimited): Max number of characters allowed.
-----------------------------------------------------------------
<label> like CE's "StaticText"
-----------------------------------------------------------------
<listbox> like CE's "Listbox"
<item>: Defines a item in the listbox.
value (Sring, ""): Text of the listitem.
-----------------------------------------------------------------
<progressbar> like CE's "ProgressBar"
steps (Integer, 0): Number of steps in the progressbar.
-----------------------------------------------------------------
<radiobutton> like CE's "RadioButton"
-----------------------------------------------------------------
<scrollbar> like CE's "HorizontalScrollbar" or "VerticalScrollbar"
min (Integer, 0): Minimum value of the scrollbar range.
max (Integer, value of minimum): Maximum value of the scrollbar range.
value (Integer, value of minimum): Current value of the scrollbar range.
tracking (Boolean, false): Enables or disables tracking.
-----------------------------------------------------------------
<window> like CE's "FrameWindow"
Bye!