BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / icon-o-matic / gui / IconObjectListView.h
blobd821c8c0df9a87e46f37fdf83a7f6feeb1cb0c2c
1 /*
2 * Copyright 2006-2007, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
9 #ifndef ICON_OBJECT_LIST_VIEW_H
10 #define ICON_OBJECT_LIST_VIEW_H
12 #include "Observer.h"
13 #include "PropertyListView.h"
15 class CommandStack;
16 class IconObject;
17 class Selection;
19 class IconObjectListView : public PropertyListView,
20 public Observer {
21 public:
22 IconObjectListView();
23 virtual ~IconObjectListView();
25 // BView interface
26 virtual void Draw(BRect updateRect);
28 // PropertyListView interface
29 virtual void PropertyChanged(const Property* previous,
30 const Property* current);
31 virtual void PasteProperties(const PropertyObject* object);
32 virtual bool IsEditingMultipleObjects();
34 // Observer interface
35 virtual void ObjectChanged(const Observable* object);
37 // IconObjectListView
38 void SetSelection(Selection* selection);
39 void SetCommandStack(CommandStack* stack);
41 void FocusNameProperty();
43 private:
44 void _SetObject(IconObject* object);
46 Selection* fSelection;
47 CommandStack* fCommandStack;
49 IconObject* fObject;
50 bool fIgnoreObjectChange;
53 #endif // ICON_OBJECT_LIST_VIEW_H