1 // ObjectWindow.h 2 3 #ifndef OBJECT_WINDOW_H 4 #define OBJECT_WINDOW_H 5 6 #include <Window.h> 7 8 class BButton; 9 class BCheckBox; 10 class BMenuField; 11 class BTextControl; 12 class BSlider; 13 class ObjectView; 14 15 class ObjectWindow : public BWindow { 16 public: 17 ObjectWindow(BRect frame, const char* name); 18 virtual ~ObjectWindow(); 19 20 virtual bool QuitRequested(); 21 22 virtual void MessageReceived(BMessage* message); 23 24 private: 25 void _UpdateControls() const; 26 void _UpdateColorControls() const; 27 rgb_color _GetColor() const; 28 29 ObjectView* fObjectView; 30 31 BButton* fNewB; 32 BButton* fClearB; 33 34 BButton* fUndoB; 35 BButton* fRedoB; 36 37 BMenuField* fDrawingModeMF; 38 39 BTextControl* fRedTC; 40 BTextControl* fGreenTC; 41 BTextControl* fBlueTC; 42 BTextControl* fAlphaTC; 43 44 BCheckBox* fFillCB; 45 BSlider* fPenSizeS; 46 }; 47 48 #endif // OBJECT_WINDOW_H 49