Author Topic: How to make one plugin with cbToolPlugin and cbMimePlugin features?  (Read 5278 times)

Offline techtonik

  • Multiple posting newcomer
  • *
  • Posts: 24
I need to make a plugin called from Plugins menu entry and also open certain file extensions. Is there a way to make one class which will be of both cbToolPlugin and cbMimePlugin types simultaneously?

Offline Wolf

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: How to make one plugin with cbToolPlugin and cbMimePlugin features?
« Reply #1 on: September 24, 2008, 01:11:59 am »
I need to make a plugin called from Plugins menu entry and also open certain file extensions. Is there a way to make one class which will be of both cbToolPlugin and cbMimePlugin types simultaneously?
I guess you could have two base classes.

Code
class MyPlugin : public cbToolPlugin, public cbMimePlugin
{
};

There is surely a better way to do it, but I do not know the Code::Blocks SDK enough.