frauzufall / ofxGuiExtended

ofParameter based GUI addon for openFrameworks; derived from the core OF ofxGui addon and ofxDOM.
MIT License
112 stars 29 forks source link

No member named 'getTogglesExclusive' in 'ofxGuiGroup' #29

Closed transat closed 8 years ago

transat commented 8 years ago

Thanks for a brilliant addon!

I'm receiving two errors though with the new version:

ofxGuiToggle.cpp:284:15: No member named 'getTogglesExclusive' in 'ofxGuiGroup' ofxGuiToggle.cpp:295:13: No member named 'deactivateAllOtherToggles' in 'ofxGuiGroup'

But ofxGuiToggle.h does define both of those...

Not sure what I've done wrong.

frauzufall commented 8 years ago

Hey, thanks for testing it! Perhaps you compiled the old version before, did you clean the example?

transat commented 8 years ago

Pretty sure I'm using the latest. Just tried with a clean example and all is working well aside from a few override warnings. So the problem must be linked to my code, I suppose. Any clues why I might get that warning?

transat commented 8 years ago

I suppose I should mention I'm trying to use ofxGuiExtended with ofxAppUtils and a couple of other addons.

frauzufall commented 8 years ago

I meant if you cleaned your project, I don't know how this is called on Windows or Mac but something like "clean" or "rebuild" instead of a normal "build". This deletes all old binaries and takes care everything is compiled from scratch. Did you try this?

Can you also please post the override warnings?

transat commented 8 years ago

All good now. Had some header search paths missing after the update.

transat commented 8 years ago

Override issues are:

in ofxGuiGroup.h:

virtual void generateDraw();
virtual void render();
virtual void _setConfig(const ofJson & config);

in ofxGuiButton.h:

virtual void generateDraw();
bool setValue(float mx, float my, bool bCheck);

in ofxGuiGraphic.h:

virtual ofAbstractParameter & getParameter();
bool setValue(float mx, float my, bool bCheckBounds){ return false;};
virtual void render();
virtual void generateDraw();

in ofxGuiInputField.h:

ofAbstractParameter & getParameter();
virtual void render();
bool setValue(float mx, float my, bool bCheck);
virtual void generateDraw();

in ofxGuiLabel.h:

virtual void saveTo(ofBaseSerializer& serializer){}
virtual void loadFrom(ofBaseSerializer& serializer){}
ofAbstractParameter & getParameter();

in ofxGuiSlider.h:

ofAbstractParameter & getParameter();

in ofxGuiToggle.h:

virtual ofAbstractParameter & getParameter();
virtual bool setValue(float mx, float my, bool bCheck);
virtual void generateDraw();
frauzufall commented 8 years ago

Happy that it works now!

What about the header links, is there a wrong path somewhere in the addon? I don't really know how to link them the best way with the folders in the src directory but I needed some structure. Which system are you using?

I updated the code, the overrides should be gone. Please tell me if something still comes up. Thank you!

transat commented 8 years ago

Override warnings are gone. No, the header search path issue was entirely my fault so I don't think you need to change anything there. Working great so far!