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
4f678a91
Commit
4f678a91
authored
May 30, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed invisible buttons in PNS settings dialog (at least for some GTK themes).
parent
764c18bd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
224 deletions
+60
-224
dialog_pns_settings_base.cpp
pcbnew/dialogs/dialog_pns_settings_base.cpp
+12
-16
dialog_pns_settings_base.fbp
pcbnew/dialogs/dialog_pns_settings_base.fbp
+43
-204
dialog_pns_settings_base.h
pcbnew/dialogs/dialog_pns_settings_base.h
+5
-4
No files found.
pcbnew/dialogs/dialog_pns_settings_base.cpp
View file @
4f678a91
...
...
@@ -89,20 +89,16 @@ DIALOG_PNS_SETTINGS_BASE::DIALOG_PNS_SETTINGS_BASE( wxWindow* parent, wxWindowID
bEffort
->
Add
(
bSlider
,
1
,
wxEXPAND
,
5
);
bOptions
->
Add
(
bEffort
,
1
,
wx
ALL
|
wx
EXPAND
,
5
);
bOptions
->
Add
(
bEffort
,
1
,
wxEXPAND
,
5
);
wxBoxSizer
*
bButtons
;
bButtons
=
new
wxBoxSizer
(
wxHORIZONTAL
);
m_stdButtons
=
new
wxStdDialogButtonSizer
();
m_stdButtonsOK
=
new
wxButton
(
this
,
wxID_OK
);
m_stdButtons
->
AddButton
(
m_stdButtonsOK
);
m_stdButtonsCancel
=
new
wxButton
(
this
,
wxID_CANCEL
);
m_stdButtons
->
AddButton
(
m_stdButtonsCancel
);
m_stdButtons
->
Realize
();
m_ok
=
new
wxButton
(
this
,
wxID_OK
,
_
(
"OK"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_ok
->
SetDefault
();
bButtons
->
Add
(
m_ok
,
1
,
wxALL
,
5
);
m_cancel
=
new
wxButton
(
this
,
wxID_CANCEL
,
_
(
"Cancel"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bButtons
->
Add
(
m_cancel
,
1
,
wxALL
,
5
);
bOptions
->
Add
(
bButtons
,
1
,
wxEXPAND
,
5
);
bOptions
->
Add
(
m_stdButtons
,
1
,
wxEXPAND
,
5
);
bMainSizer
->
Add
(
bOptions
,
1
,
wxEXPAND
,
5
);
...
...
@@ -113,15 +109,15 @@ DIALOG_PNS_SETTINGS_BASE::DIALOG_PNS_SETTINGS_BASE( wxWindow* parent, wxWindowID
// Connect Events
this
->
Connect
(
wxEVT_CLOSE_WINDOW
,
wxCloseEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnClose
)
);
m_
ok
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnOk
Click
),
NULL
,
this
);
m_
cancel
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnCancel
Click
),
NULL
,
this
);
m_
stdButtonsCancel
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnCancel
Click
),
NULL
,
this
);
m_
stdButtonsOK
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnOk
Click
),
NULL
,
this
);
}
DIALOG_PNS_SETTINGS_BASE
::~
DIALOG_PNS_SETTINGS_BASE
()
{
// Disconnect Events
this
->
Disconnect
(
wxEVT_CLOSE_WINDOW
,
wxCloseEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnClose
)
);
m_
ok
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnOk
Click
),
NULL
,
this
);
m_
cancel
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnCancel
Click
),
NULL
,
this
);
m_
stdButtonsCancel
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnCancel
Click
),
NULL
,
this
);
m_
stdButtonsOK
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_PNS_SETTINGS_BASE
::
OnOk
Click
),
NULL
,
this
);
}
pcbnew/dialogs/dialog_pns_settings_base.fbp
View file @
4f678a91
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_pns_settings_base.h
View file @
4f678a91
...
...
@@ -48,18 +48,19 @@ class DIALOG_PNS_SETTINGS_BASE : public wxDialog
wxSlider
*
m_effort
;
wxStaticText
*
m_lowLabel
;
wxStaticText
*
m_highLabel
;
wxButton
*
m_ok
;
wxButton
*
m_cancel
;
wxStdDialogButtonSizer
*
m_stdButtons
;
wxButton
*
m_stdButtonsOK
;
wxButton
*
m_stdButtonsCancel
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnClose
(
wxCloseEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
DIALOG_PNS_SETTINGS_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Interactive Router settings"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
289
,
504
),
long
style
=
wxDEFAULT_DIALOG_STYLE
);
DIALOG_PNS_SETTINGS_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Interactive Router settings"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
313
,
528
),
long
style
=
wxDEFAULT_DIALOG_STYLE
);
~
DIALOG_PNS_SETTINGS_BASE
();
};
...
...
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