Jump to content
  • Advertisement
Sign in to follow this  
Lord Darkblade

GUI plugin development

This topic is 4507 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am looking to create a plugin architecture that works similarly to Eclipse, I think I understand how to create the plugin hierarchy however I am unsure of how to do the GUI in C++. I was thinking of using the FOX-toolkit or WXWidgets as the actual GUI toolkit however I want it to be one level abstracted (ie: plugins that wish to modify the gui make calls like: Create_Window(p_WindowID, content_Struct) rather than specific fox or Wx calls). However I am not sure quite how to do this in practice,googling turns up a lot of gui plugin links related to specific projects but nothing thats purely theoretical or layered that I can see. The closest I have come is the freeride project (A ruby project). So really my question is does anyone have any examples or references to this sort of project? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Hmmm, maybe try taking a look at how Guichan has achieved its library independance, ie. http://guichan.sourceforge.net/api/classgcn_1_1Graphics.html.

Basically, standard class inheritance + polymorphism: you write a base abstract class (interface) which declares some methods, then you inherit from that class and implement those methods. In main program you declare pointer to base class, and use only it - no specific calls to API. Obviously, this pointer may point to WxWidgets plugin or FOX-Toolkit plugin etc. just new it up (in C++) on the begginning.

However, comning up with one interface that suits all intended libraries may be hard. Good luck! :-)

Share this post


Link to post
Share on other sites
Hard is good, have to have a reasonable level of difficulty for this and a pile of research / new techniques for my project.

Thanks for the link, finding examples of this sort of stuff is hard, just finding the right keywords to narrow the search in google can be difficult.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!