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
433b2a09
Commit
433b2a09
authored
Jun 11, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Online doc format changed to PDF format. See changelog
parent
0d93814e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
23 deletions
+151
-23
cvframe.cpp
cvpcb/cvframe.cpp
+10
-4
cvpcb.h
cvpcb/cvpcb.h
+6
-1
dialog_cvpcb_config.cpp
cvpcb/dialog_cvpcb_config.cpp
+7
-4
dialog_cvpcb_config.h
cvpcb/dialog_cvpcb_config.h
+1
-0
dialog_cvpcb_config.pjd
cvpcb/dialog_cvpcb_config.pjd
+120
-4
menucfg.cpp
cvpcb/menucfg.cpp
+2
-5
tool_cvpcb.cpp
cvpcb/tool_cvpcb.cpp
+5
-5
No files found.
cvpcb/cvframe.cpp
View file @
433b2a09
...
@@ -172,7 +172,7 @@ void WinEDA_CvpcbFrame::OnCloseWindow( wxCloseEvent& Event )
...
@@ -172,7 +172,7 @@ void WinEDA_CvpcbFrame::OnCloseWindow( wxCloseEvent& Event )
if
(
modified
)
if
(
modified
)
{
{
unsigned
ii
;
unsigned
ii
;
wxMessageDialog
dialog
(
this
,
_
(
"Netlist and Cmp list modified, Save before exit ?"
),
wxMessageDialog
dialog
(
this
,
_
(
"Netlist and Cmp list modified, Save before exit ?"
),
_
(
_
(
"Confirmation"
),
wxYES_NO
|
wxCANCEL
|
wxICON_EXCLAMATION
|
"Confirmation"
),
wxYES_NO
|
wxCANCEL
|
wxICON_EXCLAMATION
|
...
@@ -450,10 +450,16 @@ void WinEDA_CvpcbFrame::SetLanguage( wxCommandEvent& event )
...
@@ -450,10 +450,16 @@ void WinEDA_CvpcbFrame::SetLanguage( wxCommandEvent& event )
void
WinEDA_CvpcbFrame
::
DisplayDocFile
(
wxCommandEvent
&
event
)
void
WinEDA_CvpcbFrame
::
DisplayDocFile
(
wxCommandEvent
&
event
)
/*************************************************************/
/*************************************************************/
{
{
wxString
msg
=
FindKicadHelpPath
()
;
wxString
DocModuleFileName
,
fullfilename
;
msg
+=
wxT
(
"pcbnew/footprints.pdf"
);
DocModuleFileName
=
g_EDA_Appl
->
m_EDA_CommonConfig
->
Read
(
DOC_FOOTPRINTS_LIST_KEY
,
GetAssociatedDocument
(
this
,
wxEmptyString
,
msg
);
DEFAULT_FOOTPRINTS_LIST_FILENAME
);
if
(
wxIsAbsolutePath
(
DocModuleFileName
)
)
fullfilename
=
DocModuleFileName
;
else
fullfilename
=
FindKicadHelpPath
()
+
wxT
(
"../"
)
+
DocModuleFileName
;
GetAssociatedDocument
(
this
,
wxEmptyString
,
fullfilename
);
}
}
...
...
cvpcb/cvpcb.h
View file @
433b2a09
...
@@ -14,7 +14,12 @@
...
@@ -14,7 +14,12 @@
#include "gr_basic.h"
#include "gr_basic.h"
#include "colors.h"
#include "colors.h"
// Define print format d to display a schematic component line
// config for footprints doc file acces
#define DOC_FOOTPRINTS_LIST_KEY wxT("footprints_doc_file")
#define DEFAULT_FOOTPRINTS_LIST_FILENAME wxT("footprints_doc/footprints.pdf")
// Define print format to display a schematic component line
#define CMP_FORMAT wxT( "%3d %8s - %16s : %-.32s" )
#define CMP_FORMAT wxT( "%3d %8s - %16s : %-.32s" )
#define FILTERFOOTPRINTKEY "FilterFootprint"
#define FILTERFOOTPRINTKEY "FilterFootprint"
...
...
cvpcb/dialog_cvpcb_config.cpp
View file @
433b2a09
...
@@ -85,6 +85,7 @@ wxString title;
...
@@ -85,6 +85,7 @@ wxString title;
bool
KiConfigCvpcbFrame
::
Create
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
bool
KiConfigCvpcbFrame
::
Create
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
{
{
////@begin KiConfigCvpcbFrame member initialisation
////@begin KiConfigCvpcbFrame member initialisation
m_OkButton
=
NULL
;
m_NetFormatBox
=
NULL
;
m_NetFormatBox
=
NULL
;
m_FileExtList
=
NULL
;
m_FileExtList
=
NULL
;
m_RightBoxSizer
=
NULL
;
m_RightBoxSizer
=
NULL
;
...
@@ -118,7 +119,7 @@ void KiConfigCvpcbFrame::CreateControls()
...
@@ -118,7 +119,7 @@ void KiConfigCvpcbFrame::CreateControls()
SetFont
(
*
g_DialogFont
);
SetFont
(
*
g_DialogFont
);
////@begin KiConfigCvpcbFrame content construction
////@begin KiConfigCvpcbFrame content construction
// Generated by DialogBlocks,
27/10/2007 10:35:4
3 (unregistered)
// Generated by DialogBlocks,
11/06/2008 14:26:1
3 (unregistered)
KiConfigCvpcbFrame
*
itemDialog1
=
this
;
KiConfigCvpcbFrame
*
itemDialog1
=
this
;
...
@@ -136,9 +137,10 @@ void KiConfigCvpcbFrame::CreateControls()
...
@@ -136,9 +137,10 @@ void KiConfigCvpcbFrame::CreateControls()
itemButton5
->
SetForegroundColour
(
wxColour
(
0
,
0
,
255
));
itemButton5
->
SetForegroundColour
(
wxColour
(
0
,
0
,
255
));
itemBoxSizer3
->
Add
(
itemButton5
,
0
,
wxGROW
|
wxLEFT
|
wxRIGHT
,
5
);
itemBoxSizer3
->
Add
(
itemButton5
,
0
,
wxGROW
|
wxLEFT
|
wxRIGHT
,
5
);
wxButton
*
itemButton6
=
new
wxButton
(
itemDialog1
,
wxID_OK
,
_
(
"&OK"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_OkButton
=
new
wxButton
(
itemDialog1
,
wxID_OK
,
_
(
"&OK"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
itemButton6
->
SetForegroundColour
(
wxColour
(
0
,
128
,
0
));
m_OkButton
->
SetDefault
();
itemBoxSizer3
->
Add
(
itemButton6
,
0
,
wxGROW
|
wxALL
,
5
);
m_OkButton
->
SetForegroundColour
(
wxColour
(
0
,
128
,
0
));
itemBoxSizer3
->
Add
(
m_OkButton
,
0
,
wxGROW
|
wxALL
,
5
);
wxArrayString
m_NetFormatBoxStrings
;
wxArrayString
m_NetFormatBoxStrings
;
m_NetFormatBoxStrings
.
Add
(
_
(
"&PcbNew"
));
m_NetFormatBoxStrings
.
Add
(
_
(
"&PcbNew"
));
...
@@ -234,6 +236,7 @@ void KiConfigCvpcbFrame::CreateControls()
...
@@ -234,6 +236,7 @@ void KiConfigCvpcbFrame::CreateControls()
////@end KiConfigCvpcbFrame content construction
////@end KiConfigCvpcbFrame content construction
SetDialogDatas
();
SetDialogDatas
();
m_OkButton
->
SetFocus
(
);
}
}
/*!
/*!
...
...
cvpcb/dialog_cvpcb_config.h
View file @
433b2a09
...
@@ -140,6 +140,7 @@ public:
...
@@ -140,6 +140,7 @@ public:
////@begin KiConfigCvpcbFrame member variables
////@begin KiConfigCvpcbFrame member variables
wxButton
*
m_OkButton
;
wxRadioBox
*
m_NetFormatBox
;
wxRadioBox
*
m_NetFormatBox
;
wxStaticBoxSizer
*
m_FileExtList
;
wxStaticBoxSizer
*
m_FileExtList
;
wxBoxSizer
*
m_RightBoxSizer
;
wxBoxSizer
*
m_RightBoxSizer
;
...
...
cvpcb/dialog_cvpcb_config.pjd
View file @
433b2a09
This diff is collapsed.
Click to expand it.
cvpcb/menucfg.cpp
View file @
433b2a09
...
@@ -24,9 +24,6 @@
...
@@ -24,9 +24,6 @@
#include "protos.h"
#include "protos.h"
/* Routines Locales */
/*****************************************/
/*****************************************/
/* classe pour la frame de Configuration */
/* classe pour la frame de Configuration */
/*****************************************/
/*****************************************/
...
@@ -86,7 +83,7 @@ void KiConfigCvpcbFrame::SetDialogDatas()
...
@@ -86,7 +83,7 @@ void KiConfigCvpcbFrame::SetDialogDatas()
m_PkgExtBoxSizer
,
wxDefaultSize
);
m_PkgExtBoxSizer
,
wxDefaultSize
);
wxString
DocModuleFileName
=
wxString
DocModuleFileName
=
g_EDA_Appl
->
m_EDA_CommonConfig
->
Read
(
wxT
(
"module_doc_file"
),
wxT
(
"pcbnew/footprints.pdf"
)
);
g_EDA_Appl
->
m_EDA_CommonConfig
->
Read
(
DOC_FOOTPRINTS_LIST_KEY
,
DEFAULT_FOOTPRINTS_LIST_FILENAME
);
m_TextHelpModulesFileName
=
new
WinEDA_EnterText
(
this
,
m_TextHelpModulesFileName
=
new
WinEDA_EnterText
(
this
,
_
(
"Module Doc File:"
),
DocModuleFileName
,
_
(
"Module Doc File:"
),
DocModuleFileName
,
m_RightBoxSizer
,
wxDefaultSize
);
m_RightBoxSizer
,
wxDefaultSize
);
...
@@ -132,7 +129,7 @@ wxString msg;
...
@@ -132,7 +129,7 @@ wxString msg;
if
(
!
m_DoUpdate
)
return
;
if
(
!
m_DoUpdate
)
return
;
NetInExtBuffer
=
m_NetInputExtCtrl
->
GetValue
();
NetInExtBuffer
=
m_NetInputExtCtrl
->
GetValue
();
PkgInExtBuffer
=
m_PkgExtCtrl
->
GetValue
();
PkgInExtBuffer
=
m_PkgExtCtrl
->
GetValue
();
g_EDA_Appl
->
m_EDA_CommonConfig
->
Write
(
wxT
(
"module_doc_file"
)
,
g_EDA_Appl
->
m_EDA_CommonConfig
->
Write
(
DOC_FOOTPRINTS_LIST_KEY
,
m_TextHelpModulesFileName
->
GetValue
());
m_TextHelpModulesFileName
->
GetValue
());
msg
=
m_LibDirCtrl
->
GetValue
();
msg
=
m_LibDirCtrl
->
GetValue
();
...
...
cvpcb/tool_cvpcb.cpp
View file @
433b2a09
...
@@ -32,7 +32,7 @@ void WinEDA_CvpcbFrame::ReCreateHToolbar()
...
@@ -32,7 +32,7 @@ void WinEDA_CvpcbFrame::ReCreateHToolbar()
_
(
"Open a NetList file"
));
_
(
"Open a NetList file"
));
m_HToolBar
->
AddTool
(
ID_CVPCB_SAVEQUITCVPCB
,
BITMAP
(
save_xpm
),
m_HToolBar
->
AddTool
(
ID_CVPCB_SAVEQUITCVPCB
,
BITMAP
(
save_xpm
),
_
(
"Save NetList and
Compone
nts List files"
));
_
(
"Save NetList and
Footpri
nts List files"
));
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_CONFIGWINDOW
,
BITMAP
(
config_xpm
),
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_CONFIGWINDOW
,
BITMAP
(
config_xpm
),
...
@@ -40,7 +40,7 @@ void WinEDA_CvpcbFrame::ReCreateHToolbar()
...
@@ -40,7 +40,7 @@ void WinEDA_CvpcbFrame::ReCreateHToolbar()
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_SCREENCMP
,
BITMAP
(
module_xpm
),
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_SCREENCMP
,
BITMAP
(
module_xpm
),
_
(
"View selected
par
t"
));
_
(
"View selected
footprin
t"
));
m_HToolBar
->
AddTool
(
ID_CVPCB_AUTO_ASSOCIE
,
BITMAP
(
auto_associe_xpm
),
m_HToolBar
->
AddTool
(
ID_CVPCB_AUTO_ASSOCIE
,
BITMAP
(
auto_associe_xpm
),
_
(
"Automatic Association"
));
_
(
"Automatic Association"
));
...
@@ -58,11 +58,11 @@ void WinEDA_CvpcbFrame::ReCreateHToolbar()
...
@@ -58,11 +58,11 @@ void WinEDA_CvpcbFrame::ReCreateHToolbar()
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_STUFF_FILE
,
BITMAP
(
save_cmpstuff_xpm
),
m_HToolBar
->
AddTool
(
ID_CVPCB_CREATE_STUFF_FILE
,
BITMAP
(
save_cmpstuff_xpm
),
_
(
"Create stuff file (component/
module
list)"
));
_
(
"Create stuff file (component/
footprint
list)"
));
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddTool
(
ID_PCB_DISPLAY_FOOTPRINT_DOC
,
BITMAP
(
file_footprint_xpm
),
m_HToolBar
->
AddTool
(
ID_PCB_DISPLAY_FOOTPRINT_DOC
,
BITMAP
(
file_footprint_xpm
),
_
(
"Display
/print component documentation (footprint.pdf)
"
));
_
(
"Display
footprints list documentation
"
));
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
m_HToolBar
->
AddSeparator
();
...
@@ -114,7 +114,7 @@ wxMenuBar * menuBar = GetMenuBar();
...
@@ -114,7 +114,7 @@ wxMenuBar * menuBar = GetMenuBar();
m_FilesMenu
->
AppendSeparator
();
m_FilesMenu
->
AppendSeparator
();
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_SAVE_PROJECT
,
item
=
new
wxMenuItem
(
m_FilesMenu
,
ID_SAVE_PROJECT
,
_
(
"&Save As..."
),
_
(
"&Save As..."
),
_
(
"Save New NetList and
Compone
nts List files"
)
);
_
(
"Save New NetList and
Footpri
nts List files"
)
);
item
->
SetBitmap
(
save_xpm
);
item
->
SetBitmap
(
save_xpm
);
m_FilesMenu
->
Append
(
item
);
m_FilesMenu
->
Append
(
item
);
...
...
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