From f8f48f3d1408d201af75ec26999ea717623aa44c Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Tue, 27 Jul 2010 11:00:56 +0000 Subject: [PATCH] I managed to miss these two files the last time I worked on resedit. How it took this long for me to notice, I'll never know. :/ git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37771 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/resedit/ResListView.cpp | 26 ++++++++++++++++++++++++++ src/apps/resedit/ResListView.h | 21 +++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 src/apps/resedit/ResListView.cpp create mode 100644 src/apps/resedit/ResListView.h 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