Difference between revisions of "Syntax checking/Visualisation"

 
 
(14 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
[[Category:Projects]]
 +
[[Category:Editor]]
 +
[[Syntax_checking|back to Syntax checking page]]
 +
 +
== Work distribution for Milestone on June 15. ==
 +
* '''Oli''': find out how to add data to the EV_OUTPUT pane; do a proof of concept
 +
* '''Mätthu''': find out how to draw a popup window; do a proof of concept
 +
* '''Fabi''' & '''Janick''': find out how to go from keyboard x,y to token and from mouse x,y to token (or to keyboard x,y , then to token); add those features to editor
 +
 +
=== Status token from moue/keyboard ===
 +
relevant data in EB_CLICKABLE_EDITOR
 +
 +
== Underlining proof of concept from May 23. ==
 +
[[Image:Ec-proof-of-concept.gif]]
 +
Screenshot of EiffelStudio with every token underlined.
 +
 
== Meeting of the 12.05.06, Visualsation Team ==
 
== Meeting of the 12.05.06, Visualsation Team ==
  
 
Summary of the important classes with little description of the features we plan to use:
 
Summary of the important classes with little description of the features we plan to use:
  
Src\library\editor\text_window\text\tokens\common\editor_token.e
+
'''Src\library\editor\text_window\text\tokens\common\editor_token.e'''
 
* most important class
 
* most important class
 
* all the other tokens inherit from this Class
 
* all the other tokens inherit from this Class
* implement a boolean “correct”, who indicates if the token is syntacticly correct or not.
+
* implement a boolean "is_correct”, who indicates if the token is syntacticly correct or not.
 
* color, position and other stuff is saved here too.
 
* color, position and other stuff is saved here too.
* draw_text_top_left: draws the token on the pixmap (maybe we can start here for drawing the underlines)
 
  
editor_token_text.e (stands here as example for all the tokens that inherits from editor_token)
+
'''editor_token_text.e'''
* inherit editor_token
+
* top token class for all text-related tokens
 
* width -> the size of the token in pixel
 
* width -> the size of the token in pixel
* display: starts drawing the text. Implement here the boolean “correct” as argument and draw from here the underline.
+
* display_with_colors: this should be the feature we could hook to do draw our underlining
 
+
Src\library\editor\text_window\editor\text_window\interface\text_panel.e
+
* update lines: draws the textline
+
  
 +
'''Src\library\editor\text_window\editor\text_window\interface\text_panel.e'''
 +
* container containing tokens
  
  
 
'''Next Steps''' are to implement the boolean (shouldn't be that hard), find a way to get the information from the parser group (define an API), use the information and set the boolean and in the end draw the underline.
 
'''Next Steps''' are to implement the boolean (shouldn't be that hard), find a way to get the information from the parser group (define an API), use the information and set the boolean and in the end draw the underline.
 +
 +
TEXT_OBSERVER, EDITABLE_TEXT_PANEL.on_char may be relevant for parser hook too!
 +
 +
[[Image:BON_token_text.png]]

Latest revision as of 08:12, 15 June 2006

back to Syntax checking page

Work distribution for Milestone on June 15.

  • Oli: find out how to add data to the EV_OUTPUT pane; do a proof of concept
  • Mätthu: find out how to draw a popup window; do a proof of concept
  • Fabi & Janick: find out how to go from keyboard x,y to token and from mouse x,y to token (or to keyboard x,y , then to token); add those features to editor

Status token from moue/keyboard

relevant data in EB_CLICKABLE_EDITOR

Underlining proof of concept from May 23.

Ec-proof-of-concept.gif Screenshot of EiffelStudio with every token underlined.

Meeting of the 12.05.06, Visualsation Team

Summary of the important classes with little description of the features we plan to use:

Src\library\editor\text_window\text\tokens\common\editor_token.e

  • most important class
  • all the other tokens inherit from this Class
  • implement a boolean "is_correct”, who indicates if the token is syntacticly correct or not.
  • color, position and other stuff is saved here too.

editor_token_text.e

  • top token class for all text-related tokens
  • width -> the size of the token in pixel
  • display_with_colors: this should be the feature we could hook to do draw our underlining

Src\library\editor\text_window\editor\text_window\interface\text_panel.e

  • container containing tokens


Next Steps are to implement the boolean (shouldn't be that hard), find a way to get the information from the parser group (define an API), use the information and set the boolean and in the end draw the underline.

TEXT_OBSERVER, EDITABLE_TEXT_PANEL.on_char may be relevant for parser hook too!

BON token text.png