llpanelface.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLPANELFACE_H
00033 #define LL_LLPANELFACE_H
00034 
00035 #include "v4color.h"
00036 #include "llpanel.h"
00037 
00038 class LLButton;
00039 class LLCheckBoxCtrl;
00040 class LLColorSwatchCtrl;
00041 class LLComboBox;
00042 class LLInventoryItem;
00043 class LLLineEditor;
00044 class LLSpinCtrl;
00045 class LLTextBox;
00046 class LLTextureCtrl;
00047 class LLUICtrl;
00048 class LLViewerObject;
00049 
00050 class LLPanelFace : public LLPanel
00051 {
00052 public:
00053         virtual BOOL    postBuild();
00054         LLPanelFace(const std::string& name);
00055         virtual ~LLPanelFace();
00056 
00057         void                    refresh();
00058 
00059 protected:
00060         void                    getState();
00061 
00062         void                    sendTexture();                  // applies and sends texture
00063         void                    sendTextureInfo();              // applies and sends texture scale, offset, etc.
00064         void                    sendColor();                    // applies and sends color
00065         void                    sendAlpha();                    // applies and sends transparency
00066         void                    sendBump();                             // applies and sends bump map
00067         void                    sendTexGen();                           // applies and sends bump map
00068         void                    sendShiny();                    // applies and sends shininess
00069         void                    sendFullbright();               // applies and sends full bright
00070 
00071         // this function is to return TRUE if the dra should succeed.
00072         static BOOL onDragTexture(LLUICtrl* ctrl, LLInventoryItem* item, void* ud);
00073 
00074         static void     onCommitTexture(                LLUICtrl* ctrl, void* userdata);
00075         static void     onCancelTexture(                LLUICtrl* ctrl, void* userdata);
00076         static void     onSelectTexture(                LLUICtrl* ctrl, void* userdata);
00077         static void     onCommitTextureInfo(    LLUICtrl* ctrl, void* userdata);
00078         static void     onCommitColor(                  LLUICtrl* ctrl, void* userdata);
00079         static void     onCommitAlpha(                  LLUICtrl* ctrl, void* userdata);
00080         static void     onCancelColor(                  LLUICtrl* ctrl, void* userdata);
00081         static void     onSelectColor(                  LLUICtrl* ctrl, void* userdata);
00082         static void             onCommitBump(                   LLUICtrl* ctrl, void* userdata);
00083         static void             onCommitTexGen(                 LLUICtrl* ctrl, void* userdata);
00084         static void             onCommitShiny(                  LLUICtrl* ctrl, void* userdata);
00085         static void             onCommitFullbright(             LLUICtrl* ctrl, void* userdata);
00086 
00087         static void             onClickApply(void*);
00088         static void             onClickAutoFix(void*);
00089 };
00090 
00091 #endif

Generated on Thu Jul 1 06:08:57 2010 for Second Life Viewer by  doxygen 1.4.7