summaryrefslogtreecommitdiffstats
path: root/Project/Element.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-09-19 21:14:46 -0300
committerGitHub <noreply@github.com>2017-09-19 21:14:46 -0300
commitfa2776e9a939a793a9e46a0cc5880dda868e7028 (patch)
tree302f16d6d9af20a293d18d8a553ba2eac19a0fae /Project/Element.cpp
parent3be51dc6e55414c76e7059a8dffa74a99268a7c8 (diff)
parent011fe58b631f66b715b0ba0d3f8be58277b355b2 (diff)
downloadPSP.git-fa2776e9a939a793a9e46a0cc5880dda868e7028.tar.gz
PSP.git-fa2776e9a939a793a9e46a0cc5880dda868e7028.tar.xz
PSP.git-fa2776e9a939a793a9e46a0cc5880dda868e7028.zip
Merge pull request #38 from Thales1330/wip/open-dot-psp
Wip open dot psp
Diffstat (limited to 'Project/Element.cpp')
-rw-r--r--Project/Element.cpp9
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);
}