diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-19 21:12:45 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-09-19 21:12:45 -0300 |
commit | b76d50299a7995b2b3be0a3f9bf954cceeb89314 (patch) | |
tree | 5e234bb5216325882610e028826256617b44c2f8 /Project/Element.cpp | |
parent | de90dfcf76c1fb13648633b6bddb011b15ac8458 (diff) | |
download | PSP.git-b76d50299a7995b2b3be0a3f9bf954cceeb89314.tar.gz PSP.git-b76d50299a7995b2b3be0a3f9bf954cceeb89314.tar.xz PSP.git-b76d50299a7995b2b3be0a3f9bf954cceeb89314.zip |
Open file .psp implemented
Several directories bugfixes
Diffstat (limited to 'Project/Element.cpp')
-rw-r--r-- | Project/Element.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Project/Element.cpp b/Project/Element.cpp index 381be00..0b6202e 100644 --- a/Project/Element.cpp +++ b/Project/Element.cpp @@ -227,16 +227,19 @@ bool Element::SetOnline(bool online) void Element::GeneralMenuItens(wxMenu& menu) { + wxFileName exeFileName(wxStandardPaths::Get().GetExecutablePath()); + wxString exePath = exeFileName.GetPath(); + wxMenuItem* clockItem = new wxMenuItem(&menu, ID_ROTATE_CLOCK, _("Rotate clockwise")); - clockItem->SetBitmap(wxImage("..\\data\\images\\menu\\rotateClock16.png")); + clockItem->SetBitmap(wxImage(exePath + "\\..\\data\\images\\menu\\rotateClock16.png")); menu.Append(clockItem); wxMenuItem* counterClockItem = new wxMenuItem(&menu, ID_ROTATE_COUNTERCLOCK, _("Rotate counter-clockwise")); - counterClockItem->SetBitmap(wxImage("..\\data\\images\\menu\\rotateCounterClock16.png")); + counterClockItem->SetBitmap(wxImage(exePath + "\\..\\data\\images\\menu\\rotateCounterClock16.png")); menu.Append(counterClockItem); wxMenuItem* deleteItem = new wxMenuItem(&menu, ID_DELETE, _("Delete")); - deleteItem->SetBitmap(wxImage("..\\data\\images\\menu\\delete16.png")); + deleteItem->SetBitmap(wxImage(exePath + "\\..\\data\\images\\menu\\delete16.png")); menu.Append(deleteItem); } |