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
8fd4401e
Commit
8fd4401e
authored
Aug 15, 2008
by
jerryjacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all-programs: about dialog improved
parent
ebeb2363
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
106 additions
and
102 deletions
+106
-102
CMakeLists.txt
CMakeLists.txt
+1
-0
CreateSVNVersionHeader.cmake
CMakeModules/CreateSVNVersionHeader.cmake
+2
-0
config.h.cmake
CMakeModules/config.h.cmake
+1
-0
CMakeLists.txt
common/CMakeLists.txt
+1
-1
about_kicad.cpp
common/about_kicad.cpp
+51
-0
basicframe.cpp
common/basicframe.cpp
+11
-5
common.cpp
common/common.cpp
+9
-0
infospgm.cpp
common/infospgm.cpp
+0
-65
cvframe.cpp
cvpcb/cvframe.cpp
+1
-1
schframe.cpp
eeschema/schframe.cpp
+1
-1
gerberframe.cpp
gerbview/gerberframe.cpp
+1
-1
build_version.h
include/build_version.h
+12
-0
common.h
include/common.h
+12
-11
mainframe.cpp
kicad/mainframe.cpp
+1
-1
pcbframe.cpp
pcbnew/pcbframe.cpp
+2
-16
No files found.
CMakeLists.txt
View file @
8fd4401e
...
@@ -117,6 +117,7 @@ if(UNIX)
...
@@ -117,6 +117,7 @@ if(UNIX)
create_svn_version_header
()
create_svn_version_header
()
endif
(
UNIX
)
endif
(
UNIX
)
# Include paths.
# Include paths.
include_directories
(
${
CMAKE_SOURCE_DIR
}
/include
include_directories
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/share
${
CMAKE_SOURCE_DIR
}
/share
...
...
CMakeModules/CreateSVNVersionHeader.cmake
View file @
8fd4401e
...
@@ -7,6 +7,8 @@ macro(create_svn_version_header)
...
@@ -7,6 +7,8 @@ macro(create_svn_version_header)
_kicad_svn_date
${
Kicad_WC_LAST_CHANGED_DATE
}
)
_kicad_svn_date
${
Kicad_WC_LAST_CHANGED_DATE
}
)
set
(
KICAD_SVN_VERSION
set
(
KICAD_SVN_VERSION
"(
${
_kicad_svn_date
}
SVN-R
${
Kicad_WC_LAST_CHANGED_REV
}
)"
)
"(
${
_kicad_svn_date
}
SVN-R
${
Kicad_WC_LAST_CHANGED_REV
}
)"
)
set
(
KICAD_ABOUT_VERSION
"SVN-R
${
Kicad_WC_LAST_CHANGED_REV
}
(
${
_kicad_svn_date
}
)"
)
# Definition to conditionally use date and revision returned from the
# Definition to conditionally use date and revision returned from the
# Subversion info command instead of hand coded date and revision in
# Subversion info command instead of hand coded date and revision in
...
...
CMakeModules/config.h.cmake
View file @
8fd4401e
...
@@ -4,5 +4,6 @@
...
@@ -4,5 +4,6 @@
#define __KICAD_SVN_VERSION_H__
#define __KICAD_SVN_VERSION_H__
#cmakedefine KICAD_SVN_VERSION "@KICAD_SVN_VERSION@"
#cmakedefine KICAD_SVN_VERSION "@KICAD_SVN_VERSION@"
#cmakedefine KICAD_ABOUT_VERSION "@KICAD_ABOUT_VERSION@"
#endif /* __KICAD_SVN_VERSION_H__ */
#endif /* __KICAD_SVN_VERSION_H__ */
common/CMakeLists.txt
View file @
8fd4401e
set
(
COMMON_SRCS
set
(
COMMON_SRCS
about_kicad.cpp
base_screen.cpp
base_screen.cpp
base_struct.cpp
base_struct.cpp
basicframe.cpp
basicframe.cpp
...
@@ -20,7 +21,6 @@ set(COMMON_SRCS
...
@@ -20,7 +21,6 @@ set(COMMON_SRCS
get_component_dialog.cpp
get_component_dialog.cpp
gr_basic.cpp
gr_basic.cpp
hotkeys_basic.cpp
hotkeys_basic.cpp
infospgm.cpp
msgpanel.cpp
msgpanel.cpp
projet_config.cpp
projet_config.cpp
# pyhandler.cpp
# pyhandler.cpp
...
...
common/about_kicad.cpp
0 → 100644
View file @
8fd4401e
/* wxWidgets about dialog */
#include <wx/aboutdlg.h>
#include "wx/statline.h"
#include "wx/generic/aboutdlgg.h"
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
extern
wxString
g_Main_Title
;
// Import program title
/**************************************************/
void
InitKiCadAbout
(
wxAboutDialogInfo
&
info
)
/**************************************************/
{
/* Set name and title */
info
.
SetName
(
g_Main_Title
);
/* Set description */
wxString
description
;
description
<<
(
_T
(
"Build: "
))
<<
GetAboutBuildVersion
();
#if wxUSE_UNICODE
description
<<
(
_T
(
" Unicode"
));
#else
description
<<
(
_T
(
" Ansi"
));
#endif
info
.
SetDescription
(
description
);
/* Set copyright */
info
.
SetCopyright
(
_T
(
"(C) 1992-2008 KiCad Developers Team"
));
/* Set license */
info
.
SetLicence
(
wxString
::
FromAscii
(
"GNU GPLv3"
));
/* Add developers */
info
.
AddDeveloper
(
_T
(
"Jean-Pierre Charras <jean-pierre.charras@inpg.fr>"
));
/* Add document writers */
info
.
AddDocWriter
(
_T
(
"Jean-Pierre Charras <jean-pierre.charras@inpg.fr>"
));
/* Add translators */
info
.
AddTranslator
(
_T
(
"Dutch (NL) Jerry Jacobs <jerkejacobs@gmail.com>"
));
info
.
AddTranslator
(
_T
(
"French (FR) Jean-Pierre Charras <jean-pierre.charras@inpg.fr>"
));
}
common/basicframe.cpp
View file @
8fd4401e
...
@@ -6,6 +6,11 @@
...
@@ -6,6 +6,11 @@
#pragma implementation
#pragma implementation
#endif
#endif
/* wxWidgets about dialog */
#include <wx/aboutdlg.h>
#include "wx/statline.h"
#include "wx/generic/aboutdlgg.h"
#include "fctsys.h"
#include "fctsys.h"
#include <wx/fontdlg.h>
#include <wx/fontdlg.h>
#include "common.h"
#include "common.h"
...
@@ -254,12 +259,13 @@ void WinEDA_BasicFrame::GetKicadHelp( wxCommandEvent& event )
...
@@ -254,12 +259,13 @@ void WinEDA_BasicFrame::GetKicadHelp( wxCommandEvent& event )
#endif
#endif
}
}
/***********************************************************************/
/***********************************************************/
void
WinEDA_BasicFrame
::
GetKicadAbout
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
void
WinEDA_BasicFrame
::
GetKicadAbout
(
wxCommandEvent
&
event
)
/***********************************************************************/
/**********************************************************/
{
{
Print_Kicad_Infos
(
this
,
m_AboutTitle
,
wxEmptyString
);
wxAboutDialogInfo
info
;
InitKiCadAbout
(
info
);
wxAboutBox
(
info
);
}
}
...
...
common/common.cpp
View file @
8fd4401e
...
@@ -25,6 +25,15 @@ wxString GetBuildVersion()
...
@@ -25,6 +25,15 @@ wxString GetBuildVersion()
}
}
/*********************************************/
/* Return custom build date for about dialog */
/*********************************************/
wxString
GetAboutBuildVersion
()
/*********************************************/
{
return
g_BuildAboutVersion
;
}
/********************************/
/********************************/
void
SetLocaleTo_C_standard
(
void
)
void
SetLocaleTo_C_standard
(
void
)
/********************************/
/********************************/
...
...
common/infospgm.cpp
deleted
100644 → 0
View file @
ebeb2363
/****************************************************/
/* Display a generic info about kikac (copyright..) */
/* Common tp CVPCB, EESCHEMA, PCBNEW and GERBVIEW */
/****************************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#ifdef KICAD_PYTHON
#include <pyhandler.h>
#endif
// Import:
extern
wxString
g_Main_Title
;
/* Program title strings used in about dialog. They are kept here to make
* it easy to update the copyright dates. */
wxString
g_KicadAboutTitle
=
wxT
(
"** KICAD (jul 2000 .. 2008) **"
);
wxString
g_CvpcbAboutTitle
=
wxT
(
"** CVPCB (sept 1992 .. 2008) **"
);
wxString
g_EeschemaAboutTitle
=
wxT
(
"** EESCHEMA (sept 1994 .. 2008) **"
);
wxString
g_PcbnewAboutTitle
=
wxT
(
"** PCBNEW (sept 1992 .. 2008) **"
);
wxString
g_GerbviewAboutTitle
=
wxT
(
"** GERBVIEW (jul 2001 .. 2008) **"
);
/**************************************************************/
void
Print_Kicad_Infos
(
wxWindow
*
frame
,
const
wxString
&
title
,
const
wxString
&
aExtra_infos
)
/**************************************************************/
{
wxString
AboutCaption
=
wxT
(
"About "
);
wxString
Msg
=
title
;
Msg
<<
wxT
(
"
\n\n
"
)
<<
_
(
"Build Version:"
)
<<
wxT
(
"
\n
"
);
Msg
<<
g_Main_Title
<<
wxT
(
" "
)
<<
GetBuildVersion
();
#if wxUSE_UNICODE
Msg
<<
wxT
(
" - Unicode version"
);
#else
Msg
<<
wxT
(
" - Ansi version"
);
#endif
#ifdef KICAD_PYTHON
Msg
<<
wxT
(
"
\n
"
);
Msg
<<
wxT
(
"python : "
);
Msg
<<
wxString
::
FromAscii
(
PyHandler
::
GetInstance
()
->
GetVersion
()
);
#endif
Msg
<<
wxT
(
"
\n\n
"
)
<<
_
(
"Author:"
);
Msg
<<
wxT
(
" JP CHARRAS
\n\n
"
)
<<
_
(
"Based on wxWidgets "
);
Msg
<<
wxMAJOR_VERSION
<<
wxT
(
"."
)
<<
wxMINOR_VERSION
<<
wxT
(
"."
)
<<
wxRELEASE_NUMBER
;
if
(
wxSUBRELEASE_NUMBER
)
Msg
<<
wxT
(
"."
)
<<
wxSUBRELEASE_NUMBER
;
Msg
<<
_
(
"
\n\n
GPL License"
);
Msg
<<
_
(
"
\n\n
Author's sites:
\n
"
);
Msg
<<
wxT
(
"http://iut-tice.ujf-grenoble.fr/kicad/
\n
"
);
Msg
<<
wxT
(
"http://www.gipsa-lab.inpg.fr/realise_au_lis/kicad/"
);
Msg
<<
_
(
"
\n\n
International wiki:
\n
"
);
Msg
<<
wxT
(
"http://kicad.sourceforge.net/
\n
"
);
Msg
<<
aExtra_infos
;
AboutCaption
<<
g_Main_Title
<<
wxT
(
" "
)
<<
GetBuildVersion
();
wxMessageBox
(
Msg
,
AboutCaption
,
wxICON_INFORMATION
,
frame
);
}
cvpcb/cvframe.cpp
View file @
8fd4401e
...
@@ -25,7 +25,7 @@ WinEDA_CvpcbFrame::WinEDA_CvpcbFrame( WinEDA_App* parent, const wxString& title,
...
@@ -25,7 +25,7 @@ WinEDA_CvpcbFrame::WinEDA_CvpcbFrame( WinEDA_App* parent, const wxString& title,
WinEDA_BasicFrame
(
NULL
,
CVPCB_FRAME
,
parent
,
title
,
wxDefaultPosition
,
wxDefaultSize
,
style
)
WinEDA_BasicFrame
(
NULL
,
CVPCB_FRAME
,
parent
,
title
,
wxDefaultPosition
,
wxDefaultSize
,
style
)
{
{
m_FrameName
=
wxT
(
"CvpcbFrame"
);
m_FrameName
=
wxT
(
"CvpcbFrame"
);
m_AboutTitle
=
g_CvpcbAboutTitle
;
//
m_AboutTitle = g_CvpcbAboutTitle;
m_ListCmp
=
NULL
;
m_ListCmp
=
NULL
;
m_FootprintList
=
NULL
;
m_FootprintList
=
NULL
;
DrawFrame
=
NULL
;
DrawFrame
=
NULL
;
...
...
eeschema/schframe.cpp
View file @
8fd4401e
...
@@ -137,7 +137,7 @@ WinEDA_SchematicFrame::WinEDA_SchematicFrame( wxWindow* father,
...
@@ -137,7 +137,7 @@ WinEDA_SchematicFrame::WinEDA_SchematicFrame( wxWindow* father,
WinEDA_DrawFrame
(
father
,
SCHEMATIC_FRAME
,
parent
,
title
,
pos
,
size
,
style
)
WinEDA_DrawFrame
(
father
,
SCHEMATIC_FRAME
,
parent
,
title
,
pos
,
size
,
style
)
{
{
m_FrameName
=
wxT
(
"SchematicFrame"
);
m_FrameName
=
wxT
(
"SchematicFrame"
);
m_AboutTitle
=
g_EeschemaAboutTitle
;
//
m_AboutTitle = g_EeschemaAboutTitle;
m_Draw_Axis
=
FALSE
;
// TRUE to show axis
m_Draw_Axis
=
FALSE
;
// TRUE to show axis
m_Draw_Grid
=
g_ShowGrid
;
// TRUE to show a grid
m_Draw_Grid
=
g_ShowGrid
;
// TRUE to show a grid
m_Draw_Sheet_Ref
=
TRUE
;
// TRUE to show sheet references
m_Draw_Sheet_Ref
=
TRUE
;
// TRUE to show sheet references
...
...
gerbview/gerberframe.cpp
View file @
8fd4401e
...
@@ -131,7 +131,7 @@ WinEDA_GerberFrame::WinEDA_GerberFrame( wxWindow* father,
...
@@ -131,7 +131,7 @@ WinEDA_GerberFrame::WinEDA_GerberFrame( wxWindow* father,
WinEDA_BasePcbFrame
(
father
,
parent
,
GERBER_FRAME
,
title
,
pos
,
size
,
style
)
WinEDA_BasePcbFrame
(
father
,
parent
,
GERBER_FRAME
,
title
,
pos
,
size
,
style
)
{
{
m_FrameName
=
wxT
(
"GerberFrame"
);
m_FrameName
=
wxT
(
"GerberFrame"
);
m_AboutTitle
=
g_GerbviewAboutTitle
;
//
m_AboutTitle = g_GerbviewAboutTitle;
m_Draw_Axis
=
TRUE
;
// TRUE pour avoir les axes dessines
m_Draw_Axis
=
TRUE
;
// TRUE pour avoir les axes dessines
m_Draw_Grid
=
TRUE
;
// TRUE pour avoir la axes dessinee
m_Draw_Grid
=
TRUE
;
// TRUE pour avoir la axes dessinee
m_Draw_Sheet_Ref
=
FALSE
;
// TRUE pour avoir le cartouche dessin�
m_Draw_Sheet_Ref
=
FALSE
;
// TRUE pour avoir le cartouche dessin�
...
...
include/build_version.h
View file @
8fd4401e
...
@@ -14,4 +14,16 @@ COMMON_GLOBL wxString g_BuildVersion
...
@@ -14,4 +14,16 @@ COMMON_GLOBL wxString g_BuildVersion
#endif
#endif
;
;
COMMON_GLOBL
wxString
g_BuildAboutVersion
#ifdef EDA_BASE
# ifdef HAVE_SVN_VERSION
# include "config.h"
(
wxT
(
KICAD_ABOUT_VERSION
))
# else
(
wxT
(
"(20080811.r1188)"
))
# endif
#endif
;
#endif // KICAD_BUILD_VERSION
#endif // KICAD_BUILD_VERSION
include/common.h
View file @
8fd4401e
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
#ifndef COMMON_H
#ifndef COMMON_H
#define COMMON_H
#define COMMON_H
/* wxWidgets about dialog */
#include <wx/aboutdlg.h>
#include "wx/statline.h"
#include "wx/generic/aboutdlgg.h"
/**************************/
#include "wx/confbase.h"
#include "wx/confbase.h"
#include "wx/fileconf.h"
#include "wx/fileconf.h"
...
@@ -598,23 +604,18 @@ char* to_point( char* Text );
...
@@ -598,23 +604,18 @@ char* to_point( char* Text );
/* convertit les , en . dans une chaine. utilise pour compenser la fct printf
/* convertit les , en . dans une chaine. utilise pour compenser la fct printf
* qui genere les flottants avec une virgule au lieu du point en mode international */
* qui genere les flottants avec une virgule au lieu du point en mode international */
/****************/
/* infospgm.cpp */
/****************/
extern
wxString
g_KicadAboutTitle
;
extern
wxString
g_CvpcbAboutTitle
;
extern
wxString
g_EeschemaAboutTitle
;
extern
wxString
g_PcbnewAboutTitle
;
extern
wxString
g_GerbviewAboutTitle
;
void
Print_Kicad_Infos
(
wxWindow
*
frame
,
/*******************/
const
wxString
&
title
,
/* about_kicad.cpp */
const
wxString
&
aExtra_infos
);
/*******************/
void
InitKiCadAbout
(
wxAboutDialogInfo
&
info
);
/**************/
/**************/
/* common.cpp */
/* common.cpp */
/**************/
/**************/
wxString
GetBuildVersion
();
/* Return the build date */
wxString
GetBuildVersion
();
/* Return the build date */
wxString
GetAboutBuildVersion
();
/* Return custom build date for about dialog */
void
Affiche_1_Parametre
(
WinEDA_DrawFrame
*
frame
,
void
Affiche_1_Parametre
(
WinEDA_DrawFrame
*
frame
,
int
pos_X
,
int
pos_X
,
...
...
kicad/mainframe.cpp
View file @
8fd4401e
...
@@ -34,7 +34,7 @@ WinEDA_MainFrame::WinEDA_MainFrame( WinEDA_App* eda_app,
...
@@ -34,7 +34,7 @@ WinEDA_MainFrame::WinEDA_MainFrame( WinEDA_App* eda_app,
wxSize
clientsize
;
wxSize
clientsize
;
m_FrameName
=
wxT
(
"KicadFrame"
);
m_FrameName
=
wxT
(
"KicadFrame"
);
m_AboutTitle
=
g_KicadAboutTitle
;
//
m_AboutTitle = g_KicadAboutTitle;
m_VToolBar
=
NULL
;
m_VToolBar
=
NULL
;
m_LeftWin
=
NULL
;
m_LeftWin
=
NULL
;
m_BottomWin
=
NULL
;
m_BottomWin
=
NULL
;
...
...
pcbnew/pcbframe.cpp
View file @
8fd4401e
...
@@ -98,7 +98,7 @@ EVT_MENU( ID_MENU_PCB_SWAP_LAYERS, WinEDA_PcbFrame::Process_Special_Functions )
...
@@ -98,7 +98,7 @@ EVT_MENU( ID_MENU_PCB_SWAP_LAYERS, WinEDA_PcbFrame::Process_Special_Functions )
// Menu Help
// Menu Help
EVT_MENU
(
ID_GENERAL_HELP
,
WinEDA_DrawFrame
::
GetKicadHelp
)
EVT_MENU
(
ID_GENERAL_HELP
,
WinEDA_DrawFrame
::
GetKicadHelp
)
EVT_MENU
(
ID_KICAD_ABOUT
,
WinEDA_
Pcb
Frame
::
GetKicadAbout
)
EVT_MENU
(
ID_KICAD_ABOUT
,
WinEDA_
Basic
Frame
::
GetKicadAbout
)
// Menu 3D Frame
// Menu 3D Frame
EVT_MENU
(
ID_MENU_PCB_SHOW_3D_FRAME
,
WinEDA_PcbFrame
::
Show3D_Frame
)
EVT_MENU
(
ID_MENU_PCB_SHOW_3D_FRAME
,
WinEDA_PcbFrame
::
Show3D_Frame
)
...
@@ -186,7 +186,7 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father, WinEDA_App* parent,
...
@@ -186,7 +186,7 @@ WinEDA_PcbFrame::WinEDA_PcbFrame( wxWindow* father, WinEDA_App* parent,
WinEDA_BasePcbFrame
(
father
,
parent
,
PCB_FRAME
,
title
,
pos
,
size
,
style
)
WinEDA_BasePcbFrame
(
father
,
parent
,
PCB_FRAME
,
title
,
pos
,
size
,
style
)
{
{
m_FrameName
=
wxT
(
"PcbFrame"
);
m_FrameName
=
wxT
(
"PcbFrame"
);
m_AboutTitle
=
g_PcbnewAboutTitle
;
//
m_AboutTitle = g_PcbnewAboutTitle;
m_Draw_Axis
=
TRUE
;
// TRUE pour avoir les axes dessines
m_Draw_Axis
=
TRUE
;
// TRUE pour avoir les axes dessines
m_Draw_Grid
=
g_ShowGrid
;
// TRUE pour avoir la grille dessinee
m_Draw_Grid
=
g_ShowGrid
;
// TRUE pour avoir la grille dessinee
m_Draw_Sheet_Ref
=
TRUE
;
// TRUE pour avoir le cartouche dessine
m_Draw_Sheet_Ref
=
TRUE
;
// TRUE pour avoir le cartouche dessine
...
@@ -568,17 +568,3 @@ void WinEDA_PcbFrame::SetToolbars()
...
@@ -568,17 +568,3 @@ void WinEDA_PcbFrame::SetToolbars()
DisplayUnitsMsg
();
DisplayUnitsMsg
();
}
}
/***********************************************************/
void
WinEDA_PcbFrame
::
GetKicadAbout
(
wxCommandEvent
&
event
)
/**********************************************************/
{
wxString
extra_message
;
extra_message
<<
wxT
(
"
\n
Pcbnew uses the kbool library version "
)
<<
wxT
(
KBOOL_VERSION
)
<<
wxT
(
"
\n
see http://boolean.klaasholwerda.nl/bool.html
\n
"
);
Print_Kicad_Infos
(
this
,
m_AboutTitle
,
extra_message
);
}
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