@@ -196,6 +196,12 @@ void registerWidget(const WidgetFactory * factory)
|
||||
getRegisteredWidgets().push_back(factory);
|
||||
}
|
||||
|
||||
void unregisterWidget(const WidgetFactory * factory)
|
||||
{
|
||||
TRACE("unregister widget %s", factory->getName());
|
||||
getRegisteredWidgets().remove(factory);
|
||||
}
|
||||
|
||||
const WidgetFactory * getWidgetFactory(const char * name)
|
||||
{
|
||||
auto it = getRegisteredWidgets().cbegin();
|
||||
|
||||
@@ -114,6 +114,7 @@ class Widget : public Button
|
||||
};
|
||||
|
||||
void registerWidget(const WidgetFactory * factory);
|
||||
void unregisterWidget(const WidgetFactory * factory);
|
||||
|
||||
class WidgetFactory
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user