From b76d50299a7995b2b3be0a3f9bf954cceeb89314 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 19 Sep 2017 21:12:45 -0300 Subject: Open file .psp implemented Several directories bugfixes --- Project/Element.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Project/Element.cpp') 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); } -- cgit