summaryrefslogtreecommitdiffstats
path: root/Project/MainFrame.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-10-27 17:26:24 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-10-27 17:26:24 -0200
commit02c5a1d22a078c132aca40ea14b95800dd8257e9 (patch)
tree39f576cc3c66931c3448b85833a5f048a40b7802 /Project/MainFrame.cpp
parent0e3a45462bf8ce31be988679fd380baeecfb1b95 (diff)
downloadPSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.tar.gz
PSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.tar.xz
PSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.zip
All elements forms implemented
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r--Project/MainFrame.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp
index 1eadf70..bff01f7 100644
--- a/Project/MainFrame.cpp
+++ b/Project/MainFrame.cpp
@@ -267,13 +267,15 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event)
newElement = true;
} break;
case ID_ADDMENU_INDMOTOR: {
- IndMotor* newIndMotor = new IndMotor();
+ IndMotor* newIndMotor = new IndMotor(wxString::Format(_("Induction motor %d"), workspace->GetElementNumber(ID_INDMOTOR)));
+ workspace->IncrementElementNumber(ID_INDMOTOR);
elementList.push_back(newIndMotor);
statusBarText = _("Insert Induction Motor: Click on a buses, ESC to cancel.");
newElement = true;
} break;
case ID_ADDMENU_SYNCCOMP: {
- SyncMotor* newSyncCondenser = new SyncMotor();
+ SyncMotor* newSyncCondenser = new SyncMotor(wxString::Format(_("Synchronous condenser %d"), workspace->GetElementNumber(ID_SYNCMOTOR)));
+ workspace->IncrementElementNumber(ID_SYNCMOTOR);
elementList.push_back(newSyncCondenser);
statusBarText = _("Insert Synchronous Condenser: Click on a buses, ESC to cancel.");
newElement = true;