1 /* 2 Open Tracker License 3 4 Terms and Conditions 5 6 Copyright (c) 1991-2000, Be Incorporated. All rights reserved. 7 8 Permission is hereby granted, free of charge, to any person obtaining a copy of 9 this software and associated documentation files (the "Software"), to deal in 10 the Software without restriction, including without limitation the rights to 11 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 of the Software, and to permit persons to whom the Software is furnished to do 13 so, subject to the following conditions: 14 15 The above copyright notice and this permission notice applies to all licensees 16 and shall be included in all copies or substantial portions of the Software. 17 18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY, 20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 21 BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 22 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION 23 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 25 Except as contained in this notice, the name of Be Incorporated shall not be 26 used in advertising or otherwise to promote the sale, use or other dealings in 27 this Software without prior written authorization from Be Incorporated. 28 29 Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks 30 of Be Incorporated in the United States and other countries. Other brand product 31 names are registered trademarks or trademarks of their respective holders. 32 All rights reserved. 33 */ 34 35 // DesktopPoseView adds support for displaying integrated desktops 36 // from multiple volumes to BPoseView 37 #ifndef _DESKTOP_POSE_VIEW_H 38 #define _DESKTOP_POSE_VIEW_H 39 40 41 #include "EntryIterator.h" 42 #include "PoseView.h" 43 44 45 namespace BPrivate { 46 47 class DesktopPoseView : public BPoseView { 48 // overrides BPoseView to add desktop-view specific code 49 public: 50 DesktopPoseView(Model*, uint32 viewMode); 51 52 static EntryListBase* InitDesktopDirentIterator(BPoseView*, 53 const entry_ref*); 54 55 void ShowVolumes(bool visible, bool showShared); 56 57 void StartSettingsWatch(); 58 void StopSettingsWatch(); 59 60 virtual bool AddPosesThreadValid(const entry_ref*) const; 61 virtual void AddPosesCompleted(); 62 63 protected: 64 virtual EntryListBase* InitDirentIterator(const entry_ref*); 65 virtual bool FSNotification(const BMessage*); 66 67 virtual bool IsDesktopView() const; 68 69 virtual bool Represents(const node_ref*) const; 70 virtual bool Represents(const entry_ref*) const; 71 72 void AdaptToVolumeChange(BMessage*); 73 void AdaptToDesktopIntegrationChange(BMessage*); 74 75 virtual rgb_color TextColor(bool selected = false) const; 76 virtual rgb_color BackColor(bool selected = false) const; 77 78 private: 79 typedef BPoseView _inherited; 80 }; 81 82 83 inline bool 84 DesktopPoseView::IsDesktopView() const 85 { 86 return true; 87 } 88 89 } // namespace BPrivate 90 91 using namespace BPrivate; 92 93 94 #endif // _DESKTOP_POSE_VIEW_H 95