-
Notifications
You must be signed in to change notification settings - Fork 11
Basic uitable support #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic uitable support #4
Conversation
See `aboutDojo()`.
- Improved in-code documentation for some methods.
See `getHTML`.
- See `getWidgetInfo`. - Added a utility function for preallocating a `struct` based on a JSON object. - Added a utility function for unifying structs with different fieldnames.
Things to do before the PR is merged (comments by @altmany):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
RE: 8 on your list, since we're using this as an Abstract class I'm not sure we'll be able to do this. I'd prefer not having to instantiate the class just to have a settable timeiout, so it may have to be done using a |
re 8, you could have a setTimeout(hFig,value) function that would setappdata(hFig,'QUERY_TIMEOUT',value) and then whenever you want to check for the timeout you could do something like: timeout = getappdata(hFig,'QUERY_TIMEOUT');
if isempty(timeout), timeout = mlapptools.QUERY_TIMEOUT; end
while true && (toc < timeout)
... |
Iterations now use the output of `size` instead of a hard-coded value.
- Added a "shield" indicating the required MATLAB versions. - Reordered methods lexicographically. - Added link for `aboutDojo`. - Added explanation and usage example for `getHTML` and `getWidgetInfo`. - `fontWeight`- Clarified when this method has an effect; mentioned that `'lighter'` is also accepted. - Removed some of the internal documentation in `mlapptools.m`.
(`TMP_somename.m` is the convention used for temporary testing files)
+ Minor (internal) documentation changes.
+ Added relevant documentation. + Fixed bug related to a capitalization issue in `fontWeight`. + Renamed "uielement" to "uiElement" to better fit conventions. TODO: add unit tests.
@sco1 @altmany I have added some more commits that address most of the suggestions above.
Thoughts / comments? |
- `getWidgetInfo` now operates on a single widget, whereas `getWidgetList` has the old functionality of `getWidgetInfo` (i.e. it accepts a `uifigure` and returns a list of widgets). The heavy lifting is done by the new `private` `decodeDijitRegistryResult` method. - README updated. - Fixed an off-by-1 bug in the widget decoding logic.
Implemented 5 as explained in my previous comment. Tested all code examples manually. I think it's ready to merge now. Will wait for comments until the end of the day before merging. |
Haven't had a chance to play with the newest functionality but it still looks OK to me. I'm assuming you guys have looked at it pretty thoroughly so I'm confident that it works as desired. Until MATLAB renders external README documents I'd prefer to keep at least a framework of the inline documentation in place so folks have at least something useful show up with |
Also, once this PR is merged I'll go back through and tag releases as requested...wherever it was requested. |
Text is a copy of the methods summary from README.md.
Waiting for your merge to post the followup article on UndocumentedMatlab.com |
@altmany Fingers crossed! More than a few head scratchers with the new UI engine, as much as I love it. I dream of a day when we can get documented methods for things like centering text without having to muck through the underlying graphics engine. Though there will always be a soft spot in my heart for the many hours spent with |
Added some methods for manipulating uitables, and an accompanying demo app. Also included some minor refactoring of method names to follow Java conventions (internal functions, so no change to API).
NOTE: As of the creation of the PR, the markdown documentation wasn’t updated, so please see
\Demo\TableDemo.m
for a demonstration of the new functionality.