00001 00032 #ifndef LL_LLPANELVOLUME_H 00033 #define LL_LLPANELVOLUME_H 00034 00035 #include "v3math.h" 00036 #include "llpanel.h" 00037 #include "llmemory.h" 00038 #include "llvolume.h" 00039 00040 class LLSpinCtrl; 00041 class LLCheckBoxCtrl; 00042 class LLTextBox; 00043 class LLUICtrl; 00044 class LLButton; 00045 class LLViewerObject; 00046 class LLComboBox; 00047 class LLPanelInventory; 00048 class LLColorSwatchCtrl; 00049 00050 class LLPanelVolume : public LLPanel 00051 { 00052 public: 00053 LLPanelVolume(const std::string& name); 00054 virtual ~LLPanelVolume(); 00055 00056 virtual void draw(); 00057 virtual void clearCtrls(); 00058 00059 virtual BOOL postBuild(); 00060 00061 void refresh(); 00062 00063 void sendIsLight(); 00064 void sendIsFlexible(); 00065 00066 static BOOL precommitValidate(LLUICtrl* ctrl,void* userdata); 00067 00068 static void onCommitIsLight( LLUICtrl* ctrl, void* userdata); 00069 static void onCommitLight( LLUICtrl* ctrl, void* userdata); 00070 static void onCommitIsFlexible( LLUICtrl* ctrl, void* userdata); 00071 static void onCommitFlexible( LLUICtrl* ctrl, void* userdata); 00072 00073 static void onLightCancelColor(LLUICtrl* ctrl, void* userdata); 00074 static void onLightSelectColor(LLUICtrl* ctrl, void* userdata); 00075 00076 protected: 00077 void getState(); 00078 00079 protected: 00080 /* 00081 LLTextBox* mLabelSelectSingleMessage; 00082 // Light 00083 LLCheckBoxCtrl* mCheckLight; 00084 LLCheckBoxCtrl* mCheckFlexible1D; 00085 LLTextBox* mLabelColor; 00086 LLColorSwatchCtrl* mLightColorSwatch; 00087 LLSpinCtrl* mLightIntensity; 00088 LLSpinCtrl* mLightRadius; 00089 LLSpinCtrl* mLightFalloff; 00090 LLSpinCtrl* mLightCutoff; 00091 // Flexibile 00092 LLSpinCtrl* mSpinSections; 00093 LLSpinCtrl* mSpinGravity; 00094 LLSpinCtrl* mSpinTension; 00095 LLSpinCtrl* mSpinFriction; 00096 LLSpinCtrl* mSpinWind; 00097 LLSpinCtrl* mSpinForce[3]; 00098 */ 00099 00100 LLColor4 mLightSavedColor; 00101 LLPointer<LLViewerObject> mObject; 00102 LLPointer<LLViewerObject> mRootObject; 00103 }; 00104 00105 #endif