xref: /haiku/headers/libs/print/libprint/StatusWindow.h (revision b671e9bbdbd10268a042b4f4cc4317ccd03d105e)
1 /*
2 	StatusWindow.h
3   Copyright 2005 Dr.H.Reh. All Rights Reserved.
4 */
5 
6 
7 #ifndef STATUS_WINDOW_H
8 #define STATUS_WINDOW_H
9 
10 #include <Window.h>
11 #include <StatusBar.h>
12 #include <String.h>
13 
14 class StatusWindow : public BWindow
15 {
16 	public:
17 									StatusWindow(bool oddPages, bool evenPages,
18 															 				uint32 firstPage, uint32 numPages,
19 															 				uint32 docCopies, uint32 nup);
20 									~StatusWindow(void);
21 
22 		virtual void MessageReceived(BMessage *message);
23 
24 		void ResetStatusBar(void);
25 		bool UpdateStatusBar(uint32 page, uint32 copy);
26 		void SetPageCopies(uint32 copies);
27 
28 	private:
29 		BView			 *fStatusView;
30 		BStatusBar *fStatusBar;
31 		BButton		 *fCancelButton;
32 		BButton		 *fHideButton;
33 		bool			 fCancelBar;
34 		bool			 fDocumentCopy;
35 		uint32		 fNops;
36 		uint32		 fFirstPage;
37 		uint32		 fCopies;
38 		uint32		 fDocCopies;
39 		float			 fStatusDelta;
40 		float			 fDelta;
41 };
42 
43 #endif
44 
45