Author Topic: wxSmith development  (Read 124175 times)

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
wxSmith development
« Reply #15 on: May 27, 2005, 04:33:33 am »
Quote from: rickg22
cyberkoa: Remember that in TortoiseCVS you can "update special", and pick a specific TAG (C::B version) to use. It's better if you work on the 1.0beta-final, so at least we can be sure that it's not C::B source code that's causing the problems. (OH - and delete all the plugin dlls from both the devel and output subdirectories).

I already manage to compile in the my company's PC and run CB properly after getting the hints from madrav that need to run update.bat after finish compiling .

I am now trying at my Laptop .. hopefully everything is ok.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
wxSmith development
« Reply #16 on: May 27, 2005, 04:42:18 am »
Perhaps we should make a wiki article about compiling codeblocks for windows :)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
wxSmith development
« Reply #17 on: May 27, 2005, 07:47:00 am »
i just compiled wxsmith using wxWidgets 2.6.0 dll's
and tried to run it with my build of C::B, which uses wxWidgets 2.4.2 dll's,
and C::B crashes during start, when i remove the wxsmith addin, C::B starts normal.

Can someone confirm this behaviour plz ?
i'm not shure, if it's necessary to build C::B using wx260 in order to run wxsmith ?

thanks,
tiwag

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
wxSmith development
« Reply #18 on: May 27, 2005, 10:54:40 am »
You must compile both C::B and wxSmith with same version of wxWidgets. Currently I'm using wx 2.4 and I don't know if it will work properly uunder wx 2.6

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
wxSmith development
« Reply #19 on: May 27, 2005, 11:23:24 am »
Got one question - If i've added new Event Handler through wxWindow::PushEventHandler function it is not deletet automatically when widget is. Tried to do it through EVT_CLOSE but this is not generated for widgets. Any idea how to do it automatically ? Maybe creating one global event handler for all widgets but in such case there woul be need to create mapping wxWindow -> wxsWidget ans I think it's not a good Idea. Additional handler can also be removed while deleting preview but it may cause some realy bad errors

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
wxSmith development
« Reply #20 on: May 27, 2005, 12:18:11 pm »
You may want to look at wxWindow::RemoveEventHandler() and use it in the widget's dtor...

Yiannis.
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
wxSmith development
« Reply #21 on: May 27, 2005, 12:31:43 pm »
Quote from: byo
You must compile both C::B and wxSmith with same version of wxWidgets. Currently I'm using wx 2.4 and I don't know if it will work properly uunder wx 2.6


Thanks for the info,
OK i'll try it with the newest cvs version to compile with wx242,
the one version i got from cvs a few days ago wasn't able to compile with wx242,
a few methods only available in wx260 had been used, if i remember correctly.

--tiwag

[edit]
to make a long story short:
fresh download from cvs,
built wxsmith with wx242,
updated codeblocks build,
it runs without issues,
now i have to find out how it works ... ;-)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
wxSmith development
« Reply #22 on: May 27, 2005, 02:51:47 pm »
byo, just a note until I write a proper "developer's guide"  :oops:

When you 're using event handlers for C::B generated events (like EVT_PROJECT_OPEN, etc) always call event.Skip() on the event object. It seems that you don't do this now and when I load the wxSmith plugin, most event handlers in the event handling chain don't see those events.

Yiannis.
Be patient!
This bug will be fixed soon...

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
wxSmith development
« Reply #23 on: May 27, 2005, 02:54:45 pm »
Quote from: mandrav

When you 're using event handlers for C::B generated events (like EVT_PROJECT_OPEN, etc) always call event.Skip() on the event object.


 :oops: Didn't noticed that. Will fix soon (just need to fix incompatibilities with new eeditor system :) )

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
wxSmith development
« Reply #24 on: May 27, 2005, 03:10:42 pm »
No problem. It's my fault anyway:
Quote
just a note until I write a proper "developer's guide"


Quote
just need to fix incompatibilities with new eeditor system

Did you see it? Any comments?

Yiannis.
Be patient!
This bug will be fixed soon...

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
wxSmith development
« Reply #25 on: May 27, 2005, 03:48:15 pm »
Have currently some problems :( , will post everything on http://www.codeblocks.org/index.php?name=PNphpBB2&file=viewtopic&t=375

:)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
wxSmith development
« Reply #26 on: May 27, 2005, 03:56:32 pm »
You do that and will get them fixed ;)

Yiannis.
Be patient!
This bug will be fixed soon...

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
wxSmith development
« Reply #27 on: May 27, 2005, 11:10:22 pm »
Quote from: DreadNot
OK!  So now that I've got everything compiling (for now & until a new CVS), how do I make a really cool 8) screenshot of the C::B running the wxSmith plugin?  When I ran it, all I got was blank screens.
1. I created a wxWidgets project, but nothing shows (blank) in the Project tree (disturbing).
2. Nothing in Symbols and Watches.
3. I see the Resource tab with Property and Events tabs.  The top has "Resources->wxWidgets application".  Properties and Events are blank.
4. I see the Widgets tab at the bottom of the screen and it displays the basics.
Now what?


I also have the CB compiled and wxSmith compiled.

CB using   : 1.0 beta-final
CB source : from CVS (still in MDI interface , verson on 26May2005)
wxwidgets version : 2.4.2

When I run the compiled version CB , I have the same sympthon as Deadnot

As byo mentioned , there is still no function to create a new wxSmith project.

So , I open WxSmith.cbp , and I and get the same screenshot as Deadnot.

I have 1 question , under the Watch Tab , there is not symbols.
However, if I use the CB 1.0beta-final (the one I use to compile CB) , I open wxSmith.cbp . there are symbols under Watch .

Any idea ? Anyway , I just curious only.  I put more attention to the wxSmith source code study .

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
wxSmith development
« Reply #28 on: May 27, 2005, 11:19:21 pm »
Quote from: cyberkoa

I have 1 question , under the Watch Tab , there is not symbols.
However, if I use the CB 1.0beta-final (the one I use to compile CB) , I open wxSmith.cbp . there are symbols under Watch .

Any idea ? Anyway , I just curious only.  I put more attention to the wxSmith source code study .


Hmm, I don't have any watches. Can You post here their names ? Maybe I've addeed something to wrong tree ;)

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
wxSmith development
« Reply #29 on: May 27, 2005, 11:19:59 pm »
By the way - I've updated to wxNotebook interface - it should be available in anonymous cvs in few hours