import tim.prune.function.browser.BrowserLauncher;
import tim.prune.gui.GuiGridLayout;
import tim.prune.save.GpxExporter;
+import tim.prune.save.SettingsForExport;
/**
* Function to upload track information up to Gpsies.com
enableOK();
}
};
- GuiGridLayout actGrid = new GuiGridLayout(activityPanel, true);
+ // Why not a simple grid layout here?
+ GuiGridLayout actGrid = new GuiGridLayout(activityPanel, new double[] {1.0, 1.0}, new boolean[] {false, false});
final int numActivities = ACTIVITY_KEYS.length;
_activityCheckboxes = new JCheckBox[numActivities];
for (int i=0; i<numActivities; i++)
_writer = new OutputStreamWriter(oStream);
new Thread(new Runnable() {
public void run() {
- boolean[] saveFlags = {true, true, true, true, false, true}; // export everything
try {
- GpxExporter.exportData(_writer, _app.getTrackInfo(), _nameField.getText(), null, saveFlags, false);
+ GpxExporter.exportData(_writer, _app.getTrackInfo(), _nameField.getText(),
+ null, new SettingsForExport(), null);
} catch (IOException e) {}
finally {
try {_writer.close();} catch (IOException e) {}