Author Topic: wxsmith GUI overview (draw in ascii art)  (Read 7624 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
wxsmith GUI overview (draw in ascii art)
« on: August 30, 2012, 04:13:30 am »
Code

/*
      +------+--------------------------+
      |      |    +------------------+--+
      |  A   |    |        C         |  |
      |      |    |                  |D |
      +------+    |------------------|  |
      |      |    |        E         |  |
      |  B   |    +------------------+--+
      |      |                          |
      +------+--------------------------+
A: Resource browser tree (wxsResourceTree)
B: Property browser (wxsPropertyGridManager)
C: Item editor (wxsItemEditor)
D: Advanced quick properties panel (wxsAdvQPP)
E: wxsmith widget palette (wxNotebook)

*/

*/

Hope we can have such kind of comments in the code to give the reader a clear and quick understanding. ;)

I'm using this tool to draw this ascii art. It's open source, and its source is on github.
http://www.asciiflow.com/#Draw
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

stefanos_

  • Guest
Re: wxsmith GUI overview (draw in ascii art)
« Reply #1 on: August 30, 2012, 11:13:51 am »
Looks nice the way you put it, but I think with real images would be even better; that is, if you could find from other projects similar GUI elements which could be added on wxSmith or existing ones that could get tweaked a bit, that would be really helpful indeed for readers. Of course, your example is still readable so I guess that would be a start.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: wxsmith GUI overview (draw in ascii art)
« Reply #2 on: August 30, 2012, 11:17:27 am »
but I think with real images would be even better;
Its for documentation purposes inside source code files, so I don't think real images are usable... ;)

Hope we can have such kind of comments in the code to give the reader a clear and quick understanding. ;)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

stefanos_

  • Guest
Re: wxsmith GUI overview (draw in ascii art)
« Reply #3 on: August 30, 2012, 12:21:31 pm »
ah for class documentation for example? that would be interesting, yep! I thought you were talking about user documentation like the official manual.