Multiple tooltip input suggestions for Matlab function [closed] - matlab

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I notice on built in Matlab functions there can be multiple lines of possible input configurations like this
as opposed to just
I have to assume they use something akin to inputParser with the use of varargin, but I have been unsuccessful in trying to replicate this functionality. I would like to have the ability to do this but I'm starting to get the feeling this is only something you can do with built in functions.
Somethings that I have thought of or tried are:
Parsing of the help doc (unsuccessful)
Information in a separate file
Creating the same functions for multiple classes (unsuccessful)
Creating a fully functioning inputParser (unsuccessful)
Has anyone been able to do this?

I have built a similar tool in the past that works quite well. Unfortunately it's a proprietary in-house tool so I can't share the actual tool. However I can tell you that after investigating several options (similar to those you listed) we decided to use a special syntax for our help comments (similar to Markdown or restructuredText) that supports the declaration of syntax variants.
The information from the help texts is then parsed by the tool and can be displayed in different manners (e.g. by shadowing the original doc command with a custom one).
Regarding the actual pop-up menu you may try to dig into the internals of the command window. Yair Altman has documented many unofficial ways to enhance the MATLAB GUI on his wonderful blog. For example, here's a post that describes how to add tab-completion to custom commands.

Related

How to pass parameters to %simulate cell for Q# in Jupyter Notebook [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am getting an error when I pass parameters after the %simulate
At the moment passing parameters to operation invoked via %simulate is not supported; you'll have to write a wrapper operation which takes no arguments and calls your operation with the parameters you want, and to call %simulate on that operation.
That being said, I completely agree that this would be a neat feature! It would probably be trickier to implement it for some kinds of parameters (such as qubits) than the others (such as integers), but it would definitely improve Q# Jupyter Notebooks user experience. Could you please open an issue at the iqsharp GitHub repo to get more visibility on this request?

Alternatives for developing UI for MATLAB GUI applications? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to develop a MATLAB application, but MATLAB's UI is not as flexible or as beautiful as some others, like XAML for WPF. Is it possible to use something else to develop UIs rather than what is provided by MATLAB?
You can use Matlab Compiler to compile your code to an executable and you can excute it anywhere you want, e.g. from an interface developed by XAML or WPF.
You can use Matlab Coder to generate C or C++ code that you can integrate with your application in your own development environment (e.g., Visual Studio).
The advantage of using the second method over the first is that the result will be native (you can compile to anything you want) and you will be able to modify the code and have one code base. The disadvantage is that you will have to deal with the computer generated code.
P.s. You might want to consider the relatively new Matlab App Designer as opposed to the old GUIDE. It is much better. That being said, it is not as good as XAML or WPF.

Use productivity tools in presentations [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I was wondering how people think about using productivity tools like Coderush or Resharper in live demos. Is it a don't and should someone only use the most default settings of the IDE? Or is it ok to speed things up a little during the demo? Also, should you explain you are using this tool during the demo?
I've seen a lot of presentations where people use these tools and personally I don't mind.
Make sure you tell people that are going to be using the tool and then announce the action that you are about to take. e.g. "I'll use Resharper to extract this method into the Foo class"
It really depends on what you want to demonstrate. This kind of productivity tool are usefull even for demos in order to avoid loosing time on basic technical problems. You may also take advantages of such demos to introduce the features of these tools...
I tend to use DevExpress Refactor! Pro, and GhostDoc, when I do code-related presentations. I try to make sure the audience knows what I'm doing by saying out loud what I'm going to do, but I have also built my own custom tool for this, which you can find a beta of here: LVK.ScreenKeys.
Basically the tool will pop up, in the upper right corner of the screen, yellow tooltip/toast-like windows showing the key stroke/sequence I invoked, and also a textual description of what it means, depending on the software it was invoked in.
Before I started using such a tool, I invariably had questions like "what did you do now", and if you don't want to use such a tool (there are others besides mine), I would consider not using more than a few functions of such tools.

Looking for an example of a complex text editor using SWT's StyledText [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need to write a text editor which can merge arbitrary text styles from several sources (in my case: spell checker, style hints like repeated words, links and other markup) using SWT StyledText. I examined the the standard ways to do it:
I could install a modify listener and create the styles for the whole text for each modification. That's pretty slow but accurate.
I could use a LineStyleListener. This means I'll have to redraw the text myself (for example in the case of repeated words because some of them will be outside the current edit range) plus the editor doesn't cache the styles, so this API gets called much more often then one would expect.
I could use a background reconciler like the IDE does. This means the styling lags behind the edits which is bad from a user perspective.
The icing of the cake is that I need hierarchical styles, so I have to reimplement the StyleRange API.
Has anyone seen a better solution? Can someone direct me to some examples which do more than highlight keywords?
I used this example as a starting point for an editor which got fairly advanced. It helped me to understand multi-line styling, and implemenent a reg-ex based styling engine for my editor.
The StyleRange API doesn't really provide a way of doing intersections like merging style 1 which goes from index 1 to index 20 and style 2 ranging from 10 to 14. Something like this.
If this is what you mean with 'hierarchical styles', there's a solution in JFace: org.eclipse.jface.text.TextPresentation
You can add all your styles with mergeStyleRange(.), and use getAllStyleRangeIterator() to get the result. Very useful.

Does anyone have a handy visulization widget that I can use for a web project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
What I want is lots of nodes which can expand making a mind map.
I'd ideally like to expand and collapse nodes. I would like to be able to navigate by either dragging around the page, or by following expanded nodes.
I have a colleague who needed that kind of functionalities to graph Maven dependencies between projects. He ended up using FreeMind to do the visualization. He just had to write an XML file conforming to the FreeMind format. I even think you can just use OPML as the file format and find a ready to use XSLT to transform it to the FreeMind format. Maybe FreeMind actually supports OPML directly (I havent used it for a long time).
Once you have your data in FreeMind, you can either export them, or use the FreeMind applet to display an interactive MindMap on your website.
Suggest mxGraph.
Suggest protovis, lovely javascript cross-platform visualisation library.
I think you are asking for a component that does what Visio can do, except that it can be displayed on a web page. Most likely you would have to create one from scratch, because mind mapping tools are always released as products per se and not customizable components. I suggest looking for a basic drawing/illustration component, and then putting your mind-mapping logic in it.