Lines Matching refs:textView

343 		BTextView* textView = dynamic_cast<BTextView*>(
345 if (textView != NULL) {
348 bool tooWide = textView->TextRect().Width() > maxWidth;
349 textView->MakeResizable(!tooWide, tooWide ? NULL : scrollView);
375 BTextView* textView = dynamic_cast<BTextView*>(
377 if (textView != NULL) {
378 float textWidth = textView->TextRect().Width();
382 textView->GetSelection(&start, &finish);
385 textView->GetTextRegion(start, finish, &selectedRegion);
398 textWidth += textView->StringWidth(text);
414 float oldWidth = textView->Bounds().Width();
418 if (textView->Alignment() == B_ALIGN_CENTER)
420 else if (textView->Alignment() == B_ALIGN_RIGHT)
428 textView->MakeResizable(!tooWide, tooWide ? NULL : scrollView);
449 BTextView* textView = new BTextView(rect, "WidgetTextView", rect,
452 textView->SetWordWrap(false);
453 textView->SetInsets(2, 2, 2, 2);
454 DisallowMetaKeys(textView);
455 fText->SetupEditing(textView);
457 textView->AddFilter(new BMessageFilter(B_KEY_DOWN, TextViewKeyDownFilter));
460 textView->MakeEditable(false);
461 textView->MakeSelectable(true);
463 textView->SetViewColor(tint_color(textView->ViewColor(),
464 ReadOnlyTint(textView->ViewColor())));
466 textView->AddFilter(new BMessageFilter(B_PASTE, TextViewPasteFilter));
469 rect.right = rect.left + textView->LineWidth();
470 rect.bottom = rect.top + textView->LineHeight() - 1 + 4;
479 fMaxWidth = textView->StringWidth("M") * 30;
481 if (textView->LineWidth() > fMaxWidth
488 // resize textView
489 textView->MoveTo(rect.LeftTop());
490 textView->ResizeTo(std::min(fMaxWidth, rect.Width()), rect.Height());
491 textView->SetTextRect(rect);
493 // set alignment before adding textView so it doesn't redraw
496 textView->SetAlignment(B_ALIGN_CENTER);
500 textView->SetAlignment(B_ALIGN_LEFT);
504 textView->SetAlignment(fAlignment);
508 BScrollView* scrollView = new BScrollView("BorderView", textView, 0, 0,
512 bool tooWide = textView->TextRect().Width() > fMaxWidth;
513 textView->MakeResizable(!tooWide, tooWide ? NULL : scrollView);
520 textView->SelectAll();
521 textView->ScrollToSelection();
523 textView->MakeFocus();
550 BTextView* textView = dynamic_cast<BTextView*>(
552 ASSERT(textView != NULL);
553 if (textView == NULL)
561 if (saveChanges && fText->CommitEditedText(textView)) {