| 47 | | getParent( api.find("\nObject Hierarchy\n").consumeUntil("\n\n") ); |
|---|
| 48 | | getDescription( api.find("\nDescription\n").consumeUntil("\nDetails\n") ); |
|---|
| 49 | | |
|---|
| 50 | | // getMembers( getBlock("Details") ); |
|---|
| 51 | | // getProperties( getBlock("Property Details"); ); |
|---|
| 52 | | // getStyleProperties( getBlock("Style Property Details") ); |
|---|
| 53 | | // getSignals( getBlock("Signal Details") ); |
|---|
| | 52 | getParent( getBlock(api, "Object Hierarchy") ); |
|---|
| | 53 | getDescription( getBlock(api, "Description") ); |
|---|
| | 54 | getMembers( getBlock(api, "Details") ); |
|---|
| | 55 | // getProperties( getBlock(api, "Property Details") ); |
|---|
| | 56 | // getProperties( getBlock(api, "Child Property") ); |
|---|
| | 57 | // getProperties( getBlock(api, "Style Property Details") ); |
|---|
| | 58 | getSignals( getBlock(api, "Signal Details") ); |
|---|
| 76 | | string getBlock(string api, string block); |
|---|
| | 81 | void getMembers(string api) |
|---|
| | 82 | { |
|---|
| | 83 | while ( !api.empty ) |
|---|
| | 84 | { |
|---|
| | 85 | getMember(api.consumeUntil("<hr>")); |
|---|
| | 86 | } |
|---|
| | 87 | } |
|---|
| | 88 | |
|---|
| | 89 | void getMember(string api) |
|---|
| | 90 | { |
|---|
| | 91 | string[] lines = api.splitlines(); |
|---|
| | 92 | |
|---|
| | 93 | if ( lines.length < 2 ) |
|---|
| | 94 | return; |
|---|
| | 95 | |
|---|
| | 96 | if ( endsWith(lines[0], "()") ) |
|---|
| | 97 | { |
|---|
| | 98 | //Function. |
|---|
| | 99 | } |
|---|
| | 100 | else if ( startsWith(lines[1], "typedef enum") ) |
|---|
| | 101 | { |
|---|
| | 102 | //Enum |
|---|
| | 103 | } |
|---|
| | 104 | else if ( startsWith(lines[1], "typedef struct", "struct") ) |
|---|
| | 105 | { |
|---|
| | 106 | //Struct |
|---|
| | 107 | } |
|---|
| | 108 | else if ( startsWith(lines[0], "union") ) |
|---|
| | 109 | { |
|---|
| | 110 | //Union |
|---|
| | 111 | } |
|---|
| | 112 | else if ( startsWith(lines[1], "typedef") ) |
|---|
| | 113 | { |
|---|
| | 114 | //Alias |
|---|
| | 115 | } |
|---|
| | 116 | else if ( startsWith(lines[0], "GTK_STOCK_") ) |
|---|
| | 117 | { |
|---|
| | 118 | //Stock icons |
|---|
| | 119 | } |
|---|
| | 120 | else if ( startsWith(lines[0], "G_TYPE_") && convParms.outFile == "Type" ) |
|---|
| | 121 | { |
|---|
| | 122 | //Type |
|---|
| | 123 | } |
|---|
| | 124 | } |
|---|
| | 125 | |
|---|
| | 126 | void getSignals(string api) |
|---|
| | 127 | { |
|---|
| | 128 | |
|---|
| | 129 | } |
|---|
| | 130 | |
|---|
| | 131 | string getBlock(string api, string block) |
|---|