wizardpage.xswt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xswt xmlns:x="http://sweet_swt.sf.net/xswt">
  3. <import xmlns="http://sweet_swt.sf.net/xswt">
  4. <package name="java.lang"/>
  5. <package name="org.eclipse.swt.widgets" />
  6. <package name="org.eclipse.swt.graphics" />
  7. <package name="org.eclipse.swt.layout" />
  8. <package name="org.eclipse.swt.custom" />
  9. <package name="org.omnetpp.common.wizard.support" />
  10. <package name="org.omnetpp.ned.editor.wizards.support" />
  11. <package name="org.omnetpp.cdt.wizard.support" />
  12. </import>
  13. <layout x:class="GridLayout" numColumns="2"/>
  14. <x:children>
  15. <label x:text="Create a new Inet simulation." x:style="WRAP">
  16. <layoutData x:class="GridData" horizontalSpan="2" horizontalAlignment="FILL" grabExcessHorizontalSpace="true"/>
  17. </label>
  18. <!-- Network Parameters { -->
  19. <group text="Network parameters">
  20. <layoutData x:class="GridData" horizontalSpan="2" horizontalAlignment="FILL" grabExcessHorizontalSpace="true"/>
  21. <layout x:class="GridLayout" numColumns="2"/>
  22. <x:children>
  23. <!-- numClients -->
  24. <label text="Number of clients:"/>
  25. <spinner x:id="numClients" minimum="1" maximum="10" x:style="BORDER"/>
  26. <!-- ipProtocol:IPv4/IPv6 -->
  27. <!-- <label text="IP protocol:"/>
  28. <combo x:id="ipProtocol" x:style="BORDER|READ_ONLY">
  29. <add x:p0="IPv4"/>
  30. <add x:p0="IPv6"/>
  31. </combo>
  32. -->
  33. <group text="IP layer">
  34. <layoutData x:class="GridData" horizontalSpan="2"/>
  35. <layout x:class="GridLayout"/>
  36. <x:children>
  37. <button x:id="ipv4Layer" text="IPv4" x:style="RADIO"/>
  38. <button x:id="ipv6Layer" text="IPv6" x:style="RADIO"/>
  39. </x:children>
  40. </group>
  41. <!-- } -->
  42. </x:children>
  43. </group>
  44. <!-- Traffic Parameters { -->
  45. <group text="Traffic parameters">
  46. <layoutData x:class="GridData" horizontalSpan="2" horizontalAlignment="FILL" grabExcessHorizontalSpace="true"/>
  47. <layout x:class="GridLayout" numColumns="2"/>
  48. <x:children>
  49. <group text="TCP traffic">
  50. <layoutData x:class="GridData" horizontalSpan="2"/>
  51. <layout x:class="GridLayout"/>
  52. <x:children>
  53. <!-- noneTcpTraffic? -->
  54. <button x:id="noneTcpTraffic" text="No traffic on TCP" x:style="RADIO">
  55. <layoutData x:class="GridData" horizontalSpan="2"/>
  56. </button>
  57. <!-- tcpTraffic? -->
  58. <button x:id="tcpDataTraffic" text="Data traffic (on TCP)" x:style="RADIO">
  59. <layoutData x:class="GridData" horizontalSpan="2"/>
  60. </button>
  61. <!-- telnetTraffic? -->
  62. <button x:id="telnetTraffic" text="Telnet traffic (on TCP)" x:style="RADIO">
  63. <layoutData x:class="GridData" horizontalSpan="2"/>
  64. </button>
  65. </x:children>
  66. </group>
  67. <!-- serverTcpLayer: "TCP", "TCP_lwIP", "TCP_NSC" -->
  68. <label text="Server TCP layer:"/>
  69. <combo x:id="serverTcpLayer" x:style="BORDER|READ_ONLY">
  70. <add x:p0="TCP"/>
  71. <add x:p0="TCP_lwIP"/>
  72. <add x:p0="TCP_NSC"/>
  73. </combo>
  74. <!-- clientTcpLayer: "TCP", "TCP_lwIP", "TCP_NSC" -->
  75. <label text="Client TCP layer:"/>
  76. <combo x:id="clientTcpLayer" x:style="BORDER|READ_ONLY">
  77. <add x:p0="TCP"/>
  78. <add x:p0="TCP_lwIP"/>
  79. <add x:p0="TCP_NSC"/>
  80. </combo>
  81. <!-- -- -->
  82. <label x:style="SEPARATOR|HORIZONTAL">
  83. <layoutData x:class="GridData" horizontalSpan="2" horizontalAlignment="FILL" grabExcessHorizontalSpace="true"/>
  84. </label>
  85. <!-- pingTraffic? -->
  86. <button x:id="pingTraffic" text="Ping traffic" x:style="CHECK">
  87. <layoutData x:class="GridData" horizontalSpan="2"/>
  88. </button>
  89. <!-- videoStreamUdpTraffic? -->
  90. <button x:id="videoStreamUdpTraffic" text="Video Stream traffic (on UDP, only for IPv4 yet)" x:style="CHECK">
  91. <layoutData x:class="GridData" horizontalSpan="2"/>
  92. </button>
  93. <!-- sctpTraffic? -->
  94. <button x:id="sctpTraffic" text="SCTP traffic (generate only for IPv4 yet)" x:style="CHECK">
  95. <layoutData x:class="GridData" horizontalSpan="2"/>
  96. </button>
  97. <!-- } -->
  98. </x:children>
  99. </group>
  100. </x:children>
  101. </xswt>