# Replicant Support Tasks

|  |  |  |  | Task Summary | Owner
|  |  |  |  | BDragger |
|  |  |  |  | BShelf |

|  |  |  |  | Task Details
BDragger Class
|  |  |  |  | BDragger(BRect bounds, BView* target, uint32 rmask = B_FOLLOW_NONE, uint32 flags = B_WILL_DRAW);
|  |  |  |  | BDragger(BMessage* data);
|  |  |  |  | virtual ~BDragger();
|  |  |  |  | static BArchivable* Instantiate(BMessage* data);
|  |  |  |  | virtual status_t Archive(BMessage* data, bool deep = true) const;
|  |  |  |  | virtual void AttachedToWindow();
|  |  |  |  | virtual void DetachedFromWindow();
|  |  |  |  | virtual void Draw(BRect update);
|  |  |  |  | virtual void MouseDown(BPoint where);
|  |  |  |  | virtual void MouseUp(BPoint pt);
|  |  |  |  | virtual void MouseMoved(BPoint pt, uint32 code, const BMessage* msg);
|  |  |  |  | virtual void MessageReceived(BMessage* msg);
|  |  |  |  | virtual void FrameMoved(BPoint new_position);
|  |  |  |  | virtual void FrameResized(float new_width, float new_height);
|  |  |  |  | static status_t ShowAllDraggers(); /* system wide!*/
|  |  |  |  | static status_t HideAllDraggers(); /* system wide!*/
|  |  |  |  | static bool AreDraggersDrawn();
|  |  |  |  | virtual BHandler* ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier, int32 form, const char* property);
|  |  |  |  | virtual status_t GetSupportedSuites(BMessage* data);
|  |  |  |  | virtual status_t Perform(perform_code d, void* arg);
|  |  |  |  | virtual void ResizeToPreferred();
|  |  |  |  | virtual void GetPreferredSize(float* width, float* height);
|  |  |  |  | virtual void MakeFocus(bool state = true);
|  |  |  |  | virtual void AllAttached();
|  |  |  |  | virtual void AllDetached();
|  |  |  |  | status_t SetPopUp(BPopUpMenu* context_menu);
|  |  |  |  | BPopUpMenu* PopUp() const;
|  |  |  |  | bool InShelf() const;
|  |  |  |  | BView* Target() const;
|  |  |  |  | virtual BBitmap* DragBitmap(BPoint* offset, drawing_mode* mode);
|  |  |  |  | bool IsVisibilityChanging() const;
BShelf Class
|  |  |  |  | BShelf(BView* view, bool allow_drags = true, const char* shelf_type = NULL);
|  |  |  |  | BShelf(const entry_ref* ref, BView* view, bool allow_drags = true, const char* shelf_type = NULL);
|  |  |  |  | BShelf(BDataIO* stream, BView* view, bool allow_drags = true, const char* shelf_type = NULL);
|  |  |  |  | BShelf(BMessage* data);
|  |  |  |  | virtual ~BShelf();
|  |  |  |  | virtual status_t Archive(BMessage* data, bool deep = true) const;
|  |  |  |  | static BArchivable* Instantiate(BMessage* data);
|  |  |  |  | virtual void MessageReceived(BMessage* msg);
|  |  |  |  | status_t Save();
|  |  |  |  | virtual void SetDirty(bool state);
|  |  |  |  | bool IsDirty() const;
|  |  |  |  | virtual BHandler* ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier, int32 form, const char* property);
|  |  |  |  | virtual status_t GetSupportedSuites(BMessage* data);
|  |  |  |  | virtual status_t Perform(perform_code d, void* arg);
|  |  |  |  | bool AllowsDragging() const;
|  |  |  |  | void SetAllowsDragging(bool state);
|  |  |  |  | bool AllowsZombies() const;
|  |  |  |  | void SetAllowsZombies(bool state);
|  |  |  |  | bool DisplaysZombies() const;
|  |  |  |  | void SetDisplaysZombies(bool state);
|  |  |  |  | bool IsTypeEnforced() const;
|  |  |  |  | void SetTypeEnforced(bool state);
|  |  |  |  | status_t SetSaveLocation(BDataIO* data_io);
|  |  |  |  | status_t SetSaveLocation(const entry_ref* ref);
|  |  |  |  | BDataIO* SaveLocation(entry_ref* ref) const;
|  |  |  |  | status_t AddReplicant(BMessage* data, BPoint location);
|  |  |  |  | status_t DeleteReplicant(BView* replicant);
|  |  |  |  | status_t DeleteReplicant(BMessage* data);
|  |  |  |  | status_t DeleteReplicant(int32 index);
|  |  |  |  | int32 CountReplicants() const;
|  |  |  |  | BMessage* ReplicantAt(int32 index, BView** view = NULL, uint32* uid = NULL, status_t* perr = NULL) const;
|  |  |  |  | int32 IndexOf(const BView* replicant_view) const;
|  |  |  |  | int32 IndexOf(const BMessage* archive) const;
|  |  |  |  | int32 IndexOf(uint32 id) const;
|  |  |  |  | virtual bool CanAcceptReplicantMessage(BMessage*) const;
|  |  |  |  | virtual bool CanAcceptReplicantView(BRect, BView*, BMessage*) const;
|  |  |  |  | virtual BPoint AdjustReplicantBy(BRect, BMessage*) const;
|  |  |  |  | virtual void ReplicantDeleted(int32 index, const BMessage* archive, const BView* replicant);

Legend
| Functional Spec
| Use Cases
| Unit Tests
| Technical Spec
| Implementation
| Completed

The OpenBeOS project is hosted by:

Copyright © 2001-2002 OpenBeOS Project