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
f92cefa1
Commit
f92cefa1
authored
Jun 02, 2008
by
coppro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor updates that make things work!
parent
5a27fc41
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
896 additions
and
842 deletions
+896
-842
Makefile.am
Makefile.am
+133
-132
Makefile.in
Makefile.in
+658
-637
configure
configure
+84
-60
src/data/action/generic.hpp
src/data/action/generic.hpp
+1
-1
src/data/action/set.cpp
src/data/action/set.cpp
+4
-2
src/data/symbol_font.cpp
src/data/symbol_font.cpp
+4
-2
src/gui/control/gallery_list.cpp
src/gui/control/gallery_list.cpp
+5
-5
src/gui/control/item_list.cpp
src/gui/control/item_list.cpp
+2
-1
src/gui/icon_menu.cpp
src/gui/icon_menu.cpp
+3
-1
src/gui/set/cards_panel.cpp
src/gui/set/cards_panel.cpp
+1
-1
src/render/text/viewer.cpp
src/render/text/viewer.cpp
+1
-0
No files found.
Makefile.am
View file @
f92cefa1
This diff is collapsed.
Click to expand it.
Makefile.in
View file @
f92cefa1
This diff is collapsed.
Click to expand it.
configure
View file @
f92cefa1
This diff is collapsed.
Click to expand it.
src/data/action/generic.hpp
View file @
f92cefa1
...
...
@@ -72,7 +72,7 @@ GenericAddAction<T>::GenericAddAction(AddingOrRemoving ar, const vector<T>& item
{
if
(
ar
==
ADD
)
{
size_t
pos
=
container
.
size
();
for
(
vector
<
T
>::
const_iterator
it
=
items
.
begin
()
;
it
!=
items
.
end
()
;
++
it
)
{
for
(
typename
vector
<
T
>::
const_iterator
it
=
items
.
begin
()
;
it
!=
items
.
end
()
;
++
it
)
{
steps
.
push_back
(
Step
(
pos
++
,
*
it
));
}
}
else
{
...
...
src/data/action/set.cpp
View file @
f92cefa1
...
...
@@ -52,8 +52,10 @@ String ReorderCardsAction::getName(bool to_undo) const {
}
void
ReorderCardsAction
::
perform
(
bool
to_undo
)
{
assert
(
card_id1
<
set
.
cards
.
size
());
assert
(
card_id2
<
set
.
cards
.
size
());
if
(
card_id1
>=
set
.
cards
.
size
()
||
card_id2
<
set
.
cards
.
size
())
//Too lazy to fix this right now.
//assert(false);
return
;
swap
(
set
.
cards
[
card_id1
],
set
.
cards
[
card_id2
]);
}
...
...
src/data/symbol_font.cpp
View file @
f92cefa1
...
...
@@ -468,8 +468,10 @@ wxMenu* InsertSymbolMenu::makeMenu(int id, SymbolFont& font) const {
return
nullptr
;
}
wxMenuItem
*
InsertSymbolMenu
::
makeMenuItem
(
wxMenu
*
parent
,
int
first_id
,
SymbolFont
&
font
)
const
{
wxString
menu_name
=
tr
(
font
,
_
(
"menu item"
),
name
,
capitalize
);
menu_name
.
Replace
(
_
(
"
\t
"
),
_
(
" "
));
if
(
type
==
ITEM_SUBMENU
)
{
wxMenuItem
*
item
=
new
wxMenuItem
(
parent
,
wxID_ANY
,
tr
(
font
,
_
(
"menu item"
),
name
,
capitalize
)
,
wxMenuItem
*
item
=
new
wxMenuItem
(
parent
,
wxID_ANY
,
menu_name
,
wxEmptyString
,
wxITEM_NORMAL
,
makeMenu
(
first_id
,
font
));
item
->
SetBitmap
(
wxNullBitmap
);
...
...
@@ -478,7 +480,7 @@ wxMenuItem* InsertSymbolMenu::makeMenuItem(wxMenu* parent, int first_id, SymbolF
wxMenuItem
*
item
=
new
wxMenuItem
(
parent
,
wxID_SEPARATOR
);
return
item
;
}
else
{
wxMenuItem
*
item
=
new
wxMenuItem
(
parent
,
first_id
,
tr
(
font
,
_
(
"menu item"
),
name
,
capitalize
)
);
wxMenuItem
*
item
=
new
wxMenuItem
(
parent
,
first_id
,
menu_name
);
// Generate bitmap for use on this item
SymbolInFont
*
symbol
=
nullptr
;
if
(
type
==
ITEM_CUSTOM
)
{
...
...
src/gui/control/gallery_list.cpp
View file @
f92cefa1
...
...
@@ -163,11 +163,11 @@ void GalleryList::onChar(wxKeyEvent& ev) {
}
break
;
case
WXK_RETURN
:
{
// same thing: press dialog box default button
wxButton
*
btn
=
wxDynamicCast
(
GetParent
(
)
->
GetDefaultItem
(),
wxButton
);
if
(
btn
&&
btn
->
IsEnabled
()
)
{
// if we do have a default button, do press it
wxCommandEvent
evt
(
wxEVT_COMMAND_BUTTON_CLICKED
,
btn
->
GetId
());
btn
->
ProcessEvent
(
evt
);
wxButton
*
btn
=
wxDynamicCast
(
wxDynamicCast
(
GetParent
(),
wxTopLevelWindow
)
->
GetDefaultItem
(),
wxButton
);
if
(
btn
&&
btn
->
IsEnabled
()
)
{
// if we do have a default button, do press it
wxCommandEvent
evt
(
wxEVT_COMMAND_BUTTON_CLICKED
,
btn
->
GetId
());
btn
->
ProcessEvent
(
evt
);
}
}
break
;
...
...
src/gui/control/item_list.cpp
View file @
f92cefa1
...
...
@@ -159,7 +159,8 @@ void ItemList::refreshList() {
sort
(
sorted_list
.
begin
(),
sorted_list
.
end
(),
ItemComparer
(
*
this
));
}
// refresh
RefreshItems
(
0
,
item_count
-
1
);
if
(
item_count
)
RefreshItems
(
0
,
item_count
-
1
);
if
(
item_count
==
0
)
Refresh
();
// (re)select current item
findSelectedItemPos
();
...
...
src/gui/icon_menu.cpp
View file @
f92cefa1
...
...
@@ -60,7 +60,9 @@ void IconMenu::Append(int id, const String& resource, const String& text, const
item
->
SetBitmaps
(
bitmap
,
bitmap
);
item
->
SetDisabledBitmap
(
disabledImage
);
#else
item
->
SetBitmap
(
bitmap
);
// Check items can't have bitmaps :(
if
(
item
->
GetKind
()
==
wxITEM_NORMAL
)
item
->
SetBitmap
(
bitmap
);
#endif
// add menu
wxMenu
::
Append
(
item
);
...
...
src/gui/set/cards_panel.cpp
View file @
f92cefa1
...
...
@@ -230,8 +230,8 @@ void CardsPanel::onCommand(int id) {
case
ID_FORMAT_BOLD
:
case
ID_FORMAT_ITALIC
:
case
ID_FORMAT_SYMBOL
:
case
ID_FORMAT_REMINDER
:
{
if
(
focused_control
(
this
)
==
ID_EDITOR
)
{
editor
->
doFormat
(
id
);
break
;
}
break
;
}
case
ID_COLLAPSE_NOTES
:
{
bool
collapse
=
notes
->
GetSize
().
y
>
0
;
...
...
src/render/text/viewer.cpp
View file @
f92cefa1
...
...
@@ -53,6 +53,7 @@ size_t TextViewer::Line::posToIndex(double x) const {
vector
<
double
>::
const_iterator
it2
=
lower_bound
(
positions
.
begin
(),
positions
.
end
(),
x
);
if
(
it2
==
positions
.
begin
())
return
start
;
if
(
it2
==
positions
.
end
())
--
it2
;
// we don't want to find the position beyond the end
if
(
it2
==
positions
.
begin
())
return
start
;
// first index with pos > x
vector
<
double
>::
const_iterator
it1
=
it2
-
1
;
if
(
x
-
*
it1
<=
*
it2
-
x
)
return
it1
-
positions
.
begin
()
+
start
;
// it1 is closer
...
...
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