I’m trying to create a GUI and I was wondering if it is possible to connect a signal that connects to a slot of a class that is one level higher, i.e.
inner * object;
inner *ins=new inner();
TGCheckbutton *tg=new TGCheckbutton(…);
This is for a standalone program, so I create dictionaries.
*I am not able to link separate dictionaries for both files, because of a conflict and redeclaration (but it could be I’m doing something wrong, as I copied a Makefile).
*When I link the dictionary only for the inner class, I am able to connect to a slot that is a part of the inner class, while a method from the wrapper class says, that slot doesn’t exist.
*When I link the dictionary only for the wrapper class neither the slot from the wrapper or inner class is found.
- edit, I tried to create a Dictionary from both files like in:
wrapperDict.$(SrcSuf): wrapper.h inner.h wrapperLinkDef.h
@echo "Generating dictionary $@..."
@rootcint -f $@ -c $^
but it still doesn’t see the wrapper slot, while seeing the inner slot.
if I put in the ClassDef, and ClassImp macros in the inner class it compiles with same result, but putting them in the outer class makes the compilation crash at linking…
I’m using Root 5.12/00f on Scientific Linux.
I’ll be grateful for any suggestions,