diff options
| author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-27 17:26:24 -0200 |
|---|---|---|
| committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-10-27 17:26:24 -0200 |
| commit | 02c5a1d22a078c132aca40ea14b95800dd8257e9 (patch) | |
| tree | 39f576cc3c66931c3448b85833a5f048a40b7802 /Project/Workspace.cpp | |
| parent | 0e3a45462bf8ce31be988679fd380baeecfb1b95 (diff) | |
| download | PSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.tar.gz PSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.tar.xz PSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.zip | |
All elements forms implemented
Diffstat (limited to 'Project/Workspace.cpp')
| -rw-r--r-- | Project/Workspace.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Project/Workspace.cpp b/Project/Workspace.cpp index 69c11c3..acb8d04 100644 --- a/Project/Workspace.cpp +++ b/Project/Workspace.cpp @@ -633,7 +633,8 @@ void Workspace::OnKeyDown(wxKeyEvent& event) m_statusBar->SetStatusText(_("Insert Inductor: Click on a buses, ESC to cancel.")); } else // Insert an induction motor. { - IndMotor* newIndMotor = new IndMotor(); + IndMotor* newIndMotor = new IndMotor(wxString::Format(_("Induction motor %d"), GetElementNumber(ID_INDMOTOR))); + IncrementElementNumber(ID_INDMOTOR); m_elementList.push_back(newIndMotor); m_mode = MODE_INSERT; m_statusBar->SetStatusText(_("Insert Induction Motor: Click on a buses, ESC to cancel.")); @@ -644,7 +645,8 @@ void Workspace::OnKeyDown(wxKeyEvent& event) case 'K': // Insert a synchronous condenser. { if(m_mode != MODE_INSERT) { - SyncMotor* newSyncCondenser = new SyncMotor(); + SyncMotor* newSyncCondenser = new SyncMotor(wxString::Format(_("Synchronous condenser %d"), GetElementNumber(ID_SYNCMOTOR))); + IncrementElementNumber(ID_SYNCMOTOR); m_elementList.push_back(newSyncCondenser); m_mode = MODE_INSERT; m_statusBar->SetStatusText(_("Insert Synchronous Condenser: Click on a buses, ESC to cancel.")); |
