1 /* 2 * Copyright (c) 2010 Philippe St-Pierre <stpere@gmail.com>. All rights reserved. 3 * Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>. All rights reserved. 4 * Distributed under the terms of the MIT/X11 license. 5 * 6 * Copyright (c) 1999 Mike Steed. You are free to use and distribute this software 7 * as long as it is accompanied by it's documentation and this copyright notice. 8 * The software comes with no warranty, etc. 9 */ 10 #ifndef STATUS_VIEW_H 11 #define STATUS_VIEW_H 12 13 #include <Button.h> 14 #include <View.h> 15 #include <StringView.h> 16 #include <Rect.h> 17 18 19 struct FileInfo; 20 21 class StatusView: public BView { 22 public: 23 StatusView(); 24 virtual ~StatusView(); 25 26 void ShowInfo(const FileInfo* info); 27 void EnableRescan(); 28 void EnableCancel(); 29 30 private: 31 BStringView* fPathView; 32 BStringView* fSizeView; 33 BStringView* fCountView; 34 const FileInfo* fCurrentFileInfo; 35 36 BButton* fRefreshBtn; 37 }; 38 39 40 #endif // STATUS_VIEW_H 41 42