Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith improvement

<< < (10/12) > >>

seb_seb0:
Hello,

I do not know if you have seen my post here:
http://forums.codeblocks.org/index.php/topic,13243.msg89078.html#msg89078

I have sent a patch against SVN 6570 which solves the problem with wxsMyColourPropertyClass.
It is a 10 lines patches, and it solved the problem for the colour combobox in wxSmith.

Let me know if that helps you, or if I misunderstood completly the last posts.

Sebastien

Jenna:

--- Quote from: seb_seb0 on September 06, 2010, 09:45:22 pm ---Hello,

I do not know if you have seen my post here:
http://forums.codeblocks.org/index.php/topic,13243.msg89078.html#msg89078

I have sent a patch against SVN 6570 which solves the problem with wxsMyColourPropertyClass.
It is a 10 lines patches, and it solved the problem for the colour combobox in wxSmith.

Let me know if that helps you, or if I misunderstood completly the last posts.

Sebastien

--- End quote ---

It shows the colourboxes, but the rest is not working (can not chose a colour).
There seem to be api-changes, so some of the choices do not longer work.
For the coulours we can use the properties of wxPropGrid, I don't know if there is a need to still use the customcolourpropoerty.
I did not find a solution for the editors, but don't have much time to look into it (not at home the next two or three days).

seb_seb0:

--- Quote from: jens on September 07, 2010, 10:17:10 am ---
--- Quote from: seb_seb0 on September 06, 2010, 09:45:22 pm ---Hello,

I do not know if you have seen my post here:
http://forums.codeblocks.org/index.php/topic,13243.msg89078.html#msg89078

I have sent a patch against SVN 6570 which solves the problem with wxsMyColourPropertyClass.
It is a 10 lines patches, and it solved the problem for the colour combobox in wxSmith.

Let me know if that helps you, or if I misunderstood completly the last posts.

Sebastien

--- End quote ---

It shows the colourboxes, but the rest is not working (can not chose a colour).
There seem to be api-changes, so some of the choices do not longer work.
For the coulours we can use the properties of wxPropGrid, I don't know if there is a need to still use the customcolourpropoerty.
I did not find a solution for the editors, but don't have much time to look into it (not at home the next two or three days).

--- End quote ---

Unfortunately you are right.
If I find some time, I will try a bit deeper. I will let you know if I find something.

Sebastien

Cryogen:

--- Quote from: seb_seb0 on September 06, 2010, 09:45:22 pm ---Hello,

I do not know if you have seen my post here:
http://forums.codeblocks.org/index.php/topic,13243.msg89078.html#msg89078

I have sent a patch against SVN 6570 which solves the problem with wxsMyColourPropertyClass.
It is a 10 lines patches, and it solved the problem for the colour combobox in wxSmith.

Let me know if that helps you, or if I misunderstood completly the last posts.

Sebastien

--- End quote ---

Nice catch, thanks Seb. That's one step forward, at least. I'm still looking as well.

Cryogen:

 Hi Guys,

Two things. I've done some more work on wxSmith's problems, specifically the colour property. The main problem seems to be that


--- Code: ---int type = wxEnumPropertyClass::DoGetValue().GetLong();
--- End code ---

in wxsMyColourPropertyClass::OnEvent() usually returns 0. I would have said "always" except that during the last run I saw the value 33 a few times, for unknown reasons. Either way, it always ends up failing to match any of the conditionals and therefore, we get no action. I've been unable to trace why, other than that it falls through to wxPGProperty::DoGetValue(). I can't see how the value is set or why it's not getting the right value.

I also tried building a new property based on the 1.4 docs, but it behaves the same way as soon as I start using wxEnumPropertyClass.

I think we need to try to resurrect it if we can because it adds some features over the default wxSystemColourProperty, such as the "default" entry. One option might be to steal that and modify it.

There seems to be some sort of refresh problem, in general, that stops the text appearing for the other properties but, again, where and why is anyone's guess.

If whomever did the upgrade has a better knowledge of wxSmith's internals, perhaps it should go back to them to find out what didn't upgrade as intended?

The other thing is that I received a call 15 mins ago saying that I've finally got a real job. So, from Monday, I will have much less time to work on C::B. Reality bites, huh? ;-)
I'll still be around, though.

Cheers.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version