1 /* 2 * Copyright (c) 2008-2009, Haiku, Inc. 3 * Distributed under the terms of the MIT license. 4 * 5 * Authors: 6 * Artur Wyszynski <harakash@gmail.com> 7 */ 8 9 10 #include <Application.h> 11 #include <Window.h> 12 #include <MenuField.h> 13 #include <MenuItem.h> 14 #include <PopUpMenu.h> 15 #include <Screen.h> 16 17 #include "GradientsView.h" 18 19 #define MSG_LINEAR 'gtli' 20 #define MSG_RADIAL 'gtra' 21 #define MSG_RADIAL_FOCUS 'gtrf' 22 #define MSG_DIAMOND 'gtdi' 23 #define MSG_CONIC 'gtco' 24 25 class GradientsWindow : public BWindow { 26 public: 27 GradientsWindow(void); 28 29 bool QuitRequested(void); 30 virtual void MessageReceived(BMessage* msg); 31 32 private: 33 BPopUpMenu* fGradientsMenu; 34 BMenuItem* fLinearItem; 35 BMenuItem* fRadialItem; 36 BMenuItem* fRadialFocusItem; 37 BMenuItem* fDiamondItem; 38 BMenuItem* fConicItem; 39 BMenuField* fGradientsTypeField; 40 GradientsView* fGradientsView; 41 }; 42