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
5bb79f8f
Commit
5bb79f8f
authored
Dec 07, 2010
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* compatibility with wxWdigets 2.9+: Handle MOUSE_CAPTURE_LOST event
* use wxBORDER_THEME for custom controls
parent
de6fc875
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/gui/symbol/control.cpp
src/gui/symbol/control.cpp
+1
-1
src/gui/symbol/part_list.cpp
src/gui/symbol/part_list.cpp
+6
-1
src/gui/symbol/part_list.hpp
src/gui/symbol/part_list.hpp
+1
-0
No files found.
src/gui/symbol/control.cpp
View file @
5bb79f8f
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
// ----------------------------------------------------------------------------- : SymbolControl
// ----------------------------------------------------------------------------- : SymbolControl
SymbolControl
::
SymbolControl
(
SymbolWindow
*
parent
,
int
id
,
const
SymbolP
&
symbol
)
SymbolControl
::
SymbolControl
(
SymbolWindow
*
parent
,
int
id
,
const
SymbolP
&
symbol
)
:
wxControl
(
parent
,
id
)
:
wxControl
(
parent
,
id
,
wxDefaultPosition
,
wxDefaultSize
,
wxBORDER_THEME
)
,
SymbolViewer
(
symbol
,
true
)
,
SymbolViewer
(
symbol
,
true
)
,
parent
(
parent
)
,
parent
(
parent
)
{
{
...
...
src/gui/symbol/part_list.cpp
View file @
5bb79f8f
...
@@ -29,7 +29,7 @@ DEFINE_EVENT_TYPE(EVENT_PART_ACTIVATE);
...
@@ -29,7 +29,7 @@ DEFINE_EVENT_TYPE(EVENT_PART_ACTIVATE);
SymbolPartList
::
SymbolPartList
(
Window
*
parent
,
int
id
,
SymbolPartsSelection
&
selection
,
SymbolP
symbol
)
SymbolPartList
::
SymbolPartList
(
Window
*
parent
,
int
id
,
SymbolPartsSelection
&
selection
,
SymbolP
symbol
)
:
wxScrolledWindow
(
parent
,
id
,
wxDefaultPosition
,
wxDefaultSize
,
wx
SUNKEN_BORDER
|
wxVSCROLL
)
:
wxScrolledWindow
(
parent
,
id
,
wxDefaultPosition
,
wxDefaultSize
,
wx
BORDER_THEME
|
wxVSCROLL
)
,
selection
(
selection
)
,
selection
(
selection
)
,
state_icons
(
9
,
8
)
,
state_icons
(
9
,
8
)
{
{
...
@@ -218,6 +218,10 @@ void SymbolPartList::onMotion(wxMouseEvent& ev) {
...
@@ -218,6 +218,10 @@ void SymbolPartList::onMotion(wxMouseEvent& ev) {
}
}
}
}
}
}
void
SymbolPartList
::
onLoseCapture
(
wxMouseCaptureLostEvent
&
)
{
// We already test for wrong release with HasCapture()
// but stupid wxwidget people decided to throw assertion failures
}
void
SymbolPartList
::
onLeftDClick
(
wxMouseEvent
&
ev
)
{
void
SymbolPartList
::
onLeftDClick
(
wxMouseEvent
&
ev
)
{
// double click = activate
// double click = activate
...
@@ -551,4 +555,5 @@ BEGIN_EVENT_TABLE(SymbolPartList, wxScrolledWindow)
...
@@ -551,4 +555,5 @@ BEGIN_EVENT_TABLE(SymbolPartList, wxScrolledWindow)
EVT_CHAR
(
SymbolPartList
::
onChar
)
EVT_CHAR
(
SymbolPartList
::
onChar
)
EVT_PAINT
(
SymbolPartList
::
onPaint
)
EVT_PAINT
(
SymbolPartList
::
onPaint
)
EVT_SIZE
(
SymbolPartList
::
onSize
)
EVT_SIZE
(
SymbolPartList
::
onSize
)
EVT_MOUSE_CAPTURE_LOST
(
SymbolPartList
::
onLoseCapture
)
END_EVENT_TABLE
()
END_EVENT_TABLE
()
src/gui/symbol/part_list.hpp
View file @
5bb79f8f
...
@@ -72,6 +72,7 @@ class SymbolPartList : public wxScrolledWindow, public SymbolView {
...
@@ -72,6 +72,7 @@ class SymbolPartList : public wxScrolledWindow, public SymbolView {
void
onLeftDClick
(
wxMouseEvent
&
ev
);
void
onLeftDClick
(
wxMouseEvent
&
ev
);
void
onLeftUp
(
wxMouseEvent
&
ev
);
void
onLeftUp
(
wxMouseEvent
&
ev
);
void
onMotion
(
wxMouseEvent
&
ev
);
void
onMotion
(
wxMouseEvent
&
ev
);
void
onLoseCapture
(
wxMouseCaptureLostEvent
&
);
void
onChar
(
wxKeyEvent
&
ev
);
void
onChar
(
wxKeyEvent
&
ev
);
void
onPaint
(
wxPaintEvent
&
);
void
onPaint
(
wxPaintEvent
&
);
void
onSize
(
wxSizeEvent
&
);
void
onSize
(
wxSizeEvent
&
);
...
...
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