Added localized strings for the dialog. Removed FIXME saying "add
buttons" because there are buttons.
This commit is contained in:
parent
1291574752
commit
e5ed9e166b
@ -1762,6 +1762,9 @@ PresetModel.lbl.database = From database...
|
|||||||
DecalModel.lbl.select = <none>
|
DecalModel.lbl.select = <none>
|
||||||
DecalModel.lbl.choose = From file...
|
DecalModel.lbl.choose = From file...
|
||||||
|
|
||||||
|
! Export Decal Dialog
|
||||||
|
ExportDecalDialog.title = Export Decal
|
||||||
|
ExportDecalDialog.decalList.lbl = Decal
|
||||||
|
|
||||||
! Component Preset Chooser Dialog
|
! Component Preset Chooser Dialog
|
||||||
ComponentPresetChooserDialog.title = Choose component preset
|
ComponentPresetChooserDialog.title = Choose component preset
|
||||||
|
@ -18,27 +18,27 @@ import javax.swing.JPanel;
|
|||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import net.sf.openrocket.document.OpenRocketDocument;
|
import net.sf.openrocket.document.OpenRocketDocument;
|
||||||
import net.sf.openrocket.gui.util.SwingPreferences;
|
import net.sf.openrocket.gui.util.SwingPreferences;
|
||||||
|
import net.sf.openrocket.l10n.Translator;
|
||||||
import net.sf.openrocket.startup.Application;
|
import net.sf.openrocket.startup.Application;
|
||||||
import net.sf.openrocket.util.BugException;
|
import net.sf.openrocket.util.BugException;
|
||||||
|
|
||||||
public class ExportDecalDialog extends JDialog {
|
public class ExportDecalDialog extends JDialog {
|
||||||
|
|
||||||
|
private final static Translator trans = Application.getTranslator();
|
||||||
|
|
||||||
private final OpenRocketDocument document;
|
private final OpenRocketDocument document;
|
||||||
|
|
||||||
private JComboBox decalComboBox;
|
private JComboBox decalComboBox;
|
||||||
|
|
||||||
|
|
||||||
public ExportDecalDialog(Window parent,OpenRocketDocument doc) {
|
public ExportDecalDialog(Window parent,OpenRocketDocument doc) {
|
||||||
// FIXME i18n
|
super(parent, trans.get("ExportDecalDialog.title"), ModalityType.APPLICATION_MODAL);
|
||||||
// FIXME add buttons.
|
|
||||||
super(parent, "title", ModalityType.APPLICATION_MODAL);
|
|
||||||
|
|
||||||
this.document = doc;
|
this.document = doc;
|
||||||
|
|
||||||
JPanel panel = new JPanel(new MigLayout());
|
JPanel panel = new JPanel(new MigLayout());
|
||||||
|
|
||||||
//// decal list
|
//// decal list
|
||||||
JLabel label = new JLabel("Decal");
|
JLabel label = new JLabel(trans.get("ExportDecalDialog.decalList.lbl"));
|
||||||
panel.add(label);
|
panel.add(label);
|
||||||
|
|
||||||
Set<String> allDecals = document.getDecalList();
|
Set<String> allDecals = document.getDecalList();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user