fix things

This commit is contained in:
Nishi 2026-04-17 21:26:28 +09:00
commit 2c44efeb2f
Signed by: nishi
GPG key ID: 27EF69B208EB9343
48 changed files with 315 additions and 394 deletions

View file

@ -7,16 +7,16 @@
#include <locale>
struct typeinfo {
std::string type;
std::string name;
std::string struct_name;
int pointer;
std::string type;
std::string name;
std::string struct_name;
int pointer;
};
struct property {
typeinfo type;
int common;
typeinfo arg_type;
typeinfo type;
int common;
typeinfo arg_type;
};
std::map<std::string, std::ofstream> files;
@ -230,15 +230,15 @@ static void scan_widget(xl_node_t* node) {
OFS << "namespace MwCXX {" << std::endl;
OFS << " class " + name + " : public MwCXX::Base {" << std::endl;
OFS << " public:" << std::endl;
OFS << " " + name + "(MwWidget widget);" << std::endl;
OFS << " " + name + "(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);" << std::endl;
OFS << " public:" << std::endl;
OFS << " " + name + "(MwWidget widget);" << std::endl;
OFS << " " + name + "(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);" << std::endl;
if(nodes != NULL) {
std::string r = "";
for(i = 0; nodes[i] != NULL; i++) {
r += scan_widget_properties_header(nodes[i], "\t\t\t");
r += scan_widget_properties_header(nodes[i], "\t\t");
}
if(r != "") OFS << std::endl