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
a006a82a
Commit
a006a82a
authored
Dec 23, 2006
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks to splitter; filtered cardlist always initialized
parent
e5abf752
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/gui/set/stats_panel.cpp
src/gui/set/stats_panel.cpp
+8
-2
src/gui/set/stats_panel.hpp
src/gui/set/stats_panel.hpp
+1
-0
No files found.
src/gui/set/stats_panel.cpp
View file @
a006a82a
...
...
@@ -97,8 +97,8 @@ StatsPanel::StatsPanel(Window* parent, int id)
card_list
=
new
FilteredCardList
(
splitter
,
wxID_ANY
);
// init splitter
splitter
->
SetMinimumPaneSize
(
100
);
splitter
->
SetSashGravity
(
1.0
);
splitter
->
SplitHorizontally
(
graph
,
card_list
,
-
1
0
0
);
splitter
->
SetSashGravity
(
0.6
);
splitter
->
SplitHorizontally
(
graph
,
card_list
,
-
1
7
0
);
// init sizer
wxSizer
*
s
=
new
wxBoxSizer
(
wxHORIZONTAL
);
s
->
Add
(
categories
,
0
,
wxEXPAND
|
wxRIGHT
,
2
);
...
...
@@ -110,6 +110,7 @@ StatsPanel::StatsPanel(Window* parent, int id)
void
StatsPanel
::
onChangeSet
()
{
card_list
->
setSet
(
set
);
categories
->
show
(
set
->
game
);
filterCards
();
}
void
StatsPanel
::
onCommand
(
int
id
)
{
...
...
@@ -131,6 +132,7 @@ void StatsPanel::onCommand(int id) {
d
.
elements
.
push_back
(
e
);
}
graph
->
setData
(
d
);
filterCards
();
}
break
;
}
...
...
@@ -157,6 +159,10 @@ class StatsFilter : public CardListFilter {
};
void
StatsPanel
::
onGraphSelect
(
wxCommandEvent
&
)
{
filterCards
();
}
void
StatsPanel
::
filterCards
()
{
if
(
!
categories
->
hasSelection
())
return
;
shared_ptr
<
StatsFilter
>
filter
(
new
StatsFilter
(
*
set
));
StatsCategory
&
cat
=
categories
->
getSelection
();
...
...
src/gui/set/stats_panel.hpp
View file @
a006a82a
...
...
@@ -41,6 +41,7 @@ class StatsPanel : public SetWindowPanel {
FilteredCardList
*
card_list
;
void
onGraphSelect
(
wxCommandEvent
&
);
void
filterCards
();
};
// ----------------------------------------------------------------------------- : EOF
...
...
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