protected XFormDialog buildDialog( Interface modelItem )
{
XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "GSoap Artifacts" );
XForm wsdl2hAdvForm = builder.createForm( "wsdl2h" );
wsdl2hAdvForm.addCheckBox( WSDL2H, null );
addWSDLFields( wsdl2hAdvForm, modelItem );
wsdl2hAdvForm.addTextField( WSDL2H_OUTPUT, "name of output file", XForm.FieldType.PROJECT_FILE );
XForm soapcpp2AdvForm = builder.createForm( "soapcpp2" );
soapcpp2AdvForm.addCheckBox( SOAPCPP2, null );
wsdl2hAdvForm.addCheckBox( GENERATE_INDEXED_STRUCT, null );
wsdl2hAdvForm.addCheckBox( GENERATE_C_SOURCE, null );
wsdl2hAdvForm.addCheckBox( DOM, null );
wsdl2hAdvForm.addCheckBox( DONT_QUALIFY_ENUM_NAMES, null );
wsdl2hAdvForm.addCheckBox( FLAT_CPP_CLASS_HIERARCHY, null );
wsdl2hAdvForm.addCheckBox( GLOBAL_TOP_LEVEL_DECLARATIONS, null );
wsdl2hAdvForm.addTextField( PATH, "use path to find files", XForm.FieldType.PROJECT_FOLDER );
wsdl2hAdvForm.addCheckBox( INCLUDE_LICENSE_INFORMATION, null );
wsdl2hAdvForm.addCheckBox( USE_XSD_H, null );
wsdl2hAdvForm.addTextField( BASE_NAMESPACE_PREFIX_INSTEAD_OF_NS,
"use name as the base namespace prefix name instead of ns", XForm.FieldType.TEXT );
wsdl2hAdvForm.addTextField( BASE_NAMESPACE_PREFIX_FOR_SERVICE_NS,
"use name as the base namespace prefix name for service namespaces", XForm.FieldType.TEXT );
wsdl2hAdvForm.addCheckBox( POLYMORPHIC_TYPES, null );
wsdl2hAdvForm.addTextField( PROXY_HOST_PORT, "connect via proxy host and port (host:port)", XForm.FieldType.TEXT );
wsdl2hAdvForm.addCheckBox( NO_STL, null );
wsdl2hAdvForm.addTextField( TYPE_MAP_FILE, "use type map file instead of the default file typemap.dat",
XForm.FieldType.PROJECT_FILE );
wsdl2hAdvForm.addCheckBox( NO_UNIONS, null );
wsdl2hAdvForm.addCheckBox( VERBOSE, null );
wsdl2hAdvForm.addCheckBox( WRAP_RESPONSE_STRUCT, null );
wsdl2hAdvForm.addCheckBox( NO_ANY, null );
wsdl2hAdvForm.addCheckBox( TYPEDEF_SYNONYMS, null );
soapcpp2AdvForm.addCheckBox( SOAP_11, null );
soapcpp2AdvForm.addCheckBox( SOAP_12, null );
soapcpp2AdvForm.addCheckBox( CLIENT_SIDE, null );
soapcpp2AdvForm.addCheckBox( SERVER_SIDE, null );
soapcpp2AdvForm.addCheckBox( NO_LIB, null );
soapcpp2AdvForm.addCheckBox( SOAP_ACTION, null );
soapcpp2AdvForm.addCheckBox( GENERATE_C_SOURCE_CPP, null );
// soapcpp2AdvForm.addTextField(SAVE_PATH, "", XForm.FieldType.DIRECTORY);
soapcpp2AdvForm.addCheckBox( SOAP_RPC, null );
soapcpp2AdvForm.addCheckBox( SERVICE_PROXIES, null );
soapcpp2AdvForm.addTextField( IMPORT_PATH, "use path(s) for #import", XForm.FieldType.PROJECT_FOLDER );
soapcpp2AdvForm.addCheckBox( GENERATE_LINKABLE_MODULES, null );
soapcpp2AdvForm.addCheckBox( GENERATE_MATLAB_CODE, null );
soapcpp2AdvForm.addCheckBox( SERVICE_NAME, null );
soapcpp2AdvForm.addTextField( NAME_PREFIX, "save files with new prefix name instead of 'soap'",
XForm.FieldType.TEXT );
soapcpp2AdvForm.addCheckBox( XSI_TYPED, null );
soapcpp2AdvForm.addCheckBox( NO_GEN_WSDL_SCHEMA, null );
soapcpp2AdvForm.addCheckBox( NO_GEN_SAMPLE_XML, null );
return builder.buildDialog( buildDefaultActions( HelpUrls.GSOAP_HELP_URL, modelItem ),
"Specify arguments for GSoap wsdl2h and soap2cpp", UISupport.TOOL_ICON );
}