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

Added some of the missing controls to wxSmith

(1/5) > >>

Cryogen:
Adds:
wxBitmapComboBox
wxContextHelpButton
wxDialUpManager
wxHtmlEasyPrinting
wxListView
wxRichTextCtrl
wxSearchCtrl
wxSimpleHtmlListBox
wxTreebook

to wxSmith's control palette.

This patch covers all of the missing controls (I think) excepting wxGridBagSizer and those that required overriding.

I have spent over a month working on wxTreebook and wxGridBagSizer, with only limited success. wxTreebook requires functionality that doesn't exist for the other notebook controls in order to manage the tree hierarchy. I have not been able to find a method that will work within the existing framework, so far, so this patch only allows you to add nodes at the root level via wxSmith. I hope to add the missing functionality in a future update. Since the existing notebook code could do with additional functionality, I intend to revisit the whole thing later.

wxGridBagSizer has also been troublesome and I have spent most of the time on it. The difficulty is, again, due to the fact that this sizer requires additional consideration for cell positioning and spanning and the existing sizer framework doesn't do this. I am close to a solution but it has eluded me so far. I'm also having major problems debugging with GDB 7.1 on both Windows and Linux, which has made life very difficult. Rather than stay bogged down in frustrating details, I'm going to leave this one for later, too.

In this release, files can only be added to wxBitmapComboBox from files. The next release will add the ability to add images from an image list.

Finally, this one also includes a range of improvements and updates for patches 10, 12, 13 & 14 [http://forums.codeblocks.org/index.php/topic,12619.0.html] and reorganises the layout and standard toolbars. For these reasons this patch touches a lot of files. I looked at separating these things from the new controls in another patch but it's become impossible, now, to try to manage different versions of serial patches on a codebase that isn't yet in SVN.

I will try and get a release of the accompanying demo app. out over the next few days so you can see them first hand.

Cheers.

seb_seb0:
Hello Cryogen,

I had a lot of problems applying your patches (duplicate code, incompatible changes...)
In addition, I had a bug (crash of codeblocks when editing XPMToolPanel in my XPMEditor plugin).

I do not know the cause of the bug - it comes however from the Bitmap Editor patch.
I tried to debug it, but it did not happen during a debugging session (probably a memory initialisation problem / release)

I provide here a single patch for: Dialogs, Pickers, Media + Animation, Hyperlink, Missing controls. Done against latest SVN
+ wxGLCanvas patched for wx2.9.x (#if #endif construction)
+ wxGrid patch (added 1 event handler wxGRID_CELL_CHANGED)

This patch does not produce the bug.

It will be hopefully easier to apply in the trunk.

Best regards,

Sebastien

seb_seb0:
I am also missing some icons for (probably a file missing / mispelled):
  wxHtmlEasyPrinting
  wxDialupManager
  wxContextHelpButton
  wxListView
  wxRichTextCtrl
  wxSearchCtrl
  wxSimpleHtmlListBox
  wxTreebook

Thank you for the good work !

Sebastien

Cryogen:
Hey seb,


--- Quote from: seb_seb0 on July 19, 2010, 11:53:24 pm ---I do not know the cause of the bug - it comes however from the Bitmap Editor patch.
I tried to debug it, but it did not happen during a debugging session (probably a memory initialisation problem / release)

--- End quote ---

Hmmm, sorry about that. It has become just about impossible for me to isolate changes, now. I'm thinking of creating my own off-line repository just to manage this but I'm not sure if that'll do enough. I guess it should work. It might be that something crept in that shouldn't have. I went to a lot of trouble to avoid it but...


--- Quote from: seb_seb0 on July 19, 2010, 11:53:24 pm ---I provide here a single patch for: Dialogs, Pickers, Media + Animation, Hyperlink, Missing controls. Done against latest SVN
+ wxGLCanvas patched for wx2.9.x (#if #endif construction)
+ wxGrid patch (added 1 event handler wxGRID_CELL_CHANGED)

This patch does not produce the bug.

It will be hopefully easier to apply in the trunk.

--- End quote ---

Cool, thanks. I was getting to the point of doing something similar myself.

Cryogen:

--- Quote from: seb_seb0 on July 19, 2010, 11:56:03 pm ---I am also missing some icons for (probably a file missing / mispelled):
  wxHtmlEasyPrinting
  wxDialupManager
  wxContextHelpButton
  wxListView
  wxRichTextCtrl
  wxSearchCtrl
  wxSimpleHtmlListBox
  wxTreebook

--- End quote ---

Did you download the image pack below? It sounds like you missed it.  :wink:


--- Quote from: seb_seb0 on July 19, 2010, 11:56:03 pm ---Thank you for the good work !

Sebastien

--- End quote ---

No problem, thanks.  :D

Navigation

[0] Message Index

[#] Next page

Go to full version