Sign in to follow this  

GUI plugin development

This topic is 4202 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
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

This topic is 4202 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this