Rubric docs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Rubric docs

Peter Uhnak
Hi,

the (new) code box in Nautilus has some visual cool stuff:



my question is: is this documented somewhere? Can I mold it for my own purposes?

Peter
Reply | Threaded
Open this post in threaded view
|

Re: Rubric docs

abergel
Good question. Once you have an answer, feel free to write a short Help :-)

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Mar 4, 2016, at 3:50 PM, Peter Uhnák <[hidden email]> wrote:

Hi,

the (new) code box in Nautilus has some visual cool stuff:

<rubric.png>

my question is: is this documented somewhere? Can I mold it for my own purposes?

Peter

Reply | Threaded
Open this post in threaded view
|

Re: Rubric docs

Miguel Campusano
In reply to this post by Peter Uhnak
I don't think this is documented, but you can take a look at the SemanticWarningIconStyler class. This class is in charge of styling the semantic warnings.
In AbstractNautilusUI>>addIconStyle you can see more how the icons are added. In short, you have to extend AbstractIconStyler for your own needs.
The idea is that you first mark the nodes of the AST using Reflectivity and then, extending AbstractIconStyler, you can use that mark on the nodes to add an icon, highlight the code, put a label and even add an action when the icon is clicked.

I hope this helps you.

Miguel

On Fri, Mar 4, 2016 at 3:51 PM Peter Uhnák <[hidden email]> wrote:
Hi,

the (new) code box in Nautilus has some visual cool stuff:

rubric.png

my question is: is this documented somewhere? Can I mold it for my own purposes?

Peter