import javax.swing.plaf.basic.*;
import java.util.*;
import java.util.concurrent.*;
+import org.altusmetrum.altosuilib.*;
-public class AltosBTManage extends AltosDialog implements ActionListener, Iterable<AltosBTDevice> {
+public class AltosBTManage extends AltosUIDialog implements ActionListener, Iterable<AltosBTDevice> {
LinkedBlockingQueue<AltosBTDevice> found_devices;
Frame frame;
LinkedList<ActionListener> listeners;
import javax.swing.*;
import java.io.*;
import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altosuilib.*;
public class AltosCSVUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener
{
JFileChooser csv_chooser;
import javax.swing.*;
import java.util.*;
import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altosuilib.*;
-class AltosEditFreqUI extends AltosDialog implements ActionListener {
+class AltosEditFreqUI extends AltosUIDialog implements ActionListener {
Frame frame;
JTextField frequency;
JTextField description;
}
}
-public class AltosConfigFreqUI extends AltosDialog implements ActionListener {
+public class AltosConfigFreqUI extends AltosUIDialog implements ActionListener {
Frame frame;
LinkedList<ActionListener> listeners;
import javax.swing.*;
import javax.swing.event.*;
import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altosuilib.*;
public class AltosConfigPyroUI
- extends AltosDialog
+ extends AltosUIDialog
implements ItemListener, DocumentListener
{
AltosConfigUI owner;
import javax.swing.*;
import javax.swing.event.*;
import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altosuilib.*;
public class AltosConfigTDUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener, ItemListener, DocumentListener
{
import javax.swing.*;
import javax.swing.event.*;
import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altosuilib.*;
public class AltosConfigUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener, ItemListener, DocumentListener, AltosConfigValues
{
+++ /dev/null
-/*
- * Copyright © 2011 Keith Packard <keithp@keithp.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-package altosui;
-
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
-
-class AltosDialogListener extends WindowAdapter {
- public void windowClosing (WindowEvent e) {
- AltosUIPreferences.unregister_ui_listener((AltosDialog) e.getWindow());
- }
-}
-
-public class AltosDialog extends JDialog implements AltosUIListener {
-
- public void ui_changed(String look_and_feel) {
- SwingUtilities.updateComponentTreeUI(this);
- this.pack();
- }
-
- public AltosDialog() {
- AltosUIPreferences.register_ui_listener(this);
- addWindowListener(new AltosDialogListener());
- }
-
- public AltosDialog(Frame frame, String label, boolean modal) {
- super(frame, label, modal);
- AltosUIPreferences.register_ui_listener(this);
- addWindowListener(new AltosDialogListener());
- }
-
- public AltosDialog(Dialog dialog, String label, boolean modal) {
- super(dialog, label, modal);
- AltosUIPreferences.register_ui_listener(this);
- addWindowListener(new AltosDialogListener());
- }
-
- public AltosDialog(Frame frame, boolean modal) {
- super(frame, modal);
- AltosUIPreferences.register_ui_listener(this);
- addWindowListener(new AltosDialogListener());
- }
-}
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
+import org.altusmetrum.altosuilib.*;
-public class AltosEepromMonitor extends AltosDialog {
+public class AltosEepromMonitor extends AltosUIDialog {
Container pane;
Box box;
import java.awt.*;
import java.awt.event.*;
import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altosuilib.*;
class AltosEepromItem implements ActionListener {
AltosEepromLog log;
}
}
-public class AltosEepromSelect extends AltosDialog implements ActionListener {
+public class AltosEepromSelect extends AltosUIDialog implements ActionListener {
//private JList list;
private JFrame frame;
JButton ok;
import org.altusmetrum.altosuilib.*;
public class AltosFlashUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener
{
Container pane;
import org.altusmetrum.AltosLib.*;
import org.altusmetrum.altosuilib.*;
-public class AltosFlightUI extends AltosFrame implements AltosFlightDisplay, AltosFontListener {
+public class AltosFlightUI extends AltosUIFrame implements AltosFlightDisplay, AltosFontListener {
AltosVoice voice;
AltosFlightReader reader;
AltosDisplayThread thread;
+++ /dev/null
-/*
- * Copyright © 2011 Keith Packard <keithp@keithp.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-package altosui;
-
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
-import java.util.*;
-
-class AltosFrameListener extends WindowAdapter {
- public void windowClosing (WindowEvent e) {
- AltosUIPreferences.unregister_ui_listener((AltosFrame) e.getWindow());
- }
-}
-
-public class AltosFrame extends JFrame implements AltosUIListener {
-
- public void ui_changed(String look_and_feel) {
- SwingUtilities.updateComponentTreeUI(this);
- this.pack();
- }
-
- static final String[] icon_names = {
- "/altus-metrum-16.png",
- "/altus-metrum-32.png",
- "/altus-metrum-48.png",
- "/altus-metrum-64.png",
- "/altus-metrum-128.png",
- "/altus-metrum-256.png"
- };
-
- public void set_icon() {
- ArrayList<Image> icons = new ArrayList<Image>();
-
- for (int i = 0; i < icon_names.length; i++) {
- java.net.URL imgURL = AltosUI.class.getResource(icon_names[i]);
- if (imgURL != null)
- icons.add(new ImageIcon(imgURL).getImage());
- }
-
- setIconImages(icons);
- }
-
- public AltosFrame() {
- AltosUIPreferences.register_ui_listener(this);
- addWindowListener(new AltosFrameListener());
- set_icon();
- }
-
- public AltosFrame(String name) {
- super(name);
- AltosUIPreferences.register_ui_listener(this);
- addWindowListener(new AltosFrameListener());
- set_icon();
- }
-}
import java.awt.*;
import javax.swing.*;
import org.altusmetrum.AltosLib.*;
+import org.altusmetrum.altosuilib.*;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.ui.RefineryUtilities;
-public class AltosGraphUI extends AltosFrame
+public class AltosGraphUI extends AltosUIFrame
{
JTabbedPane pane;
import org.altusmetrum.AltosLib.*;
import org.altusmetrum.altosuilib.*;
-public class AltosIdleMonitorUI extends AltosFrame implements AltosFlightDisplay, AltosFontListener, AltosIdleMonitorListener {
+public class AltosIdleMonitorUI extends AltosUIFrame implements AltosFlightDisplay, AltosFontListener, AltosIdleMonitorListener {
AltosDevice device;
JTabbedPane pane;
AltosPad pad;
import org.altusmetrum.altosuilib.*;
public class AltosIgniteUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener
{
AltosDevice device;
}
public class AltosLaunchUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener
{
AltosDevice device;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
+import org.altusmetrum.altosuilib.*;
public class AltosRomconfigUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener
{
Container pane;
}
public class AltosScanUI
- extends AltosDialog
+ extends AltosUIDialog
implements ActionListener
{
AltosUI owner;
import java.lang.Math;
import java.net.URL;
import java.net.URLConnection;
+import org.altusmetrum.altosuilib.*;
class AltosMapPos extends Box {
AltosUI owner;
}
}
-public class AltosSiteMapPreload extends AltosDialog implements ActionListener, ItemListener {
+public class AltosSiteMapPreload extends AltosUIDialog implements ActionListener, ItemListener {
AltosUI owner;
AltosSiteMap map;
import org.altusmetrum.AltosLib.*;
import org.altusmetrum.altosuilib.*;
-public class AltosUI extends AltosFrame {
+public class AltosUI extends AltosUIFrame {
public AltosVoice voice = new AltosVoice();
public static boolean load_library(Frame frame) {
altoslibdir=$(libdir)/altos
-CLASSPATH_ENV=mkdir -p $(JAVAROOT); CLASSPATH="./*:$(JAVAROOT):../libaltos:$(JCOMMON)/jcommon.jar:$(JFREECHART)/jfreechart.jar:$(FREETTS)/freetts.jar"
+CLASSPATH_ENV=mkdir -p $(JAVAROOT); CLASSPATH="$(JAVAROOT):./*:../libaltos:$(JCOMMON)/jcommon.jar:$(JFREECHART)/jfreechart.jar:$(FREETTS)/freetts.jar"
bin_SCRIPTS=altosui
AltosSiteMapTile.java \
AltosUI.java \
AltosUIListener.java \
- AltosFrame.java \
- AltosDialog.java \
AltosWriter.java \
AltosDataPointReader.java \
AltosDataPoint.java \