| 1 |
#include "AboutDlg.h" |
| 2 |
|
| 3 |
#include "ColoursAndFontsManager.h" |
| 4 |
#include "globals.h" |
| 5 |
#include "wxcsvninfo.h" |
| 6 |
|
| 7 |
extern const char* WXC_LICENSE_GPL2; |
| 8 |
|
| 9 |
wxcAboutDlg::wxcAboutDlg(wxWindow* parent) |
| 10 |
: wxcAboutDlgBaseClass(parent) |
| 11 |
{ |
| 12 |
wxString buildNumber; |
| 13 |
wxString vers; |
| 14 |
buildNumber << GIT_REVISION; |
| 15 |
vers << "wxCrafter-" << GIT_REVISION; |
| 16 |
SetLabel(vers); |
| 17 |
|
| 18 |
m_staticTextBuildNumber->SetLabel(buildNumber); |
| 19 |
m_staticTextVersion->SetLabel(vers); |
| 20 |
|
| 21 |
auto lexer = ColoursAndFontsManager::Get().GetLexer("text"); |
| 22 |
if(lexer) { |
| 23 |
lexer->ApplySystemColours(m_stcLicense); |
| 24 |
} |
| 25 |
|
| 26 |
m_stcLicense->SetText(WXC_LICENSE_GPL2); |
| 27 |
m_stcLicense->SetReadOnly(true); |
| 28 |
|
| 29 |
::clSetDialogBestSizeAndPosition(this); |
| 30 |
} |
| 31 |
|
| 32 |
wxcAboutDlg::~wxcAboutDlg() {} |
| 33 |
|
| 34 |
void wxcAboutDlg::OnSize(wxSizeEvent& event) |
| 35 |
{ |
| 36 |
event.Skip(); |
| 37 |
m_staticBitmap178->Refresh(); |
| 38 |
} |