Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
7d6080a4
Commit
7d6080a4
authored
Aug 30, 2010
by
coppro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some overload issues with wxWidgets.
parent
6569b5b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/gui/set/cards_panel.cpp
src/gui/set/cards_panel.cpp
+7
-6
No files found.
src/gui/set/cards_panel.cpp
View file @
7d6080a4
...
@@ -63,10 +63,11 @@ class FilterCtrl : public wxControl {
...
@@ -63,10 +63,11 @@ class FilterCtrl : public wxControl {
void
update
();
void
update
();
bool
hasFocus
();
bool
hasFocus
();
// wxWidgets appears to have developed an overload allergy
void
onChange
();
void
onChange
();
void
onChange
(
wxCommandEvent
&
);
void
onChange
Event
(
wxCommandEvent
&
);
void
onClear
(
wxCommandEvent
&
);
void
onClear
(
wxCommandEvent
&
);
void
onSize
(
wxSizeEvent
&
);
void
onSize
Event
(
wxSizeEvent
&
);
void
onSize
();
void
onSize
();
public:
public:
void
onSetFocus
(
wxFocusEvent
&
);
void
onSetFocus
(
wxFocusEvent
&
);
...
@@ -118,7 +119,7 @@ void FilterCtrl::update() {
...
@@ -118,7 +119,7 @@ void FilterCtrl::update() {
changing
=
false
;
changing
=
false
;
}
}
void
FilterCtrl
::
onChange
(
wxCommandEvent
&
)
{
void
FilterCtrl
::
onChange
Event
(
wxCommandEvent
&
)
{
if
(
!
changing
)
{
if
(
!
changing
)
{
setFilter
(
filter_ctrl
->
GetValue
(),
true
);
setFilter
(
filter_ctrl
->
GetValue
(),
true
);
}
}
...
@@ -128,7 +129,7 @@ void FilterCtrl::onClear(wxCommandEvent&) {
...
@@ -128,7 +129,7 @@ void FilterCtrl::onClear(wxCommandEvent&) {
setFilter
(
String
(),
true
);
setFilter
(
String
(),
true
);
}
}
void
FilterCtrl
::
onSize
(
wxSizeEvent
&
)
{
void
FilterCtrl
::
onSize
Event
(
wxSizeEvent
&
)
{
onSize
();
onSize
();
}
}
void
FilterCtrl
::
onSize
()
{
void
FilterCtrl
::
onSize
()
{
...
@@ -155,8 +156,8 @@ bool FilterCtrl::hasFocus() {
...
@@ -155,8 +156,8 @@ bool FilterCtrl::hasFocus() {
BEGIN_EVENT_TABLE
(
FilterCtrl
,
wxControl
)
BEGIN_EVENT_TABLE
(
FilterCtrl
,
wxControl
)
EVT_BUTTON
(
wxID_ANY
,
FilterCtrl
::
onClear
)
EVT_BUTTON
(
wxID_ANY
,
FilterCtrl
::
onClear
)
EVT_TEXT
(
wxID_ANY
,
FilterCtrl
::
onChange
)
EVT_TEXT
(
wxID_ANY
,
FilterCtrl
::
onChange
Event
)
EVT_SIZE
(
FilterCtrl
::
onSize
)
EVT_SIZE
(
FilterCtrl
::
onSize
Event
)
EVT_SET_FOCUS
(
FilterCtrl
::
onSetFocus
)
EVT_SET_FOCUS
(
FilterCtrl
::
onSetFocus
)
EVT_KILL_FOCUS
(
FilterCtrl
::
onKillFocus
)
EVT_KILL_FOCUS
(
FilterCtrl
::
onKillFocus
)
END_EVENT_TABLE
()
END_EVENT_TABLE
()
...
...
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