xref: /haiku/src/add-ons/tracker/zipomatic/ZipOMaticWindow.h (revision 2680698b6dd6a8fc43dc51f5e9fb94d61b53a651)
16e645865SJonas Sundström #ifndef _ZIPOMATIC_WINDOW_H
26e645865SJonas Sundström #define _ZIPOMATIC_WINDOW_H
3926f5ddfSshatty 
46e645865SJonas Sundström 
5926f5ddfSshatty #include <Bitmap.h>
6926f5ddfSshatty #include <Menu.h>
76e645865SJonas Sundström #include <MenuBar.h>
8926f5ddfSshatty #include <MenuItem.h>
96e645865SJonas Sundström #include <Window.h>
10926f5ddfSshatty 
116e645865SJonas Sundström #include "ZipOMaticView.h"
126e645865SJonas Sundström #include "ZipperThread.h"
136e645865SJonas Sundström 
14926f5ddfSshatty 
15926f5ddfSshatty class ZippoWindow : public BWindow
16926f5ddfSshatty {
17926f5ddfSshatty public:
18*2680698bSJonas Sundström 							ZippoWindow(BRect frame, BMessage* refs = NULL);
196e645865SJonas Sundström 							~ZippoWindow();
206e645865SJonas Sundström 
216e645865SJonas Sundström 	virtual	void			MessageReceived(BMessage* message);
226e645865SJonas Sundström 	virtual	bool			QuitRequested();
23926f5ddfSshatty 	virtual	void			Zoom(BPoint origin, float width, float height);
24926f5ddfSshatty 
256e645865SJonas Sundström 			bool			IsZipping();
26*2680698bSJonas Sundström 			void			StopZipping();
27926f5ddfSshatty 
28926f5ddfSshatty private:
29926f5ddfSshatty 
306e645865SJonas Sundström 			void			_StartZipping(BMessage* message);
316e645865SJonas Sundström 			void			_CloseWindowOrKeepOpen();
32926f5ddfSshatty 
336e645865SJonas Sundström 			ZippoView*		fView;
346e645865SJonas Sundström 			ZipperThread*	fThread;
35926f5ddfSshatty 
366e645865SJonas Sundström 			bool			fWindowGotRefs;
376e645865SJonas Sundström 			bool			fZippingWasStopped;
38926f5ddfSshatty 
396e645865SJonas Sundström 			BInvoker*		fWindowInvoker;
40926f5ddfSshatty };
41926f5ddfSshatty 
426e645865SJonas Sundström #endif	// _ZIPOMATIC_WINDOW_H
436e645865SJonas Sundström 
44