fix things
This commit is contained in:
parent
ae7df4cb63
commit
2c44efeb2f
48 changed files with 315 additions and 394 deletions
22
bindgen.cxx
22
bindgen.cxx
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue