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
cdd60c95
Commit
cdd60c95
authored
May 23, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Libedit: fix minor bug: Copy doc not working in Properties dialog.
parent
aac10106
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3673 additions
and
3671 deletions
+3673
-3671
dialog_edit_component_in_lib.cpp
eeschema/dialogs/dialog_edit_component_in_lib.cpp
+9
-7
dialog_edit_component_in_lib.h
eeschema/dialogs/dialog_edit_component_in_lib.h
+1
-1
dialog_edit_component_in_lib_base.cpp
eeschema/dialogs/dialog_edit_component_in_lib_base.cpp
+286
-286
dialog_edit_component_in_lib_base.fbp
eeschema/dialogs/dialog_edit_component_in_lib_base.fbp
+3262
-3262
dialog_edit_component_in_lib_base.h
eeschema/dialogs/dialog_edit_component_in_lib_base.h
+115
-115
No files found.
eeschema/dialogs/dialog_edit_component_in_lib.cpp
View file @
cdd60c95
...
@@ -236,25 +236,27 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnOkClick( wxCommandEvent& event )
...
@@ -236,25 +236,27 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnOkClick( wxCommandEvent& event )
}
}
void
DIALOG_EDIT_COMPONENT_IN_LIBRARY
::
CopyDocToAlias
(
wxCommandEvent
&
event
)
void
DIALOG_EDIT_COMPONENT_IN_LIBRARY
::
CopyDoc
FromRoot
ToAlias
(
wxCommandEvent
&
event
)
{
{
if
(
m_Parent
==
NULL
)
if
(
m_Parent
==
NULL
)
return
;
return
;
LIB_ALIAS
*
alias
;
LIB_ALIAS
*
parent_
alias
;
LIB_COMPONENT
*
component
=
m_Parent
->
GetComponent
();
LIB_COMPONENT
*
component
=
m_Parent
->
GetComponent
();
if
(
component
==
NULL
)
if
(
component
==
NULL
)
return
;
return
;
alias
=
component
->
GetAlias
(
m_Parent
->
GetAliasName
()
);
// search for the main alias: this is the first alias in alias list
// something like the main component
parent_alias
=
component
->
GetAlias
(
0
);
if
(
alias
==
NULL
)
if
(
parent_alias
==
NULL
)
// Should never occur (bug
)
return
;
return
;
m_DocCtrl
->
SetValue
(
alias
->
GetDescription
()
);
m_DocCtrl
->
SetValue
(
parent_
alias
->
GetDescription
()
);
m_DocfileCtrl
->
SetValue
(
alias
->
GetDocFileName
()
);
m_DocfileCtrl
->
SetValue
(
parent_
alias
->
GetDocFileName
()
);
m_KeywordsCtrl
->
SetValue
(
alias
->
GetKeyWords
()
);
m_KeywordsCtrl
->
SetValue
(
parent_
alias
->
GetKeyWords
()
);
}
}
...
...
eeschema/dialogs/dialog_edit_component_in_lib.h
View file @
cdd60c95
...
@@ -34,7 +34,7 @@ private:
...
@@ -34,7 +34,7 @@ private:
void
AddAliasOfPart
(
wxCommandEvent
&
event
);
void
AddAliasOfPart
(
wxCommandEvent
&
event
);
bool
ChangeNbUnitsPerPackage
(
int
newUnit
);
bool
ChangeNbUnitsPerPackage
(
int
newUnit
);
bool
SetUnsetConvert
();
bool
SetUnsetConvert
();
void
CopyDocToAlias
(
wxCommandEvent
&
event
);
void
CopyDoc
FromRoot
ToAlias
(
wxCommandEvent
&
event
);
void
BrowseAndSelectDocFile
(
wxCommandEvent
&
event
);
void
BrowseAndSelectDocFile
(
wxCommandEvent
&
event
);
void
DeleteAllFootprintFilter
(
wxCommandEvent
&
event
);
void
DeleteAllFootprintFilter
(
wxCommandEvent
&
event
);
...
...
eeschema/dialogs/dialog_edit_component_in_lib_base.cpp
View file @
cdd60c95
This diff is collapsed.
Click to expand it.
eeschema/dialogs/dialog_edit_component_in_lib_base.fbp
View file @
cdd60c95
This diff is collapsed.
Click to expand it.
eeschema/dialogs/dialog_edit_component_in_lib_base.h
View file @
cdd60c95
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 1
1 2012)
// C++ code generated with wxFormBuilder (version Apr 1
0 2012)
// http://www.wxformbuilder.org/
// http://www.wxformbuilder.org/
//
//
// PLEASE DO "NOT" EDIT THIS FILE!
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
#ifndef __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
#ifndef __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
#define __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
#define __DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
#include <wx/artprov.h>
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/intl.h>
#include "dialog_shim.h"
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/string.h>
#include <wx/checkbox.h>
#include <wx/checkbox.h>
#include <wx/gdicmn.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/statbox.h>
#include <wx/statline.h>
#include <wx/statline.h>
#include <wx/stattext.h>
#include <wx/stattext.h>
#include <wx/spinctrl.h>
#include <wx/spinctrl.h>
#include <wx/panel.h>
#include <wx/panel.h>
#include <wx/bitmap.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/icon.h>
#include <wx/textctrl.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/button.h>
#include <wx/listbox.h>
#include <wx/listbox.h>
#include <wx/notebook.h>
#include <wx/notebook.h>
#include <wx/dialog.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
#define ID_LIBEDIT_NOTEBOOK 1000
#define ID_LIBEDIT_NOTEBOOK 1000
#define ID_COPY_DOC_TO_ALIAS 1001
#define ID_COPY_DOC_TO_ALIAS 1001
#define ID_BROWSE_DOC_FILES 1002
#define ID_BROWSE_DOC_FILES 1002
#define ID_ADD_ALIAS 1003
#define ID_ADD_ALIAS 1003
#define ID_DELETE_ONE_ALIAS 1004
#define ID_DELETE_ONE_ALIAS 1004
#define ID_DELETE_ALL_ALIAS 1005
#define ID_DELETE_ALL_ALIAS 1005
#define ID_ADD_FOOTPRINT_FILTER 1006
#define ID_ADD_FOOTPRINT_FILTER 1006
#define ID_DELETE_ONE_FOOTPRINT_FILTER 1007
#define ID_DELETE_ONE_FOOTPRINT_FILTER 1007
#define ID_DELETE_ALL_FOOTPRINT_FILTER 1008
#define ID_DELETE_ALL_FOOTPRINT_FILTER 1008
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
/// Class DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
:
public
DIALOG_SHIM
class
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
:
public
DIALOG_SHIM
{
{
private
:
private
:
protected
:
protected
:
wxNotebook
*
m_NoteBook
;
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelBasic
;
wxPanel
*
m_PanelBasic
;
wxCheckBox
*
m_AsConvertButt
;
wxCheckBox
*
m_AsConvertButt
;
wxCheckBox
*
m_ShowPinNumButt
;
wxCheckBox
*
m_ShowPinNumButt
;
wxCheckBox
*
m_ShowPinNameButt
;
wxCheckBox
*
m_ShowPinNameButt
;
wxCheckBox
*
m_PinsNameInsideButt
;
wxCheckBox
*
m_PinsNameInsideButt
;
wxStaticLine
*
m_staticline3
;
wxStaticLine
*
m_staticline3
;
wxStaticText
*
m_staticTextNbUnits
;
wxStaticText
*
m_staticTextNbUnits
;
wxSpinCtrl
*
m_SelNumberOfUnits
;
wxSpinCtrl
*
m_SelNumberOfUnits
;
wxStaticText
*
m_staticTextskew
;
wxStaticText
*
m_staticTextskew
;
wxSpinCtrl
*
m_SetSkew
;
wxSpinCtrl
*
m_SetSkew
;
wxStaticLine
*
m_staticline1
;
wxStaticLine
*
m_staticline1
;
wxCheckBox
*
m_OptionPower
;
wxCheckBox
*
m_OptionPower
;
wxCheckBox
*
m_OptionPartsLocked
;
wxCheckBox
*
m_OptionPartsLocked
;
wxPanel
*
m_PanelDoc
;
wxPanel
*
m_PanelDoc
;
wxStaticText
*
m_staticTextDescription
;
wxStaticText
*
m_staticTextDescription
;
wxTextCtrl
*
m_DocCtrl
;
wxTextCtrl
*
m_DocCtrl
;
wxStaticText
*
m_staticTextKeywords
;
wxStaticText
*
m_staticTextKeywords
;
wxTextCtrl
*
m_KeywordsCtrl
;
wxTextCtrl
*
m_KeywordsCtrl
;
wxStaticText
*
m_staticTextDocFileName
;
wxStaticText
*
m_staticTextDocFileName
;
wxTextCtrl
*
m_DocfileCtrl
;
wxTextCtrl
*
m_DocfileCtrl
;
wxButton
*
m_ButtonCopyDoc
;
wxButton
*
m_ButtonCopyDoc
;
wxButton
*
m_buttonBrowseDocFiles
;
wxButton
*
m_buttonBrowseDocFiles
;
wxPanel
*
m_PanelAlias
;
wxPanel
*
m_PanelAlias
;
wxStaticText
*
m_staticTextAlias
;
wxStaticText
*
m_staticTextAlias
;
wxListBox
*
m_PartAliasListCtrl
;
wxListBox
*
m_PartAliasListCtrl
;
wxButton
*
m_ButtonAddeAlias
;
wxButton
*
m_ButtonAddeAlias
;
wxButton
*
m_ButtonDeleteOneAlias
;
wxButton
*
m_ButtonDeleteOneAlias
;
wxButton
*
m_ButtonDeleteAllAlias
;
wxButton
*
m_ButtonDeleteAllAlias
;
wxPanel
*
m_PanelFootprintFilter
;
wxPanel
*
m_PanelFootprintFilter
;
wxStaticText
*
m_staticTextFootprints
;
wxStaticText
*
m_staticTextFootprints
;
wxListBox
*
m_FootprintFilterListBox
;
wxListBox
*
m_FootprintFilterListBox
;
wxButton
*
m_buttonAddFpF
;
wxButton
*
m_buttonAddFpF
;
wxButton
*
m_ButtonDeleteOneFootprintFilter
;
wxButton
*
m_ButtonDeleteOneFootprintFilter
;
wxButton
*
m_ButtonDeleteAllFootprintFilter
;
wxButton
*
m_ButtonDeleteAllFootprintFilter
;
wxStdDialogButtonSizer
*
m_stdSizerButton
;
wxStdDialogButtonSizer
*
m_stdSizerButton
;
wxButton
*
m_stdSizerButtonOK
;
wxButton
*
m_stdSizerButtonOK
;
wxButton
*
m_stdSizerButtonCancel
;
wxButton
*
m_stdSizerButtonCancel
;
// Virtual event handlers, overide them in your derived class
// Virtual event handlers, overide them in your derived class
virtual
void
CopyDoc
ToAlias
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
CopyDoc
FromRootToAlias
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
BrowseAndSelectDocFile
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
BrowseAndSelectDocFile
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
AddAliasOfPart
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
AddAliasOfPart
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteAliasOfPart
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteAliasOfPart
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteAllAliasOfPart
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteAllAliasOfPart
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
AddFootprintFilter
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
AddFootprintFilter
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteOneFootprintFilter
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteOneFootprintFilter
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteAllFootprintFilter
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
DeleteAllFootprintFilter
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
public
:
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
ID_LIBEDIT_NOTEBOOK
,
const
wxString
&
title
=
_
(
"Lib Component Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
ID_LIBEDIT_NOTEBOOK
,
const
wxString
&
title
=
_
(
"Lib Component Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
();
~
DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE
();
};
};
#endif //__DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
#endif //__DIALOG_EDIT_COMPONENT_IN_LIB_BASE_H__
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