Changeset 3097 in osm for applications/editors/josm/plugins
- Timestamp:
- 2007-06-04T13:51:20+02:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/surveyor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorComponent.java
r3078 r3097 32 32 private static final long serialVersionUID = 4539838472057529042L; 33 33 private LiveGpsData gpsData; 34 private int rows = 3;35 private int columns = 3;34 private int rows = 0; 35 private int columns = 0; 36 36 private int width = 0; 37 37 private int height = 0; … … 65 65 */ 66 66 public void setColumns(String columnsString) { 67 System.out.println("setting columns to " +columnsString); 67 68 columns = Integer.parseInt(columnsString); 68 69 buttonPanel.setLayout(new GridLayout(rows, columns)); … … 96 97 97 98 public void addButton(ButtonDescription description) { 99 if(rows == 0 && columns == 0) { 100 setColumns("4"); 101 } 98 102 description.setGpsDataSource(this); 99 103 buttonPanel.add(description.createComponent()); -
applications/editors/josm/plugins/surveyor/src/surveyor.xml
r2943 r3097 1 1 <?xml version="1.0"?> 2 <surveyor rows="3" columns="3" width="0" height="0">2 <surveyor columns="4" width="0" height="0"> 3 3 <!-- icons can either be absolute paths or relative paths to the .josm directory --> 4 4 <!-- action class: either fully qualified classnames or if not found,
Note:
See TracChangeset
for help on using the changeset viewer.