xref: /haiku/headers/libs/print/libprint/StatusWindow.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
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 			BStatusBar*	fStatusBar;
30 			BButton*	fCancelButton;
31 			BButton*	fHideButton;
32 			bool		fCancelled;
33 			bool		fDocumentCopy;
34 			uint32		fNops;
35 			uint32		fFirstPage;
36 			uint32		fCopies;
37 			uint32		fDocCopies;
38 			float		fStatusDelta;
39 			float		fDelta;
40 };
41 
42 #endif
43 
44