This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
74 lines
2.2 KiB
C++
74 lines
2.2 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: src/msw/aboutdlg.cpp
|
|
// Purpose: implementation of wxAboutBox() for wxMSW
|
|
// Author: Vadim Zeitlin
|
|
// Created: 2006-10-07
|
|
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// ============================================================================
|
|
// declarations
|
|
// ============================================================================
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// headers
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// for compilers that support precompilation, includes "wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifdef __BORLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#if wxUSE_ABOUTDLG
|
|
|
|
#ifndef WX_PRECOMP
|
|
#include "wx/msgdlg.h"
|
|
#endif //WX_PRECOMP
|
|
|
|
#include "wx/aboutdlg.h"
|
|
#include "wx/generic/aboutdlgg.h"
|
|
|
|
// ============================================================================
|
|
// implementation
|
|
// ============================================================================
|
|
|
|
// our public entry point
|
|
void wxAboutBox(const wxAboutDialogInfo& info, wxWindow* parent)
|
|
{
|
|
// we prefer to show a simple message box if we don't have any fields which
|
|
// can't be shown in it because as much as there is a standard about box
|
|
// under MSW at all, this is it
|
|
if ( info.IsSimple() )
|
|
{
|
|
// build the text to show in the box
|
|
const wxString name = info.GetName();
|
|
wxString msg;
|
|
msg << name;
|
|
if ( info.HasVersion() )
|
|
{
|
|
msg << wxT('\n');
|
|
msg << info.GetLongVersion();
|
|
}
|
|
|
|
msg << wxT("\n\n");
|
|
|
|
if ( info.HasCopyright() )
|
|
msg << info.GetCopyrightToDisplay() << wxT('\n');
|
|
|
|
// add everything remaining
|
|
msg << info.GetDescriptionAndCredits();
|
|
|
|
wxMessageBox(msg, wxString::Format(_("About %s"), name), wxOK | wxCENTRE, parent);
|
|
}
|
|
else // simple "native" version is not enough
|
|
{
|
|
// we need to use the full-blown generic version
|
|
wxGenericAboutBox(info, parent);
|
|
}
|
|
}
|
|
|
|
#endif // wxUSE_ABOUTDLG
|