mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
b729b5fc64
The form to load is specified on the command line, e.g "vb test.frm".
25 lines
614 B
C++
25 lines
614 B
C++
#pragma once
|
|
|
|
#include "VBWidgetType.h"
|
|
#include <AK/AKString.h>
|
|
#include <AK/HashMap.h>
|
|
#include <AK/OwnPtr.h>
|
|
|
|
class GWidget;
|
|
class VBProperty;
|
|
class VBWidget;
|
|
|
|
class VBWidgetRegistry {
|
|
public:
|
|
template<typename Callback>
|
|
static void for_each_widget_type(Callback callback)
|
|
{
|
|
for (unsigned i = 1; i < (unsigned)VBWidgetType::__Count; ++i)
|
|
callback((VBWidgetType)i);
|
|
}
|
|
|
|
static GWidget* build_gwidget(VBWidget&, VBWidgetType, GWidget* parent, Vector<OwnPtr<VBProperty>>&);
|
|
};
|
|
|
|
String to_class_name(VBWidgetType);
|
|
VBWidgetType widget_type_from_class_name(const StringView&);
|