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 BListView; 11 class BMenuField; 12 class BTextControl; 13 class BSlider; 14 class ObjectView; 15 16 class ObjectWindow : public BWindow { 17 public: 18 ObjectWindow(BRect frame, const char* name); 19 virtual ~ObjectWindow(); 20 21 virtual bool QuitRequested(); 22 23 virtual void MessageReceived(BMessage* message); 24 25 private: 26 void _UpdateControls() const; 27 void _UpdateColorControls() const; 28 rgb_color _GetColor() const; 29 30 ObjectView* fObjectView; 31 32 BButton* fNewB; 33 BButton* fClearB; 34 35 BButton* fUndoB; 36 BButton* fRedoB; 37 38 BMenuField* fDrawingModeMF; 39 40 BTextControl* fRedTC; 41 BTextControl* fGreenTC; 42 BTextControl* fBlueTC; 43 BTextControl* fAlphaTC; 44 45 BCheckBox* fFillCB; 46 BSlider* fPenSizeS; 47 48 BListView* fObjectLV; 49 }; 50 51 #endif // OBJECT_WINDOW_H 52