diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-23 17:46:10 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-23 17:46:10 -0300 |
commit | a9dd78afddeb706df6652eb91f229a74fd073846 (patch) | |
tree | dfc6130a9c9c5022fcb2baae3f6cf238a99786e8 /Project/Workspace.cpp | |
parent | 1088617b8f1c31af3ad6a87f9934f7a55240b3a2 (diff) | |
download | PSP.git-a9dd78afddeb706df6652eb91f229a74fd073846.tar.gz PSP.git-a9dd78afddeb706df6652eb91f229a74fd073846.tar.xz PSP.git-a9dd78afddeb706df6652eb91f229a74fd073846.zip |
Generator form implemented
Diffstat (limited to 'Project/Workspace.cpp')
-rw-r--r-- | Project/Workspace.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/Workspace.cpp b/Project/Workspace.cpp index 7492319..c0d380a 100644 --- a/Project/Workspace.cpp +++ b/Project/Workspace.cpp @@ -626,7 +626,9 @@ void Workspace::OnKeyDown(wxKeyEvent& event) case 'G': // Insert a generator. { if(m_mode != MODE_INSERT) { - SyncGenerator* newGenerator = new SyncGenerator(); + SyncGenerator* newGenerator = new SyncGenerator( + wxString::Format(_("Generator %d"), GetElementNumber(ID_SYNCGENERATOR))); + IncrementElementNumber(ID_SYNCGENERATOR); m_elementList.push_back(newGenerator); m_mode = MODE_INSERT; m_statusBar->SetStatusText(_("Insert Generator: Click on a buses, ESC to cancel.")); |