Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
undertype_notes [2013-06-25 09:49] – created nikundertype_notes [2013-06-25 10:01] nik
Line 3: Line 3:
 notes for http://home.gna.org/undertype/ notes for http://home.gna.org/undertype/
  
-keys+==== build ==== 
 +  * svn co <blockquote>svn://svn.gna.org/svn/undertype/trunk</blockquote> undertype  
 +  * sudo port install freetype qt4-mac 
 +  * qmake 
 +  * add "INCLUDEPATH += /opt/local/include/freetype2" to src/src.pro 
 +  * make 
 +   
 +====keys====
  
 +focus on 'Casses'
  
- QList<QGraphicsItem*> it = selectedItems(); +focus on 'Composteur'
- 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; +
- }+
  
- } 
- 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; 
- } 
  
-+| Shift & Key_Right | slotJustifyItsVeryBadInterletter 0.005 | 
- else if it.isEmpty() +| Shift & Key_Left | slotJustifyItsVeryBadInterletter ( -0.005 | 
- +| Control & Key_Right slotJustifyBlanks ( 0.01 | 
- QGraphicsView * v = views().first(); +| Control & Key_Left slotJustifyBlanks |
- 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.); +
- break; +
- case Qt::Key_Left slotJustifyBlanks ( -0.1 ); +
- break; +
- default:break; +
- }+
  
- } 
- else 
- { 
- if ( event->key() == Qt::Key_Delete ) 
- { 
- 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 +QGraphicsView * v views().first();
-+
- for ( uint i 0; i < it.count();++i ) +
- static_cast<ULGlyphItem*> ( it[i] )->keyForeign event );+
  
- } +| Key_Up | v->scale ( 1.2,1.2 ) | 
-//  previewLine(); +| 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