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
86210d10
Commit
86210d10
authored
Sep 02, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added file.
parent
cc4b3623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
dialog_design_rules_aux_helper_class.h
pcbnew/dialog_design_rules_aux_helper_class.h
+46
-0
No files found.
pcbnew/dialog_design_rules_aux_helper_class.h
0 → 100644
View file @
86210d10
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_DESIGN_RULES
///////////////////////////////////////////////////////////////////////////////
#ifndef __dialog_design_rules_aux_helper_class_h_
#define __dialog_design_rules_aux_helper_class_h_
#include <wx/listctrl.h>
/* helper class to display lists of nets and associated netclasses
* used in dialog design rules.
* It s needed because the 2 wxListCtlr used to display lists of nets
* use the wxLC_VIRTUAL option.
* The virtual wxString OnGetItemText(long item, long column) const method
* must be overlaid.
*/
class
NETS_LIST_CTRL
:
public
wxListCtrl
{
private
:
wxArrayString
m_Netnames
;
///< an array to store the list of nets (column 0)
wxArrayString
m_Classnames
;
///< an array to store the list of netclasse (column 1)
public
:
NETS_LIST_CTRL
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxDefaultSize
,
long
style
=
wxLC_ICON
)
:
wxListCtrl
(
parent
,
id
,
pos
,
size
,
style
)
{
};
NETS_LIST_CTRL
()
{
};
void
setRowItems
(
unsigned
aRow
,
const
wxString
&
aNetname
,
const
wxString
&
aNetclassName
);
void
ClearList
()
{
SetItemCount
(
0
);
m_Netnames
.
Clear
();
m_Classnames
.
Clear
();
}
virtual
wxString
OnGetItemText
(
long
item
,
long
column
)
const
;
};
#endif //__dialog_design_rules_aux_helper_class_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