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
36fa92a1
Commit
36fa92a1
authored
Nov 25, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dialogblocks syncing
parent
1bc33543
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
301 additions
and
57 deletions
+301
-57
dialog_track_options.cpp
pcbnew/dialog_track_options.cpp
+30
-28
dialog_track_options.h
pcbnew/dialog_track_options.h
+8
-12
dialog_track_options.pjd
pcbnew/dialog_track_options.pjd
+263
-17
No files found.
pcbnew/dialog_track_options.cpp
View file @
36fa92a1
...
...
@@ -47,11 +47,11 @@ IMPLEMENT_DYNAMIC_CLASS( WinEDA_PcbTracksDialog, wxDialog )
BEGIN_EVENT_TABLE
(
WinEDA_PcbTracksDialog
,
wxDialog
)
////@begin WinEDA_PcbTracksDialog event table entries
EVT_
BUTTON
(
wxID_OK
,
WinEDA_PcbTracksDialog
::
OnOkClick
)
EVT_
INIT_DIALOG
(
WinEDA_PcbTracksDialog
::
OnInitDialog
)
EVT_BUTTON
(
wxID_
CANCEL
,
WinEDA_PcbTracksDialog
::
OnCancel
Click
)
EVT_BUTTON
(
wxID_
OK
,
WinEDA_PcbTracksDialog
::
OnOk
Click
)
EVT_
ACTIVATE
(
WinEDA_PcbTracksDialog
::
OnActivate
)
EVT_
BUTTON
(
wxID_CANCEL
,
WinEDA_PcbTracksDialog
::
OnCancelClick
)
////@end WinEDA_PcbTracksDialog event table entries
...
...
@@ -71,21 +71,6 @@ WinEDA_PcbTracksDialog::WinEDA_PcbTracksDialog( WinEDA_PcbFrame* parent, wxWindo
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
}
/**
* Function OnActivate
* gets control when the dialog becomes activated.
* After creation, not during creation.
*/
void
WinEDA_PcbTracksDialog
::
OnActivate
(
wxActivateEvent
&
event
)
{
m_OptViaSize
->
SetFocus
();
// deselect the existing text, seems SetFocus() wants to emulate Microsoft, which is not desireable here.
m_OptViaSize
->
SetSelection
(
0
,
0
);
event
.
Skip
();
}
/*!
* WinEDA_PcbTracksDialog creator
...
...
@@ -110,12 +95,14 @@ bool WinEDA_PcbTracksDialog::Create( wxWindow* parent, wxWindowID id, const wxSt
////@end WinEDA_PcbTracksDialog member initialisation
////@begin WinEDA_PcbTracksDialog creation
SetExtraStyle
(
GetExtraStyle
()
|
wxWS_EX_BLOCK_EVENTS
);
SetExtraStyle
(
wxWS_EX_BLOCK_EVENTS
);
wxDialog
::
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
CreateControls
();
GetSizer
()
->
Fit
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
if
(
GetSizer
())
{
GetSizer
()
->
SetSizeHints
(
this
);
}
Centre
();
////@end WinEDA_PcbTracksDialog creation
return
true
;
...
...
@@ -130,7 +117,7 @@ void WinEDA_PcbTracksDialog::CreateControls()
SetFont
(
*
g_DialogFont
);
////@begin WinEDA_PcbTracksDialog content construction
// Generated by DialogBlocks,
25/02/2006 08:02:26
(unregistered)
// Generated by DialogBlocks,
Sun 25 Nov 2007 15:41:58 CST
(unregistered)
WinEDA_PcbTracksDialog
*
itemDialog1
=
this
;
...
...
@@ -160,12 +147,12 @@ void WinEDA_PcbTracksDialog::CreateControls()
itemBoxSizer3
->
Add
(
5
,
5
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
wx
String
m_OptViaTypeStrings
[]
=
{
_
(
"Blind Via"
),
_
(
"Buried Via"
),
_
(
"Standard Via"
)
}
;
m_OptViaType
=
new
wxRadioBox
(
itemDialog1
,
ID_VIA_TYPE_SELECTION
,
_
(
"Via Type"
),
wxDefaultPosition
,
wxDefaultSize
,
3
,
m_OptViaTypeStrings
,
1
,
wxRA_SPECIFY_COLS
);
wx
ArrayString
m_OptViaTypeStrings
;
m_OptViaTypeStrings
.
Add
(
_
(
"Blind Via"
));
m_OptViaTypeStrings
.
Add
(
_
(
"Buried Via"
));
m_OptViaTypeStrings
.
Add
(
_
(
"Standard Via"
));
m_OptViaType
=
new
wxRadioBox
(
itemDialog1
,
ID_VIA_TYPE_SELECTION
,
_
(
"Via Type"
),
wxDefaultPosition
,
wxDefaultSize
,
m_OptViaTypeStrings
,
1
,
wxRA_SPECIFY_COLS
)
;
m_OptViaType
->
SetSelection
(
0
);
itemBoxSizer3
->
Add
(
m_OptViaType
,
0
,
wxGROW
|
wxALL
,
5
);
itemBoxSizer2
->
Add
(
5
,
5
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
...
...
@@ -389,3 +376,18 @@ void WinEDA_PcbTracksDialog::OnCancelClick( wxCommandEvent& event )
}
/*!
* wxEVT_INIT_DIALOG event handler for ID_DIALOG
*/
void
WinEDA_PcbTracksDialog
::
OnInitDialog
(
wxInitDialogEvent
&
event
)
{
m_OptViaSize
->
SetFocus
();
// deselect the existing text, seems SetFocus() wants to emulate Microsoft, which is not desireable here.
m_OptViaSize
->
SetSelection
(
0
,
0
);
event
.
Skip
();
}
pcbnew/dialog_track_options.h
View file @
36fa92a1
...
...
@@ -38,11 +38,6 @@
////@begin control identifiers
#define ID_DIALOG 10000
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_TITLE _("Tracks and Vias Sizes")
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_POSITION wxDefaultPosition
#define ID_TEXTCTRL 10001
#define ID_TEXTCTRL1 10002
#define ID_TEXTCTRL2 10003
...
...
@@ -50,6 +45,11 @@
#define ID_TEXTCTRL3 10005
#define ID_TEXTCTRL4 10006
#define ID_TEXTCTRL5 10007
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_TITLE _("Tracks and Vias Sizes")
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_PCBTRACKSDIALOG_POSITION wxDefaultPosition
////@end control identifiers
/*!
...
...
@@ -82,19 +82,15 @@ public:
////@begin WinEDA_PcbTracksDialog event handler declarations
/// wxEVT_INIT_DIALOG event handler for ID_DIALOG
void
OnInitDialog
(
wxInitDialogEvent
&
event
);
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
void
OnOkClick
(
wxCommandEvent
&
event
);
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
void
OnCancelClick
(
wxCommandEvent
&
event
);
/**
* Function OnActivate
* gets control when the dialog becomes activated.
* After creation, not during creation.
*/
void
OnActivate
(
wxActivateEvent
&
event
);
////@end WinEDA_PcbTracksDialog event handler declarations
////@begin WinEDA_PcbTracksDialog member function declarations
...
...
pcbnew/dialog_track_options.pjd
View file @
36fa92a1
This diff is collapsed.
Click to expand it.
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