1 #ifndef __ZIPPO_WINDOW_H__ 2 #define __ZIPPO_WINDOW_H__ 3 4 #include <Window.h> 5 #include <MenuBar.h> 6 #include <Bitmap.h> 7 #include <Menu.h> 8 #include <MenuItem.h> 9 10 #include <ZipOMaticSettings.h> 11 class ZippoView; 12 class ZipperThread; 13 14 class ZippoWindow : public BWindow 15 { 16 public: 17 ZippoWindow (BMessage * a_message = NULL); 18 ~ZippoWindow (void); 19 virtual void MessageReceived (BMessage * a_message); 20 virtual bool QuitRequested (void); 21 virtual void Zoom (BPoint origin, float width, float height); 22 23 bool IsZipping (void); 24 25 private: 26 27 status_t ReadSettings (void); 28 status_t WriteSettings (void); 29 30 void StartZipping (BMessage * a_message); 31 void StopZipping (void); 32 33 void CloseWindowOrKeepOpen (void); 34 35 ZippoView * zippoview; 36 ZippoSettings m_zippo_settings; 37 ZipperThread * m_zipper_thread; 38 39 bool m_got_refs_at_window_startup; 40 bool m_zipping_was_stopped; 41 42 BMessage * m_alert_invoker_message; 43 BInvoker * m_alert_window_invoker; 44 }; 45 46 #endif // __ZIPPO_WINDOW_H__ 47