1 /* 2 OBOS ShowImage 0.1 - 17/02/2002 - 22:22 - Fernando Francisco de Oliveira 3 */ 4 5 #ifndef _ShowImageWindow_h 6 #define _ShowImageWindow_h 7 8 #include <Window.h> 9 class ShowImageView; 10 11 class ShowImageWindow : public BWindow 12 { 13 public: 14 static status_t NewWindow(const entry_ref* ref); 15 static int32 CountWindows(); 16 17 ShowImageWindow(const entry_ref* ref, BBitmap* pBitmap); 18 virtual ~ShowImageWindow(); 19 20 virtual void WindowActivated(bool active); 21 virtual void FrameResized( float new_width, float new_height ); 22 virtual void MessageReceived(BMessage* message); 23 24 status_t InitCheck(); 25 ShowImageView* GetShowImageView() const { return m_PrivateView; } 26 27 void SetRef(const entry_ref* ref); 28 void UpdateTitle(); 29 void LoadMenus(BMenuBar* pBar); 30 void WindowRedimension( BBitmap *pBitmap ); 31 32 BMenuBar* pBar; 33 private: 34 BMenuItem * AddItemMenu( BMenu *pMenu, char *Caption, long unsigned int msg, 35 char shortcut, uint32 modifier, char target, bool enabled ); 36 37 entry_ref* m_pReferences; 38 ShowImageView* m_PrivateView; 39 40 static BLocker s_winListLocker; 41 static BList s_winList; 42 }; 43 44 #endif /* _ShowImageWindow_h */ 45