3 new revisions: Revision: fbd868415fe2 Branch: rt1835-UndoRemoveElement Author: Brandon Roller<brandon.r.roller@xxxxxxxxx> Date: Tue Dec 23 16:46:40 2014 UTC Log: Fixed bug with style not being applied to transcribe note https://code.google.com/p/brailleblaster/source/detail?r=fbd868415fe2 Revision: c80d07995b00 Branch: rt1835-UndoRemoveElement Author: Brandon Roller<brandon.r.roller@xxxxxxxxx> Date: Tue Dec 23 17:15:01 2014 UTC Log: Fixed bug with style not being applied to transcribe note https://code.google.com/p/brailleblaster/source/detail?r=c80d07995b00 Revision: c66f0ba76809 Branch: rt1835-UndoRemoveElement Author: Brandon Roller<brandon.r.roller@xxxxxxxxx> Date: Tue Dec 23 17:15:21 2014 UTC Log: Fixed bug with undo not adding event https://code.google.com/p/brailleblaster/source/detail?r=c66f0ba76809 ============================================================================== Revision: fbd868415fe2 Branch: rt1835-UndoRemoveElement Author: Brandon Roller<brandon.r.roller@xxxxxxxxx> Date: Tue Dec 23 16:46:40 2014 UTC Log: Fixed bug with style not being applied to transcribe note https://code.google.com/p/brailleblaster/source/detail?r=fbd868415fe2 Modified: /src/main/org/brailleblaster/perspectives/braille/Manager.java /src/main/org/brailleblaster/perspectives/braille/views/wp/TextView.java =======================================--- /src/main/org/brailleblaster/perspectives/braille/Manager.java Tue Dec 23 16:39:37 2014 UTC +++ /src/main/org/brailleblaster/perspectives/braille/Manager.java Tue Dec 23 16:46:40 2014 UTC
@@ -54,7 +54,6 @@ import org.brailleblaster.localization.LocaleHandler; import org.brailleblaster.perspectives.Controller; import org.brailleblaster.perspectives.braille.document.BBSemanticsTable;-import org.brailleblaster.perspectives.braille.document.BBSemanticsTable.Styles;
import org.brailleblaster.perspectives.braille.document.BrailleDocument; import org.brailleblaster.perspectives.braille.eventQueue.EventFrame; import org.brailleblaster.perspectives.braille.eventQueue.EventQueue; @@ -661,9 +660,8 @@ elsetext.insertNewNode(list.get(posList.get(posList.size() - 1)).end,"prodnote");
- Styles style = styles.get("trnote");- Message styleMessage = Message.createUpdateStyleMessage(style, false, false);
- dispatch(styleMessage); + text.refreshStyle(list.getCurrent()); + braille.refreshStyle(list.getCurrent()); } private void handleRemoveNode(Message message){ =======================================--- /src/main/org/brailleblaster/perspectives/braille/views/wp/TextView.java Tue Dec 23 16:39:37 2014 UTC +++ /src/main/org/brailleblaster/perspectives/braille/views/wp/TextView.java Tue Dec 23 16:46:40 2014 UTC
@@ -756,7 +756,7 @@handleLineWrap(currentStart, text, margin, style.contains(StylesType.firstLineIndent));
}- if(isFirst(t.n) && style.contains(StylesType.firstLineIndent) && text.length() > 0)
+ if(isFirst(t.n) && style.contains(StylesType.firstLineIndent)) setFirstLineIndent(t.start, style); if(style.contains(StylesType.emphasis)) ============================================================================== Revision: c80d07995b00 Branch: rt1835-UndoRemoveElement Author: Brandon Roller<brandon.r.roller@xxxxxxxxx> Date: Tue Dec 23 17:15:01 2014 UTC Log: Fixed bug with style not being applied to transcribe note https://code.google.com/p/brailleblaster/source/detail?r=c80d07995b00 Modified:/src/main/org/brailleblaster/perspectives/braille/stylers/InsertElementHandler.java
=======================================--- /src/main/org/brailleblaster/perspectives/braille/stylers/InsertElementHandler.java Tue Dec 23 16:39:37 2014 UTC +++ /src/main/org/brailleblaster/perspectives/braille/stylers/InsertElementHandler.java Tue Dec 23 17:15:01 2014 UTC
@@ -106,6 +106,8 @@ } list.setCurrent(ev.getListIndex()); + text.refreshStyle(list.getCurrent()); + braille.refreshStyle(list.getCurrent()); manager.dispatch(Message.createUpdateCursorsMessage(Sender.TREE)); } ============================================================================== Revision: c66f0ba76809 Branch: rt1835-UndoRemoveElement Author: Brandon Roller<brandon.r.roller@xxxxxxxxx> Date: Tue Dec 23 17:15:21 2014 UTC Log: Fixed bug with undo not adding event https://code.google.com/p/brailleblaster/source/detail?r=c66f0ba76809 Modified:/src/main/org/brailleblaster/perspectives/braille/stylers/InsertElementHandler.java
=======================================--- /src/main/org/brailleblaster/perspectives/braille/stylers/InsertElementHandler.java Tue Dec 23 17:15:01 2014 UTC +++ /src/main/org/brailleblaster/perspectives/braille/stylers/InsertElementHandler.java Tue Dec 23 17:15:21 2014 UTC
@@ -169,6 +169,8 @@braille.insertLineBreak(list.getCurrent().brailleList.getFirst().start - 1);
tree.newTreeItem(list.get(list.getCurrentIndex()), index, 0); + TextMapElement t = list.get(list.getCurrentIndex());+ frame.addEvent(new ModelEvent(EventTypes.Insert, t.parentElement(), vi.getStartIndex(), list.getCurrentIndex(), t.start, t.brailleList.getFirst().start, tree.getItemPath()));
} private void insertElementAtEnd(Message m){