From 4ce4bc309618bd79d2979c32fd853e5502ee7d9a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 15 Jun 2008 02:13:09 +0000 Subject: [PATCH] Made RemoveAndDeleteTab() virtual, so it can be overridden. Deleting the view without notifying anyone isn't always desirable. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25959 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/SmartTabView.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/terminal/SmartTabView.h b/src/apps/terminal/SmartTabView.h index 9d2e79652c..84de73a194 100644 --- a/src/apps/terminal/SmartTabView.h +++ b/src/apps/terminal/SmartTabView.h @@ -20,7 +20,7 @@ public: B_WILL_DRAW | B_NAVIGABLE_JUMP | B_FRAME_EVENTS | B_NAVIGABLE); virtual ~SmartTabView(); - + virtual void MouseDown(BPoint where); virtual void AttachedToWindow(); @@ -29,9 +29,9 @@ public: virtual void MessageReceived(BMessage *message); virtual void Select(int32 tab); - - void RemoveAndDeleteTab(int32 index); - + + virtual void RemoveAndDeleteTab(int32 index); + virtual void AddTab(BView *target, BTab *tab = NULL); virtual BTab* RemoveTab(int32 index);