#include <rectangl.h>
Inheritance diagram for RectangleTool:
Public Member Functions | |
RectangleTool () | |
Constructor for the QuickShape tool. | |
~RectangleTool () | |
QuickShapes tools destructor. | |
BOOL | Init () |
Called to initialise the ellipse tool. | |
void | Describe (void *InfoPtr) |
Allows the tool manager to extract information about the tool. | |
UINT32 | GetID () |
INT32 | GetNumSides () |
INT32 | GetCreationMode () |
BOOL | GetPolygon () |
BOOL | GetStellation () |
BOOL | GetCurved () |
void | SetNumSides (INT32 NewValue) |
void | SetCreationMode (INT32 NewValue) |
void | SetPolygon (BOOL NewValue) |
void | SetStellation (BOOL NewValue) |
void | SetCurved (BOOL NewValue) |
BOOL | ForcePolygonToGrey () |
BOOL | ForceEllipseToGrey () |
BOOL | ForceStellationToGrey () |
BOOL | ForceCurvatureToGrey () |
BOOL | ForceNumSidesToGrey () |
BOOL | DoesPolygonExist () |
BOOL | DoesEllipseExist () |
BOOL | DoesStellationExist () |
BOOL | DoesCurvatureExist () |
BOOL | DoesReformSidesExist () |
BOOL | DoesNumSidesExist () |
BOOL | IsInterestingShape (NodeRegularShape *pShape) |
For saying that the ellipse tool only processed elipitical shapes. | |
INT32 | GetShapesToAffect () |
INT32 | GetCursorID () |
INT32 | GetShapeID () |
INT32 | GetShapesID () |
virtual BOOL | IsRectangle () |
Private Member Functions | |
CC_DECLARE_MEMDUMP (RectangleTool) | |
Private Attributes | |
INT32 | CreationMode |
Static Private Attributes | |
static TCHAR * | FamilyName = _T("Shape Tools") |
static TCHAR * | ToolName = _T("Rectangle Tool") |
static TCHAR * | Purpose = _T("Manipulating rectangles") |
static TCHAR * | Author = _T("Peter Arnold") |
Definition at line 119 of file rectangl.h.
|
Constructor for the QuickShape tool.
Definition at line 144 of file rectangl.cpp. 00144 : QuickShapeBase() 00145 { 00146 CreationMode = OpNewRegShape::BOUNDS; 00147 }
|
|
QuickShapes tools destructor.
Definition at line 165 of file rectangl.cpp.
|
|
|
|
Allows the tool manager to extract information about the tool.
Reimplemented from Tool_v1. Definition at line 185 of file rectangl.cpp. 00186 { 00187 // Cast structure into the latest one we understand. 00188 ToolInfo_v1 *Info = (ToolInfo_v1 *) InfoPtr; 00189 00190 Info->InfoVersion = 1; 00191 00192 Info->InterfaceVersion = GetToolInterfaceVersion(); 00193 00194 Info->Version = 1; 00195 Info->ID = GetID(); 00196 Info->TextID = _R(IDS_RECTANGLE_TOOL); 00197 00198 Info->Family = FamilyName; 00199 Info->Name = ToolName; 00200 Info->Purpose = Purpose; 00201 Info->Author = Author; 00202 00203 Info->BubbleID = _R(IDBBL_RECT_TOOLBOX); 00204 }
|
|
Implements QuickShapeBase. Definition at line 150 of file rectangl.h. 00150 {return TRUE;};
|
|
Implements QuickShapeBase. Definition at line 148 of file rectangl.h. 00148 {return FALSE;};
|
|
Implements QuickShapeBase. Definition at line 152 of file rectangl.h. 00152 {return FALSE;};
|
|
Implements QuickShapeBase. Definition at line 147 of file rectangl.h. 00147 {return FALSE;};
|
|
Implements QuickShapeBase. Definition at line 151 of file rectangl.h. 00151 {return FALSE;};
|
|
Implements QuickShapeBase. Definition at line 149 of file rectangl.h. 00149 {return FALSE;};
|
|
Implements QuickShapeBase. Definition at line 145 of file rectangl.h. 00145 {return FALSE;};
|
|
Implements QuickShapeBase. Definition at line 143 of file rectangl.h. 00143 {return TRUE;};
|
|
Implements QuickShapeBase. Definition at line 146 of file rectangl.h. 00146 {return TRUE;};
|
|
Implements QuickShapeBase. Definition at line 142 of file rectangl.h. 00142 {return FALSE;};
|
|
Implements QuickShapeBase. Definition at line 144 of file rectangl.h. 00144 {return TRUE;};
|
|
Implements QuickShapeBase. Definition at line 133 of file rectangl.h. 00133 {return CreationMode;};
|
|
Implements QuickShapeBase. Definition at line 155 of file rectangl.h. 00155 {return _R(IDC_RECTTOOLCURSOR);};
|
|
Implements QuickShapeBase. Definition at line 136 of file rectangl.h. 00136 {return FALSE;};
|
|
Reimplemented from Tool_v1. Definition at line 129 of file rectangl.h. 00129 { return TOOLID_RECTANGLE; };
|
|
Implements QuickShapeBase. Definition at line 132 of file rectangl.h.
|
|
Implements QuickShapeBase. Definition at line 134 of file rectangl.h. 00134 {return TRUE;};
|
|
Implements QuickShapeBase. Definition at line 156 of file rectangl.h. 00156 {return _R(IDS_RECTANGLE_DESCRS);};
|
|
Implements QuickShapeBase. Definition at line 157 of file rectangl.h. 00157 {return _R(IDS_RECTANGLE_DESCRP);};
|
|
Implements QuickShapeBase. Definition at line 154 of file rectangl.h. 00154 {return EditRegularShapeParam::AFFECT_RECTANGLES;};
|
|
Implements QuickShapeBase. Definition at line 135 of file rectangl.h. 00135 {return FALSE;};
|
|
Called to initialise the ellipse tool.
Reimplemented from QuickShapeBase. Definition at line 222 of file rectangl.cpp. 00223 { 00224 pQuickShapeBaseInfoBarOp = new QuickShapeBaseInfoBarOp(this, _R(IDD_RECTTOOLBAR)); 00225 return pQuickShapeBaseInfoBarOp != NULL; 00226 00227 PORTNOTE("dialog", "Removed Bar reading") 00228 #if 0 00229 BOOL ok = TRUE; 00230 00231 CCResTextFile file; // Resource File 00232 QuickShapeBaseInfoBarOpCreate BarCreate; // Object that creates QuickShapeBaseInfoBarOp objects 00233 00234 ok = file.open(_R(IDM_RECT_BAR), _R(IDT_INFO_BAR_RES)); // Open resource 00235 if (ok) ok = DialogBarOp::ReadBarsFromFile(file,BarCreate); // Read and create info bar 00236 if (ok) file.close(); // Close resource 00237 00238 ERROR2IF(!ok,FALSE,"Unable to load RectTool.ini from resource"); 00239 00240 // Info bar now exists. Now get a pointer to it 00241 String_32 str = String_32(_R(IDS_RECTTOOL_INFOBARNAME)); 00242 DialogBarOp* pDialogBarOp = DialogBarOp::FindDialogBarOp(str); 00243 00244 ERROR2IF(pDialogBarOp==NULL, FALSE, "Rectangle infobar not found\n"); 00245 00246 ok = pDialogBarOp->IsKindOf(CC_RUNTIME_CLASS(QuickShapeBaseInfoBarOp)); 00247 if (ok) 00248 { 00249 pQuickShapeBaseInfoBarOp = (QuickShapeBaseInfoBarOp*)pDialogBarOp; 00250 pQuickShapeBaseInfoBarOp->pQuickShapeBase = this; 00251 } 00252 00253 ERROR2IF(!ok,FALSE,"Error finding the Rectangle tool info bar"); 00254 00255 return (ok); 00256 #endif 00257 }
|
|
For saying that the ellipse tool only processed elipitical shapes.
Implements QuickShapeBase. Definition at line 273 of file rectangl.cpp. 00274 { 00275 return (pShape->IsARectangle()); 00276 }
|
|
Reimplemented from QuickShapeBase. Definition at line 159 of file rectangl.h. 00159 {return TRUE;};
|
|
Implements QuickShapeBase. Definition at line 138 of file rectangl.h. 00138 {CreationMode = NewValue;};
|
|
Implements QuickShapeBase. Definition at line 141 of file rectangl.h.
|
|
Implements QuickShapeBase. Definition at line 137 of file rectangl.h.
|
|
Implements QuickShapeBase. Definition at line 139 of file rectangl.h.
|
|
Implements QuickShapeBase. Definition at line 140 of file rectangl.h.
|
|
Reimplemented from DragTool. Definition at line 168 of file rectangl.h. |
|
Definition at line 159 of file rectangl.h. |
|
Reimplemented from DragTool. Definition at line 165 of file rectangl.h. |
|
Reimplemented from DragTool. Definition at line 167 of file rectangl.h. |
|
Reimplemented from DragTool. Definition at line 166 of file rectangl.h. |