Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
undertype_notes [2013-06-25 09:49] – created nikundertype_notes [2013-06-25 09:54] nik
Line 3: Line 3:
 notes for http://home.gna.org/undertype/ notes for http://home.gna.org/undertype/
  
-keys 
  
 +====keys====
  
- QList<QGraphicsItem*> it = selectedItems(); +focus on 'Casses'
- if ( it.isEmpty() && event->modifiers().testFlag ( Qt::ControlModifier )  && event->modifiers().testFlag ( Qt::ShiftModifier ) ) +
-+
- switch ( event->key() ) +
-+
- case Qt::Key_Right : slotJustifyItsVeryBadInterletter ( 0.005 ); +
- break; +
- case Qt::Key_Left : slotJustifyItsVeryBadInterletter ( -0.005 ); +
- break; +
- default:break; +
- }+
  
-+focus on 'Composteur'
- else if ( it.isEmpty() && event->modifiers().testFlag ( Qt::ControlModifier ) ) +
-+
- switch ( event->key() ) +
-+
- case Qt::Key_Right : slotJustifyBlanks ( 0.01 ); +
- break; +
- case Qt::Key_Left : slotJustifyBlanks ( -0.01 ); +
- break; +
- default:break; +
- }+
  
- } 
- else if ( it.isEmpty() ) 
- { 
- QGraphicsView * v = views().first(); 
- switch ( event->key() ) 
- { 
- case Qt::Key_Up: v->scale ( 1.2,1.2 ); 
- break; 
- case Qt::Key_Down : v->scale ( 1.0/1.2,1.0/1.2 ); 
- break; 
- case Qt::Key_Right : slotJustifyBlanks ( 0.1 ); 
- break; 
- case Qt::Key_Left : slotJustifyBlanks ( -0.1 ); 
- break; 
- default:break; 
- } 
  
-+| Shift & Key_Right | slotJustifyItsVeryBadInterletter ( 0.005 | 
- else +| Shift & Key_Left | slotJustifyItsVeryBadInterletter -0.005 | 
-+| Control & Key_Right | slotJustifyBlanks 0.01 | 
- if ( event->key() == Qt::Key_Delete ) +| Control & Key_Left | slotJustifyBlanks |
-+
- for uint i = 0; i < it.count();++i ) +
- { +
- removeItem it[i] ); +
- glyphs.removeAll ( static_cast<ULGlyphItem*> ( it[i] ) ); +
- +
-+
- else if event->key() == Qt::Key_E ) +
-+
- wantEdit ( static_cast<ULGlyphItem*> ( it.first() ) ); +
- }+
  
- else 
- { 
- for ( uint i = 0; i < it.count();++i ) 
- static_cast<ULGlyphItem*> ( it[i] )->keyForeign ( event ); 
  
- } +QGraphicsView * v = views().first(); 
-//  previewLine(); + 
- } +| Key_Up | v->scale ( 1.2,1.2 ) | 
-}+| Key_Down | v->scale ( 1.0/1.2,1.0/1.2 ) | 
 +| Key_Right | slotJustifyBlanks 0.1 | 
 +| Key_Left | slotJustifyBlanks ( -0.1 ) | 
 + 
 + 
 +| Key_Delete | glyphs.removeAll | 
 + 
 +| Key_E | wantEdit ( static_cast<ULGlyphItem*> ( it.first() ) ) | 
 +
  
  • undertype_notes.txt
  • Last modified: 2013-07-01 17:13
  • by 94.109.71.196