Author Topic: Lost in Code  (Read 7021 times)

Offline arixion

  • Single posting newcomer
  • *
  • Posts: 6
Lost in Code
« on: February 25, 2006, 10:16:54 am »
Hiyaz:D

I have been using FOX Toolkit and I would really like to create a RAD plugin for that in CodeBlocks, since after all the IDE includes Dev-C++ DevPak support, and FOX is one of the DevPaks. Plus, I find FOX less cumbersome than Wx. I am sure this would be a useful extension of CodeBlocks. However, I can't understand the code layout of the SDK. Could someone like give me an intro to the SDK organization i.e. which parts of the IDE each header-file or method is related to?

the puzzled newbie

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: Lost in Code
« Reply #1 on: February 25, 2006, 10:25:40 am »
I have been using FOX Toolkit and I would really like to create a RAD plugin for that in CodeBlocks, [...]
That really sounds great! This would be the second RAD plugin then. I do not now many IDE's that support more then one GUI toolkit.
But back again to your question: I'm not an exoert in the SDK but what helped me a lot is the Doxygen documentation you can create right out of the SDK sources. If you are familiar with Doxygen than all you need to do is to run sdk.doxy with it. I tweaked the settings in the file a bit to see even more.
If you are not familiar with Doxygen then download it here: http://www.doxygen.org. To produce the graphs you'll also need: Graphviz from here: http://www.graphviz.org (the webpage is currently down, but will be back soon - at least I hope so). Basically all you have to do then is to run Doxygen with the sdk.doxy file.
Morten.

ToAll: I could provide a "SDK.chm" file on a regular basis (every week or so). I guess this would be useful for users not knowing about Doxygen and things. Can I upload this file (~5MB) somewhere?

Edit: Fixed typos.
« Last Edit: February 25, 2006, 10:55:28 am by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline arixion

  • Single posting newcomer
  • *
  • Posts: 6
Re: Lost in Code
« Reply #2 on: February 25, 2006, 11:48:02 am »
where do u find sdk.doxy? n btw, I'm runnign Win XP. Does Doxugen function on Win XP?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5177
Re: Lost in Code
« Reply #3 on: February 25, 2006, 11:52:54 am »
src dir

Doxygen works on xp : www.doxygen.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: Lost in Code
« Reply #4 on: February 25, 2006, 12:02:57 pm »
where do u find sdk.doxy? n btw, I'm runnign Win XP. Does Doxugen function on Win XP?
Alright, I guess I've forgotten to tell an important thing: To generate the Doxygen documentation on the source code, you'll need the source code. Thus, you have to check-out the C::B sources from the SVN repository. Please have a look in the WiKi how to do so. If you've done that then the sdk.doxy will be in the "src" folder (...ord you do a file search.)
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline arixion

  • Single posting newcomer
  • *
  • Posts: 6
Re: Lost in Code
« Reply #5 on: February 25, 2006, 01:01:51 pm »
thanks

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: Lost in Code
« Reply #6 on: February 25, 2006, 09:50:19 pm »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: Lost in Code
« Reply #7 on: February 25, 2006, 10:06:42 pm »
You might want to use this: http://forums.codeblocks.org/index.php?topic=1358.0 :)
I've had a PM with mandrav about that topic. We may setup a way to provide the SDK documentation on a regular basis for download... it's not fully discussed yet... I'll see what mandrav will answer.
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: Lost in Code
« Reply #8 on: February 25, 2006, 10:10:56 pm »
Great. What I'd like to do is automatize the process on an external server that would built it every day. I don't know if that can be done in BerliOS or not.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: Lost in Code
« Reply #9 on: February 25, 2006, 10:15:17 pm »
that would built it every day.
That's actually the major question (from my point of view): I think it only makes sense if the SDK has changed which doesn't happen very often... erm... sooner or later at least. :lol:
So I would like to trigger the creation of the documentation file if the SDK revision has changed. Thus you can provide a documentation file for each SDK revision and not on a daily / weekly basis... Or dou you really like to download the ~5MB SDK docu every day? ;-)
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: Lost in Code
« Reply #10 on: February 25, 2006, 10:45:14 pm »
that would built it every day.
That's actually the major question (from my point of view): I think it only makes sense if the SDK has changed which doesn't happen very often... erm... sooner or later at least. :lol:
So I would like to trigger the creation of the documentation file if the SDK revision has changed. Thus you can provide a documentation file for each SDK revision and not on a daily / weekly basis... Or dou you really like to download the ~5MB SDK docu every day? ;-)
Morten.

Probably I would choose weekly then. Once we'd have working all documentations (Zipped HTML for download, CHM for download, HTML for online viewing), one could make a script that would check any changes in the SDK every some hours, but I really doubt its worth. First things first :P

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Re: Lost in Code
« Reply #11 on: March 01, 2006, 08:56:03 am »
hm, nice Idea.
But, afaik you need to write your plugin in wx since CodeBlocks is a wxbased GUI,
so once you finished your plugin, you might like wx more than fox ;)

phlox