Add editor with using TextButton - gxt

Is it possible that I can do this?
rowEditing.addEditor(catConfig, new TextButton());
I would like to have an editor with a textbutton in that way I could display my DualListField since I don't see any tutorials on how a DualListField would work having an addEditor.

Related

Roku SceneGraph with Search Functionality

I'm creating a Roku app in SceneGraph and trying to near duplicate the search functionality I had using the old SDK. I'm stuck at only being able to display the mini keyboard. I'm trying to add buttons via buttongroup (i.e., Search, Cancel) but having two issues:
Not sure how to get the text string that's typed into the mini keyboard and store that in a variable or field so I can perform the search on it.
How to create a Search button and give it focus when user is ready to search for the string they entered.
Any help would be appreciated. Thanks.
SGDEX (Scenegraph Developer Extensions) is what you need. They have a view called "SearchView". Look it up.
Also...
RALE (Roku Advanced Layout Editor) has good search options. - I have been unable to find a decent Search sample. It would be cool if we could export the source code from RALE.
However if you haven't tried RALE. You could upload your script, then add search to it.

command-line app to create simple one-line menus with arrow-keys navigation

I'm curious what's the easy way of building command-line menu like on the picture? There are some more cool options like using dialog app and other apps like that, but i just want to have very simple in-line solution and not pollute the whole screen.
NB: on example gif you see replacement of string in the command line above the menu, but i do not need that.
I just need cool simple menu(s) in my bash script(s).
Thanks!

Better Looking Select Boxes for Web App

For a web app I am working on, I am looking for a widget that works like (or implements) a select box that is much more user-friendly and customizable than the basic HTML select box. I'd prefer not to have to build something like this from scratch, so I was wondering if anyone knows of an open-source widget of this type that I could use.
An example of a more user-friendly select box which I wouldn't mind imitating is the calculator at this link:
http://www.teslamotors.com/charging#/calculator
Doesn't have to be identical to this, but something with more room for customization and a nicer looking UI.
You can find many plugins and tutorials about customizing select tag.
These are plugins:
http://silviomoreto.github.io/bootstrap-select/
http://ivaynberg.github.io/select2/
http://brianreavis.github.io/selectize.js/#demos
http://shawnchin.github.io/jquery-gentleSelect/
http://vst.mn/selectordie/
For that kind of select tag that you showed you should create your own style.
Here is good tutorial about creating customized select tag:
http://tympanus.net/codrops/2012/10/04/custom-drop-down-list-styling/
http://tympanus.net/codrops/2012/11/29/simple-effects-for-drop-down-lists/

Creating custom search button in Notepad++

I am looking for a way to create custom buttons for Notepad++. So far I haven't been able to find solutions regarding this.
The buttons would be doing a regular expression search and highlight the search results as well. This would make it much easier for me to analyze error logs. This would eliminate the need of copy/pasting the long regex search queries.
I'm trying to use the Customize Toolbar plugin to accomplish this, but I couldn't find a thorough documentation of it and therefore having troubles.
Any help would be appreciated.
There you go:
Download "Customize Toolbar" from the "Plugin Manager"
Go to menu "Plugins" > "Customize Toolbar" and select "Custom Buttons"
Restart Notepad++
Now it's the important part, where you need to create the button's functionality. In your case you want to simply search and fortunately this can be implemented in a Macro. If you need something more complex that can't be recorded in a Macro, consider the use of "Python Script" plugin (which is really easy even with a minimal knowledge of Python) or writing your own plugin (which I guess is more difficult, I never tried to). So, let us assume that you recorded a Macro and you named it "test".
Find and open the file %APPDATA%\Notepad++\plugins\config\CustomizeToolbar.btn
Add the following new row in the file:
Macro,test,,,
That's all. You now have a new button in your toolbar that runs your macro.

Live preview markdown editor

Forgive me if this is has been answered. I have looked around, but didn't find anything.
I am creating a site for non-techies and it requires them to be able to add rich text content. I have been looking at Markdown for this, and would like to use that.
I have been searching around for a nice (jquery) ui control to make editing simple, but everything I have looked at has the live preview living somewhere else on the page other than the input box. (WMD is like this, markitup, etc..)
I would like to use something that makes it feel like you are using a word processor. Like how TinyMCe does it, but running on Markdown, not HTML
Is there anything like that, or maybe somewhere that shows how to build it?
To clarify, I'm looking for an editor that makes it feel like you are typing in the live preview; not a textbox with a preview above/below.
If I get what you're looking for, then the simplest approach would be to generate HTML with TinyMCE or CKEditor, then apply something like Markdownify to the output of e.g., tinymce.getContent().
I have since found something that I love. the Pen editor on Github does just what I wanted. I am glad to see someone has taken this on
Check out Stack Edit It's a great WYSIWYG markdown editor - syncs with Google Docs, Dropbox & CouchDB, publishes to Github (and many other places), and offers easy link sharing. You can access it on their website or using the Chrome app. You can create titles and lists in the editor there, and it will show you the corresponding text in markdown format. You can then save, publish, share, or download the file.
Markdown would not be compatible with a WYSIWYG editor. Consider this sample Markdown:
Let's link to [Google][].
[Google]: http://www.google.com/
If you were making a WYSIWYG editor, what would happen after you typed [Google]? Would you see blue underlined text? Would you just see [Google] since it's not a valid hyperlink yet? What about after you type the trailing []? It's still not a fully-defined hyperlink; you can't click it, because Markdown doesn't know where it links.
And how does the user type that [Google]: http://www.google.com/ follow-up line? That line isn't displayed; it's markup; it's invisible. Where do you type invisible text into a WYSIWYG editor?

Resources