Merge pull request #1234 from marauder2k9-torque/virtuals-override

Virtuals override
This commit is contained in:
Brian Roberts 2024-03-21 10:43:26 -05:00 committed by GitHub
commit 05a083ca6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
710 changed files with 6353 additions and 6324 deletions

View file

@ -122,9 +122,9 @@ public:
GuiTSCtrl();
void onPreRender();
void onPreRender() override;
void _internalRender(RectI guiViewport, RectI renderViewport, Frustum &frustum);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
virtual bool processCameraQuery(CameraQuery *query);
/// Subclasses can override this to perform 3D rendering.
@ -136,8 +136,8 @@ public:
static void initPersistFields();
static void consoleInit();
virtual bool onWake();
virtual void onSleep();
bool onWake() override;
void onSleep() override;
/// Returns the last World Matrix set in onRender.
const MatrixF& getLastWorldMatrix() const { return mSaveModelview; }

View file

@ -172,15 +172,15 @@ class GuiBitmapButtonCtrl : public GuiButtonCtrl
void setBitmapHandles( GFXTexHandle normal, GFXTexHandle highlighted, GFXTexHandle depressed, GFXTexHandle inactive );
//Parent methods
virtual bool onWake();
virtual void onSleep();
virtual void onAction();
virtual void inspectPostApply();
bool onWake() override;
void onSleep() override;
void onAction() override;
void inspectPostApply() override;
virtual void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
static void initPersistFields();
bool pointInControl(const Point2I& parentCoordPoint);
bool pointInControl(const Point2I& parentCoordPoint) override;
DECLARE_CONOBJECT(GuiBitmapButtonCtrl);
DECLARE_DESCRIPTION( "A button control rendered entirely from bitmaps.\n"
@ -207,7 +207,7 @@ class GuiBitmapButtonTextCtrl : public GuiBitmapButtonCtrl
protected:
virtual void renderButton( GFXTexHandle &texture, const Point2I& offset, const RectI& updateRect );
void renderButton( GFXTexHandle &texture, const Point2I& offset, const RectI& updateRect ) override;
public:

View file

@ -37,7 +37,7 @@ protected:
public:
DECLARE_CONOBJECT(GuiBorderButtonCtrl);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
};
IMPLEMENT_CONOBJECT(GuiBorderButtonCtrl);

View file

@ -80,7 +80,7 @@ protected:
public:
GuiButtonBaseCtrl();
bool onWake();
bool onWake() override;
DECLARE_CONOBJECT(GuiButtonBaseCtrl);
DECLARE_CATEGORY("Gui Buttons");
@ -101,25 +101,25 @@ public:
void setHighlighted(bool highlighted);
bool isHighlighted() { return mHighlighted; }
void acceleratorKeyPress(U32 index);
void acceleratorKeyRelease(U32 index);
void acceleratorKeyPress(U32 index) override;
void acceleratorKeyRelease(U32 index) override;
void onMouseDown(const GuiEvent&);
void onMouseUp(const GuiEvent&);
void onMouseDragged(const GuiEvent& event);
void onRightMouseUp(const GuiEvent&);
void onMouseDown(const GuiEvent&) override;
void onMouseUp(const GuiEvent&) override;
void onMouseDragged(const GuiEvent& event) override;
void onRightMouseUp(const GuiEvent&) override;
void onMouseEnter(const GuiEvent&);
void onMouseLeave(const GuiEvent&);
void onMouseEnter(const GuiEvent&) override;
void onMouseLeave(const GuiEvent&) override;
bool onKeyDown(const GuiEvent& event);
bool onKeyUp(const GuiEvent& event);
bool onKeyDown(const GuiEvent& event) override;
bool onKeyUp(const GuiEvent& event) override;
void setScriptValue(const char* value);
const char* getScriptValue();
void setScriptValue(const char* value) override;
const char* getScriptValue() override;
void onMessage(GuiControl*, S32 msg);
void onAction();
void onMessage(GuiControl*, S32 msg) override;
void onAction() override;
bool usesMouseEvents() const { return mUseMouseEvents; }
void setUseMouseEvents(bool val) { mUseMouseEvents = val; }

View file

@ -35,8 +35,8 @@ protected:
public:
DECLARE_CONOBJECT(GuiButtonCtrl);
GuiButtonCtrl();
bool onWake();
void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onRender(Point2I offset, const RectI &updateRect) override;
};
#endif //_GUI_BUTTON_CTRL_H

View file

@ -46,8 +46,8 @@ class GuiCheckBoxCtrl : public GuiButtonBaseCtrl
S32 getIndent() const { return mIndent; }
void setIndent( S32 value ) { mIndent = value; }
void onRender( Point2I offset, const RectI &updateRect );
bool onWake();
void onRender( Point2I offset, const RectI &updateRect ) override;
bool onWake() override;
void autoSize();

View file

@ -103,18 +103,18 @@ public:
static void initPersistFields();
//Parent methods
bool onWake();
void onSleep();
void inspectPostApply();
void onStaticModified(const char* slotName, const char* newValue = NULL);
bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool onWake() override;
void onSleep() override;
void inspectPostApply() override;
void onStaticModified(const char* slotName, const char* newValue = NULL) override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void setBitmap(const char *name);
// Used to set the optional error bitmap
void setErrorBitmap(const char *name);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
void onImageChanged() {}
};

View file

@ -57,8 +57,8 @@ class GuiSwatchButtonCtrl : public GuiButtonBaseCtrl
void setColor( const LinearColorF &color ) { mSwatchColor = color; }
// GuiButtonBaseCtrl
virtual bool onWake();
virtual void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onRender(Point2I offset, const RectI &updateRect) override;
static void initPersistFields();

View file

@ -34,8 +34,8 @@ public:
DECLARE_CONOBJECT(GuiToggleButtonCtrl);
GuiToggleButtonCtrl();
virtual void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
};
#endif //_GUITOGGLEBUTTONCTRL_H_

View file

@ -60,16 +60,16 @@ public:
static void initPersistFields();
//Parent methods
bool onWake();
void onSleep();
void inspectPostApply();
bool onWake() override;
void onSleep() override;
void inspectPostApply() override;
void setNormalBitmap( StringTableEntry bitmapName );
void setLoweredBitmap( StringTableEntry bitmapName );
void setHoverBitmap( StringTableEntry bitmapName );
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
};

View file

@ -136,17 +136,17 @@ class GuiAutoScrollCtrl : public GuiTickCtrl
void reset();
virtual bool onWake();
virtual void onSleep();
bool onWake() override;
void onSleep() override;
virtual void onChildAdded( GuiControl* control );
virtual void onChildRemoved( GuiControl* control );
virtual bool resize( const Point2I& newPosition, const Point2I& newExtent );
virtual void childResized( GuiControl *child );
void onChildAdded( GuiControl* control ) override;
void onChildRemoved( GuiControl* control ) override;
bool resize( const Point2I& newPosition, const Point2I& newExtent ) override;
void childResized( GuiControl *child ) override;
virtual void processTick();
virtual void advanceTime( F32 timeDelta );
virtual void inspectPostApply();
void processTick() override;
void advanceTime( F32 timeDelta ) override;
void inspectPostApply() override;
static void initPersistFields();

View file

@ -133,21 +133,21 @@ class GuiContainer : public GuiControl
/// @name GuiControl Inherited
/// @{
virtual void onChildAdded(GuiControl* control);
virtual void onChildRemoved(GuiControl* control);
virtual bool resize( const Point2I &newPosition, const Point2I &newExtent );
virtual void childResized(GuiControl *child);
virtual void addObject(SimObject *obj);
virtual void removeObject(SimObject *obj);
virtual bool reOrder(SimObject* obj, SimObject* target);
virtual void onPreRender();
void onChildAdded(GuiControl* control) override;
void onChildRemoved(GuiControl* control) override;
bool resize( const Point2I &newPosition, const Point2I &newExtent ) override;
void childResized(GuiControl *child) override;
void addObject(SimObject *obj) override;
void removeObject(SimObject *obj) override;
bool reOrder(SimObject* obj, SimObject* target) override;
void onPreRender() override;
/// GuiContainer deals with parentResized calls differently than GuiControl. It will
/// update the layout for all of it's non-docked child controls. parentResized calls
/// on the child controls will be handled by their default functions, but for our
/// purposes we want at least our immediate children to use the anchors that they have
/// set on themselves. - JDD [9/20/2006]
virtual void parentResized(const RectI &oldParentRect, const RectI &newParentRect);
void parentResized(const RectI &oldParentRect, const RectI &newParentRect) override;
/// @}
};

View file

@ -47,18 +47,18 @@ private:
public:
GuiControlArrayControl();
bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
bool onWake();
void onSleep();
void inspectPostApply();
bool onWake() override;
void onSleep() override;
void inspectPostApply() override;
bool updateArray();
void addObject(SimObject *obj);
void removeObject(SimObject *obj);
void addObject(SimObject *obj) override;
void removeObject(SimObject *obj) override;
bool reOrder(SimObject* obj, SimObject* target = 0);
bool reOrder(SimObject* obj, SimObject* target = 0) override;
static void initPersistFields();
DECLARE_CONOBJECT(GuiControlArrayControl);

View file

@ -72,9 +72,9 @@ class GuiDragAndDropControl : public GuiControl
void startDragging(Point2I offset = Point2I(0, 0));
// GuiControl.
virtual void onMouseDown(const GuiEvent& event);
virtual void onMouseDragged(const GuiEvent& event);
virtual void onMouseUp(const GuiEvent& event);
void onMouseDown(const GuiEvent& event) override;
void onMouseDragged(const GuiEvent& event) override;
void onMouseUp(const GuiEvent& event) override;
static void initPersistFields();

View file

@ -47,14 +47,14 @@ public:
static void initPersistFields();
// SimObject
void inspectPostApply();
void inspectPostApply() override;
// SimSet
void addObject(SimObject *obj);
void addObject(SimObject *obj) override;
// GuiControl
bool resize(const Point2I &newPosition, const Point2I &newExtent);
void childResized(GuiControl *child);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void childResized(GuiControl *child) override;
// GuiDynamicCtrlArrayCtrl
void refresh();

View file

@ -95,21 +95,21 @@ public:
void setCaption( const char* caption ) { mCaption = caption; }
void setHasMenu( bool value );
bool resize(const Point2I &newPosition, const Point2I &newExtent);
void onRender(Point2I offset, const RectI &updateRect);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void onRender(Point2I offset, const RectI &updateRect) override;
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
virtual void addObject( SimObject *object );
virtual void removeObject( SimObject* object );
virtual bool acceptsAsChild( SimObject* object ) const;
void addObject( SimObject *object ) override;
void removeObject( SimObject* object ) override;
bool acceptsAsChild( SimObject* object ) const override;
void onMouseDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseMove(const GuiEvent &event);
void onMouseLeave(const GuiEvent &event);
void onMouseEnter(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseMove(const GuiEvent &event) override;
void onMouseLeave(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &event) override;
U32 getMenuBarID();

View file

@ -99,17 +99,17 @@ public:
GuiFrameSetCtrl(U32 columns, U32 rows, const U32 columnOffsets[] = NULL, const U32 rowOffsets[] = NULL);
virtual ~GuiFrameSetCtrl();
void addObject(SimObject *obj);
void removeObject(SimObject *obj);
void addObject(SimObject *obj) override;
void removeObject(SimObject *obj) override;
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
bool onAdd();
void onRender(Point2I offset, const RectI &updateRect );
bool onAdd() override;
void onRender(Point2I offset, const RectI &updateRect ) override;
protected:
/* member variables */
Vector<S32> mColumnOffsets;
@ -133,7 +133,7 @@ protected:
bool hitVerticalDivider(S32 x, const Point2I &point);
bool hitHorizontalDivider(S32 y, const Point2I &point);
virtual void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent);
void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent) override;
void rebalance(const Point2I &newExtent);
void computeSizes(bool balanceFrames = false);
@ -159,7 +159,7 @@ public:
void balanceFrames() { computeSizes(true); }
void updateSizes() { computeSizes(); }
bool onWake();
bool onWake() override;
private:
GuiFrameSetCtrl(const GuiFrameSetCtrl &);

View file

@ -97,16 +97,16 @@ class GuiPaneControl : public GuiControl
virtual void setCaptionID(const char *id);
// GuiControl.
virtual bool onWake();
bool onWake() override;
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
virtual void onMouseMove(const GuiEvent &event);
virtual void onMouseLeave(const GuiEvent &event);
virtual void onMouseEnter(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseMove(const GuiEvent &event) override;
void onMouseLeave(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &event) override;
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
virtual void onRender(Point2I offset, const RectI &updateRect);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void onRender(Point2I offset, const RectI &updateRect) override;
static void initPersistFields();

View file

@ -52,8 +52,8 @@ public:
DECLARE_CONOBJECT(GuiPanel);
// GuiControl
void onRender(Point2I offset, const RectI &updateRect);
void setVisible(bool value) { Parent::setVisible(value); setUpdateLayout( updateParent ); }
void onRender(Point2I offset, const RectI &updateRect) override;
void setVisible(bool value) override { Parent::setVisible(value); setUpdateLayout( updateParent ); }
};
/// @}

View file

@ -118,7 +118,7 @@ class GuiRolloutCtrl : public GuiTickCtrl
DECLARE_CALLBACK( void, onCollapsed, () );
/// @}
virtual void processTick();
void processTick() override;
public:
@ -134,20 +134,20 @@ class GuiRolloutCtrl : public GuiTickCtrl
static void initPersistFields();
// Control Events
bool onWake();
void addObject(SimObject *obj);
void removeObject(SimObject *obj);
virtual void childResized(GuiControl *child);
bool onWake() override;
void addObject(SimObject *obj) override;
void removeObject(SimObject *obj) override;
void childResized(GuiControl *child) override;
// Mouse Events
virtual void onMouseDown( const GuiEvent& event );
virtual void onMouseUp( const GuiEvent& event );
virtual void onRightMouseUp( const GuiEvent& event );
virtual bool onMouseUpEditor( const GuiEvent& event, Point2I offset );
void onMouseDown( const GuiEvent& event ) override;
void onMouseUp( const GuiEvent& event ) override;
void onRightMouseUp( const GuiEvent& event ) override;
bool onMouseUpEditor( const GuiEvent& event, Point2I offset ) override;
// Sizing Helpers
virtual void calculateHeights();
virtual bool resize( const Point2I &newPosition, const Point2I &newExtent );
bool resize( const Point2I &newPosition, const Point2I &newExtent ) override;
virtual void sizeToContents();
inline bool isExpanded() const { return mIsExpanded; }
@ -172,8 +172,8 @@ class GuiRolloutCtrl : public GuiTickCtrl
void setCanCollapse( bool value ) { mCanCollapse = value; }
// Control Rendering
virtual void onRender(Point2I offset, const RectI &updateRect);
bool onAdd();
void onRender(Point2I offset, const RectI &updateRect) override;
bool onAdd() override;
};
#endif // _GUI_ROLLOUTCTRL_H_

View file

@ -219,9 +219,9 @@ class GuiScrollCtrl : public GuiContainer
// you can change the bitmap array dynamically.
void loadBitmapArray();
void addObject(SimObject *obj);
bool resize(const Point2I &newPosition, const Point2I &newExtent);
void childResized(GuiControl *child);
void addObject(SimObject *obj) override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void childResized(GuiControl *child) override;
Point2I getChildPos() { return mChildPos; }
Point2I getChildRelPos() { return mChildRelPos; };
Point2I getChildExtent() { return mChildExt; }
@ -244,24 +244,24 @@ class GuiScrollCtrl : public GuiContainer
Region getCurHitRegion(void) { return mHitRegion; }
// GuiControl
virtual bool onKeyDown(const GuiEvent &event);
virtual void onMouseDown(const GuiEvent &event);
virtual bool onMouseDownEditor( const GuiEvent& event, Point2I offset );
virtual void onMouseUp(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
virtual bool onMouseWheelUp(const GuiEvent &event);
virtual bool onMouseWheelDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
bool onMouseDownEditor( const GuiEvent& event, Point2I offset ) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
bool onMouseWheelUp(const GuiEvent &event) override;
bool onMouseWheelDown(const GuiEvent &event) override;
virtual bool onWake();
virtual void onSleep();
bool onWake() override;
void onSleep() override;
virtual void onPreRender();
virtual void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
virtual void drawBorder(const Point2I &offset, bool isFirstResponder);
virtual void drawVScrollBar(const Point2I &offset);
virtual void drawHScrollBar(const Point2I &offset);
virtual void drawScrollCorner(const Point2I &offset);
virtual GuiControl* findHitControl(const Point2I &pt, S32 initialLayer = -1);
GuiControl* findHitControl(const Point2I &pt, S32 initialLayer = -1) override;
static void initPersistFields();

View file

@ -68,24 +68,24 @@ public:
// ConsoleObject
static void initPersistFields();
virtual bool onAdd();
bool onAdd() override;
// GuiControl
virtual bool onWake();
virtual void parentResized(const RectI &oldParentRect, const RectI &newParentRect);
virtual bool resize( const Point2I &newPosition, const Point2I &newExtent );
virtual void onRender(Point2I offset, const RectI &updateRect);
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
bool onWake() override;
void parentResized(const RectI &oldParentRect, const RectI &newParentRect) override;
bool resize( const Point2I &newPosition, const Point2I &newExtent ) override;
void onRender(Point2I offset, const RectI &updateRect) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
virtual bool layoutControls( RectI &clientRect );
virtual void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent);
bool layoutControls( RectI &clientRect ) override;
void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent) override;
virtual inline Point2I getSplitPoint() { return mSplitPoint; };
/// The Splitters entire Client Rectangle, this takes into account padding of this control
virtual inline RectI getSplitRect() { return mSplitRect; };
virtual void solvePanelConstraints(Point2I newDragPos, GuiContainer * firstPanel, GuiContainer * secondPanel, const RectI& clientRect);
virtual Point2I getMinExtent() const;
Point2I getMinExtent() const override;
//Set the positin of the split handler
void setSplitPoint(Point2I splitPoint);

View file

@ -73,14 +73,14 @@ public:
vertStackBottom, ///< Stack from bottom to top when vertical
};
bool resize(const Point2I &newPosition, const Point2I &newExtent);
void childResized(GuiControl *child);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void childResized(GuiControl *child) override;
bool isFrozen() { return mResizing; };
/// prevent resizing. useful when adding many items.
void freeze(bool);
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
void updatePanes();
@ -89,10 +89,10 @@ public:
S32 getCount() { return size(); }; /// Returns the number of children in the stack
void addObject(SimObject *obj);
void removeObject(SimObject *obj);
void addObject(SimObject *obj) override;
void removeObject(SimObject *obj) override;
bool reOrder(SimObject* obj, SimObject* target = 0);
bool reOrder(SimObject* obj, SimObject* target = 0) override;
static void initPersistFields();

View file

@ -133,18 +133,18 @@ class GuiTabBookCtrl : public GuiContainer
/// @name Control Events
/// @{
bool onWake();
void onRender( Point2I offset, const RectI &updateRect );
bool onWake() override;
void onRender( Point2I offset, const RectI &updateRect ) override;
/// @}
/// @name Child events
/// @{
void onChildRemoved( GuiControl* child );
void onChildAdded( GuiControl *child );
bool reOrder(SimObject* obj, SimObject* target);
bool acceptsAsChild( SimObject* object ) const;
void onChildRemoved( GuiControl* child ) override;
void onChildAdded( GuiControl *child ) override;
bool reOrder(SimObject* obj, SimObject* target) override;
bool acceptsAsChild( SimObject* object ) const override;
/// @}
@ -203,7 +203,7 @@ class GuiTabBookCtrl : public GuiContainer
/// @{
/// Update ourselves by hooking common GuiControl functionality.
void setUpdate();
void setUpdate() override;
/// Balance a top/bottom tab row
void balanceRow( S32 row, S32 totalTabWidth );
@ -218,7 +218,7 @@ class GuiTabBookCtrl : public GuiContainer
void calculatePageTabs();
/// Get client area of tab book
virtual const RectI getClientRect();
const RectI getClientRect() override;
/// Find the tab that was hit by the current event, if any
/// @param event The GuiEvent that caused this function call
@ -240,7 +240,7 @@ class GuiTabBookCtrl : public GuiContainer
///
/// @param newPosition The new position of the control
/// @param newExtent The new extent of the control
bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
/// Called when a child page is resized
/// This method is overridden so that we may handle resizing of our child tab
@ -248,23 +248,23 @@ class GuiTabBookCtrl : public GuiContainer
/// This ensures we keep our sizing in sync when we our children are sized or moved.
///
/// @param child A pointer to the child control that has been resized
void childResized(GuiControl *child);
void childResized(GuiControl *child) override;
/// @}
virtual bool onKeyDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
/// @name Mouse Events
/// @{
virtual void onMouseDown( const GuiEvent &event );
virtual void onMouseUp( const GuiEvent &event );
virtual void onMouseDragged( const GuiEvent &event );
virtual void onMouseMove( const GuiEvent &event );
virtual void onMouseLeave( const GuiEvent &event );
virtual bool onMouseDownEditor( const GuiEvent &event, Point2I offset );
virtual void onRightMouseUp( const GuiEvent& event );
void onMouseDown( const GuiEvent &event ) override;
void onMouseUp( const GuiEvent &event ) override;
void onMouseDragged( const GuiEvent &event ) override;
void onMouseMove( const GuiEvent &event ) override;
void onMouseLeave( const GuiEvent &event ) override;
bool onMouseDownEditor( const GuiEvent &event, Point2I offset ) override;
void onRightMouseUp( const GuiEvent& event ) override;
/// @}
};

View file

@ -214,26 +214,26 @@ class GuiWindowCtrl : public GuiContainer
bool isMinimized(S32 &index);
virtual void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent);
void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent) override;
void setFont(S32 fntTag);
void setCloseCommand(const char *newCmd);
GuiControl* findHitControl (const Point2I &pt, S32 initialLayer = -1 );
GuiControl* findHitControl (const Point2I &pt, S32 initialLayer = -1 ) override;
S32 findHitEdges( const Point2I &globalPoint );
void getSnappableWindows( Vector<GuiWindowCtrl*> &windowOutVector, bool canCollapse = false );
bool resize( const Point2I &newPosition, const Point2I &newExtent );
bool resize( const Point2I &newPosition, const Point2I &newExtent ) override;
//only cycle tabs through the current window, so overwrite the method
GuiControl* findNextTabable(GuiControl *curResponder, bool firstCall = true);
GuiControl* findPrevTabable(GuiControl *curResponder, bool firstCall = true);
GuiControl* findNextTabable(GuiControl *curResponder, bool firstCall = true) override;
GuiControl* findPrevTabable(GuiControl *curResponder, bool firstCall = true) override;
S32 getTabIndex(void) { return mTabIndex; }
void selectWindow(void);
////
const RectI getClientRect();
const RectI getClientRect() override;
/// Mutators for window properties from code.
/// Using setDataField is a bit overkill.
@ -271,15 +271,15 @@ class GuiWindowCtrl : public GuiContainer
/// @}
// GuiContainer.
virtual bool onWake();
virtual void onSleep();
virtual void parentResized(const RectI &oldParentRect, const RectI &newParentRect);
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
virtual void onMouseMove(const GuiEvent &event);
virtual bool onKeyDown(const GuiEvent &event);
virtual void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onSleep() override;
void parentResized(const RectI &oldParentRect, const RectI &newParentRect) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseMove(const GuiEvent &event) override;
bool onKeyDown(const GuiEvent &event) override;
void onRender(Point2I offset, const RectI &updateRect) override;
DECLARE_CONOBJECT( GuiWindowCtrl );
DECLARE_DESCRIPTION( "A control that shows an independent window inside the canvas." );

View file

@ -57,12 +57,12 @@ public:
Point2I mUseEyePoint; /// optionally use the eye point. x != 0 -> horiz. y != 0 -> vert.
virtual void onRender (Point2I offset, const RectI &updateRect);
void onRender (Point2I offset, const RectI &updateRect) override;
virtual void resizeDuringRender ();
virtual bool onWake ();
virtual void onSleep ();
virtual void onDeleteNotify (SimObject *object);
bool onWake () override;
void onSleep () override;
void onDeleteNotify (SimObject *object) override;
void doPositioning ();
void doProjection ();

View file

@ -54,10 +54,10 @@ protected:
public:
guiAnimBitmapCtrl();
~guiAnimBitmapCtrl();
bool onAdd();
bool onAdd() override;
static void initPersistFields();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
DECLARE_CONOBJECT(guiAnimBitmapCtrl);
DECLARE_CATEGORY("Gui Images");
DECLARE_DESCRIPTION("A control that clips a bitmap based on %.");

View file

@ -42,7 +42,7 @@ public:
GuiBackgroundCtrl();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
};
#endif

View file

@ -39,7 +39,7 @@ protected:
public:
GuiBitmapBarCtrl();
static void initPersistFields();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
DECLARE_CONOBJECT(GuiBitmapBarCtrl);
DECLARE_CATEGORY("Gui Images");

View file

@ -55,9 +55,9 @@ public:
static void initPersistFields();
bool onWake();
void onSleep();
void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onSleep() override;
void onRender(Point2I offset, const RectI &updateRect) override;
DECLARE_CONOBJECT(GuiBitmapBorderCtrl);
DECLARE_CATEGORY( "Gui Images" );
DECLARE_DESCRIPTION( "A control that renders a skinned border." );

View file

@ -63,13 +63,13 @@ class GuiBitmapCtrl : public GuiControl
void setBitmapHandle(GFXTexHandle handle, bool resize = false);
// GuiControl.
bool onWake();
void onSleep();
void inspectPostApply();
bool onWake() override;
void onSleep() override;
void inspectPostApply() override;
void updateSizing();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
void setValue(S32 x, S32 y);
DECLARE_CONOBJECT( GuiBitmapCtrl );

View file

@ -119,7 +119,7 @@ class GuiColorPickerCtrl : public GuiControl
~GuiColorPickerCtrl();
static void initPersistFields();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
bool mShowReticle; ///< Show reticle on render
/// @name Color Value Functions
/// @{
@ -127,8 +127,8 @@ class GuiColorPickerCtrl : public GuiControl
void setValue(LinearColorF &value) {mBaseColor = value;}
/// NOTE: getValue() returns baseColor if pallet (since pallet controls can't "pick" colours themselves)
LinearColorF getValue() { return mDisplayMode == pPallet ? mBaseColor : mPickColor; }
const char *getScriptValue();
void setScriptValue(const char *value);
const char *getScriptValue() override;
void setScriptValue(const char *value) override;
void updateColor() {mPositionChanged = true;}
/// @}
@ -141,13 +141,13 @@ class GuiColorPickerCtrl : public GuiControl
/// @name Input Events
/// @{
void onMouseDown(const GuiEvent &);
void onMouseUp(const GuiEvent &);
void onMouseMove(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
void onMouseDown(const GuiEvent &) override;
void onMouseUp(const GuiEvent &) override;
void onMouseMove(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &);
void onMouseLeave(const GuiEvent &);
void onMouseEnter(const GuiEvent &) override;
void onMouseLeave(const GuiEvent &) override;
/// @}
};

View file

@ -59,7 +59,7 @@ class GuiConsole : public GuiArrayCtrl
/// @}
// GuiArrayCtrl.
virtual void onCellSelected( Point2I cell );
void onCellSelected( Point2I cell ) override;
public:
GuiConsole();
@ -68,9 +68,9 @@ class GuiConsole : public GuiArrayCtrl
DECLARE_DESCRIPTION( "Control that displays the console log text." );
// GuiArrayCtrl.
virtual bool onWake();
virtual void onPreRender();
virtual void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver);
bool onWake() override;
void onPreRender() override;
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver) override;
void setDisplayFilters(bool errors, bool warns, bool normal);
bool getErrorFilter() { return mDisplayErrors; }

View file

@ -50,7 +50,7 @@ public:
static void initPersistFields();
bool onKeyDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
};
#endif //_GUI_TEXTEDIT_CTRL_H

View file

@ -62,8 +62,8 @@ public:
static void initPersistFields();
//Parental methods
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
//text methods
virtual void setText( const char *txt = NULL );
@ -71,12 +71,12 @@ public:
//rendering methods
void calcResize();
void onPreRender(); // do special pre render processing
void onRender( Point2I offset, const RectI &updateRect );
void onPreRender() override; // do special pre render processing
void onRender( Point2I offset, const RectI &updateRect ) override;
//Console methods
const char* getScriptValue();
void setScriptValue( const char *value );
const char* getScriptValue() override;
void setScriptValue( const char *value ) override;
};
#endif //_GUI_TEXT_CONTROL_H_

View file

@ -48,22 +48,22 @@ public:
Point2I mMouseDownPosition;
virtual void onMouseUp(const GuiEvent &event);
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseMove(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
virtual void onMouseEnter(const GuiEvent &event);
virtual void onMouseLeave(const GuiEvent &event);
void onMouseUp(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseMove(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &event) override;
void onMouseLeave(const GuiEvent &event) override;
virtual bool onMouseWheelUp(const GuiEvent &event);
virtual bool onMouseWheelDown(const GuiEvent &event);
bool onMouseWheelUp(const GuiEvent &event) override;
bool onMouseWheelDown(const GuiEvent &event) override;
virtual void onRightMouseDown(const GuiEvent &event);
virtual void onRightMouseUp(const GuiEvent &event);
virtual void onRightMouseDragged(const GuiEvent &event);
void onRightMouseDown(const GuiEvent &event) override;
void onRightMouseUp(const GuiEvent &event) override;
void onRightMouseDragged(const GuiEvent &event) override;
virtual void onMiddleMouseDown(const GuiEvent &event);
virtual void onMiddleMouseUp(const GuiEvent &event);
virtual void onMiddleMouseDragged(const GuiEvent &event);
void onMiddleMouseDown(const GuiEvent &event) override;
void onMiddleMouseUp(const GuiEvent &event) override;
void onMiddleMouseDragged(const GuiEvent &event) override;
};
#endif

View file

@ -72,8 +72,8 @@ public:
/// Get the currently selected file's name
StringTableEntry getSelectedFileName();
virtual void onMouseDown(const GuiEvent &event);
virtual bool onWake();
void onMouseDown(const GuiEvent &event) override;
bool onWake() override;
};
#endif

View file

@ -57,9 +57,9 @@ public:
GuiFileTreeCtrl();
bool onWake();
bool onVirtualParentExpand(Item *item);
void onItemSelected( Item *item );
bool onWake() override;
bool onVirtualParentExpand(Item *item) override;
void onItemSelected( Item *item ) override;
const String& getSelectedPath() { return mSelPath; }
bool setSelectedPath( const char* path );

View file

@ -266,7 +266,7 @@ public:
GuiGameListMenuCtrl();
~GuiGameListMenuCtrl();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
void onRenderListOption(Row* row, Point2I currentOffset);
void onRenderSliderOption(Row* row, Point2I currentOffset);
@ -276,67 +276,67 @@ public:
/// Callback when the object is registered with the sim.
///
/// \return True if the profile was successfully added, false otherwise.
bool onAdd();
bool onAdd() override;
/// Callback when the control wakes up.
bool onWake();
bool onWake() override;
/// Callback when a key is pressed.
///
/// \param event The event that triggered this callback.
bool onKeyDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
/// Callback when a key is repeating.
///
/// \param event The event that triggered this callback.
bool onKeyRepeat(const GuiEvent &event){ return onKeyDown(event); }
bool onKeyRepeat(const GuiEvent &event) override{ return onKeyDown(event); }
/// Callback when the mouse button is clicked on the control.
///
/// \param event A reference to the event that triggered the callback.
void onMouseDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
/// Callback when the mouse is dragged on the control.
///
/// \param event A reference to the event that triggered the callback.
void onMouseDragged(const GuiEvent &event){ onMouseDown(event); }
void onMouseDragged(const GuiEvent &event) override{ onMouseDown(event); }
/// Callback when the mouse leaves the control.
///
/// \param event A reference to the event that triggered the callback.
void onMouseLeave(const GuiEvent &event);
void onMouseLeave(const GuiEvent &event) override;
/// Callback when the mouse is moving over this control
///
/// \param event A reference to the event that triggered the callback.
void onMouseMove(const GuiEvent &event);
void onMouseMove(const GuiEvent &event) override;
/// Callback when the mouse button is released.
///
/// \param event A reference to the event that triggered the callback.
void onMouseUp(const GuiEvent &event);
void onMouseUp(const GuiEvent &event) override;
virtual bool onInputEvent(const InputEventInfo& event);
bool onInputEvent(const InputEventInfo& event) override;
/// Callback when the gamepad axis is activated.
///
/// \param event A reference to the event that triggered the callback.
virtual bool onGamepadAxisUp(const GuiEvent & event);
bool onGamepadAxisUp(const GuiEvent & event) override;
/// Callback when the gamepad axis is activated.
///
/// \param event A reference to the event that triggered the callback.
virtual bool onGamepadAxisDown(const GuiEvent & event);
bool onGamepadAxisDown(const GuiEvent & event) override;
/// Callback when the gamepad axis is activated.
///
/// \param event A reference to the event that triggered the callback.
virtual bool onGamepadAxisLeft(const GuiEvent& event);
bool onGamepadAxisLeft(const GuiEvent& event) override;
/// Callback when the gamepad axis is activated.
///
/// \param event A reference to the event that triggered the callback.
virtual bool onGamepadAxisRight(const GuiEvent& event);
bool onGamepadAxisRight(const GuiEvent& event) override;
void clearRows();
@ -458,7 +458,7 @@ private:
private:
/// Recalculates the height of this control based on the stored row height and
/// and padding on the rows.
virtual Point2I getMinExtent() const;
Point2I getMinExtent() const override;
/// Makes sure the height will allow all rows to be displayed without being
/// truncated.
@ -537,7 +537,7 @@ public:
/// Callback when the object is registered with the sim.
///
/// \return True if the profile was successfully added, false otherwise.
bool onAdd();
bool onAdd() override;
Point2I mHitAreaUpperLeft; ///< Offset for the upper left corner of the hit area
Point2I mHitAreaLowerRight; ///< Offset for the lower right corner of the hit area

View file

@ -93,32 +93,32 @@ public:
/// \param enabled [optional] If this row is initially enabled. Default true.
void addRow(const char* label, const char* optionsList, bool wrapOptions, const char* callback, S32 icon = -1, S32 yPad = 0, bool enabled = true);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
/// Callback when the mouse button is released.
///
/// \param event A reference to the event that triggered the callback.
void onMouseUp(const GuiEvent &event);
void onMouseUp(const GuiEvent &event) override;
/// Callback when a key is pressed.
///
/// \param event The event that triggered this callback.
bool onKeyDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
/// Callback when a key is repeating.
///
/// \param event The event that triggered this callback.
bool onKeyRepeat(const GuiEvent &event){ return onKeyDown(event); }
bool onKeyRepeat(const GuiEvent &event) override{ return onKeyDown(event); }
/// Callback when the gamepad axis is activated.
///
/// \param event A reference to the event that triggered the callback.
virtual bool onGamepadAxisLeft(const GuiEvent &event);
bool onGamepadAxisLeft(const GuiEvent &event) override;
/// Callback when the gamepad axis is activated.
///
/// \param event A reference to the event that triggered the callback.
virtual bool onGamepadAxisRight(const GuiEvent &event);
bool onGamepadAxisRight(const GuiEvent &event) override;
virtual void clearRows();
@ -128,7 +128,7 @@ public:
DECLARE_CONOBJECT(GuiGameListOptionsCtrl);
DECLARE_DESCRIPTION( "A control for showing pages of options that are gamepad friendly." );
virtual bool onAdd();
bool onAdd() override;
/// Initializes fields accessible through the console.
static void initPersistFields();
@ -140,15 +140,15 @@ protected:
///
/// \return True if the profile is of type GuiGameListOptionsProfile or false
/// if the profile is of any other type.
bool hasValidProfile() const;
bool hasValidProfile() const override;
/// Enforces the validity of the fields on this control and its profile (if the
/// profile is valid, see: hasValidProfile).
void enforceConstraints();
void enforceConstraints() override;
/// Adds lines around the column divisions to the feedback already provided
/// in the Parent.
void onDebugRender(Point2I offset);
void onDebugRender(Point2I offset) override;
private:
/// Performs a click on the current option row. The x position is used to
@ -183,7 +183,7 @@ class GuiGameListOptionsProfile : public GuiGameListMenuProfile
public:
/// Enforces range constraints on all required fields.
void enforceConstraints();
void enforceConstraints() override;
GuiGameListOptionsProfile();

View file

@ -230,7 +230,7 @@ public:
GuiGameSettingsCtrl();
~GuiGameSettingsCtrl();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
void onRenderListOption(Point2I currentOffset);
void onRenderSliderOption(Point2I currentOffset);
@ -240,17 +240,17 @@ public:
/// Callback when the object is registered with the sim.
///
/// \return True if the profile was successfully added, false otherwise.
bool onAdd();
bool onAdd() override;
/// Callback when the control wakes up.
bool onWake();
bool onWake() override;
void onSleep();
void onSleep() override;
void clear();
void clear() override;
virtual void onMouseMove(const GuiEvent& event);
virtual void onMouseUp(const GuiEvent& event);
void onMouseMove(const GuiEvent& event) override;
void onMouseUp(const GuiEvent& event) override;
DECLARE_CONOBJECT(GuiGameSettingsCtrl);
DECLARE_CATEGORY( "Gui Game" );

View file

@ -42,11 +42,11 @@ public:
DECLARE_CALLBACK( void, onMouseDown, ());
DECLARE_CALLBACK( void, onDoubleClick, ());
GuiGradientSwatchCtrl();
void onMouseDown(const GuiEvent &);
void onRightMouseDown(const GuiEvent &);
void onMouseDragged(const GuiEvent &event);
void onRender(Point2I offset, const RectI &updateRect);
bool onWake();
void onMouseDown(const GuiEvent &) override;
void onRightMouseDown(const GuiEvent &) override;
void onMouseDragged(const GuiEvent &event) override;
void onRender(Point2I offset, const RectI &updateRect) override;
bool onWake() override;
protected:
StringTableEntry mColorFunction;
};
@ -121,7 +121,7 @@ public:
GuiGradientCtrl();
static void initPersistFields();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
bool mShowReticle; ///< Show reticle on render
/// @name Color Value Functions
/// @{
@ -134,19 +134,19 @@ public:
/// @name Input Events
/// @{
void onMouseDown(const GuiEvent &);
void onMouseUp(const GuiEvent &);
void onMouseDown(const GuiEvent &) override;
void onMouseUp(const GuiEvent &) override;
void onMouseEnter(const GuiEvent &);
void onMouseLeave(const GuiEvent &);
void onMouseEnter(const GuiEvent &) override;
void onMouseLeave(const GuiEvent &) override;
/// @}
void addColorRange(ColorI color);
void setupDefaultRange();
bool onAdd();
void inspectPreApply();
void inspectPostApply();
bool onAdd() override;
void inspectPreApply() override;
void inspectPostApply() override;
void reInitSwatches( GuiGradientCtrl::PickMode );
void addColorRange(Point2I pos, const LinearColorF& color);
void removeColorRange( GuiGradientSwatchCtrl* swatch );

View file

@ -123,21 +123,21 @@ public:
// Sizing
void updateSize();
virtual void parentResized(const RectI& oldParentRect, const RectI& newParentRect);
virtual bool onWake();
void parentResized(const RectI& oldParentRect, const RectI& newParentRect) override;
bool onWake() override;
// Rendering
virtual void onRender( Point2I offset, const RectI &updateRect );
void onRender( Point2I offset, const RectI &updateRect ) override;
virtual void onRenderItem(const RectI& itemRect, LBItem *item);
void drawBox( const Point2I &box, S32 size, ColorI &outlineColor, ColorI &boxColor );
bool renderTooltip( const Point2I &hoverPos, const Point2I& cursorPos, const char* tipText );
void addFilteredItem( String item );
void removeFilteredItem( String item );
// Mouse/Key Events
virtual void onMouseDown( const GuiEvent &event );
virtual void onMouseDragged(const GuiEvent &event);
virtual void onMouseUp( const GuiEvent& event );
virtual bool onKeyDown( const GuiEvent &event );
void onMouseDown( const GuiEvent &event ) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp( const GuiEvent& event ) override;
bool onKeyDown( const GuiEvent &event ) override;
// String Utility
static U32 getStringElementCount( const char *string );

View file

@ -167,8 +167,8 @@ class GuiMLTextCtrl : public GuiControl
static void initPersistFields();
void setScriptValue(const char *value);
const char *getScriptValue();
void setScriptValue(const char *value) override;
const char *getScriptValue() override;
static char *stripControlChars(const char *inString);
@ -291,30 +291,30 @@ class GuiMLTextCtrl : public GuiControl
S32 getTextPosition(const Point2I& localPosition);
// Gui control overrides
bool onWake();
void onSleep();
void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onSleep() override;
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
void getCursorPositionAndColor(Point2I &cursorTop, Point2I &cursorBottom, ColorI &color);
void inspectPostApply();
void parentResized(const RectI& oldParentRect, const RectI& newParentRect);
bool onKeyDown(const GuiEvent& event);
void onMouseDown(const GuiEvent&);
void onMouseDragged(const GuiEvent&);
void onMouseUp(const GuiEvent&);
void inspectPostApply() override;
void parentResized(const RectI& oldParentRect, const RectI& newParentRect) override;
bool onKeyDown(const GuiEvent& event) override;
void onMouseDown(const GuiEvent&) override;
void onMouseDragged(const GuiEvent&) override;
void onMouseUp(const GuiEvent&) override;
virtual void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent);
void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent) override;
public:
// Gui control overrides
bool onAdd();
bool onAdd() override;
void setSelectionStart( U32 start ) { clearSelection(); mSelectionStart = start; };
void setSelectionEnd( U32 end ) { mSelectionEnd = end;};
void setSelectionActive(bool active) { mSelectionActive = active; };
S32 getCursorPosition() { return( mCursorPosition ); }
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
bool isTypingOut();
};

View file

@ -36,24 +36,24 @@ class GuiMLTextEditCtrl : public GuiMLTextCtrl
StringTableEntry mEscapeCommand;
// Events
bool onKeyDown(const GuiEvent&event);
bool onKeyDown(const GuiEvent&event) override;
// Event forwards
void handleMoveKeys(const GuiEvent&);
void handleDeleteKeys(const GuiEvent&);
// rendering
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
public:
GuiMLTextEditCtrl();
~GuiMLTextEditCtrl();
virtual void setFirstResponder();
virtual void onLoseFirstResponder();
void setFirstResponder() override;
void onLoseFirstResponder() override;
bool onWake();
bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool onWake() override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
DECLARE_CONOBJECT(GuiMLTextEditCtrl);
DECLARE_DESCRIPTION( "A control that allows to edit multiple lines of text." );

View file

@ -53,18 +53,18 @@ public:
// ConsoleObject
static void initPersistFields();
void inspectPostApply();
void inspectPostApply() override;
DECLARE_CONOBJECT(GuiMaterialCtrl);
DECLARE_CATEGORY( "Gui Editor" );
// GuiControl
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
bool setMaterial( const String &materialName );
void onRender( Point2I offset, const RectI &updateRect );
void onRender( Point2I offset, const RectI &updateRect ) override;
};
#endif // _GUIMATERIALCTRL_H_

View file

@ -50,7 +50,7 @@ protected:
GuiPopupTextListCtrl *mTextList;
public:
GuiPopUpBackgroundCtrl(GuiPopUpMenuCtrl *ctrl, GuiPopupTextListCtrl* textList);
void onMouseDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
};
class GuiPopupTextListCtrl : public GuiTextListCtrl
@ -66,12 +66,12 @@ public:
GuiPopupTextListCtrl(GuiPopUpMenuCtrl *ctrl);
// GuiArrayCtrl overload:
void onCellSelected(Point2I cell);
void onCellSelected(Point2I cell) override;
// GuiControl overloads:
bool onKeyDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver);
bool onKeyDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver) override;
};
class GuiPopUpMenuCtrl : public GuiTextCtrl
@ -141,26 +141,26 @@ public:
GuiPopUpMenuCtrl(void);
~GuiPopUpMenuCtrl();
GuiScrollCtrl::Region mScrollDir;
bool onWake(); // Added
bool onAdd();
void onSleep();
bool onWake() override; // Added
bool onAdd() override;
void onSleep() override;
void setBitmap(const char *name); // Added
void sort();
void sortID(); // Added
void addEntry(const char *buf, S32 id = -1, U32 scheme = 0);
void addScheme(U32 id, ColorI fontColor, ColorI fontColorHL, ColorI fontColorSEL);
void onRender(Point2I offset, const RectI &updateRect);
void onAction();
void onRender(Point2I offset, const RectI &updateRect) override;
void onAction() override;
virtual void closePopUp();
void clear();
void clear() override;
void clearEntry( S32 entry ); // Added
void onMouseDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseEnter(const GuiEvent &event); // Added
void onMouseLeave(const GuiEvent &); // Added
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &event) override; // Added
void onMouseLeave(const GuiEvent &) override; // Added
void setupAutoScroll(const GuiEvent &event);
void autoScroll();
bool onKeyDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
void reverseTextList();
bool getFontColor(ColorI &fontColor, S32 id, bool selected, bool mouseOver);
bool getColoredBox(ColorI &boxColor, S32 id); // Added
@ -170,7 +170,7 @@ public:
void setSelected(S32 id, bool bNotifyScript = true);
void setFirstSelected(bool bNotifyScript = true); // Added
void setNoneSelected(); // Added
const char *getScriptValue();
const char *getScriptValue() override;
const char *getTextById(S32 id);
S32 findText( const char* text );
S32 getNumEntries() { return( mEntries.size() ); }

View file

@ -48,7 +48,7 @@ protected:
GuiPopupTextListCtrlEx *mTextList;
public:
GuiPopUpBackgroundCtrlEx(GuiPopUpMenuCtrlEx *ctrl, GuiPopupTextListCtrlEx* textList);
void onMouseDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
};
class GuiPopupTextListCtrlEx : public GuiTextListCtrl
@ -66,13 +66,13 @@ class GuiPopupTextListCtrlEx : public GuiTextListCtrl
GuiPopupTextListCtrlEx(GuiPopUpMenuCtrlEx *ctrl);
// GuiArrayCtrl overload:
void onCellSelected(Point2I cell);
void onCellSelected(Point2I cell) override;
// GuiControl overloads:
bool onKeyDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseMove(const GuiEvent &event);
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver);
bool onKeyDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseMove(const GuiEvent &event) override;
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver) override;
};
class GuiPopUpMenuCtrlEx : public GuiTextCtrl
@ -150,10 +150,10 @@ class GuiPopUpMenuCtrlEx : public GuiTextCtrl
GuiPopUpMenuCtrlEx(void);
~GuiPopUpMenuCtrlEx();
GuiScrollCtrl::Region mScrollDir;
virtual bool onWake(); // Added
virtual void onRemove();
virtual bool onAdd();
virtual void onSleep();
bool onWake() override; // Added
void onRemove() override;
bool onAdd() override;
void onSleep() override;
void setBitmap(const char *name); // Added
void sort();
void sortID(); // Added
@ -163,18 +163,18 @@ class GuiPopUpMenuCtrlEx : public GuiTextCtrl
addEntry(buf, -2, 0);
}
void addScheme(U32 id, ColorI fontColor, ColorI fontColorHL, ColorI fontColorSEL);
void onRender(Point2I offset, const RectI &updateRect);
void onAction();
void onRender(Point2I offset, const RectI &updateRect) override;
void onAction() override;
virtual void closePopUp();
void clear();
void clear() override;
void clearEntry( S32 entry ); // Added
void onMouseDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseEnter(const GuiEvent &event); // Added
void onMouseLeave(const GuiEvent &); // Added
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &event) override; // Added
void onMouseLeave(const GuiEvent &) override; // Added
void setupAutoScroll(const GuiEvent &event);
void autoScroll();
bool onKeyDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
void reverseTextList();
bool getFontColor(ColorI &fontColor, S32 id, bool selected, bool mouseOver);
bool getColoredBox(ColorI &boxColor, S32 id); // Added
@ -183,7 +183,7 @@ class GuiPopUpMenuCtrlEx : public GuiTextCtrl
void setSelected(S32 id, bool bNotifyScript = true);
void setFirstSelected(bool bNotifyScript = true); // Added
void setNoneSelected(); // Added
const char *getScriptValue();
const char *getScriptValue() override;
const char *getTextById(S32 id);
S32 findText( const char* text );
S32 getNumEntries() { return( mEntries.size() ); }

View file

@ -87,26 +87,26 @@ class GuiSliderCtrl : public GuiControl
const Point2F& getRange() const { return mRange; }
// GuiControl.
bool onWake();
bool onWake() override;
void onMouseDown(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
void onMouseUp(const GuiEvent &);
void onMouseLeave(const GuiEvent &);
void onMouseEnter(const GuiEvent &);
bool onMouseWheelUp(const GuiEvent &event);
bool onMouseWheelDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &) override;
void onMouseLeave(const GuiEvent &) override;
void onMouseEnter(const GuiEvent &) override;
bool onMouseWheelUp(const GuiEvent &event) override;
bool onMouseWheelDown(const GuiEvent &event) override;
void setActive( bool value );
void setActive( bool value ) override;
F32 getValue() const { return mValue; }
void setScriptValue(const char *val) { setValue(dAtof(val)); }
void setScriptValue(const char *val) override { setValue(dAtof(val)); }
void setValue(F32 val, bool doCallback=false);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
virtual bool resize( const Point2I& newSize, const Point2I& newExtent );
virtual void parentResized( const RectI& oldParentRect, const RectI& newParentRect );
bool resize( const Point2I& newSize, const Point2I& newExtent ) override;
void parentResized( const RectI& oldParentRect, const RectI& newParentRect ) override;
static void initPersistFields();

View file

@ -44,29 +44,29 @@ class GuiTabPageCtrl : public GuiTextCtrl
static void initPersistFields();
bool onWake(); ///< The page awakens (becomes active)!
void onSleep(); ///< The page sleeps (zzzzZZ - becomes inactive)
void inspectPostApply();
bool onWake() override; ///< The page awakens (becomes active)!
void onSleep() override; ///< The page sleeps (zzzzZZ - becomes inactive)
void inspectPostApply() override;
bool getFitBook() { return mFitBook; }
void setFitBook(bool state) { mFitBook = state; }
GuiControl* findHitControl(const Point2I &pt, S32 initialLayer = -1); ///< Find which control is hit by the mouse starting at a specified layer
GuiControl* findHitControl(const Point2I &pt, S32 initialLayer = -1) override; ///< Find which control is hit by the mouse starting at a specified layer
void onMouseDown(const GuiEvent &event); ///< Called when a mouseDown event occurs
bool onMouseDownEditor(const GuiEvent &event, Point2I offset ); ///< Called when a mouseDown event occurs and the GUI editor is active
void onMouseDown(const GuiEvent &event) override; ///< Called when a mouseDown event occurs
bool onMouseDownEditor(const GuiEvent &event, Point2I offset ) override; ///< Called when a mouseDown event occurs and the GUI editor is active
S32 getTabIndex(void) { return mTabIndex; } ///< Get the tab index of this control
//only cycle tabs through the current window, so overwrite the method
GuiControl* findNextTabable(GuiControl *curResponder, bool firstCall = true);
GuiControl* findPrevTabable(GuiControl *curResponder, bool firstCall = true);
GuiControl* findNextTabable(GuiControl *curResponder, bool firstCall = true) override;
GuiControl* findPrevTabable(GuiControl *curResponder, bool firstCall = true) override;
void selectWindow(void); ///< Select this window
virtual void setText(const char *txt = NULL); ///< Override setText function to signal parent we need to update.
void setText(const char *txt = NULL) override; ///< Override setText function to signal parent we need to update.
void onRender(Point2I offset, const RectI &updateRect); ///< Called when it's time to render this page to the scene
void onRender(Point2I offset, const RectI &updateRect) override; ///< Called when it's time to render this page to the scene
};
#endif //_GUI_WINDOW_CTRL_H

View file

@ -59,8 +59,8 @@ public:
static void initPersistFields();
//Parental methods
bool onAdd();
virtual bool onWake();
bool onAdd() override;
bool onWake() override;
//text methods
virtual void setText(const char *txt = NULL);
@ -75,18 +75,18 @@ public:
{ return static_cast<GuiTextCtrl*>(obj)->getText(); }
void inspectPostApply();
void inspectPostApply() override;
//rendering methods
void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
void displayText( S32 xOffset, S32 yOffset );
// resizing
void autoResize();
//Console methods
const char *getScriptValue();
void setScriptValue(const char *value);
const char *getScriptValue() override;
void setScriptValue(const char *value) override;
};
#endif //_GUI_TEXT_CONTROL_H_

View file

@ -112,7 +112,7 @@ public:
DECLARE_DESCRIPTION( "A control that allows to edit a single line of text. ");
static void initPersistFields();
bool onAdd();
bool onAdd() override;
/// Get the contents of the control.
///
@ -121,7 +121,7 @@ public:
virtual void getRenderText(char *dest);
void setText(S32 tag);
virtual void setText(const UTF8* txt);
void setText(const UTF8* txt) override;
virtual void setText(const UTF16* txt);
S32 getCursorPos() { return( mCursorPos ); }
void setCursorPos( const S32 newPos );
@ -136,30 +136,30 @@ public:
void clearSelectedText();
void forceValidateText();
const char *getScriptValue();
void setScriptValue(const char *value);
const char *getScriptValue() override;
void setScriptValue(const char *value) override;
bool getSinkAllKeys() { return mSinkAllKeyEvents; }
void setSinkAllKeys(bool state) { mSinkAllKeyEvents = state; }
virtual bool onKeyDown(const GuiEvent &event);
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onCopy(bool andCut);
void onPaste();
void onUndo();
virtual void setFirstResponder();
virtual void onLoseFirstResponder();
void setFirstResponder() override;
void onLoseFirstResponder() override;
bool hasText();
void onStaticModified(const char* slotName, const char* newValue = NULL);
void onStaticModified(const char* slotName, const char* newValue = NULL) override;
void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
virtual void drawText( const RectI &drawRect, bool isFocused );
bool dealWithEnter( bool clearResponder );

View file

@ -56,23 +56,23 @@ public:
virtual void getText(char *dest); // dest must be of size
// StructDes::MAX_STRING_LEN + 1
virtual void setText(const char *txt);
void setText(const char *txt) override;
void setValue();
void checkRange();
void checkIncValue();
void timeInc(U32 elapseTime);
virtual bool onKeyDown(const GuiEvent &event);
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
virtual bool onMouseWheelUp(const GuiEvent &event);
virtual bool onMouseWheelDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
bool onMouseWheelUp(const GuiEvent &event) override;
bool onMouseWheelDown(const GuiEvent &event) override;
bool onWake();
virtual void onPreRender();
virtual void onRender(Point2I offset, const RectI &updateRect);
bool onWake() override;
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
void setBitmap(const char *name);

View file

@ -57,22 +57,22 @@ public:
virtual void getText(char *dest); // dest must be of size
// StructDes::MAX_STRING_LEN + 1
virtual void setText(const char *txt);
void setText(const char *txt) override;
void setValue();
void checkRange();
void checkIncValue();
void timeInc(U32 elapseTime);
virtual bool onKeyDown(const GuiEvent &event);
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
virtual bool onMouseWheelUp(const GuiEvent &event);
virtual bool onMouseWheelDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
bool onMouseWheelUp(const GuiEvent &event) override;
bool onMouseWheelDown(const GuiEvent &event) override;
virtual void onPreRender();
virtual void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
protected:

View file

@ -59,8 +59,8 @@ class GuiTextListCtrl : public GuiArrayCtrl
S32 mRowHeightPadding;
U32 getRowWidth(Entry *row);
bool cellSelected(Point2I cell);
void onCellSelected(Point2I cell);
bool cellSelected(Point2I cell) override;
void onCellSelected(Point2I cell) override;
public:
GuiTextListCtrl();
@ -77,12 +77,12 @@ class GuiTextListCtrl : public GuiArrayCtrl
virtual void setCellSize( const Point2I &size ){ mCellSize = size; }
virtual void getCellSize( Point2I &size ){ size = mCellSize; }
const char *getScriptValue();
void setScriptValue(const char *value);
const char *getScriptValue() override;
void setScriptValue(const char *value) override;
U32 getNumEntries();
void clear();
void clear() override;
virtual void addEntry(U32 id, const char *text);
virtual void insertEntry(U32 id, const char *text, S32 index);
void setEntry(U32 id, const char *text);
@ -93,7 +93,7 @@ class GuiTextListCtrl : public GuiArrayCtrl
U32 getEntryId(U32 index);
bool onWake();
bool onWake() override;
void removeEntry(U32 id);
virtual void removeEntryByIndex(S32 id);
virtual void sort(U32 column, bool increasing = true);
@ -103,14 +103,14 @@ class GuiTextListCtrl : public GuiArrayCtrl
U32 getSelectedRow();
const char *getSelectedText();
bool onKeyDown(const GuiEvent &event);
bool onGamepadAxisUp(const GuiEvent& event);
bool onGamepadAxisDown(const GuiEvent& event);
bool onKeyDown(const GuiEvent &event) override;
bool onGamepadAxisUp(const GuiEvent& event) override;
bool onGamepadAxisDown(const GuiEvent& event) override;
virtual void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver);
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver) override;
void setSize(Point2I newSize);
void onRemove();
void setSize(Point2I newSize) override;
void onRemove() override;
void addColumnOffset(S32 offset) { mColumnOffsets.push_back(offset); }
void clearColumnOffsets() { mColumnOffsets.clear(); }
};

View file

@ -596,20 +596,20 @@ class GuiTreeViewCtrl : public GuiArrayCtrl
/// @}
// GuiControl
bool onAdd();
bool onWake();
void onSleep();
void onPreRender();
bool onKeyDown( const GuiEvent &event );
void onMouseDown(const GuiEvent &event);
void onMiddleMouseDown(const GuiEvent &event);
void onMouseMove(const GuiEvent &event);
void onMouseEnter(const GuiEvent &event);
void onMouseLeave(const GuiEvent &event);
void onRightMouseDown(const GuiEvent &event);
void onRightMouseUp(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
virtual void onMouseUp(const GuiEvent &event);
bool onAdd() override;
bool onWake() override;
void onSleep() override;
void onPreRender() override;
bool onKeyDown( const GuiEvent &event ) override;
void onMouseDown(const GuiEvent &event) override;
void onMiddleMouseDown(const GuiEvent &event) override;
void onMouseMove(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &event) override;
void onMouseLeave(const GuiEvent &event) override;
void onRightMouseDown(const GuiEvent &event) override;
void onRightMouseUp(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
/// Returns false if the object is a child of one of the inner items.
bool childSearch(Item * item, SimObject *obj, bool yourBaby);
@ -622,8 +622,8 @@ class GuiTreeViewCtrl : public GuiArrayCtrl
bool objectSearch( const SimObject *object, Item **item );
// GuiArrayCtrl
void onRenderCell(Point2I offset, Point2I cell, bool, bool);
void onRender(Point2I offset, const RectI &updateRect);
void onRenderCell(Point2I offset, Point2I cell, bool, bool) override;
void onRender(Point2I offset, const RectI &updateRect) override;
bool renderTooltip( const Point2I &hoverPos, const Point2I& cursorPos, const char* tipText );

View file

@ -64,8 +64,8 @@ public:
GuiArrayCtrl();
DECLARE_CONOBJECT(GuiArrayCtrl);
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
/// @name Array attribute methods
/// @{
@ -89,19 +89,19 @@ public:
virtual void onRenderColumnHeaders(Point2I offset, Point2I parentOffset, Point2I headerDim);
virtual void onRenderRowHeader(Point2I offset, Point2I parentOffset, Point2I headerDim, Point2I cell);
virtual void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
/// @}
/// @name Mouse input methods
/// @{
void onMouseDown( const GuiEvent &event );
void onMouseUp( const GuiEvent &event );
void onMouseMove( const GuiEvent &event );
void onMouseDragged( const GuiEvent &event );
void onMouseEnter( const GuiEvent &event );
void onMouseLeave( const GuiEvent &event );
bool onKeyDown( const GuiEvent &event );
void onRightMouseDown( const GuiEvent &event );
void onMouseDown( const GuiEvent &event ) override;
void onMouseUp( const GuiEvent &event ) override;
void onMouseMove( const GuiEvent &event ) override;
void onMouseDragged( const GuiEvent &event ) override;
void onMouseEnter( const GuiEvent &event ) override;
void onMouseLeave( const GuiEvent &event ) override;
bool onKeyDown( const GuiEvent &event ) override;
void onRightMouseDown( const GuiEvent &event ) override;
/// @}
};

View file

@ -220,8 +220,8 @@ public:
GuiCanvas();
virtual ~GuiCanvas();
virtual bool onAdd();
virtual void onRemove();
bool onAdd() override;
void onRemove() override;
#ifdef TORQUE_TOOLS
void setMenuBar(SimObject *obj);
SimObject* getMenuBar() { return mMenuBarCtrl; }
@ -373,7 +373,7 @@ public:
/// Processes an input event
/// @see InputEvent
/// @param event Input event to process
virtual bool processInputEvent(InputEventInfo &inputEvent);
bool processInputEvent(InputEventInfo &inputEvent) override;
/// @}
/// @name Mouse Methods
@ -450,7 +450,7 @@ public:
/// Sets the first responder.
/// @param firstResponder Control to designate as first responder
virtual void setFirstResponder(GuiControl *firstResponder);
void setFirstResponder(GuiControl *firstResponder) override;
/// This is used to toggle processing of native OS accelerators, not
/// to be confused with the Torque accelerator key system, to keep them

View file

@ -327,7 +327,7 @@ class GuiControl : public SimGroup
void setSizing(S32 horz, S32 vert);
/// Overrides Parent Serialization to allow specific controls to not be saved (Dynamic Controls, etc)
void write(Stream &stream, U32 tabStop, U32 flags);
void write(Stream &stream, U32 tabStop, U32 flags) override;
/// Returns boolean as to whether any parent of this control has the 'no serialization' flag set.
bool getCanSaveParent();
@ -343,7 +343,7 @@ class GuiControl : public SimGroup
GuiControl();
virtual ~GuiControl();
virtual bool processArguments(S32 argc, ConsoleValue *argv);
bool processArguments(S32 argc, ConsoleValue *argv) override;
static void initPersistFields();
static void consoleInit();
@ -382,8 +382,8 @@ class GuiControl : public SimGroup
/// @param value True if object should be visible
virtual void setVisible(bool value);
inline bool isVisible() const { return mVisible; } ///< Returns true if the object is visible
virtual bool isHidden() const { return !isVisible(); }
virtual void setHidden( bool state ) { setVisible( !state ); }
bool isHidden() const override { return !isVisible(); }
void setHidden( bool state ) override { setVisible( !state ); }
void setCanHit( bool value ) { mCanHit = value; }
@ -413,18 +413,18 @@ class GuiControl : public SimGroup
/// Adds an object as a child of this object.
/// @param obj New child object of this control
void addObject(SimObject *obj);
void addObject(SimObject *obj) override;
/// Removes a child object from this control.
/// @param obj Object to remove from this control
void removeObject(SimObject *obj);
void removeObject(SimObject *obj) override;
GuiControl *getParent(); ///< Returns the control which owns this one.
GuiCanvas *getRoot(); ///< Returns the root canvas of this control.
virtual bool acceptsAsChild( SimObject* object ) const;
bool acceptsAsChild( SimObject* object ) const override;
virtual void onGroupRemove();
void onGroupRemove() override;
/// @}
@ -535,16 +535,16 @@ class GuiControl : public SimGroup
virtual void onPreRender();
/// Called when this object is removed
virtual void onRemove();
void onRemove() override;
/// Called when one of this objects children is removed
virtual void onChildRemoved( GuiControl *child );
/// Called when this object is added to the scene
virtual bool onAdd();
bool onAdd() override;
/// Called when the mProfile or mToolTipProfile is deleted
virtual void onDeleteNotify(SimObject *object);
void onDeleteNotify(SimObject *object) override;
/// Called when this object has a new child
virtual void onChildAdded( GuiControl *child );
@ -828,8 +828,8 @@ class GuiControl : public SimGroup
/// of the final clipped text in pixels.
U32 clipText( String &inOutText, U32 width ) const;
void inspectPostApply();
void inspectPreApply();
void inspectPostApply() override;
void inspectPreApply() override;
protected:
F32 fade_amt;
public:

View file

@ -19,18 +19,18 @@ public:
GuiOffscreenCanvas();
~GuiOffscreenCanvas();
bool onAdd();
void onRemove();
bool onAdd() override;
void onRemove() override;
void renderFrame(bool preRenderOnly, bool bufferSwap);
void renderFrame(bool preRenderOnly, bool bufferSwap) override;
virtual void onFrameRendered();
Point2I getWindowSize();
Point2I getWindowSize() override;
Point2I getCursorPos();
void setCursorPos(const Point2I &pt);
void showCursor(bool state);
bool isCursorShown();
Point2I getCursorPos() override;
void setCursorPos(const Point2I &pt) override;
void showCursor(bool state) override;
bool isCursorShown() override;
void _onTextureEvent( GFXTexCallbackCode code );

View file

@ -56,11 +56,11 @@ public:
virtual ~GuiScriptNotifyCtrl();
static void initPersistFields();
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
virtual void childResized(GuiScriptNotifyCtrl *child);
virtual void parentResized(const RectI &oldParentRect, const RectI &newParentRect);
virtual void onChildRemoved( GuiControl *child );
virtual void onChildAdded( GuiControl *child );
void parentResized(const RectI &oldParentRect, const RectI &newParentRect) override;
void onChildRemoved( GuiControl *child ) override;
void onChildAdded( GuiControl *child ) override;
DECLARE_CALLBACK(void, onResize, (SimObjectId ID) );
DECLARE_CALLBACK(void, onChildAdded, (SimObjectId ID, SimObjectId childID));
@ -94,10 +94,10 @@ public:
//virtual void onMouseDownEditor(const GuiEvent &event, Point2I offset);
//virtual void onRightMouseDownEditor(const GuiEvent &event, Point2I offset);
virtual void setFirstResponder(GuiControl *firstResponder);
virtual void setFirstResponder();
void setFirstResponder(GuiControl *firstResponder) override;
void setFirstResponder() override;
void clearFirstResponder();
virtual void onLoseFirstResponder();
void onLoseFirstResponder() override;
//virtual void acceleratorKeyPress(U32 index);
//virtual void acceleratorKeyRelease(U32 index);
@ -107,8 +107,8 @@ public:
virtual void onMessage(GuiScriptNotifyCtrl *sender, S32 msg); ///< Receive a message from another control
virtual void onDialogPush();
virtual void onDialogPop();
void onDialogPush() override;
void onDialogPop() override;
};

View file

@ -364,8 +364,8 @@ public:
~GuiCursor(void);
static void initPersistFields();
bool onAdd(void);
void onRemove();
bool onAdd(void) override;
void onRemove() override;
void render(const Point2I &pos);
void onImageChanged() {}
@ -601,12 +601,12 @@ public:
~GuiControlProfile();
static void initPersistFields();
bool onAdd();
bool onAdd() override;
void onStaticModified(const char* slotName, const char* newValue = NULL );
void onStaticModified(const char* slotName, const char* newValue = NULL ) override;
/// Called when mProfileForChildren is deleted
virtual void onDeleteNotify(SimObject *object);
void onDeleteNotify(SimObject *object) override;
/// This method creates an array of bitmaps from one single bitmap with
/// separator color. The separator color is whatever color is in pixel 0,0

View file

@ -75,9 +75,9 @@ class DbgFileView : public GuiArrayCtrl
DECLARE_CONOBJECT(DbgFileView);
DECLARE_CATEGORY( "Gui Editor" );
bool onWake();
bool onWake() override;
void clear();
void clear() override;
void clearBreakPositions();
void setCurrentLine(S32 lineNumber, bool setCurrentLine);
@ -90,12 +90,12 @@ class DbgFileView : public GuiArrayCtrl
bool findString(const char *text);
void onMouseDown(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onPreRender();
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver);
void onPreRender() override;
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver) override;
};
#endif //_GUI_DEBUGGER_H

View file

@ -49,10 +49,10 @@ class GuiEaseViewCtrl : public GuiControl
GuiEaseViewCtrl();
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
void onRender( Point2I, const RectI &);
void onRender( Point2I, const RectI &) override;
static void initPersistFields();
DECLARE_CONOBJECT( GuiEaseViewCtrl );

View file

@ -2834,7 +2834,7 @@ class GuiEditorRuler : public GuiControl
return ORIENTATION_Vertical;
}
bool onWake()
bool onWake() override
{
if( !Parent::onWake() )
return false;
@ -2848,12 +2848,12 @@ class GuiEditorRuler : public GuiControl
return true;
}
void onPreRender()
void onPreRender() override
{
setUpdate();
}
void onMouseDown( const GuiEvent& event )
void onMouseDown( const GuiEvent& event ) override
{
if( !mEditCtrl )
return;
@ -2872,7 +2872,7 @@ class GuiEditorRuler : public GuiControl
mEditCtrl->startMouseGuideDrag( axis, guideIndex );
}
void onRender(Point2I offset, const RectI &updateRect)
void onRender(Point2I offset, const RectI &updateRect) override
{
GFX->getDrawUtil()->drawRectFill(updateRect, ColorI::DARK);

View file

@ -246,8 +246,8 @@ class GuiEditCtrl : public GuiControl
DECLARE_CATEGORY( "Gui Editor" );
DECLARE_DESCRIPTION( "Implements the framework for the GUI editor." );
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
static void initPersistFields();
@ -258,8 +258,8 @@ class GuiEditCtrl : public GuiControl
void getDragRect(RectI &b);
void drawNut(const Point2I &nut, ColorI &outlineColor, ColorI &nutColor);
void drawNuts(RectI &box, ColorI &outlineColor, ColorI &nutColor);
void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
void addNewControl(GuiControl *ctrl);
void setCurrentAddSet(GuiControl *ctrl, bool clearSelection = true);
GuiControl* getCurrentAddSet();
@ -314,7 +314,7 @@ class GuiEditCtrl : public GuiControl
void controlInspectPostApply(GuiControl* object);
// Sizing Cursors
void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent);
void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent) override;
U32 getSelectionSize() const { return mSelectedControls.size(); }
const Vector<GuiControl *>& getSelected() const { return mSelectedControls; }
@ -322,16 +322,16 @@ class GuiEditCtrl : public GuiControl
SimGroup* getTrash() { return mTrash; }
GuiControl* getAddSet() const { return mCurrentAddSet; }; //JDD
bool onKeyDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
void onRightMouseDown(const GuiEvent &event);
bool onKeyDown(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onRightMouseDown(const GuiEvent &event) override;
mouseModes getMouseMode() const { return mMouseDownMode; }
virtual bool onAdd();
virtual void onRemove();
bool onAdd() override;
void onRemove() override;
void setSnapToGrid(U32 gridsize);
};

View file

@ -66,11 +66,11 @@ public:
static void initPersistFields();
//Parental methods
bool onWake();
bool onWake() override;
void onMouseDown(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
void onMouseUp(const GuiEvent &);
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &) override;
F32 getValue(S32 n);
const Filter* get() { return &mFilter; }
@ -78,8 +78,8 @@ public:
S32 getNumControlPoints() {return mFilter.size(); }
void identity();
void onPreRender();
void onRender(Point2I offset, const RectI &updateRect );
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect ) override;
};

View file

@ -73,7 +73,7 @@ class GuiGraphCtrl : public GuiControl
void setMax( S32 plotID, F32 max ) { mGraphMax[ plotID ] = max; }
// GuiControl.
virtual void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
DECLARE_CONOBJECT(GuiGraphCtrl);
DECLARE_CATEGORY( "Gui Other" );

View file

@ -51,18 +51,18 @@ public:
static void initPersistFields();
// SimObject
virtual void onRemove();
virtual void onDeleteNotify( SimObject *object );
void onRemove() override;
void onDeleteNotify( SimObject *object ) override;
// GuiControl
virtual void parentResized( const RectI &oldParentRect, const RectI &newParentRect );
virtual bool resize( const Point2I &newPosition, const Point2I &newExtent );
virtual GuiControl* findHitControl( const Point2I &pt, S32 initialLayer );
virtual void getCursor( GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent );
virtual void onMouseMove( const GuiEvent &event );
virtual void onMouseDown( const GuiEvent &event );
virtual void onMouseUp( const GuiEvent &event );
virtual void onMouseDragged( const GuiEvent &event );
void parentResized( const RectI &oldParentRect, const RectI &newParentRect ) override;
bool resize( const Point2I &newPosition, const Point2I &newExtent ) override;
GuiControl* findHitControl( const Point2I &pt, S32 initialLayer ) override;
void getCursor( GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent ) override;
void onMouseMove( const GuiEvent &event ) override;
void onMouseDown( const GuiEvent &event ) override;
void onMouseUp( const GuiEvent &event ) override;
void onMouseDragged( const GuiEvent &event ) override;
// GuiInspector

View file

@ -62,8 +62,8 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual void setValue( StringTableEntry newValue );
GuiControl* constructEditControl() override;
void setValue( StringTableEntry newValue ) override;
virtual void _populateMenu( GuiPopUpMenuCtrlEx *menu );
};
@ -78,7 +78,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeEnum);
static void consoleInit();
virtual void _populateMenu(GuiPopUpMenuCtrlEx *menu );
void _populateMenu(GuiPopUpMenuCtrlEx *menu ) override;
};
//-----------------------------------------------------------------------------
@ -92,7 +92,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeCubemapName);
static void consoleInit();
virtual void _populateMenu(GuiPopUpMenuCtrlEx *menu );
void _populateMenu(GuiPopUpMenuCtrlEx *menu ) override;
};
//--------------------------------------------------------------------------------
@ -119,8 +119,8 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual bool updateRects();
GuiControl* constructEditControl() override;
bool updateRects() override;
};
class GuiInspectorTypeRegularMaterialName : public GuiInspectorTypeMaterialName
@ -150,7 +150,7 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
};
//--------------------------------------------------------------------------------
@ -170,7 +170,7 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
};
//-----------------------------------------------------------------------------
@ -184,7 +184,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeGuiProfile);
static void consoleInit();
virtual void _populateMenu(GuiPopUpMenuCtrlEx *menu );
void _populateMenu(GuiPopUpMenuCtrlEx *menu ) override;
};
//-----------------------------------------------------------------------------
@ -198,7 +198,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeActionMap);
static void consoleInit();
virtual void _populateMenu(GuiPopUpMenuCtrlEx * menu);
void _populateMenu(GuiPopUpMenuCtrlEx * menu) override;
};
//-----------------------------------------------------------------------------
@ -215,9 +215,9 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual void setValue( StringTableEntry newValue );
virtual const char* getValue();
GuiControl* constructEditControl() override;
void setValue( StringTableEntry newValue ) override;
const char* getValue() override;
};
//-----------------------------------------------------------------------------
@ -237,8 +237,8 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual void setValue( StringTableEntry data );
GuiControl* constructEditControl() override;
void setValue( StringTableEntry data ) override;
};
//-----------------------------------------------------------------------------
@ -258,10 +258,10 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
virtual bool updateRects();
virtual void updateValue();
GuiControl* constructEditControl() override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
bool updateRects() override;
void updateValue() override;
};
@ -276,7 +276,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeImageFileName);
static void consoleInit();
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
bool renderTooltip( const Point2I &hoverPos, const Point2I &cursorPos, const char *tipText = NULL );
};
@ -298,8 +298,8 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual bool updateRects();
GuiControl* constructEditControl() override;
bool updateRects() override;
};
//-----------------------------------------------------------------------------
@ -328,9 +328,9 @@ class GuiInspectorTypeEaseF : public GuiInspectorField
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
virtual bool updateRects();
GuiControl* constructEditControl() override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
bool updateRects() override;
};
//-----------------------------------------------------------------------------
@ -344,7 +344,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypePrefabFilename);
static void consoleInit();
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
};
//-----------------------------------------------------------------------------
@ -360,8 +360,8 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeShapeFilename);
static void consoleInit();
virtual GuiControl* constructEditControl();
virtual bool updateRects();
GuiControl* constructEditControl() override;
bool updateRects() override;
};
//-----------------------------------------------------------------------------
@ -394,9 +394,9 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
virtual bool updateRects();
GuiControl* constructEditControl() override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
bool updateRects() override;
};
//-----------------------------------------------------------------------------
@ -408,7 +408,7 @@ class GuiInspectorTypeColorI : public GuiInspectorTypeColor
protected:
virtual const char* _getColorConversionFunction() const { return "ColorFloatToInt"; }
const char* _getColorConversionFunction() const override { return "ColorFloatToInt"; }
public:
@ -417,7 +417,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeColorI);
static void consoleInit();
void setValue( StringTableEntry newValue );
void setValue( StringTableEntry newValue ) override;
};
//-----------------------------------------------------------------------------
@ -434,7 +434,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeColorF);
static void consoleInit();
void setValue( StringTableEntry newValue );
void setValue( StringTableEntry newValue ) override;
};
/* NOTE: Evidently this isn't used anywhere (or implemented) so i commented it out
@ -469,8 +469,8 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeS32);
static void consoleInit();
virtual GuiControl* constructEditControl();
virtual void setValue( StringTableEntry newValue );
GuiControl* constructEditControl() override;
void setValue( StringTableEntry newValue ) override;
};
@ -492,16 +492,16 @@ public:
DECLARE_CONOBJECT( GuiInspectorTypeBitMask32 );
// ConsoleObject
bool onAdd();
bool onAdd() override;
static void consoleInit();
// GuiInspectorField
virtual void childResized( GuiControl *child );
virtual bool resize( const Point2I &newPosition, const Point2I &newExtent );
virtual bool updateRects();
virtual void updateData();
virtual StringTableEntry getValue();
virtual void setValue( StringTableEntry value );
void childResized( GuiControl *child ) override;
bool resize( const Point2I &newPosition, const Point2I &newExtent ) override;
bool updateRects() override;
void updateData() override;
StringTableEntry getValue() override;
void setValue( StringTableEntry value ) override;
protected:
@ -529,10 +529,10 @@ public:
//-----------------------------------------------------------------------------
// Override able methods for custom edit fields
//-----------------------------------------------------------------------------
virtual GuiControl* constructEditControl();
virtual bool resize( const Point2I &newPosition, const Point2I &newExtent );
virtual bool updateRects();
virtual void setValue( StringTableEntry value );
GuiControl* constructEditControl() override;
bool resize( const Point2I &newPosition, const Point2I &newExtent ) override;
bool updateRects() override;
void setValue( StringTableEntry value ) override;
};
@ -547,7 +547,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeName);
static void consoleInit();
virtual bool verifyData( StringTableEntry data );
bool verifyData( StringTableEntry data ) override;
};
@ -562,7 +562,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeSFXParameterName);
static void consoleInit();
virtual void _populateMenu(GuiPopUpMenuCtrlEx *menu );
void _populateMenu(GuiPopUpMenuCtrlEx *menu ) override;
};
@ -577,7 +577,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeSFXStateName);
static void consoleInit();
virtual void _populateMenu(GuiPopUpMenuCtrlEx *menu );
void _populateMenu(GuiPopUpMenuCtrlEx *menu ) override;
};
@ -592,7 +592,7 @@ public:
DECLARE_CONOBJECT(GuiInspectorTypeSFXSourceName);
static void consoleInit();
virtual void _populateMenu(GuiPopUpMenuCtrlEx *menu );
void _populateMenu(GuiPopUpMenuCtrlEx *menu ) override;
};
//-----------------------------------------------------------------------------
@ -620,9 +620,9 @@ public:
GuiButtonCtrl* mPasteButton;
virtual void constructEditControlChildren(GuiControl* retCtrl, S32 width);
virtual void updateValue();
virtual bool resize(const Point2I& newPosition, const Point2I& newExtent);
virtual bool updateRects();
void updateValue() override;
bool resize(const Point2I& newPosition, const Point2I& newExtent) override;
bool updateRects() override;
};
//-----------------------------------------------------------------------------
@ -641,10 +641,10 @@ protected:
public:
GuiTextCtrl* mDimensionLabelZ;
virtual void constructEditControlChildren(GuiControl* retCtrl, S32 width);
virtual void updateValue();
virtual bool resize(const Point2I& newPosition, const Point2I& newExtent);
virtual bool updateRects();
void constructEditControlChildren(GuiControl* retCtrl, S32 width) override;
void updateValue() override;
bool resize(const Point2I& newPosition, const Point2I& newExtent) override;
bool updateRects() override;
};
//-----------------------------------------------------------------------------
@ -661,10 +661,10 @@ protected:
public:
GuiTextCtrl* mDimensionLabelW;
virtual void constructEditControlChildren(GuiControl* retCtrl, S32 width);
virtual void updateValue();
virtual bool resize(const Point2I& newPosition, const Point2I& newExtent);
virtual bool updateRects();
void constructEditControlChildren(GuiControl* retCtrl, S32 width) override;
void updateValue() override;
bool resize(const Point2I& newPosition, const Point2I& newExtent) override;
bool updateRects() override;
};
//-----------------------------------------------------------------------------
@ -678,7 +678,7 @@ private:
public:
DECLARE_CONOBJECT(GuiInspectorTypePoint2F);
static void consoleInit();
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
};
class GuiInspectorTypePoint2I : public GuiInspectorTypePoint2F
@ -688,7 +688,7 @@ private:
public:
DECLARE_CONOBJECT(GuiInspectorTypePoint2I);
static void consoleInit();
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
};
@ -704,7 +704,7 @@ private:
public:
DECLARE_CONOBJECT(GuiInspectorTypePoint3F);
static void consoleInit();
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
};
//-----------------------------------------------------------------------------
@ -721,16 +721,16 @@ public:
EulerF eulAng;
DECLARE_CONOBJECT(GuiInspectorTypeMatrixRotation);
static void consoleInit();
virtual GuiControl* constructEditControl();
virtual void constructEditControlChildren(GuiControl* retCtrl, S32 width);
virtual void updateValue();
virtual bool resize(const Point2I& newPosition, const Point2I& newExtent);
virtual bool updateRects();
GuiControl* constructEditControl() override;
void constructEditControlChildren(GuiControl* retCtrl, S32 width) override;
void updateValue() override;
bool resize(const Point2I& newPosition, const Point2I& newExtent) override;
bool updateRects() override;
void updateAng(AngAxisF newAngAx);
void updateEul(EulerF newEul);
virtual void updateData();
virtual StringTableEntry getValue();
void updateData() override;
StringTableEntry getValue() override;
};
#endif // _GUI_INSPECTOR_TYPES_H_

View file

@ -81,33 +81,33 @@ public:
GuiMenuBar();
void onRemove();
bool onWake();
void onSleep();
void onRemove() override;
bool onWake() override;
void onSleep() override;
virtual void addObject(SimObject* object);
void addObject(SimObject* object) override;
MenuEntry *findHitMenu(Point2I mousePoint);
void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
void checkMenuMouseMove(const GuiEvent &event);
void onMouseMove(const GuiEvent &event);
void onMouseEnter(const GuiEvent &event);
void onMouseLeave(const GuiEvent &event);
void onMouseDown(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseMove(const GuiEvent &event) override;
void onMouseEnter(const GuiEvent &event) override;
void onMouseLeave(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onAction();
void onAction() override;
void closeMenu();
void buildWindowAcceleratorMap( WindowInputGenerator &inputGenerator );
void removeWindowAcceleratorMap( WindowInputGenerator &inputGenerator );
void acceleratorKeyPress(U32 index);
void acceleratorKeyPress(U32 index) override;
// Added to support 'ticks'
void processTick();
void processTick() override;
void insert(SimObject* pObject, S32 pos);
void remove(SimObject* pObject);

View file

@ -99,18 +99,18 @@ public:
GuiParticleGraphCtrl();
virtual ~GuiParticleGraphCtrl() { };
void onMouseMove(const GuiEvent &event);
void onMouseDown( const GuiEvent &event );
void onMouseUp( const GuiEvent &event );
void onMouseDragged( const GuiEvent &event );
void onRightMouseDown( const GuiEvent &event );
void onRightMouseUp( const GuiEvent &event );
void onRightMouseDragged( const GuiEvent &event );
void onMouseMove(const GuiEvent &event) override;
void onMouseDown( const GuiEvent &event ) override;
void onMouseUp( const GuiEvent &event ) override;
void onMouseDragged( const GuiEvent &event ) override;
void onRightMouseDown( const GuiEvent &event ) override;
void onRightMouseUp( const GuiEvent &event ) override;
void onRightMouseDragged( const GuiEvent &event ) override;
//Parental methods
bool onWake();
bool onWake() override;
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
bool renderGraphTooltip(Point2I cursorPos, StringTableEntry tooltip);
// Graph interface

View file

@ -61,12 +61,12 @@ public:
GuiPopupMenuTextListCtrl();
// GuiControl overloads:
bool onKeyDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver);
bool onKeyDown(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver) override;
virtual void onCellHighlighted(Point2I cell); // Added
void onCellHighlighted(Point2I cell) override; // Added
};
class GuiPopupMenuBackgroundCtrl : public GuiControl
@ -75,10 +75,10 @@ class GuiPopupMenuBackgroundCtrl : public GuiControl
public:
GuiPopupMenuBackgroundCtrl();
void onMouseDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event);
void onMouseMove(const GuiEvent &event);
void onMouseDragged(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
void onMouseUp(const GuiEvent &event) override;
void onMouseMove(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
void close();

View file

@ -49,11 +49,11 @@ public:
static void initPersistFields();
virtual void onMouseUp(const GuiEvent &event);
virtual void onMouseDown(const GuiEvent &event);
virtual void onMouseDragged(const GuiEvent &event);
void onMouseUp(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
void onMouseDragged(const GuiEvent &event) override;
virtual void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
};
#endif

View file

@ -58,7 +58,7 @@ public:
static void initPersistFields();
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
};
typedef GuiSeparatorCtrl::separatorTypeOptions GuiSeparatorType;

View file

@ -163,7 +163,7 @@ protected:
void updateThreads(F32 delta);
// Rendering
void renderGrid();
void renderGrid() override;
void renderNodes() const;
void renderNodeAxes(S32 index, const LinearColorF& nodeColor) const;
void renderNodeName(S32 index, const LinearColorF& textColor) const;
@ -171,27 +171,27 @@ protected:
void renderCollisionMeshes() const;
public:
bool onWake();
bool onWake() override;
void setDisplayType(S32 type);
void setDisplayType(S32 type) override;
/// @name Mouse event handlers
///@{
void onMouseDown(const GuiEvent& event) { handleMouseDown(event, NoneMode); }
void onMouseUp(const GuiEvent& event) { handleMouseUp(event, NoneMode); }
void onMouseMove(const GuiEvent& event) { handleMouseMove(event, NoneMode); }
void onMouseDragged(const GuiEvent& event) { handleMouseDragged(event, NoneMode); }
void onMouseDown(const GuiEvent& event) override { handleMouseDown(event, NoneMode); }
void onMouseUp(const GuiEvent& event) override { handleMouseUp(event, NoneMode); }
void onMouseMove(const GuiEvent& event) override { handleMouseMove(event, NoneMode); }
void onMouseDragged(const GuiEvent& event) override { handleMouseDragged(event, NoneMode); }
void onMiddleMouseDown(const GuiEvent& event) { handleMouseDown(event, MoveMode); }
void onMiddleMouseUp(const GuiEvent& event) { handleMouseUp(event, MoveMode); }
void onMiddleMouseDragged(const GuiEvent& event) { handleMouseDragged(event, MoveMode); }
void onMiddleMouseDown(const GuiEvent& event) override { handleMouseDown(event, MoveMode); }
void onMiddleMouseUp(const GuiEvent& event) override { handleMouseUp(event, MoveMode); }
void onMiddleMouseDragged(const GuiEvent& event) override { handleMouseDragged(event, MoveMode); }
void onRightMouseDown(const GuiEvent& event) { handleMouseDown(event, RotateMode); }
void onRightMouseUp(const GuiEvent& event) { handleMouseUp(event, RotateMode); }
void onRightMouseDragged(const GuiEvent& event) { handleMouseDragged(event, RotateMode); }
void onRightMouseDown(const GuiEvent& event) override { handleMouseDown(event, RotateMode); }
void onRightMouseUp(const GuiEvent& event) override { handleMouseUp(event, RotateMode); }
void onRightMouseDragged(const GuiEvent& event) override { handleMouseDragged(event, RotateMode); }
void on3DMouseWheelUp(const Gui3DMouseEvent& event);
void on3DMouseWheelDown(const Gui3DMouseEvent& event);
void on3DMouseWheelUp(const Gui3DMouseEvent& event) override;
void on3DMouseWheelDown(const Gui3DMouseEvent& event) override;
///@}
// Setters/Getters
@ -234,7 +234,7 @@ public:
void refreshShape();
void updateNodeTransforms();
void get3DCursor(GuiCursor *& cursor, bool& visible, const Gui3DMouseEvent& event_);
void get3DCursor(GuiCursor *& cursor, bool& visible, const Gui3DMouseEvent& event_) override;
void fitToShape();
void setOrbitPos( const Point3F& pos );
@ -243,15 +243,15 @@ public:
/// @name Rendering
///@{
bool getCameraTransform(MatrixF* cameraMatrix);
void computeSceneBounds(Box3F& bounds);
bool getCameraTransform(MatrixF* cameraMatrix) override;
void computeSceneBounds(Box3F& bounds) override;
bool getMeshHidden(const char* name) const;
void setMeshHidden(const char* name, bool hidden);
void setAllMeshesHidden(bool hidden);
void renderWorld(const RectI& updateRect);
void renderGui(Point2I offset, const RectI& updateRect);
void renderWorld(const RectI& updateRect) override;
void renderGui(Point2I offset, const RectI& updateRect) override;
///@}
DECLARE_CONOBJECT(GuiShapeEdPreview);

View file

@ -38,27 +38,27 @@ public:
DECLARE_CONOBJECT( GuiInspectorCustomField );
virtual void setData( const char* data, bool callbacks = true );
virtual const char* getData( U32 inspectObjectIndex = 0 );
virtual void updateValue();
virtual StringTableEntry getFieldName() { return StringTable->EmptyString(); }
void setData( const char* data, bool callbacks = true ) override;
const char* getData( U32 inspectObjectIndex = 0 ) override;
void updateValue() override;
StringTableEntry getFieldName() override { return StringTable->EmptyString(); }
virtual void setDoc( const char* doc );
virtual void setToolTip( StringTableEntry data );
virtual bool onAdd();
bool onAdd() override;
virtual void setInspectorField( AbstractClassRep::Field *field,
void setInspectorField( AbstractClassRep::Field *field,
StringTableEntry caption = NULL,
const char *arrayIndex = NULL );
const char *arrayIndex = NULL ) override;
virtual GuiControl* constructEditControl();
GuiControl* constructEditControl() override;
virtual void setValue( const char* newValue );
void setValue( const char* newValue ) override;
protected:
virtual void _executeSelectedCallback();
void _executeSelectedCallback() override;
protected:

View file

@ -44,9 +44,9 @@ class GuiInspectorDatablockField : public GuiInspectorTypeMenuBase
RectI mBrowseRect;
virtual SimSet* _getDatablockSet() const { return Sim::getDataBlockSet(); }
virtual void _populateMenu( GuiPopUpMenuCtrlEx* menu );
virtual GuiControl* constructEditControl();
virtual bool updateRects();
void _populateMenu( GuiPopUpMenuCtrlEx* menu ) override;
GuiControl* constructEditControl() override;
bool updateRects() override;
public:
@ -69,7 +69,7 @@ class GuiInspectorTypeSFXDescriptionName : public GuiInspectorDatablockField
protected:
virtual SimSet* _getDatablockSet() const { return Sim::getSFXDescriptionSet(); }
SimSet* _getDatablockSet() const override { return Sim::getSFXDescriptionSet(); }
public:
@ -89,7 +89,7 @@ class GuiInspectorTypeSFXTrackName : public GuiInspectorDatablockField
protected:
virtual SimSet* _getDatablockSet() const { return Sim::getSFXTrackSet(); }
SimSet* _getDatablockSet() const override { return Sim::getSFXTrackSet(); }
public:
@ -109,7 +109,7 @@ class GuiInspectorTypeSFXEnvironmentName : public GuiInspectorDatablockField
protected:
virtual SimSet* _getDatablockSet() const { return Sim::getSFXEnvironmentSet(); }
SimSet* _getDatablockSet() const override { return Sim::getSFXEnvironmentSet(); }
public:
DECLARE_CONOBJECT(GuiInspectorTypeSFXEnvironmentName);
@ -128,7 +128,7 @@ class GuiInspectorTypeSFXAmbienceName : public GuiInspectorDatablockField
protected:
virtual SimSet* _getDatablockSet() const { return Sim::getSFXAmbienceSet(); }
SimSet* _getDatablockSet() const override { return Sim::getSFXAmbienceSet(); }
public:

View file

@ -39,24 +39,24 @@ public:
DECLARE_CONOBJECT( GuiInspectorDynamicField );
virtual void setData( const char* data, bool callbacks = true );
virtual const char* getData( U32 inspectObjectIndex = 0 );
virtual StringTableEntry getFieldName() { return ( mDynField != NULL ) ? mDynField->slotName : StringTable->insert( "" ); }
virtual StringTableEntry getRawFieldName() { return getFieldName(); }
void setData( const char* data, bool callbacks = true ) override;
const char* getData( U32 inspectObjectIndex = 0 ) override;
StringTableEntry getFieldName() override { return ( mDynField != NULL ) ? mDynField->slotName : StringTable->insert( "" ); }
StringTableEntry getRawFieldName() override { return getFieldName(); }
virtual bool onAdd();
bool onAdd() override;
void renameField( const char* newFieldName );
GuiControl* constructRenameControl();
virtual bool updateRects();
virtual void setInspectorField( AbstractClassRep::Field *field,
bool updateRects() override;
void setInspectorField( AbstractClassRep::Field *field,
StringTableEntry caption = NULL,
const char *arrayIndex = NULL );
const char *arrayIndex = NULL ) override;
protected:
virtual void _executeSelectedCallback();
void _executeSelectedCallback() override;
protected:

View file

@ -45,8 +45,8 @@ public:
// inspectGroup is overridden in GuiInspectorDynamicGroup to inspect an
// objects FieldDictionary (dynamic fields) instead of regular persistent
// fields.
bool inspectGroup();
virtual void updateAllFields();
bool inspectGroup() override;
void updateAllFields() override;
// For scriptable dynamic field additions
void addDynamicField();
@ -58,7 +58,7 @@ public:
virtual SimFieldDictionary::Entry* findDynamicFieldInDictionary( StringTableEntry fieldName );
protected:
// create our inner controls when we add
virtual bool createContent();
bool createContent() override;
};

View file

@ -202,12 +202,12 @@ class GuiInspectorField : public GuiControl
GuiInspector* getInspector() const { return mInspector; }
// GuiControl.
virtual bool onAdd();
virtual bool resize(const Point2I &newPosition, const Point2I &newExtent);
virtual void onRender(Point2I offset, const RectI &updateRect);
virtual void setFirstResponder( GuiControl *firstResponder );
virtual void onMouseDown( const GuiEvent &event );
virtual void onRightMouseUp( const GuiEvent &event );
bool onAdd() override;
bool resize(const Point2I &newPosition, const Point2I &newExtent) override;
void onRender(Point2I offset, const RectI &updateRect) override;
void setFirstResponder( GuiControl *firstResponder ) override;
void onMouseDown( const GuiEvent &event ) override;
void onRightMouseUp( const GuiEvent &event ) override;
void setTargetObject(SimObject* obj) { mTargetObject = obj; }
SimObject* getTargetObject() { return mTargetObject; }

View file

@ -70,7 +70,7 @@ public:
const String& getGroupName() const { return mCaption; };
SimObjectPtr<GuiInspector> getInspector() { return mParent; };
bool onAdd();
bool onAdd() override;
virtual bool inspectGroup();
virtual void animateToContents();

View file

@ -45,15 +45,15 @@ public:
DECLARE_CONOBJECT( GuiInspectorVariableField );
DECLARE_CATEGORY( "Gui Editor" );
virtual bool onAdd();
bool onAdd() override;
virtual void setValue( const char* newValue );
virtual const char* getValue() { return NULL; }
virtual void updateValue();
virtual void setData( const char* data, bool callbacks = true );
virtual const char* getData( U32 inspectObjectIndex = 0 );
virtual void updateData() {};
void setValue( const char* newValue ) override;
const char* getValue() override { return NULL; }
void updateValue() override;
void setData( const char* data, bool callbacks = true ) override;
const char* getData( U32 inspectObjectIndex = 0 ) override;
void updateData() override {};
protected:
StringTableEntry mVariableName;

View file

@ -67,9 +67,9 @@ public:
DECLARE_CONOBJECT(GuiInspectorVariableGroup);
DECLARE_CATEGORY( "Gui Editor" );
virtual GuiInspectorField* constructField( S32 fieldType );
GuiInspectorField* constructField( S32 fieldType ) override;
virtual bool inspectGroup();
bool inspectGroup() override;
void clearFields();
void addField(VariableField* field);

View file

@ -43,7 +43,7 @@ public:
DECLARE_CONOBJECT( GuiVariableInspector );
DECLARE_CATEGORY( "Gui Editor" );
virtual void inspectObject( SimObject *object ) {}
void inspectObject( SimObject *object ) override {}
virtual void loadVars( String searchString );

View file

@ -35,7 +35,7 @@ bool PopupMenu::smSelectionEventHandled = false;
class PopUpNotifyRemoveEvent : public SimEvent
{
public:
void process(SimObject *object)
void process(SimObject *object) override
{
PopupMenu::smPopupMenuEvent.remove((PopupMenu *)object, &PopupMenu::handleSelectEvent);
}

View file

@ -97,8 +97,8 @@ public:
static void initPersistFields();
virtual bool onAdd();
virtual void onRemove();
bool onAdd() override;
void onRemove() override;
static PopupMenuEvent smPopupMenuEvent;
static bool smSelectionEventHandled; /// Set to true if any menu or submenu handles a selection event
@ -181,8 +181,8 @@ public:
/// it should work regardless of platform.
void handleSelectEvent(U32 popID, U32 command);
virtual bool onMessageReceived(StringTableEntry queue, const char* event, const char* data );
virtual bool onMessageObjectReceived(StringTableEntry queue, Message *msg );
bool onMessageReceived(StringTableEntry queue, const char* event, const char* data ) override;
bool onMessageObjectReceived(StringTableEntry queue, Message *msg ) override;
bool isVisible() { return mVisible; }
void setVisible(bool isVis) { mVisible = isVis; }

View file

@ -32,12 +32,12 @@ public:
static void initPersistFields();
//Parental methods
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
void setBitmap(const char *name);
void onRender(Point2I offset, const RectI &updateRect);
void onRender(Point2I offset, const RectI &updateRect) override;
void onImageChanged() {}
};

View file

@ -69,12 +69,12 @@ class GuiFadeinBitmapCtrl : public GuiBitmapCtrl
GuiFadeinBitmapCtrl();
// GuiControl.
virtual void onPreRender();
virtual void onMouseDown(const GuiEvent &);
virtual bool onKeyDown(const GuiEvent &);
virtual bool onGamepadButtonDown(const GuiEvent& event);
virtual bool onWake();
virtual void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onMouseDown(const GuiEvent &) override;
bool onKeyDown(const GuiEvent &) override;
bool onGamepadButtonDown(const GuiEvent& event) override;
bool onWake() override;
void onRender(Point2I offset, const RectI &updateRect) override;
static void initPersistFields();

View file

@ -53,21 +53,21 @@ public:
doFadeIn = false;
doFadeOut = false;
}
void onPreRender()
void onPreRender() override
{
Parent::onPreRender();
setUpdate();
}
void onMouseDown(const GuiEvent &)
void onMouseDown(const GuiEvent &) override
{
Con::executef(this, "click");
}
bool onKeyDown(const GuiEvent &)
bool onKeyDown(const GuiEvent &) override
{
Con::executef(this, "click");
return true;
}
bool onWake()
bool onWake() override
{
if(!Parent::onWake())
return false;
@ -91,7 +91,7 @@ public:
done = false;
}
void onRender(Point2I offset, const RectI &updateRect)
void onRender(Point2I offset, const RectI &updateRect) override
{
U32 elapsed = Platform::getRealMilliseconds() - wakeTime;

View file

@ -63,17 +63,17 @@ class GuiMessageVectorCtrl : public GuiControl
// Gui control overrides
protected:
bool onAdd();
void onRemove();
bool onAdd() override;
void onRemove() override;
bool onWake();
void onSleep();
void onRender(Point2I offset, const RectI &updateRect);
void inspectPostApply();
void parentResized(const RectI& oldParentRect, const RectI& newParentRect);
bool onWake() override;
void onSleep() override;
void onRender(Point2I offset, const RectI &updateRect) override;
void inspectPostApply() override;
void parentResized(const RectI& oldParentRect, const RectI& newParentRect) override;
void onMouseUp(const GuiEvent &event);
void onMouseDown(const GuiEvent &event);
void onMouseUp(const GuiEvent &event) override;
void onMouseDown(const GuiEvent &event) override;
// void onMouseMove(const GuiEvent &event);
// Overrideables

View file

@ -70,13 +70,13 @@ class GuiProgressBitmapCtrl : public GuiTextCtrl
void setBitmap( const char* name );
//console related methods
virtual const char *getScriptValue();
virtual void setScriptValue(const char *value);
const char *getScriptValue() override;
void setScriptValue(const char *value) override;
// GuiTextCtrl.
virtual void onPreRender();
virtual void onRender( Point2I offset, const RectI &updateRect );
virtual bool onWake();
void onPreRender() override;
void onRender( Point2I offset, const RectI &updateRect ) override;
bool onWake() override;
DECLARE_CONOBJECT( GuiProgressBitmapCtrl );
DECLARE_CATEGORY( "Gui Values" );

View file

@ -48,11 +48,11 @@ public:
GuiProgressCtrl();
//console related methods
virtual const char *getScriptValue();
virtual void setScriptValue(const char *value);
const char *getScriptValue() override;
void setScriptValue(const char *value) override;
void onPreRender();
void onRender(Point2I offset, const RectI &updateRect);
void onPreRender() override;
void onRender(Point2I offset, const RectI &updateRect) override;
};
#endif

View file

@ -111,26 +111,26 @@ public:
DECLARE_CATEGORY("Shader Editor");
DECLARE_DESCRIPTION("Implements a shader node based editor.");
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
static void initPersistFields();
virtual bool onAdd() override;
virtual void onRemove() override;
bool onAdd() override;
void onRemove() override;
virtual void onPreRender() override;
void onPreRender() override;
void drawThickLine(const Point2I& pt1, const Point2I& pt2, U32 thickness = 2, ColorI col1 = ColorI(255, 255, 255), ColorI col2 = ColorI(255, 255, 255));
virtual void onRender(Point2I offset, const RectI& updateRect) override;
void onRender(Point2I offset, const RectI& updateRect) override;
// interaction
virtual bool onKeyDown(const GuiEvent& event) override;
virtual void onMouseDown(const GuiEvent& event) override;
virtual void onMouseUp(const GuiEvent& event) override;
virtual void onMouseDragged(const GuiEvent& event) override;
virtual void onMiddleMouseDown(const GuiEvent& event) override;
virtual void onMiddleMouseUp(const GuiEvent& event) override;
virtual void onMiddleMouseDragged(const GuiEvent& event) override;
virtual bool onMouseWheelUp(const GuiEvent& event) override;
virtual bool onMouseWheelDown(const GuiEvent& event) override;
bool onKeyDown(const GuiEvent& event) override;
void onMouseDown(const GuiEvent& event) override;
void onMouseUp(const GuiEvent& event) override;
void onMouseDragged(const GuiEvent& event) override;
void onMiddleMouseDown(const GuiEvent& event) override;
void onMiddleMouseUp(const GuiEvent& event) override;
void onMiddleMouseDragged(const GuiEvent& event) override;
bool onMouseWheelUp(const GuiEvent& event) override;
bool onMouseWheelDown(const GuiEvent& event) override;
RectI getSelectionBounds();
void deleteSelection();

View file

@ -138,15 +138,15 @@ public:
GuiShaderNode();
bool onWake();
void onSleep();
bool onWake() override;
void onSleep() override;
static void initPersistFields();
virtual bool onAdd() override;
virtual void onRemove() override;
bool onAdd() override;
void onRemove() override;
void renderNode(Point2I offset, const RectI& updateRect, const S32 nodeSize);
// Serialization functions
void write(Stream& stream, U32 tabStop = 0, U32 flags = 0);
void write(Stream& stream, U32 tabStop = 0, U32 flags = 0) override;
void read(Stream& stream);
// is the parent that all other nodes are derived from.

View file

@ -58,9 +58,9 @@ private:
protected:
// So this can be instantiated and not be a pure virtual class
void interpolateTick( F32 delta ) {};
void processTick();
void advanceTime( F32 timeDelta ) {};
void interpolateTick( F32 delta ) override {};
void processTick() override;
void advanceTime( F32 timeDelta ) override {};
S32 mTickPeriodMS;
U32 mLastThink;
@ -89,9 +89,9 @@ public:
GuiAudioCtrl();
~GuiAudioCtrl();
// GuiControl.
bool onWake();
void onSleep();
void setActive(bool value) {};
bool onWake() override;
void onSleep() override;
void setActive(bool value) override {};
bool testCondition();
static void initPersistFields();
DECLARE_CONOBJECT(GuiAudioCtrl);

View file

@ -53,9 +53,9 @@ private:
protected:
// So this can be instantiated and not be a pure virtual class
virtual void interpolateTick( F32 delta ) {};
virtual void processTick() {};
virtual void advanceTime( F32 timeDelta ) {};
void interpolateTick( F32 delta ) override {};
void processTick() override {};
void advanceTime( F32 timeDelta ) override {};
public:
DECLARE_CONOBJECT( GuiTickCtrl );

View file

@ -110,10 +110,10 @@ class GuiTheoraCtrl : public GuiControl
}
// GuiControl.
virtual bool onWake();
virtual void onSleep();
virtual void onRender( Point2I offset, const RectI &updateRect );
virtual void inspectPostApply();
bool onWake() override;
void onSleep() override;
void onRender( Point2I offset, const RectI &updateRect ) override;
void inspectPostApply() override;
static void initPersistFields();

View file

@ -54,7 +54,7 @@ class GuiBubbleTextCtrl : public GuiTextCtrl
GuiBubbleTextCtrl() :mInAction(false), mDlg(NULL), mPopup(NULL), mMLText(NULL) {}
virtual void onMouseDown(const GuiEvent &event);
void onMouseDown(const GuiEvent &event) override;
};
#endif /* _GUI_BUBBLE_TEXT_CONTROL_H_ */

View file

@ -48,10 +48,10 @@ public:
GuiInputCtrl();
// GuiControl.
virtual bool onWake();
virtual void onSleep();
bool onWake() override;
void onSleep() override;
virtual bool onInputEvent( const InputEventInfo &event );
bool onInputEvent( const InputEventInfo &event ) override;
static void initPersistFields();

Some files were not shown because too many files have changed in this diff Show more