diff options
author | Toni Uhlig <Toni.Uhlig@tq-group.com> | 2017-12-04 14:41:22 +0100 |
---|---|---|
committer | Toni Uhlig <Toni.Uhlig@tq-group.com> | 2017-12-04 14:41:22 +0100 |
commit | a2bf9440d9b2c8ad5123098a8f166e872d16162e (patch) | |
tree | f18a1554cf7f523e715b48dffd446ba113f12008 /src | |
parent | 74dd64df1139d0fd5b07301e01e70cc2ef61cc7e (diff) |
pretty wxglade.ICON for Windows targets
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 9 | ||||
-rw-r--r-- | src/UpdateGUI.cpp | 7 | ||||
-rw-r--r-- | src/utool-res.rc | 23 | ||||
-rw-r--r-- | src/wxglade.ico | bin | 0 -> 766 bytes |
4 files changed, 39 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index b5b9b8e..d984a1a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,3 +15,12 @@ utool_SOURCES += \ UpdateGUI.cpp \ JobQueue.cpp endif + +if HAVE_WINDRES +utool_SOURCES += utool-res.rc + +.rc.o: + $(WINDRES) $^ -o $@ +.o : .rc + $(WINDRES) $^ -o $@ +endif diff --git a/src/UpdateGUI.cpp b/src/UpdateGUI.cpp index b105884..076c211 100644 --- a/src/UpdateGUI.cpp +++ b/src/UpdateGUI.cpp @@ -44,6 +44,13 @@ UpdateGUIFrame::UpdateGUIFrame(const wxString& title, const wxPoint& pos, const : wxFrame(NULL, wxID_ANY, title, pos, size) { SetBackgroundColour(wxColour(220, 220, 220)); +#ifdef WIN32 + /* Set a pretty GUI icon (left-top window bar). + * This requires the Icon to be compiled in a + * resources section with the windres compiler! + */ + SetIcon(wxICON(APPICON)); +#endif wxMenu *menuFile = new wxMenu; menuFile->Append(wxID_UPDATEFILE, diff --git a/src/utool-res.rc b/src/utool-res.rc new file mode 100644 index 0000000..5766a80 --- /dev/null +++ b/src/utool-res.rc @@ -0,0 +1,23 @@ +APPICON ICON "wxglade.ico" +1 VERSIONINFO +FILEVERSION 1,0,0,0 +PRODUCTVERSION 1,0,0,0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904E4" + BEGIN + VALUE "FileDescription", "A simple firmware update tool for Energy Manager firmware." + VALUE "FileVersion", "1.0.0" + VALUE "InternalName", "utool" + VALUE "LegalCopyright", "Toni Uhlig" + VALUE "OriginalFilename", "UpdateTool.exe" + VALUE "ProductName", "UpdateTool" + VALUE "ProductVersion", "1.0.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1252 + END +END diff --git a/src/wxglade.ico b/src/wxglade.ico Binary files differnew file mode 100644 index 0000000..2310c5d --- /dev/null +++ b/src/wxglade.ico |