From e6b7649c0fad42456a0fb4139558c288173ebe88 Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Sun, 28 Jul 2002 17:58:30 +0000 Subject: [PATCH] Renamed View.* to BBView.* and Application.* to BBApp.*. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@505 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../{Application.cpp => BBApp.cpp} | 4 ++-- .../bezierbounds/{Application.h => BBApp.h} | 4 ++-- .../{Application.rsrc => BBApp.rsrc} | Bin 4193 -> 4199 bytes .../pdf/bezierbounds/{View.cpp => BBView.cpp} | 14 +++++++------- .../pdf/bezierbounds/{View.h => BBView.h} | 4 ++-- .../add-ons/print/pdf/bezierbounds/Jamfile | 13 +++---------- 6 files changed, 16 insertions(+), 23 deletions(-) rename src/tests/add-ons/print/pdf/bezierbounds/{Application.cpp => BBApp.cpp} (97%) rename src/tests/add-ons/print/pdf/bezierbounds/{Application.h => BBApp.h} (91%) rename src/tests/add-ons/print/pdf/bezierbounds/{Application.rsrc => BBApp.rsrc} (88%) rename src/tests/add-ons/print/pdf/bezierbounds/{View.cpp => BBView.cpp} (88%) rename src/tests/add-ons/print/pdf/bezierbounds/{View.h => BBView.h} (87%) diff --git a/src/tests/add-ons/print/pdf/bezierbounds/Application.cpp b/src/tests/add-ons/print/pdf/bezierbounds/BBApp.cpp similarity index 97% rename from src/tests/add-ons/print/pdf/bezierbounds/Application.cpp rename to src/tests/add-ons/print/pdf/bezierbounds/BBApp.cpp index 83523e35f2..a7130600f8 100644 --- a/src/tests/add-ons/print/pdf/bezierbounds/Application.cpp +++ b/src/tests/add-ons/print/pdf/bezierbounds/BBApp.cpp @@ -1,4 +1,4 @@ -#include "Application.h" +#include "BBApp.h" BMessage* NewMessage(uint32 what, uint32 data) { @@ -44,7 +44,7 @@ AppWindow::AppWindow(BRect aRect) // add view aRect.Set(0, menubar->Bounds().Height()+1, aRect.Width(), aRect.Height()); view = NULL; - AddChild(view = new View(aRect)); + AddChild(view = new BBView(aRect)); // make window visible Show(); } diff --git a/src/tests/add-ons/print/pdf/bezierbounds/Application.h b/src/tests/add-ons/print/pdf/bezierbounds/BBApp.h similarity index 91% rename from src/tests/add-ons/print/pdf/bezierbounds/Application.h rename to src/tests/add-ons/print/pdf/bezierbounds/BBApp.h index 043382a4ca..f783fc8133 100644 --- a/src/tests/add-ons/print/pdf/bezierbounds/Application.h +++ b/src/tests/add-ons/print/pdf/bezierbounds/BBApp.h @@ -3,7 +3,7 @@ #include #include -#include "View.h" +#include "BBView.h" #include "MsgConsts.h" #define APPLICATION "Application" @@ -12,7 +12,7 @@ class AppWindow : public BWindow { public: BMenuBar *menubar; - View *view; + BBView *view; AppWindow(BRect); bool QuitRequested(); void AboutRequested(); diff --git a/src/tests/add-ons/print/pdf/bezierbounds/Application.rsrc b/src/tests/add-ons/print/pdf/bezierbounds/BBApp.rsrc similarity index 88% rename from src/tests/add-ons/print/pdf/bezierbounds/Application.rsrc rename to src/tests/add-ons/print/pdf/bezierbounds/BBApp.rsrc index 681796520d6cfafc7e3ed8e85a89993c6d72503c..ba7ca59ed9fa9fc0482399f0d445318adbec37da 100644 GIT binary patch delta 111 zcmaE;@LXZSbH1uE~q}j{pD|5g3>N diff --git a/src/tests/add-ons/print/pdf/bezierbounds/View.cpp b/src/tests/add-ons/print/pdf/bezierbounds/BBView.cpp similarity index 88% rename from src/tests/add-ons/print/pdf/bezierbounds/View.cpp rename to src/tests/add-ons/print/pdf/bezierbounds/BBView.cpp index ed4eb47554..eb1aa0ad79 100644 --- a/src/tests/add-ons/print/pdf/bezierbounds/View.cpp +++ b/src/tests/add-ons/print/pdf/bezierbounds/BBView.cpp @@ -1,8 +1,8 @@ #include "BezierBounds.h" -#include "View.h" +#include "BBView.h" #include -View::View(BRect rect) +BBView::BBView(BRect rect) : BView(rect, NULL, B_FOLLOW_ALL_SIDES, B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE | B_SUBPIXEL_PRECISE) { //SetViewColor(B_TRANSPARENT_COLOR); fMode = kStroke; @@ -10,7 +10,7 @@ View::View(BRect rect) fWidth = 16; } -void View::Draw(BRect updateRect) { +void BBView::Draw(BRect updateRect) { if (fMode == kDrawOutline) { } else if (fMode == kStroke) { @@ -55,7 +55,7 @@ void View::Draw(BRect updateRect) { } } -void View::MouseDown(BPoint point) { +void BBView::MouseDown(BPoint point) { uint32 buttons; GetMouse(&point, &buttons, false); @@ -74,18 +74,18 @@ void View::MouseDown(BPoint point) { Invalidate(); } -void View::MouseMoved(BPoint point, uint32 transit, const BMessage *message) { +void BBView::MouseMoved(BPoint point, uint32 transit, const BMessage *message) { if (fCurPoint != -1) { fPath.AtPut(fCurPoint, point); Invalidate(); } } -void View::MouseUp(BPoint point) { +void BBView::MouseUp(BPoint point) { fCurPoint = -1; } -void View::SetClose(bool close) { +void BBView::SetClose(bool close) { if (close) fPath.Close(); else fPath.Open(); } \ No newline at end of file diff --git a/src/tests/add-ons/print/pdf/bezierbounds/View.h b/src/tests/add-ons/print/pdf/bezierbounds/BBView.h similarity index 87% rename from src/tests/add-ons/print/pdf/bezierbounds/View.h rename to src/tests/add-ons/print/pdf/bezierbounds/BBView.h index a9abae4984..6d782dfd36 100644 --- a/src/tests/add-ons/print/pdf/bezierbounds/View.h +++ b/src/tests/add-ons/print/pdf/bezierbounds/BBView.h @@ -4,7 +4,7 @@ #include "SubPath.h" #include -class View : public BView { +class BBView : public BView { SubPath fPath; enum { kDrawOutline, @@ -14,7 +14,7 @@ class View : public BView { float fWidth; public: - View(BRect rect); + BBView(BRect rect); void Draw(BRect updateRect); void MouseDown(BPoint point); void MouseUp(BPoint point); diff --git a/src/tests/add-ons/print/pdf/bezierbounds/Jamfile b/src/tests/add-ons/print/pdf/bezierbounds/Jamfile index afbbee84ff..31a97bd617 100644 --- a/src/tests/add-ons/print/pdf/bezierbounds/Jamfile +++ b/src/tests/add-ons/print/pdf/bezierbounds/Jamfile @@ -2,11 +2,11 @@ SubDir OBOS_TOP src tests add-ons print pdf bezierbounds ; SubDirHdrs $(OBOS_TOP) src add-ons print drivers pdf source ; -AddResources BezierBounds : <$(SOURCE_GRIST)>Application.rsrc ; +AddResources BezierBounds : BBApp.rsrc ; local sources = - Application.cpp - View.cpp + BBApp.cpp + BBView.cpp BezierBounds.cpp SubPath.cpp ; @@ -19,10 +19,3 @@ SimpleTest BezierBounds # Tell Jam where to find these sources: SEARCH on [ FGristFiles SubPath.cpp ] = [ FDirName $(OBOS_TOP) src add-ons print drivers pdf source ] ; - -# Ugly hack: Prepend the dirs containing Be's Application.h/View.h to the list -# of include search dirs. Otherwise they won't be found. -# It is certainly a good idea to rename the local files. -PrependObjectHdrs $(sources) - : /boot/develop/headers/be/app /boot/develop/headers/be/interface ; -