1*79dc21c9SMichael Pfeiffer #ifndef VIEW_H 2*79dc21c9SMichael Pfeiffer #define VIEW_H 3*79dc21c9SMichael Pfeiffer 4*79dc21c9SMichael Pfeiffer #include "SubPath.h" 5*79dc21c9SMichael Pfeiffer #include <View.h> 6*79dc21c9SMichael Pfeiffer 7*79dc21c9SMichael Pfeiffer class PathView : public BView { 8*79dc21c9SMichael Pfeiffer SubPath fPath; 9*79dc21c9SMichael Pfeiffer enum { 10*79dc21c9SMichael Pfeiffer kDrawOutline, 11*79dc21c9SMichael Pfeiffer kStroke 12*79dc21c9SMichael Pfeiffer } fMode; 13*79dc21c9SMichael Pfeiffer int fCurPoint; 14*79dc21c9SMichael Pfeiffer float fWidth; 15*79dc21c9SMichael Pfeiffer 16*79dc21c9SMichael Pfeiffer public: 17*79dc21c9SMichael Pfeiffer PathView(BRect rect); 18*79dc21c9SMichael Pfeiffer void Draw(BRect updateRect); 19*79dc21c9SMichael Pfeiffer void MouseDown(BPoint point); 20*79dc21c9SMichael Pfeiffer void MouseUp(BPoint point); 21*79dc21c9SMichael Pfeiffer void MouseMoved(BPoint point, uint32 transit, const BMessage *message); 22*79dc21c9SMichael Pfeiffer void SetClose(bool close); 23*79dc21c9SMichael Pfeiffer }; 24*79dc21c9SMichael Pfeiffer #endif 25