Ver Fonte

GuiInspector

-Required changes for guiInspector and slider.
marauder2k7 há 4 anos atrás
pai
commit
a386aad66c

+ 1 - 4
engine/source/gui/containers/guiPanelCtrl.h

@@ -37,13 +37,10 @@ private:
    typedef GuiExpandCtrl Parent;
    typedef GuiExpandCtrl Parent;
    GuiButtonCtrl*      mHeader;
    GuiButtonCtrl*      mHeader;
 
 
-protected:
-	virtual bool calcExpandedExtent();
-
 public:
 public:
 	GuiPanelCtrl();
 	GuiPanelCtrl();
 	virtual ~GuiPanelCtrl();
 	virtual ~GuiPanelCtrl();
-
+   virtual bool calcExpandedExtent();
 	bool onAdd();
 	bool onAdd();
 	virtual void onRender(Point2I offset, const RectI &updateRect);
 	virtual void onRender(Point2I offset, const RectI &updateRect);
 
 

+ 5 - 5
engine/source/gui/guiSliderCtrl.cc

@@ -91,7 +91,7 @@ bool GuiSliderCtrl::onWake()
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
-void GuiSliderCtrl::onMouseDown(const GuiEvent &event)
+void GuiSliderCtrl::onTouchDown(const GuiEvent &event)
 {
 {
     if (!mActive || !mAwake || !mVisible)
     if (!mActive || !mAwake || !mVisible)
         return;
         return;
@@ -111,7 +111,7 @@ void GuiSliderCtrl::onMouseDown(const GuiEvent &event)
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
-void GuiSliderCtrl::onMouseDragged(const GuiEvent &event)
+void GuiSliderCtrl::onTouchDragged(const GuiEvent &event)
 {
 {
     if (!mActive || !mAwake || !mVisible)
     if (!mActive || !mAwake || !mVisible)
         return;
         return;
@@ -147,7 +147,7 @@ void GuiSliderCtrl::onMouseDragged(const GuiEvent &event)
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
-void GuiSliderCtrl::onMouseUp(const GuiEvent &)
+void GuiSliderCtrl::onTouchUp(const GuiEvent &)
 {
 {
     if (!mActive || !mAwake || !mVisible)
     if (!mActive || !mAwake || !mVisible)
         return;
         return;
@@ -156,7 +156,7 @@ void GuiSliderCtrl::onMouseUp(const GuiEvent &)
     execConsoleCallback();
     execConsoleCallback();
 }
 }
 
 
-void GuiSliderCtrl::onMouseEnter(const GuiEvent &event)
+void GuiSliderCtrl::onTouchEnter(const GuiEvent &event)
 {
 {
     setUpdate();
     setUpdate();
     if (isMouseLocked())
     if (isMouseLocked())
@@ -176,7 +176,7 @@ void GuiSliderCtrl::onMouseEnter(const GuiEvent &event)
     }
     }
 }
 }
 
 
-void GuiSliderCtrl::onMouseLeave(const GuiEvent &)
+void GuiSliderCtrl::onTouchLeave(const GuiEvent &)
 {
 {
     setUpdate();
     setUpdate();
     if (isMouseLocked())
     if (isMouseLocked())

+ 5 - 5
engine/source/gui/guiSliderCtrl.h

@@ -66,11 +66,11 @@ public:
    //Parental methods
    //Parental methods
    bool onWake();
    bool onWake();
 
 
-   void onMouseDown(const GuiEvent &event);
-   void onMouseDragged(const GuiEvent &event);
-   void onMouseUp(const GuiEvent &);
-   void onMouseLeave(const GuiEvent &);
-   void onMouseEnter(const GuiEvent &);
+   void onTouchDown(const GuiEvent &event);
+   void onTouchDragged(const GuiEvent &event);
+   void onTouchUp(const GuiEvent &);
+   void onTouchLeave(const GuiEvent &);
+   void onTouchEnter(const GuiEvent &);
    F32 getValue() { return mValue; }
    F32 getValue() { return mValue; }
    void setScriptValue(const char *val);
    void setScriptValue(const char *val);