|
@@ -71,7 +71,8 @@ import classes.IdCounter;
|
|
import classes.IdCounterElem;
|
|
import classes.IdCounterElem;
|
|
import interfaces.CategoryListener;
|
|
import interfaces.CategoryListener;
|
|
import ui.controller.Control;
|
|
import ui.controller.Control;
|
|
-import ui.model.Model;;
|
|
|
|
|
|
+import ui.model.Model;
|
|
|
|
+import ui.view.Languages;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Graphical User Interface.
|
|
* Graphical User Interface.
|
|
@@ -98,6 +99,7 @@ public class GUI<E> implements CategoryListener {
|
|
private final JMenuItem mntmSave = new JMenuItem("Save");
|
|
private final JMenuItem mntmSave = new JMenuItem("Save");
|
|
private final JMenuItem aboutUs = new JMenuItem("About Us");
|
|
private final JMenuItem aboutUs = new JMenuItem("About Us");
|
|
private final JMenuItem canvasSize = new JMenuItem("View Size");
|
|
private final JMenuItem canvasSize = new JMenuItem("View Size");
|
|
|
|
+ private final JMenuItem languageBtn = new JMenuItem("Language");
|
|
private final JSplitPane splitPane = new JSplitPane();
|
|
private final JSplitPane splitPane = new JSplitPane();
|
|
private final JSplitPane splitPane1 = new JSplitPane();
|
|
private final JSplitPane splitPane1 = new JSplitPane();
|
|
private final JSplitPane splitPaneCanvasConsole = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
|
|
private final JSplitPane splitPaneCanvasConsole = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
|
|
@@ -198,6 +200,8 @@ public class GUI<E> implements CategoryListener {
|
|
private final JToolBar toolBarHolonEl = new JToolBar();
|
|
private final JToolBar toolBarHolonEl = new JToolBar();
|
|
private final JToolBar toolBarGraph = new JToolBar();
|
|
private final JToolBar toolBarGraph = new JToolBar();
|
|
|
|
|
|
|
|
+ private final Languages languages = new Languages();
|
|
|
|
+
|
|
// variables
|
|
// variables
|
|
private boolean dragging = false;
|
|
private boolean dragging = false;
|
|
private String actualObjectClicked;
|
|
private String actualObjectClicked;
|
|
@@ -549,6 +553,7 @@ public class GUI<E> implements CategoryListener {
|
|
menuBar.add(mnHelp);
|
|
menuBar.add(mnHelp);
|
|
|
|
|
|
mnHelp.add(aboutUs);
|
|
mnHelp.add(aboutUs);
|
|
|
|
+ mnNewMenuOptions.add(languageBtn);
|
|
|
|
|
|
canvas.setBackground(Color.WHITE);
|
|
canvas.setBackground(Color.WHITE);
|
|
canvas.setPreferredSize(new Dimension(model.getCanvasX(), model.getCanvasY()));
|
|
canvas.setPreferredSize(new Dimension(model.getCanvasX(), model.getCanvasY()));
|
|
@@ -1821,5 +1826,19 @@ public class GUI<E> implements CategoryListener {
|
|
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * Languages Mode
|
|
|
|
+ */
|
|
|
|
+ // mnNewMenu.setText(languages.getLang()[0]);
|
|
|
|
+ // mntmNew.setText(languages.getLang()[1]);
|
|
|
|
+ // mntmOpen.setText(languages.getLang()[2]);
|
|
|
|
+ // mntmSave.setText(languages.getLang()[3]);
|
|
|
|
+ // mnNewMenuEdit.setText(languages.getLang()[4]);
|
|
|
|
+ // mnNewMenuOptions.setText(languages.getLang()[9]);
|
|
|
|
+ // mnNewMenuView.setText(languages.getLang()[11]);
|
|
|
|
+ // canvasSize.setText(languages.getLang()[12]);
|
|
|
|
+ // mnHelp.setText(languages.getLang()[13]);
|
|
|
|
+ // aboutUs.setText(languages.getLang()[14]);
|
|
|
|
|
|
}
|
|
}
|