diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index e4d7eb75e4..3396e604dc 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -15,7 +15,6 @@ #include "StyledEditView.h" #include "StyledEditWindow.h" - #include #include #include @@ -31,15 +30,16 @@ #include #include #include -#include #include #include #include using namespace BPrivate; + const float kLineViewWidth = 30.0; + StyledEditWindow::StyledEditWindow(BRect frame, int32 id, uint32 encoding) : BWindow(frame, "untitled", B_DOCUMENT_WINDOW, B_ASYNCHRONOUS_CONTROLS) { @@ -120,15 +120,6 @@ StyledEditWindow::InitWindow(uint32 encoding) AddChild(fScrollView); fTextView->MakeFocus(true); - BScrollBar* HScrollBar = fScrollView->ScrollBar(B_HORIZONTAL); - HScrollBar->MoveBy(kLineViewWidth + 1, 0); - HScrollBar->ResizeBy((-1 * kLineViewWidth) - 1, 0); - - fStringView = new BStringView(BRect(0,0,kLineViewWidth,B_H_SCROLL_BAR_HEIGHT), "stringview", "1", B_FOLLOW_LEFT | B_FOLLOW_BOTTOM); - fStringView->SetAlignment(B_ALIGN_CENTER); - fScrollView->AddChild(fStringView); - fStringView->MoveTo(0.0, HScrollBar->Frame().top); - // Add "File"-menu: BMenu* menu = new BMenu("File"); fMenuBar->AddItem(menu); @@ -542,11 +533,6 @@ StyledEditWindow::MessageReceived(BMessage *message) fCopyItem->SetEnabled(false); fClearItem->SetEnabled(false); break; - case UPDATE_LINE: - char buf[20]; - sprintf(buf, "%ld", fTextView->CurrentLine() + 1); - fStringView->SetText(buf); - break; case TEXT_CHANGED: if (fUndoFlag) { if (fUndoCleans) { diff --git a/src/apps/stylededit/StyledEditWindow.h b/src/apps/stylededit/StyledEditWindow.h index 5feed358d7..3b21a95a86 100644 --- a/src/apps/stylededit/StyledEditWindow.h +++ b/src/apps/stylededit/StyledEditWindow.h @@ -23,7 +23,6 @@ class BMenuBar; class BMenuItem; class BFilePanel; class BScrollView; -class BStringView; class StyledEditView; @@ -116,7 +115,6 @@ class StyledEditWindow : public BWindow { StyledEditView *fTextView; BScrollView *fScrollView; - BStringView *fStringView; BFilePanel *fSavePanel; BMenu *fSavePanelEncodingMenu;