Page 1 of 2

where to set class permission in wxCrafter

Posted: Sun Dec 15, 2013 11:34 pm
by coder99
Where can I set the permission of a class variable in wxCrafter?
wxFB provides a drop-down box with none, private, protected & public.
Is there anything equivalent in wxCrafter or is this 'omission' by design?

Re: where to set class permission in wxCrafter

Posted: Mon Dec 16, 2013 1:29 am
by eranif
You can't do that on wxC.
Accessing a members directly and not through a getter/setters is bad design.
However, all members are declared as protected so you can access them in the subclass

In wxC 1.4 there will be an option to generate setters/getters for these members

Eran

Re: where to set class permission in wxCrafter

Posted: Mon Dec 16, 2013 1:55 am
by coder99
OK, I've read some objections to making the variables public and I have read counterarguments :-)
Using getters/setters, to me seems like installing a lock on the front door and then hanging the key to the lock next to it :?
and it would seem like a lot more work to implement.
Not that one could not also add one's own setters/getters

In any case, if you do so, please provide an option to _not_ make these setters/getters inline code - at least for the debug version.
MSVC IDE does not seem like to trace through in-line code

Re: where to set class permission in wxCrafter

Posted: Tue Oct 07, 2014 5:31 am
by coder99
Just downloaded version 1.6 and this issue of accessors etc still bothers me.

In one of your previous replies you mentioned that as of version 1.4 there would be a way to create getters and setters, but I have never been able to figure out how or where in either version 1.5 or the latest, 1.6

Is this feature not implemented yet, or have I simply not found it yet?

Re: where to set class permission in wxCrafter

Posted: Tue Oct 07, 2014 11:38 am
by eranif
coder99 wrote:Is this feature not implemented yet, or have I simply not found it yet?
Note implemented yet. Hopefully, I will be able to implement it soon.
As usual, requests on the forum tends to get lost... you need to file them on GitHub

Eran

Re: where to set class permission in wxCrafter

Posted: Tue Oct 07, 2014 8:13 pm
by coder99
Thank you, Eran
posted the issue on Github, under codelite - does wxCrafter have its own section?

Re: where to set class permission in wxCrafter

Posted: Tue Oct 07, 2014 9:22 pm
by eranif
It has a private tracker for users who paid for it ;)
But you can post on GitHub as well, no problem

Eran

Re: where to set class permission in wxCrafter

Posted: Tue Oct 07, 2014 11:12 pm
by coder99
Thank you.
I wasn't sure which one to use - will remember to use Mantis instead

Re: where to set class permission in wxCrafter

Posted: Mon Nov 17, 2014 10:37 pm
by coder99
Got your post announcing that setters/getters are implemented on github.
Not being familiar - yet - with the finer points of github, does this mean that
a new version can be downloaded from github?
And if yes, could you please advise me how to do so?
TIA
Arnold

Re: where to set class permission in wxCrafter

Posted: Mon Nov 17, 2014 11:04 pm
by eranif
wxCrafter is not open sourced. So you can't really find it on GitHub.
It will available in the next release (which should not take too long now)

Eran