Changeset 404
- Timestamp:
- 11/18/08 15:35:08 (16 years ago)
- Location:
- trunk/src/org/expeditee
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/agents/mail/MailSession.java
r362 r404 458 458 Text newItem = readMessage(msgs[msgNum], msgNum + 1, frame, 459 459 point); 460 // TODO: May want to reverse the order of mail messages 460 461 if (newItem != null) { 461 462 mailItems.add(newItem); … … 565 566 while (thisLine != null) { 566 567 // A blank line is a signal to start a new text item 567 if (thisLine.trim() == "") {568 if (thisLine.trim().equals("")) { 568 569 addTextItem(frames, nextText.toString()); 569 570 nextText = new StringBuffer(); … … 597 598 if (nextText.length() == 0) 598 599 return; 599 600 frames.addText(nextText.substring(0, nextText.length() - 1), 601 null, null, null, false); 600 // Remove the last char if its a newline 601 if (nextText.charAt(nextText.length() - 1) == '\n') 602 nextText = nextText.substring(0, nextText.length() - 1); 603 //TODO: Make the space a setting in frame creator. 604 frames.addSpace(10); 605 frames.addText(nextText, null, null, null, false); 602 606 } 603 607 }.start(); -
trunk/src/org/expeditee/gui/FrameMouseActions.java
r390 r404 294 294 295 295 // pre-cache the frame if it is linked 296 if (on != null && on.getLink() != null && on.isLinkValid()) { 297 FrameIO.Precache(on.getAbsoluteLink()); 298 } 296 297 // If pre-caching is done, it must be done in the background 298 299 // if (on != null && on.getLink() != null && on.isLinkValid()) { 300 // FrameIO.Precache(on.getAbsoluteLink()); 301 // } 299 302 300 303 // check for delete command … … 697 700 /* 698 701 * Find the first linked item or the first unlinked Dot This 699 * code assumes that items are are ordered from top to bottom. 700 * TODO make sure the list will always be ordered correctly!! 702 * code assumes that items are are ordered from top to 703 * bottom. TODO make sure the list will always be ordered 704 * correctly!! 701 705 */ 702 if (i.hasLink() || i instanceof Dot) {706 if (i.hasLink() || i instanceof Dot) { 703 707 clicked = i; 704 708 break; … … 1398 1402 copies.add(d[i]); 1399 1403 } 1400 1404 1401 1405 current.nextDot(); 1402 1406 -
trunk/src/org/expeditee/items/Text.java
r400 r404 200 200 return _maxWidth; 201 201 } 202 203 /** 204 * Returns the maximum width of this Text item when justifcation is used. 205 * Ifthe width is negative, it means no explicit width has been set202 203 /** 204 * Returns the maximum width of this Text item when justifcation is used. If 205 * the width is negative, it means no explicit width has been set 206 206 * 207 207 * @return The maximum width of this Text item when justification is used … … 380 380 } 381 381 382 /** 383 * Used by the frame reader to construct multi-line text items. It must run 384 * quickly, so that the system still responds well for long text items. 385 * 386 * @param text 387 */ 382 388 public void appendLine(String text) { 383 389 if (text == null) … … 388 394 389 395 _text.append(text); 390 rebuild(false);391 396 } 392 397 … … 1425 1430 private boolean hasFixedWidth() { 1426 1431 assert (_maxWidth != null); 1427 if (_maxWidth == null){1432 if (_maxWidth == null) { 1428 1433 justify(false); 1429 1434 } … … 1529 1534 if (_textLayouts.size() < 1) { 1530 1535 rebuild(true); 1531 System.out.println("Error: " + _text);1532 return;1536 //System.out.println("Error: " + _text); 1537 //return; 1533 1538 } 1534 1539 … … 1973 1978 if (frameWidth - getX() > ADJUST_WIDTH_THRESHOLD) { 1974 1979 justify(false); 1975 // setRightMargin(frameWidth, false);1976 } 1977 } 1978 } 1979 1980 // setRightMargin(frameWidth, false); 1981 } 1982 } 1983 } 1984 1980 1985 public void justify(boolean fixWidth) { 1981 1986 Integer width = FrameGraphics.getMaxFrameSize().width; … … 1986 1991 if (enclosure != null) { 1987 1992 Rectangle bounds = enclosure.getBounds(); 1988 if (bounds.width > 200 && getX() < bounds.width / 3 + bounds.x){1993 if (bounds.width > 200 && getX() < bounds.width / 3 + bounds.x) { 1989 1994 width = bounds.x + bounds.width; 1990 1995 }
Note:
See TracChangeset
for help on using the changeset viewer.