gDesign - editor plugin v0.95

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

gDesign - editor plugin v0.95

Post by Mischa »

You know old gDesign is dead, but..
gDesign starts again.

The concept is new:
With g. you can directly manipulate your source.
Just mark the line with OpenWindow() and start the plugin.

Now you can edit your gadgets visual and save the result
back in the source.

At this time only existing gadgets can be manipulate and
position and size only are editable.

(But who knows what can be done..)

Download:
http://www.thinkrelative.de/gdesign.zip

Please test it and report bugs (i hope not) and feedback.
(..and make backups of your sources before testing)

Regards,
Mischa
Last edited by Mischa on Tue Jun 13, 2006 10:56 pm, edited 3 times in total.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

nice work mischa! I hope you get it done soon.
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Re: gDesign - newborn (..as editor plugin)

Post by chen »

Mischa wrote:You know old gDesign is dead, but..
gDesign starts again.



At this time only existing gadgets can be manipulate and
position and size only are editable.

(But who knows what can be done..)
Great.... it complements the tools I have... I know menu, toolbar and status
bar are placeholders... do you have in mind do something abou this?

My Complain :wink:
Is it possible dont lock JaPBe when gDesign is Open?...
Maybe I need to add another gadget... with gDesign open and reset
gDesign and Voíla my new gadget appears... then I only resize my
new Gadget and look for its adecuate position..

Thanks Great Tool...:idea::idea:
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Mischa:

Your manual says "Variables will be ignored or replaced with "0"."

This means if I have windows and gadgets with #PB_Any is
not possible for gDesign to be concious of. Is it? :roll:

Update

It does work with #PB_Any...


The manual says "gDesign begins gadget parsing at actual cursor position"

this means that we need to have the cursor before the first "OpenWindow()."
if not we get a message "No OpenWindow(). found" .... only making a remark :wink:
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Mischa,

I tested you gDesign with a real application.....

When I modify one gadget (StringGadget... width) it changes
parameters in other gadgets... delete parameters (Hyperlink) and
remove (") in textGadget....making my application crash...

If I have some time I'll do some other tests.....

Update 28-May-2006

My application has more than 60 gadgets.... and when I modify the size
or position it makes the correct changes... but affect this Gadgets:

Code: Select all

Original: HyperLinkGadget(#hlink_kaizen, 15, 50, 135, 20, "http://www.kaizensoft.com", RGB(0, 0,0))

gDesign Output: HyperLinkGadget(#hlink_kaizen, 15, 50, 135, 20, "http://www.kaizensoft.com", RGB(0,  0) : one parameter, one parenthesis missing

Original: TextGadget(#Text_14, 18, 3, 500, 15, "To Edit your file,  click on it")

gDesign Outpup: TextGadget(#Text_14, 18, 3, 500, 15, "To Edit your file,  click on it) : closing double quotes missing
Goog Luck
I tested several times and always affects those two Gadgets

I correct them manualy... and my app works again with the changes
made by gDesign... Hope you can detect whats heppenig[/code]
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Sorry!

I meant 'actual Line' not cursor position.

The parser is very bad at this time.
I'm working on a better way. Will be ready in 2-4 days. :wink:

Regards,
Mischa
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Update:

-bugfix: negative input now possible
-bugfix: parsing fixed and improved

Donload:
http://www.thinkrelative.de/gdesign.zip


Regards,
Mischa
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Mischa wrote:Update:

-bugfix: negative input now possible
-bugfix: parsing fixed and improved

Donload:
http://www.thinkrelative.de/gdesign.zip
Tested and working....

This is the tool I need... no more GUIs...
and Im sure you are coming out with usuful surprises :wink:

Hope you keep this application for a long time(years).....

Thanks... Mischa
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Brilliant, one of those tools that makes you think.. "Why didn't I think of that!"
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

well, i actually WAS thinking of that...

but who believes me?!? :-(

:-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

I do :) (you mentioned this a lot earlier than this thread).

and nice work, Mischa
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

Had a quick look at it - looks great and seems to become very handy :!:

Thx Mischa ...
regards,
benny!
-
pe0ple ar3 str4nge!!!
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

great tool :wink:
just a note : when in UTF-8 mode the Header is destroyed

Code: Select all

; gPreferences[462-5-1-1]
*Buffer = AllocateMemory(7812)
UTF-8 Header is $EF $BB $BF
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

Thanks Mischa,

Very groovy!
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

blueznl wrote:well, i actually WAS thinking of that...

but who believes me?!? :-(

:-)
I believe you ;)

BTW, a tool like this was coded about 3 years ago by Cr0wn, a user from holland. Your not that guy??
Post Reply