Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

resolved issue 8884 - the properties don't return all properties and imp...#22

Closed
montegoulding wants to merge 11 commits intolivecode:release-6.0.1from
montegoulding:bugfix/iss8884
Closed

resolved issue 8884 - the properties don't return all properties and imp...#22
montegoulding wants to merge 11 commits intolivecode:release-6.0.1from
montegoulding:bugfix/iss8884

Conversation

@montegoulding
Copy link
Copy Markdown
Contributor

...lemented a few changes to the array.

Additionally changed from colours and patterns list to individual elements so it's easier to work with the array. Changed to return unicode variants where they double up so no data is lost in native formats. Added resizeQuality, paintCompression, stack filename, externals. The array is now multi-dimensional where properties are themselves arrays. Finally, added the optional 'effective' adjective to the properties.

Sending the pull request against release-6.0.1 for simplicity but don't really expect it to be looked at until after release as there could be some (albeit minor considering the low level of use of the property) backwards compatibility concerns in this one. I think most users of the properties would be quite keen on the changes.

…implemented a few changes to the array.

Additionally changed from colours and patterns list to individual elements so it's easier to work with the array. Changed to return unicode variants where they double up so no data is lost in native formats. Added resizeQuality, paintCompression, stack filename, externals. The array is now multi-dimensional where properties are themselves arrays. Finally, added the optional 'effective' adjective to the properties.
@runrevmark
Copy link
Copy Markdown
Contributor

Since you were looking to do some more work on this, I'll leave it for now... Seems like a good candidate for the development branch (and thus next non-maintenance release) when its ready :)

Monte Goulding added 8 commits April 19, 2013 21:21
getting properties added fullscreen, editMenus, shadowOffset, systemWindow, layerMode, padding. removed some read only properties paintCompression, size

Changed properties array setter to set rect and style first to ensure they are set before other properties that might change as a result of them.. for example, setting the rect after the gradient changes the gradient. The style seems to change other properties like the textAlign of buttons which possibly needs to be investigated.
…o ensure left, top etc are applied correctly
…e props only if hasunicode(). Also removed card rect as read only.
…onverted to native if possible using MCExecPoint::trytoconvertutf16tonative
Comment thread engine/src/props.cpp Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe there's any need to copy the string here - store_element() doesn't take ownership. You can just use the const strings. (Same is true with all assignements to t_token).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, fixed

@runrevmark
Copy link
Copy Markdown
Contributor

Hi Monte,

Sorry for taking a while to get back to looking at this - last week was a bit busy after getting back from holiday!

Anyway, I've taken another look and made a couple of comments on the code... It looks almost ready to go :)

Thanks,

Mark.

@runrevmark
Copy link
Copy Markdown
Contributor

Hi Monte

I've just pulled this in as branch 'feature-revised_properties_prop' and merged that into 'develop'.

Thanks!

Mark.

@runrevmark runrevmark closed this May 7, 2013
trevordevore pushed a commit to trevordevore/livecode that referenced this pull request Jul 7, 2015
docs: Initial draft of Builder style guide.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants