GuiEditCtrl Class Reference#include <guiEditCtrl.h>
Inheritance diagram for GuiEditCtrl:
[legend]List of all members.
|
Public Types |
| | JUSTIFY_LEFT |
| | JUSTIFY_CENTER |
| | JUSTIFY_RIGHT |
| | JUSTIFY_TOP |
| | JUSTIFY_BOTTOM |
| | SPACING_VERTICAL |
| | SPACING_HORIZONTAL |
| enum | Justification {
JUSTIFY_LEFT,
JUSTIFY_CENTER,
JUSTIFY_RIGHT,
JUSTIFY_TOP,
JUSTIFY_BOTTOM,
SPACING_VERTICAL,
SPACING_HORIZONTAL
} |
Public Member Functions |
| | GuiEditCtrl () |
| | DECLARE_CONOBJECT (GuiEditCtrl) |
| bool | onWake () |
| | Called when this object is asked to wake up returns true if it's actually awake at the end.
|
| void | onSleep () |
| | Called when this object is asked to sleep.
|
| void | select (GuiControl *ctrl) |
| void | setRoot (GuiControl *ctrl) |
| void | setEditMode (bool value) |
| S32 | getSizingHitKnobs (const Point2I &pt, const RectI &box) |
| void | getDragRect (RectI &b) |
| void | drawNut (const Point2I &nut, ColorI &outlineColor, ColorI &nutColor) |
| void | drawNuts (RectI &box, ColorI &outlineColor, ColorI &nutColor) |
| void | onPreRender () |
| | Do special pre-render processing.
|
| void | onRender (Point2I offset, const RectI &updateRect) |
| | Called when this control is to render itself.
|
| void | addNewControl (GuiControl *ctrl) |
| bool | selectionContains (GuiControl *ctrl) |
| void | setCurrentAddSet (GuiControl *ctrl, bool clearSelection=true) |
| const GuiControl * | getCurrentAddSet () const |
| void | setSelection (GuiControl *ctrl, bool inclusive=false) |
| void | undo () |
| void | redo () |
| UndoManager & | getUndoManager () |
| void | controlInspectPreApply (GuiControl *object) |
| void | controlInspectPostApply (GuiControl *object) |
| void | getCursor (GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent) |
| | Get information about the cursor.
|
| const Vector< GuiControl * > * | getSelected () const |
| const SimSet & | getSelectedSet () |
| const SimGroup & | getTrash () |
| const GuiControl * | getAddSet () const |
| bool | onKeyDown (const GuiEvent &event) |
| | Happens when a key is depressed.
|
| void | onMouseDown (const GuiEvent &event) |
| void | onMouseUp (const GuiEvent &event) |
| void | onMouseDragged (const GuiEvent &event) |
| void | onRightMouseDown (const GuiEvent &event) |
| virtual bool | onAdd () |
| | Called when this object is added to the scene.
|
| virtual void | onRemove () |
| | Called when this object is removed.
|
| void | justifySelection (Justification j) |
| void | moveSelection (const Point2I &delta) |
| void | moveAndSnapSelection (const Point2I &delta) |
| void | saveSelection (const char *filename) |
| void | loadSelection (const char *filename) |
| void | addSelection (S32 id) |
| void | removeSelection (S32 id) |
| void | deleteSelection () |
| void | clearSelection () |
| void | selectAll () |
| void | bringToFront () |
| void | pushToBack () |
| void | setSnapToGrid (U32 gridsize) |
| void | moveSelectionToCtrl (GuiControl *) |
Private Types |
| typedef GuiControl | Parent |
| | Selecting |
| | MovingSelection |
| | SizingSelection |
| | DragSelecting |
| | sizingNone = 0 |
| | sizingLeft = 1 |
| | sizingRight = 2 |
| | sizingTop = 4 |
| | sizingBottom = 8 |
| enum | mouseModes {
Selecting,
MovingSelection,
SizingSelection,
DragSelecting
} |
| enum | sizingModes {
sizingNone = 0,
sizingLeft = 1,
sizingRight = 2,
sizingTop = 4,
sizingBottom = 8
} |
Private Member Functions |
| void | updateSelectedSet () |
Private Attributes |
| Vector< GuiControl * > | mSelectedControls |
| GuiControl * | mCurrentAddSet |
| GuiControl * | mContentControl |
| Point2I | mLastMousePos |
| Point2I | mSelectionAnchor |
| Point2I | mGridSnap |
| Point2I | mDragBeginPoint |
| Vector< Point2I > | mDragBeginPoints |
| UndoManager | mUndoManager |
| SimGroup | mTrash |
| SimSet | mSelectedSet |
| GFXVertexBufferHandle< GFXVertexPC > | mDots |
| GFXStateBlockRef | mDotSB |
| mouseModes | mMouseDownMode |
| sizingModes | mSizingMode |
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
-
| Selecting |
|
| MovingSelection |
|
| SizingSelection |
|
| DragSelecting |
|
- Enumerator:
-
| sizingNone |
|
| sizingLeft |
|
| sizingRight |
|
| sizingTop |
|
| sizingBottom |
|
- Enumerator:
-
| JUSTIFY_LEFT |
|
| JUSTIFY_CENTER |
|
| JUSTIFY_RIGHT |
|
| JUSTIFY_TOP |
|
| JUSTIFY_BOTTOM |
|
| SPACING_VERTICAL |
|
| SPACING_HORIZONTAL |
|
Constructor & Destructor Documentation
| GuiEditCtrl::GuiEditCtrl |
( |
|
) |
|
Member Function Documentation
| void GuiEditCtrl::updateSelectedSet |
( |
|
) |
[private] |
| bool GuiEditCtrl::onWake |
( |
|
) |
[virtual] |
Called when this object is asked to wake up returns true if it's actually awake at the end.
Reimplemented from GuiControl.
| void GuiEditCtrl::onSleep |
( |
|
) |
[virtual] |
Called when this object is asked to sleep.
Reimplemented from GuiControl.
| void GuiEditCtrl::setEditMode |
( |
bool |
value |
) |
|
| S32 GuiEditCtrl::getSizingHitKnobs |
( |
const Point2I & |
pt, |
|
|
const RectI & |
box | |
|
) |
| | |
| void GuiEditCtrl::onPreRender |
( |
|
) |
[virtual] |
Do special pre-render processing.
Reimplemented from GuiControl.
| void GuiEditCtrl::onRender |
( |
Point2I |
offset, |
|
|
const RectI & |
updateRect | |
|
) |
| | [virtual] |
Called when this control is to render itself.
- Parameters:
-
| offset | The location this control is to begin rendering |
| updateRect | The screen area this control has drawing access to |
Reimplemented from GuiControl.
| const GuiControl* GuiEditCtrl::getCurrentAddSet |
( |
|
) |
const |
| void GuiEditCtrl::undo |
( |
|
) |
|
| void GuiEditCtrl::redo |
( |
|
) |
|
Get information about the cursor.
- Parameters:
-
| cursor | Cursor information will be stored here |
| showCursor | Will be set to true if the cursor is visible |
| lastGuiEvent | GuiEvent containing cursor position and modifier keys (ie ctrl, shift, alt etc) |
Reimplemented from GuiControl.
| const SimSet& GuiEditCtrl::getSelectedSet |
( |
|
) |
[inline] |
| const SimGroup& GuiEditCtrl::getTrash |
( |
|
) |
[inline] |
| const GuiControl* GuiEditCtrl::getAddSet |
( |
|
) |
const [inline] |
| bool GuiEditCtrl::onKeyDown |
( |
const GuiEvent & |
event |
) |
[virtual] |
Happens when a key is depressed.
- Parameters:
-
| event | Event descriptor (which contains the key) |
Reimplemented from GuiControl.
| void GuiEditCtrl::onMouseDown |
( |
const GuiEvent & |
event |
) |
[virtual] |
| void GuiEditCtrl::onMouseUp |
( |
const GuiEvent & |
event |
) |
[virtual] |
| void GuiEditCtrl::onMouseDragged |
( |
const GuiEvent & |
event |
) |
[virtual] |
| void GuiEditCtrl::onRightMouseDown |
( |
const GuiEvent & |
event |
) |
[virtual] |
| virtual bool GuiEditCtrl::onAdd |
( |
|
) |
[virtual] |
Called when this object is added to the scene.
Reimplemented from GuiControl.
| virtual void GuiEditCtrl::onRemove |
( |
|
) |
[virtual] |
Called when this object is removed.
Reimplemented from GuiControl.
| void GuiEditCtrl::moveSelection |
( |
const Point2I & |
delta |
) |
|
| void GuiEditCtrl::moveAndSnapSelection |
( |
const Point2I & |
delta |
) |
|
| void GuiEditCtrl::saveSelection |
( |
const char * |
filename |
) |
|
| void GuiEditCtrl::loadSelection |
( |
const char * |
filename |
) |
|
| void GuiEditCtrl::addSelection |
( |
S32 |
id |
) |
|
| void GuiEditCtrl::removeSelection |
( |
S32 |
id |
) |
|
| void GuiEditCtrl::deleteSelection |
( |
|
) |
|
| void GuiEditCtrl::clearSelection |
( |
|
) |
|
| void GuiEditCtrl::selectAll |
( |
|
) |
|
| void GuiEditCtrl::bringToFront |
( |
|
) |
|
| void GuiEditCtrl::pushToBack |
( |
|
) |
|
| void GuiEditCtrl::setSnapToGrid |
( |
U32 |
gridsize |
) |
|
Member Data Documentation
|