dialog_about::dialog_about(wxWindow *aParent, AboutAppInfo& appInfo) : dialog_about_base(aParent), info(appInfo) { picInformation = KiBitmap( info_xpm ); picDevelopers = KiBitmap( preference_xpm ); picDocWriters = KiBitmap( editor_xpm ); picArtists = KiBitmap( palette_xpm ); picTranslators = KiBitmap( language_xpm ); picLicense = KiBitmap( tools_xpm ); picPackagers = KiBitmap( zip_xpm ); m_bitmapApp->SetBitmap( info.GetIcon() ); m_staticTextAppTitle->SetLabel( info.GetAppName() ); m_staticTextCopyright->SetLabel( info.GetCopyright() ); m_staticTextBuildVersion->SetLabel( "Version: " + info.GetBuildVersion() ); m_staticTextLibVersion->SetLabel( info.GetLibVersion() ); DeleteNotebooks(); CreateNotebooks(); GetSizer()->SetSizeHints( this ); m_auiNotebook->Update(); SetFocus(); Centre(); Connect( wxID_COPY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_about::OnCopyVersionInfo ) ); }
dialog_about::dialog_about(wxWindow *parent, AboutAppInfo& appInfo) : dialog_about_base(parent), info(appInfo) { picInformation = KiBitmap( info_xpm ); picDevelopers = KiBitmap( preference_xpm ); picDocWriters = KiBitmap( editor_xpm ); picArtists = KiBitmap( palette_xpm ); picTranslators = KiBitmap( language_xpm ); picLicense = KiBitmap( tools_xpm ); m_bitmapApp->SetBitmap( info.GetIcon() ); m_staticTextAppTitle->SetLabel( info.GetAppName() ); m_staticTextCopyright->SetLabel( info.GetCopyright() ); m_staticTextBuildVersion->SetLabel( info.GetBuildVersion() ); m_staticTextLibVersion->SetLabel( info.GetLibVersion() ); /* Affects m_titlepanel the parent of some wxStaticText. * Changing the text afterwards makes it under Windows necessary to call 'Layout()' * so that the new text gets properly layout. */ /* m_staticTextCopyright->GetParent()->Layout(); m_staticTextBuildVersion->GetParent()->Layout(); m_staticTextLibVersion->GetParent()->Layout(); */ DeleteNotebooks(); CreateNotebooks(); GetSizer()->SetSizeHints(this); m_auiNotebook->Update(); SetFocus(); Centre(); }