diff --git a/src/apps/resedit/ResListView.cpp b/src/apps/resedit/ResListView.cpp new file mode 100644 index 0000000000..f66166121e --- /dev/null +++ b/src/apps/resedit/ResListView.cpp @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2005-2010, Haiku, Inc. + * Distributed under the terms of the MIT license. + * + * Author: + * DarkWyrm + */ +#include "ResListView.h" + +ResListView::ResListView(const BRect &frame, const char *name, int32 resize, int32 flags, + border_style border) + : BColumnListView(frame,name,resize,flags,border) +{ +} + + +void +ResListView::MessageDropped(BMessage *msg, BPoint pt) +{ + if (!Parent()) + return; + + BMessenger messenger(Parent()); + msg->what = B_REFS_RECEIVED; + messenger.SendMessage(msg); +} diff --git a/src/apps/resedit/ResListView.h b/src/apps/resedit/ResListView.h new file mode 100644 index 0000000000..4430390bcc --- /dev/null +++ b/src/apps/resedit/ResListView.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2005-2010, Haiku, Inc. + * Distributed under the terms of the MIT license. + * + * Author: + * DarkWyrm + */ +#ifndef RESLISTVIEW_H +#define RESLISTVIEW_H + +#include "ColumnListView.h" + +class ResListView : public BColumnListView +{ +public: + ResListView(const BRect &frame, const char *name, int32 resize, int32 flags, + border_style border); + void MessageDropped(BMessage *msg, BPoint pt); +}; + +#endif