mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 09:24:42 -04:00
shows node count in status line
This commit is contained in:
parent
11be8f461b
commit
8d33fec4ae
@ -466,6 +466,13 @@ public class Model {
|
|||||||
fireEvent(ModelEvent.MANUALCHANGE);
|
fireEvent(ModelEvent.MANUALCHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the number of nodes
|
||||||
|
*/
|
||||||
|
public int size() {
|
||||||
|
return nodes.size();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple storage bean for signals
|
* A simple storage bean for signals
|
||||||
*/
|
*/
|
||||||
|
@ -526,6 +526,8 @@ public class Main extends JFrame implements ClosingWindowListener.ConfirmSave, E
|
|||||||
|
|
||||||
model = modelDescription.createModel(true);
|
model = modelDescription.createModel(true);
|
||||||
|
|
||||||
|
statusLabel.setText(Lang.get("msg_N_nodes", model.size()));
|
||||||
|
|
||||||
boolean runClock = false;
|
boolean runClock = false;
|
||||||
if (globalRunClock)
|
if (globalRunClock)
|
||||||
for (Clock c : model.getClocks())
|
for (Clock c : model.getClocks())
|
||||||
@ -625,6 +627,7 @@ public class Main extends JFrame implements ClosingWindowListener.ConfirmSave, E
|
|||||||
circuitComponent.setCircuit(circ);
|
circuitComponent.setCircuit(circ);
|
||||||
elementState.activate();
|
elementState.activate();
|
||||||
setFilename(filename, toPrefs);
|
setFilename(filename, toPrefs);
|
||||||
|
statusLabel.setText(" ");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
circuitComponent.setCircuit(new Circuit());
|
circuitComponent.setCircuit(new Circuit());
|
||||||
new ErrorMessage(Lang.get("msg_errorReadingFile")).addCause(e).show(this);
|
new ErrorMessage(Lang.get("msg_errorReadingFile")).addCause(e).show(this);
|
||||||
|
@ -192,6 +192,7 @@ msg_clockError=Fehler bei der Berechnung einer Takt\u00E4nderung
|
|||||||
msg_frequency_N=Die maximale Frequenz ber\u00E4gt {0}Hz.
|
msg_frequency_N=Die maximale Frequenz ber\u00E4gt {0}Hz.
|
||||||
msg_annalyseErr=Fehler bei der Analyse der Schaltung
|
msg_annalyseErr=Fehler bei der Analyse der Schaltung
|
||||||
msg_errorDuringCalculation=Fehler w\u00E4hrend der Vereinfachung.
|
msg_errorDuringCalculation=Fehler w\u00E4hrend der Vereinfachung.
|
||||||
|
msg_N_nodes={0} aktive Elemente
|
||||||
|
|
||||||
|
|
||||||
stat_clocks={0} Halbzyklen
|
stat_clocks={0} Halbzyklen
|
||||||
|
@ -173,6 +173,7 @@ msg_errorReadingListing_N0=Error reading the listing {0}
|
|||||||
msg_clockError=Error during a clock state change
|
msg_clockError=Error during a clock state change
|
||||||
msg_frequency_N=The maximum frequency is {0}Hz
|
msg_frequency_N=The maximum frequency is {0}Hz
|
||||||
msg_errorDuringCalculation=Error during simplification
|
msg_errorDuringCalculation=Error during simplification
|
||||||
|
msg_N_nodes={0} nodes
|
||||||
|
|
||||||
stat_clocks={0} half cycles
|
stat_clocks={0} half cycles
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user