00001 00033 #ifndef LL_LLFLOATEREDITUI_H 00034 #define LL_LLFLOATEREDITUI_H 00035 00036 #include "llfloater.h" 00037 00038 class LLLineEditor; 00039 class LLSpinCtrl; 00040 00041 class LLFloaterEditUI : public LLFloater 00042 { 00043 public: 00044 LLFloaterEditUI(); 00045 virtual ~LLFloaterEditUI(); 00046 00047 virtual void draw(); 00048 void refresh(); 00049 void refreshCore(); 00050 00051 void refreshView(LLView* view); 00052 void refreshButton(LLView* view); 00053 static void navigateHierarchyButtonPressed(void* data); 00054 static void show(void* unused = NULL); 00055 00056 static BOOL handleKey(KEY key, MASK mask); 00057 00058 static void onCommitLabel(LLUICtrl* ctrl, void* data); 00059 static void onCommitHeight(LLUICtrl* ctrl, void* data); 00060 static void onCommitWidth(LLUICtrl* ctrl, void* data); 00061 00062 protected: 00063 LLView* mLastView; 00064 00065 LLLineEditor* mLabelLine; 00066 LLSpinCtrl* mWidthSpin; 00067 LLSpinCtrl* mHeightSpin; 00068 00069 static LLFloaterEditUI* sInstance; 00070 }; 00071 00072 #endif