From 4e034d2ab3afb704067b32d021c996611801d059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 17 Jan 2009 14:55:15 +0000 Subject: [PATCH] Make sure that text clippings dragged from DeskCalc will be named "DeskCalc clipping" instead of the default "Untitled clipping". Fixes last remaining issue of #2749. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28923 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskcalc/ExpressionTextView.cpp | 9 +++++++++ src/apps/deskcalc/ExpressionTextView.h | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/src/apps/deskcalc/ExpressionTextView.cpp b/src/apps/deskcalc/ExpressionTextView.cpp index 0c12df8584..5ecc7e0569 100644 --- a/src/apps/deskcalc/ExpressionTextView.cpp +++ b/src/apps/deskcalc/ExpressionTextView.cpp @@ -103,6 +103,15 @@ ExpressionTextView::MouseDown(BPoint where) } +void +ExpressionTextView::GetDragParameters(BMessage* dragMessage, + BBitmap** bitmap, BPoint* point, BHandler** handler) +{ + InputTextView::GetDragParameters(dragMessage, bitmap, point, handler); + dragMessage->AddString("be:clip_name", "DeskCalc clipping"); +} + + // #pragma mark - diff --git a/src/apps/deskcalc/ExpressionTextView.h b/src/apps/deskcalc/ExpressionTextView.h index e28fd3ca78..e65d1f43fa 100644 --- a/src/apps/deskcalc/ExpressionTextView.h +++ b/src/apps/deskcalc/ExpressionTextView.h @@ -28,6 +28,11 @@ class ExpressionTextView : public InputTextView { virtual void MouseDown(BPoint where); + // TextView + virtual void GetDragParameters(BMessage* dragMessage, + BBitmap** bitmap, BPoint* point, + BHandler** handler); + // InputTextView virtual void RevertChanges(); virtual void ApplyChanges();