@@ -62,6 +62,7 @@ public class HAMRCodeGenForm {
6262 public JPanel ros2OptionsPanel ;
6363 public JPanel slangOptionsPanel ;
6464 public JButton themeButton ;
65+ public JCheckBox invertTopicBinding ;
6566
6667 {
6768// GUI initializer generated by IntelliJ IDEA GUI Designer
@@ -200,48 +201,51 @@ public class HAMRCodeGenForm {
200201 themeButton .setText ("" );
201202 bottomPanel .add (themeButton , new GridConstraints (0 , 0 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
202203 ros2OptionsPanel = new JPanel ();
203- ros2OptionsPanel .setLayout (new GridLayoutManager (5 , 4 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
204+ ros2OptionsPanel .setLayout (new GridLayoutManager (6 , 4 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
204205 codegenPanel .add (ros2OptionsPanel , new GridConstraints (4 , 0 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_BOTH , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , null , null , null , 0 , false ));
205206 ros2OptionsPanel .setBorder (BorderFactory .createTitledBorder (null , "ROS2 Options" , TitledBorder .DEFAULT_JUSTIFICATION , TitledBorder .DEFAULT_POSITION , null , null ));
206207 ros2WorkspaceDirectoryLabel = new JLabel ();
207208 ros2WorkspaceDirectoryLabel .setText ("Workspace Directory" );
208- ros2OptionsPanel .add (ros2WorkspaceDirectoryLabel , new GridConstraints (3 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
209+ ros2OptionsPanel .add (ros2WorkspaceDirectoryLabel , new GridConstraints (4 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
209210 ros2OutputWorkspaceDir = new JTextField ();
210- ros2OptionsPanel .add (ros2OutputWorkspaceDir , new GridConstraints (3 , 1 , 1 , 2 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , GridConstraints .SIZEPOLICY_FIXED , null , new Dimension (150 , -1 ), null , 0 , false ));
211+ ros2OptionsPanel .add (ros2OutputWorkspaceDir , new GridConstraints (4 , 1 , 1 , 2 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , GridConstraints .SIZEPOLICY_FIXED , null , new Dimension (150 , -1 ), null , 0 , false ));
211212 ros2WorkspaceDirectoryButton = new JButton ();
212213 ros2WorkspaceDirectoryButton .setText ("..." );
213- ros2OptionsPanel .add (ros2WorkspaceDirectoryButton , new GridConstraints (3 , 3 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
214+ ros2OptionsPanel .add (ros2WorkspaceDirectoryButton , new GridConstraints (4 , 3 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
214215 ros2Ros2DirectoryLabel = new JLabel ();
215216 ros2Ros2DirectoryLabel .setText ("ROS2 Directory" );
216- ros2OptionsPanel .add (ros2Ros2DirectoryLabel , new GridConstraints (4 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
217+ ros2OptionsPanel .add (ros2Ros2DirectoryLabel , new GridConstraints (5 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
217218 ros2Dir = new JTextField ();
218- ros2OptionsPanel .add (ros2Dir , new GridConstraints (4 , 1 , 1 , 2 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , GridConstraints .SIZEPOLICY_FIXED , null , new Dimension (150 , -1 ), null , 0 , false ));
219+ ros2OptionsPanel .add (ros2Dir , new GridConstraints (5 , 1 , 1 , 2 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , GridConstraints .SIZEPOLICY_FIXED , null , new Dimension (150 , -1 ), null , 0 , false ));
219220 ros2Ros2DirectoryButton = new JButton ();
220221 ros2Ros2DirectoryButton .setText ("..." );
221- ros2OptionsPanel .add (ros2Ros2DirectoryButton , new GridConstraints (4 , 3 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
222+ ros2OptionsPanel .add (ros2Ros2DirectoryButton , new GridConstraints (5 , 3 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
222223 strictAadlMode = new JCheckBox ();
223224 strictAadlMode .setText ("Strict AADL Mode" );
224225 ros2OptionsPanel .add (strictAadlMode , new GridConstraints (0 , 0 , 1 , 3 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
225226 ros2NodesLanguageLabel = new JLabel ();
226227 ros2NodesLanguageLabel .setText ("Nodes Language" );
227- ros2OptionsPanel .add (ros2NodesLanguageLabel , new GridConstraints (1 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
228+ ros2OptionsPanel .add (ros2NodesLanguageLabel , new GridConstraints (2 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
228229 ros2LaunchLanguageLabel = new JLabel ();
229230 ros2LaunchLanguageLabel .setText ("Launch Language" );
230- ros2OptionsPanel .add (ros2LaunchLanguageLabel , new GridConstraints (2 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
231+ ros2OptionsPanel .add (ros2LaunchLanguageLabel , new GridConstraints (3 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_FIXED , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
231232 ros2LaunchLanguage = new JComboBox ();
232233 final DefaultComboBoxModel defaultComboBoxModel3 = new DefaultComboBoxModel ();
233234 defaultComboBoxModel3 .addElement ("Python" );
234235 defaultComboBoxModel3 .addElement ("Xml" );
235236 ros2LaunchLanguage .setModel (defaultComboBoxModel3 );
236- ros2OptionsPanel .add (ros2LaunchLanguage , new GridConstraints (2 , 1 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
237+ ros2OptionsPanel .add (ros2LaunchLanguage , new GridConstraints (3 , 1 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
237238 final Spacer spacer6 = new Spacer ();
238- ros2OptionsPanel .add (spacer6 , new GridConstraints (1 , 2 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , 1 , null , null , null , 0 , false ));
239+ ros2OptionsPanel .add (spacer6 , new GridConstraints (2 , 2 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_WANT_GROW , 1 , null , null , null , 0 , false ));
239240 ros2NodesLanguage = new JComboBox ();
240241 final DefaultComboBoxModel defaultComboBoxModel4 = new DefaultComboBoxModel ();
241242 defaultComboBoxModel4 .addElement ("Cpp" );
242243 defaultComboBoxModel4 .addElement ("Python" );
243244 ros2NodesLanguage .setModel (defaultComboBoxModel4 );
244- ros2OptionsPanel .add (ros2NodesLanguage , new GridConstraints (1 , 1 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
245+ ros2OptionsPanel .add (ros2NodesLanguage , new GridConstraints (2 , 1 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_HORIZONTAL , GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
246+ invertTopicBinding = new JCheckBox ();
247+ invertTopicBinding .setText ("Invert Topic Binding" );
248+ ros2OptionsPanel .add (invertTopicBinding , new GridConstraints (1 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
245249 slangOptionsPanel = new JPanel ();
246250 slangOptionsPanel .setLayout (new GridLayoutManager (3 , 3 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
247251 codegenPanel .add (slangOptionsPanel , new GridConstraints (1 , 0 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_BOTH , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , null , null , null , 0 , false ));
0 commit comments