Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b2745c4b
Commit
b2745c4b
authored
May 11, 2015
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify platform information code in about dialog and version information.
parent
4ebe4714
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
40 deletions
+27
-40
basicframe.cpp
common/basicframe.cpp
+4
-4
AboutDialog_main.cpp
common/dialog_about/AboutDialog_main.cpp
+23
-36
No files found.
common/basicframe.cpp
View file @
b2745c4b
...
...
@@ -551,7 +551,7 @@ static inline const char* KICAD_BUILD_OPTIONS_SIGNATURE()
" (release,"
#endif
__WX_BO_UNICODE
__ABI_VERSION
__BO_COMPILER
__WX_BO_STL
__WX_BO_WXWIN_COMPAT_2_
4
__WX_BO_WXWIN_COMPAT_2_6
")"
__WX_BO_WXWIN_COMPAT_2_
6
__WX_BO_WXWIN_COMPAT_2_8
")"
;
}
...
...
@@ -572,9 +572,9 @@ void EDA_BASE_FRAME::CopyVersionInfoToClipboard( wxCommandEvent& event )
tmp
=
wxT
(
"Application: "
)
+
Pgm
().
App
().
GetAppName
()
+
wxT
(
"
\n
"
);
tmp
<<
wxT
(
"Version: "
)
<<
GetBuildVersion
()
#ifdef DEBUG
<<
wxT
(
"
D
ebug"
)
<<
wxT
(
"
d
ebug"
)
#else
<<
wxT
(
"
R
elease"
)
<<
wxT
(
"
r
elease"
)
#endif
<<
wxT
(
" build
\n
"
);
tmp
<<
wxT
(
"wxWidgets: Version "
)
<<
FROM_UTF8
(
wxVERSION_NUM_DOT_STRING
)
...
...
@@ -632,7 +632,7 @@ void EDA_BASE_FRAME::CopyVersionInfoToClipboard( wxCommandEvent& event )
tmp
<<
wxT
(
"OFF
\n
"
);
#endif
wxMessageBox
(
tmp
,
_
(
"Version Information (copied to the clipboard)"
)
);
wxMessageBox
(
tmp
,
_
(
"Version Information (copied to the clipboard)"
)
);
wxTheClipboard
->
SetData
(
new
wxTextDataObject
(
tmp
)
);
wxTheClipboard
->
Close
();
...
...
common/dialog_about/AboutDialog_main.cpp
View file @
b2745c4b
...
...
@@ -26,6 +26,7 @@
#include <aboutinfo.h>
#include <wx/aboutdlg.h>
#include <wx/textctrl.h>
#include <boost/version.hpp>
/* Used icons:
...
...
@@ -50,7 +51,7 @@ static wxString HtmlNewline( const unsigned int amount = 1 );
/**
* Initializes the <code>AboutAppInfo</code> object with applicaion specific information.
* Initializes the <code>AboutAppInfo</code> object with applica
t
ion specific information.
*
* This the object which holds all information about the application
*/
...
...
@@ -79,7 +80,14 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
/* KiCad build version */
wxString
version
;
version
<<
wxT
(
"Build: "
)
<<
GetBuildVersion
();
version
<<
wxT
(
"Version: "
)
<<
GetBuildVersion
()
#ifdef DEBUG
<<
wxT
(
", debug"
)
#else
<<
wxT
(
", release"
)
#endif
<<
wxT
(
" build"
);
info
.
SetBuildVersion
(
version
);
/* wxWidgets version */
...
...
@@ -90,46 +98,25 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
<<
wxMINOR_VERSION
<<
wxT
(
"."
)
<<
wxRELEASE_NUMBER
/* Unicode or A
nsi
version */
/* Unicode or A
NSI
version */
#if wxUSE_UNICODE
<<
wxT
(
" Unicode "
);
#else
<<
wxT
(
" A
nsi
"
);
<<
wxT
(
" A
NSI
"
);
#endif
libVersion
<<
wxT
(
"and boost C++ libraries"
);
libVersion
<<
wxT
(
"
\n
"
);
/* Operating System Information */
#if defined __WIN64__
libVersion
<<
wxT
(
"on 64 Bits Windows"
);
// Just in case someone builds KiCad with the platform native of Boost instead of
// the version included with the KiCad source.
libVersion
<<
wxT
(
"and Boost "
)
<<
(
BOOST_VERSION
/
100000
)
<<
wxT
(
"."
)
<<
(
BOOST_VERSION
/
100
%
1000
)
<<
wxT
(
"."
)
<<
(
BOOST_VERSION
%
100
)
<<
wxT
(
"
\n
"
);
# elif defined __WINDOWS__
libVersion
<<
wxT
(
"on 32 Bits Windows"
);
// Operating System Information
/* Check for wxMAC */
# elif defined __WXMAC__
libVersion
<<
wxT
(
"on Macintosh"
);
wxPlatformInfo
platformInfo
;
/* Linux 64 bits */
# elif defined _LP64 && __LINUX__
libVersion
<<
wxT
(
"on 64 Bits GNU/Linux"
);
/* Linux 32 bits */
# elif defined __LINUX__
libVersion
<<
wxT
(
"on 32 Bits GNU/Linux"
);
/* OpenBSD */
# elif defined __OpenBSD__
libVersion
<<
wxT
(
"on OpenBSD"
);
/* FreeBSD */
# elif defined __FreeBSD__
libVersion
<<
wxT
(
"on FreeBSD"
);
#endif
libVersion
<<
wxT
(
"Platform: "
)
<<
wxGetOsDescription
()
<<
wxT
(
", "
)
<<
platformInfo
.
GetArchName
();
info
.
SetLibVersion
(
libVersion
);
...
...
@@ -153,7 +140,7 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
description
<<
wxT
(
"<p>"
);
description
<<
wxT
(
"<b><u>"
)
<<
_
(
"KiCad on the web"
)
<<
wxT
(
"</u></b>"
);
// bold & underlined font for caption
// bullet
et
list with some http links
// bullet
-ed
list with some http links
description
<<
wxT
(
"<ul>"
);
description
<<
wxT
(
"<li>"
)
<<
HtmlHyperlink
(
wxT
(
"http://iut-tice.ujf-grenoble.fr/kicad"
),
...
...
@@ -175,7 +162,7 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
description
<<
wxT
(
"<p>"
);
description
<<
wxT
(
"<b><u>"
)
<<
_
(
"Contribute to KiCad"
)
<<
wxT
(
"</u></b>"
);
// bold & underlined font caption
// bullet
et
list with some http links
// bullet
-ed
list with some http links
description
<<
wxT
(
"<ul>"
);
description
<<
wxT
(
"<li>"
)
<<
HtmlHyperlink
(
wxT
(
"https://bugs.launchpad.net/kicad"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment