where to set class permission in wxCrafter
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
where to set class permission in wxCrafter
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?
wxFB provides a drop-down box with none, private, protected & public.
Is there anything equivalent in wxCrafter or is this 'omission' by design?
Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where to set class permission in wxCrafter
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
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
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
Re: where to set class permission in wxCrafter
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
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
Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
Re: where to set class permission in wxCrafter
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?
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?
Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where to set class permission in wxCrafter
Note implemented yet. Hopefully, I will be able to implement it soon.coder99 wrote:Is this feature not implemented yet, or have I simply not found it yet?
As usual, requests on the forum tends to get lost... you need to file them on GitHub
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
Re: where to set class permission in wxCrafter
Thank you, Eran
posted the issue on Github, under codelite - does wxCrafter have its own section?
posted the issue on Github, under codelite - does wxCrafter have its own section?
Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where to set class permission in wxCrafter
It has a private tracker for users who paid for it
But you can post on GitHub as well, no problem
Eran
But you can post on GitHub as well, no problem
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
Re: where to set class permission in wxCrafter
Thank you.
I wasn't sure which one to use - will remember to use Mantis instead
I wasn't sure which one to use - will remember to use Mantis instead
Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2
-
- CodeLite Expert
- Posts: 167
- Joined: Wed Oct 22, 2008 6:50 am
- Contact:
Re: where to set class permission in wxCrafter
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
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
Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where to set class permission in wxCrafter
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
It will available in the next release (which should not take too long now)
Eran
Make sure you have read the HOW TO POST thread