From 616969aa88a946c93bf63bd62b5b68d08ea6a9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 17 Feb 2006 16:51:05 +0000 Subject: [PATCH] replaced BTextView with BStringView git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16456 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/expander/ExpanderPreferences.cpp | 30 +++++++++-------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/src/apps/expander/ExpanderPreferences.cpp b/src/apps/expander/ExpanderPreferences.cpp index 7b52aaf4fb..9a7fc1b4c2 100644 --- a/src/apps/expander/ExpanderPreferences.cpp +++ b/src/apps/expander/ExpanderPreferences.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include const uint32 MSG_OK = 'mgOK'; const uint32 MSG_CANCEL = 'mCan'; @@ -45,27 +45,19 @@ ExpanderPreferences::ExpanderPreferences(BMessage *settings) BRect textRect(frameRect); textRect.OffsetTo(B_ORIGIN); textRect.InsetBy(1,1); - BTextView *textView = new BTextView(frameRect, "expansion", textRect, - be_plain_font, NULL, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW); - textView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - box->AddChild(textView); - textView->SetText("Expansion:"); + BStringView *stringView = new BStringView(frameRect, "expansion", "Expansion:", + B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW); + box->AddChild(stringView); - frameRect.OffsetBy(0, 52); - textRect.OffsetBy(0, 52); - textView = new BTextView(frameRect, "destinationFolder", textRect, - be_plain_font, NULL, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW); - textView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - box->AddChild(textView); - textView->SetText("Destination Folder:"); + frameRect.OffsetBy(0, 60); + stringView = new BStringView(frameRect, "destinationFolder", "Destination Folder:", + B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW); + box->AddChild(stringView); frameRect.OffsetBy(0, 90); - textRect.OffsetBy(0, 90); - textView = new BTextView(frameRect, "other", textRect, - be_plain_font, NULL, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW); - textView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - box->AddChild(textView); - textView->SetText("Other:"); + stringView = new BStringView(frameRect, "other", "Other:", + B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW); + box->AddChild(stringView); rect = box->Bounds(); rect.OffsetBy(25, 42);