From 83efb62a9f78d7e66748478a544bf1ca28cc48e5 Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Wed, 17 Jun 2015 22:32:25 +0300 Subject: [PATCH] Added AboutBox --- wxCrossGen/wxgui.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/wxCrossGen/wxgui.hpp b/wxCrossGen/wxgui.hpp index 4431e84..079fdb5 100644 --- a/wxCrossGen/wxgui.hpp +++ b/wxCrossGen/wxgui.hpp @@ -1,5 +1,3 @@ -// generated by wxGlade 0.6.8 on Wed May 20 12:40:03 2015 - #ifndef WXGUI_HPP #define WXGUI_HPP @@ -7,7 +5,8 @@ #include #include #include -#include "wx/intl.h" +#include +#include #include "crossgen.hpp" @@ -48,7 +47,14 @@ public: void onGenerateClick( wxCommandEvent& event ); void onExportClick( wxCommandEvent& event ); void onExitClick( wxCommandEvent& event ) { event.Skip(); } - void onAboutClick( wxCommandEvent& event ) { event.Skip(); } + void onAboutClick( wxCommandEvent& event ) { + wxAboutDialogInfo info; + info.AddDeveloper(_("AlekseyLobanov")); + info.SetDescription(_("Simple GUI cross-generation application. Yet another bike")); + info.SetName(wxTheApp->GetAppName()); + info.SetWebSite(wxT("http://likemath.ru")); + wxAboutBox(info); + } }; #endif // WXGUI_HPP