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
abd75ea3
Commit
abd75ea3
authored
Oct 29, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format to our standards
parent
8c76e2e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
34 deletions
+28
-34
cvframe.cpp
cvpcb/cvframe.cpp
+28
-34
No files found.
cvpcb/cvframe.cpp
View file @
abd75ea3
...
...
@@ -231,7 +231,7 @@ void WinEDA_CvpcbFrame::OnCloseWindow( wxCloseEvent& Event )
{
if
(
!
IsOK
(
this
,
_
(
"Problem when saving files, exit anyway ?"
)
)
)
{
Event
.
Veto
();
Event
.
Veto
();
return
;
}
}
...
...
@@ -281,6 +281,7 @@ void WinEDA_CvpcbFrame::ToFirstNA( wxCommandEvent& event )
selection
=
m_ListCmp
->
GetSelection
();
if
(
selection
<
0
)
selection
=
0
;
for
(
ii
=
0
;
Composant
!=
NULL
;
Composant
=
Composant
->
Pnext
)
{
if
(
Composant
->
m_Module
.
IsEmpty
()
&&
(
ii
>
selection
)
)
...
...
@@ -396,20 +397,19 @@ void WinEDA_CvpcbFrame::LoadNetList( wxCommandEvent& event )
switch
(
id
)
{
case
ID_LOAD_FILE_1
:
case
ID_LOAD_FILE_2
:
case
ID_LOAD_FILE_3
:
case
ID_LOAD_FILE_4
:
case
ID_LOAD_FILE_5
:
case
ID_LOAD_FILE_6
:
case
ID_LOAD_FILE_7
:
case
ID_LOAD_FILE_8
:
case
ID_LOAD_FILE_9
:
case
ID_LOAD_FILE_10
:
case
ID_LOAD_FILE_1
:
case
ID_LOAD_FILE_2
:
case
ID_LOAD_FILE_3
:
case
ID_LOAD_FILE_4
:
case
ID_LOAD_FILE_5
:
case
ID_LOAD_FILE_6
:
case
ID_LOAD_FILE_7
:
case
ID_LOAD_FILE_8
:
case
ID_LOAD_FILE_9
:
case
ID_LOAD_FILE_10
:
id
-=
ID_LOAD_FILE_1
;
fullfilename
=
GetLastProject
(
id
);
break
;
break
;
}
newfile
=
ReadInputNetList
(
fullfilename
);
...
...
@@ -460,7 +460,7 @@ void WinEDA_CvpcbFrame::AddFontSelectionMenu( wxMenu* main_menu )
ID_PREFERENCES_FONT_DIALOG
,
_
(
"Dialog boxes"
),
fonts_xpm
);
ADD_MENUITEM
(
fontmenu
,
ID_PREFERENCES_FONT_INFOSCREEN
,
_
(
"Lists"
),
...
...
@@ -517,30 +517,24 @@ void WinEDA_CvpcbFrame::ProcessFontPreferences( wxCommandEvent& event )
switch
(
id
)
{
case
ID_PREFERENCES_FONT
:
case
ID_PREFERENCES_FONT_DIALOG
:
case
ID_PREFERENCES_FONT_STATUS
:
case
ID_PREFERENCES_FONT
:
case
ID_PREFERENCES_FONT_DIALOG
:
case
ID_PREFERENCES_FONT_STATUS
:
WinEDA_BasicFrame
::
ProcessFontPreferences
(
id
);
break
;
break
;
case
ID_PREFERENCES_FONT_INFOSCREEN
:
{
font
=
wxGetFontFromUser
(
this
,
*
g_FixedFont
);
if
(
font
.
Ok
()
)
{
int
pointsize
=
font
.
GetPointSize
();
*
g_FixedFont
=
font
;
g_FixedFontPointSize
=
pointsize
;
m_FootprintList
->
SetFont
(
*
g_FixedFont
);
m_ListCmp
->
SetFont
(
*
g_FixedFont
);
}
break
;
}
font
=
wxGetFontFromUser
(
this
,
*
g_FixedFont
);
if
(
font
.
Ok
()
)
{
int
pointsize
=
font
.
GetPointSize
();
*
g_FixedFont
=
font
;
g_FixedFontPointSize
=
pointsize
;
m_FootprintList
->
SetFont
(
*
g_FixedFont
);
m_ListCmp
->
SetFont
(
*
g_FixedFont
);
}
break
;
default
:
DisplayError
(
this
,
wxT
(
"WinEDA_DrawFrame::ProcessFontPreferences Internal Error"
)
);
...
...
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