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
d5d16186
Commit
d5d16186
authored
Oct 29, 2007
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
listboxes.cpp problem solved (see change_log)
parent
7eff222c
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
343 additions
and
285 deletions
+343
-285
change_log.txt
change_log.txt
+8
-0
edaappl.cpp
common/edaappl.cpp
+26
-21
msgpanel.cpp
common/msgpanel.cpp
+1
-1
listboxes.cpp
cvpcb/listboxes.cpp
+307
-262
wxstruct.h
include/wxstruct.h
+1
-1
No files found.
change_log.txt
View file @
d5d16186
...
...
@@ -4,6 +4,14 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.
2007-Oct-29 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+cvpcb: listboxes.cpp problem solved: Workaround for a curious bug in wxWidgets:
if we switch from a long list of footprints to a short list (a filtered footprint list),
and if the selected item is near the end of the long list,
the new list is not displayed from the top of the list box
2007-Oct-27 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+ all:
...
...
common/edaappl.cpp
View file @
d5d16186
...
...
@@ -54,21 +54,21 @@
* The real font size will be computed at run time */
/**************************
***
/
/*
Constructeur de WinEDA_App
*/
/**************************
***
/
/**************************/
/*
WinEDA_App Constructor
*/
/**************************/
WinEDA_App
::
WinEDA_App
()
{
m_Checker
=
NULL
;
m_MainFrame
=
NULL
;
m_PcbFrame
=
NULL
;
m_ModuleEditFrame
=
NULL
;
//
Edition des modules
m_SchematicFrame
=
NULL
;
//
Edition des Schemas
m_LibeditFrame
=
NULL
;
//
Edition des composants
m_ViewlibFrame
=
NULL
;
//
Visualisation des composant
s
m_ModuleEditFrame
=
NULL
;
//
Frame for footprint edition
m_SchematicFrame
=
NULL
;
//
Frame for schematic edition
m_LibeditFrame
=
NULL
;
//
Frame for component edition
m_ViewlibFrame
=
NULL
;
//
Frame for browsing component librarie
s
m_CvpcbFrame
=
NULL
;
m_GerberFrame
=
NULL
;
//
ecran de visualisation GERBER
m_GerberFrame
=
NULL
;
//
Frame for the gerber viewer GERBVIEW
m_LastProjectMaxCount
=
10
;
m_HtmlCtrl
=
NULL
;
...
...
@@ -83,15 +83,15 @@ WinEDA_App::WinEDA_App()
}
/*************************
****
/
/*
Destructeur de WinEDA_App
*/
/*************************
****
/
/*************************/
/*
WinEDA_App Destructor
*/
/*************************/
WinEDA_App
::~
WinEDA_App
()
{
SaveSettings
();
/* delete
data non directement geree par wxAppl
*/
/* delete
user datas
*/
delete
g_Prj_Config
;
delete
m_EDA_Config
;
delete
m_EDA_CommonConfig
;
...
...
@@ -116,10 +116,12 @@ void WinEDA_App::InitEDA_Appl( const wxString& name )
ident
=
name
+
wxT
(
"-"
)
+
wxGetUserId
();
m_Checker
=
new
wxSingleInstanceChecker
(
ident
);
/* Init environnement
* (KICAD definit le chemin de kicad ex: set KICAD=d:\kicad) */
/* Init kicad environment
* the environment variable KICAD (if exists) gives the kicad path:
* something like set KICAD=d:\kicad
*/
m_Env_Defined
=
wxGetEnv
(
wxT
(
"KICAD"
),
&
m_KicadEnv
);
if
(
m_Env_Defined
)
//
m_KicadEnv doit finir par "/" ou "\
"
if
(
m_Env_Defined
)
//
ensure m_KicadEnv ends by "/
"
{
m_KicadEnv
.
Replace
(
WIN_STRING_DIR_SEP
,
UNIX_STRING_DIR_SEP
);
if
(
m_KicadEnv
.
Last
()
!=
'/'
)
...
...
@@ -129,13 +131,13 @@ void WinEDA_App::InitEDA_Appl( const wxString& name )
/* Prepare On Line Help */
m_HelpFileName
=
name
+
wxT
(
".html"
);
// Init paramet
res pou
r configuration
// Init paramet
ers fo
r configuration
SetVendorName
(
wxT
(
"kicad"
)
);
SetAppName
(
name
);
m_EDA_Config
=
new
wxConfig
(
name
);
m_EDA_CommonConfig
=
new
wxConfig
(
wxT
(
"kicad_common"
)
);
/* Creat
ion des fontes util
es */
/* Creat
e the fontes used in dialogs and messag
es */
g_StdFontPointSize
=
FONT_DEFAULT_SIZE
;
g_MsgFontPointSize
=
FONT_DEFAULT_SIZE
;
g_DialogFontPointSize
=
FONT_DEFAULT_SIZE
;
...
...
@@ -155,12 +157,12 @@ void WinEDA_App::InitEDA_Appl( const wxString& name )
wxImage
::
AddHandler
(
new
wxJPEGHandler
);
wxFileSystem
::
AddHandler
(
new
wxZipFSHandler
);
// Analyse command line & init binary path
// Analyse
the
command line & init binary path
SetBinDir
();
ReadPdfBrowserInfos
();
// Internationalisation:
chargement du Dictionnaire de kicad
// Internationalisation:
loading the kicad suitable Dictionnary
m_EDA_CommonConfig
->
Read
(
wxT
(
"Language"
),
&
m_LanguageId
,
wxLANGUAGE_DEFAULT
);
bool
succes
=
SetLanguage
(
TRUE
);
...
...
@@ -262,7 +264,7 @@ bool WinEDA_App::SetBinDir()
void
WinEDA_App
::
GetSettings
()
/*********************************/
/*
Lit les infos utiles sauvees lors de la derniere utilisation du logiciel
/*
Get the last setup used (fontes, files opened...)
*/
{
wxString
Line
,
Ident
;
...
...
@@ -639,8 +641,11 @@ wxMenu* WinEDA_App::SetLanguageList( wxMenu* MasterMenu )
}
/**********************/
int
WinEDA_App
::
OnRun
()
/* Run init scripts */
/**********************/
/* Run init scripts
*/
{
#ifdef KICAD_PYTHON
PyHandler
::
GetInstance
()
->
RunScripts
();
...
...
common/msgpanel.cpp
View file @
d5d16186
...
...
@@ -141,7 +141,7 @@ void WinEDA_MsgPanel::Affiche_1_Parametre( int pos_X, const wxString& texte_H,
}
void
WinEDA_MsgPanel
::
showItem
(
wx
Window
DC
&
dc
,
const
MsgItem
&
aItem
)
void
WinEDA_MsgPanel
::
showItem
(
wxDC
&
dc
,
const
MsgItem
&
aItem
)
{
int
color
=
aItem
.
m_Color
;
...
...
cvpcb/listboxes.cpp
View file @
d5d16186
This diff is collapsed.
Click to expand it.
include/wxstruct.h
View file @
d5d16186
...
...
@@ -1409,7 +1409,7 @@ class WinEDA_MsgPanel : public wxPanel
protected
:
std
::
vector
<
MsgItem
>
m_Items
;
void
showItem
(
wx
Window
DC
&
dc
,
const
MsgItem
&
aItem
);
void
showItem
(
wxDC
&
dc
,
const
MsgItem
&
aItem
);
public
:
WinEDA_DrawFrame
*
m_Parent
;
...
...
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