Adding my own base class


#1

Hi there,

I want to add some classes to the class which exported by Jucer,

[code]class MyPane : public Component
//[UserBaseClass]
,
public SomeListenerClass
//[/UserBaseClass]
{
public:
MyPane ();

:

[/code]
So I added to the template like this,

%%classDeclaration%% //[UserBaseClass] //[/UserBaseClass] {
Does it make sense for everyone?

Best regards,
Masanao Hayashi


#2

In fact you don’t have to edit the template - on the class settings page, there’s a field called “parent classes”, where you can type in a list of base classes to use…


#3

Ah! …yes, that is what I wanted to do…
Thanks! :slight_smile:


#4

There’s a lot of stuff like that in the jucer that needs better help tips.


#5

i’ll surely have a section in the tutorial about it too :slight_smile:


#6

Cool.


#7