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
7ad86aed
Commit
7ad86aed
authored
Jul 13, 2007
by
coppro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented reflection for PackageVersionData
A little memory cleanup (most memory loss is in wx and gtk though)
parent
5544406a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
src/gfx/mask_image.cpp
src/gfx/mask_image.cpp
+1
-1
src/gui/update_checker.cpp
src/gui/update_checker.cpp
+15
-0
src/render/text/viewer.cpp
src/render/text/viewer.cpp
+1
-1
src/util/io/reader.cpp
src/util/io/reader.cpp
+1
-0
No files found.
src/gfx/mask_image.cpp
View file @
7ad86aed
...
...
@@ -26,7 +26,7 @@ AlphaMask::AlphaMask(const Image& img)
}
AlphaMask
::~
AlphaMask
()
{
delete
alpha
;
delete
[]
alpha
;
}
void
AlphaMask
::
setAlpha
(
Image
&
img
)
const
{
...
...
src/gui/update_checker.cpp
View file @
7ad86aed
...
...
@@ -11,6 +11,7 @@
#include <util/io/package_manager.hpp>
#include <util/version.hpp>
#include <script/value.hpp> // for some strange reason the profile build needs this :(
#include <script/to_value.hpp>
#include <wx/dialup.h>
#include <wx/url.h>
#include <wx/html/htmlwin.h>
...
...
@@ -30,7 +31,10 @@ class PackageVersionData : public IntrusivePtrBase<PackageVersionData> {
String
url
;
///< Where can the package be downloaded?
bool
is_installer
;
///< Download url refers to a .mse-installer
Version
version
;
///< Version number of the download
Version
app_version
;
///< The minimium version of MSE required
vector
<
PackageDependencyP
>
depends
;
///< Packages this depends on
DECLARE_REFLECTION
();
};
/// Information on the latest availible version
...
...
@@ -44,10 +48,21 @@ class VersionData : public IntrusivePtrBase<VersionData> {
DECLARE_REFLECTION
();
};
IMPLEMENT_REFLECTION
(
PackageVersionData
)
{
REFLECT
(
name
);
REFLECT
(
description
);
REFLECT
(
url
);
REFLECT
(
is_installer
);
REFLECT
(
version
);
REFLECT
(
app_version
);
REFLECT
(
depends
);
}
IMPLEMENT_REFLECTION
(
VersionData
)
{
REFLECT
(
version
);
REFLECT
(
description
);
REFLECT
(
new_updates_url
);
REFLECT
(
packages
);
}
// The information for the latest version
...
...
src/render/text/viewer.cpp
View file @
7ad86aed
...
...
@@ -59,7 +59,7 @@ size_t TextViewer::Line::posToIndex(double x) const {
// ----------------------------------------------------------------------------- : TextViewer
// can't be declared in header because we need to know sizeof(Line)
TextViewer
::
TextViewer
()
{}
TextViewer
::
TextViewer
()
:
justifying
(
false
)
{}
TextViewer
::~
TextViewer
()
{}
// ----------------------------------------------------------------------------- : Drawing
...
...
src/util/io/reader.cpp
View file @
7ad86aed
...
...
@@ -26,6 +26,7 @@ Reader::Reader(const InputStreamP& input, const String& filename, bool ignore_in
Reader
::
Reader
(
const
String
&
filename
)
:
indent
(
0
),
expected_indent
(
0
),
state
(
OUTSIDE
)
,
filename
(
filename
),
line_number
(
0
),
previous_line_number
(
0
)
,
ignore_invalid
(
false
)
,
input
(
packages
.
openFileFromPackage
(
filename
))
{
moveNext
();
...
...
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