cancom.h File Reference

a2dCanvasCommandProcessor for do, undo and redo changes in a a2dCanvasDocument More...

#include "wx/wx.h"
#include "wx/cmdproc.h"
#include "wx/canvas/canglob.h"
#include "wx/canvas/candoc.h"
#include "wx/canvas/tools.h"
#include "wx/docview/doccom.h"
#include "wx/canvas/booloper.h"
#include "wx/canvas/canvas.h"
#include "wx/canvas/canimage.h"
#include <wx/tokenzr.h>
#include <wx/uri.h>
#include <wx/numdlg.h>
#include "wx/gdsio/gdsio.h"
#include "wx/keyio/keyio.h"
#include <wx/listimpl.cpp>

Include dependency graph for cancom.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  a2dCentralCanvasCommandProcessor
 a command wrapper specially designed to work with wxArt2D docview classes and rest. More...
class  a2dCanvasCommandProcessor
 a command processor specially designed to work with a a2dCanvasDocument More...
class  a2dCommand_AddObject
 used to add object to a a2dCanvasDocument in the current parent More...
class  a2dCommand_ReleaseObject
 used to release object from a a2dCanvasDocument in the current parent More...
class  a2dCommand_ReplaceObject
 used to replace an object in a a2dCanvasDocument in the current parent More...
class  a2dCommand_SetFlags
 for changing boolean values inside a rectangle of the current parent object. More...
class  a2dCommand_SetFlag
 for changing boolean values inside canvas objects More...
class  a2dCommand_SetSelectFlag
 for changing boolean select flag values inside canvas objects More...
class  a2dCommandMatrixData
class  a2dCommand_TransformMask
 for changing only the matrix of objects for which a certain mask was set More...
class  a2dCommand_AddPoint
 used to add points to polygon objects More...
class  a2dCommand_MoveSegment
 used to move points in polygon objects More...
class  a2dCommand_MoveMidSegment
 used to move points in polygon objects More...
class  a2dCommand_RemoveSegment
 used to remove points from polygon objects More...
class  a2dCommand_SetSegments
 used to set the complete Segment list/array of polygons More...
class  a2dCommand_ChangeText
 used to change text and caret of canvas text objects in a a2dCanvasDocument More...
class  a2dCommand_ChangeCanvasObjectStyle
 used to change style of canvas objects in a a2dCanvasDocument More...
class  a2dCommand_ChangeCentralStyle
 used to change style of canvas objects in a a2dCanvasDocument More...
class  a2dCommand_SetCanvasProperty
 used to change a property on objects More...
class  a2dCommand_ConnectPins
 used to connect two pins More...
class  a2dCommand_Select
 command on selected objects More...
class  a2dCommand_Select::Args
struct  a2dCommand_Select::Args::argValue
struct  a2dCommand_Select::Args::argSet
class  a2dCommand_Zoom
 command to zoom in view More...
class  a2dCommand_Zoom::Args
struct  a2dCommand_Zoom::Args::argValue
struct  a2dCommand_Zoom::Args::argSet
class  a2dCommand_GroupAB
 command on selected objects More...
class  a2dCommand_GroupAB::Args
struct  a2dCommand_GroupAB::Args::argValue
struct  a2dCommand_GroupAB::Args::argSet
class  a2dCommand_SetLayerGroup
 layer group A and B commands More...
class  a2dCommand_SetLayerGroup::Args
struct  a2dCommand_SetLayerGroup::Args::argValue
struct  a2dCommand_SetLayerGroup::Args::argSet
class  a2dCommand_SetLayer
 set layer More...
class  a2dCommand_SetTarget
 set layer More...
class  a2dCommand_SetDrawWireFrame
 set More...
class  a2dCommand_DrawGridLines
 set More...
class  a2dCommand_DrawGridAtFront
 set More...
class  a2dCommand_DrawGrid
 set More...
class  a2dCommand_SetSnapFeatures
 set features More...
class  a2dCommand_SetSnapFeatures::Args
struct  a2dCommand_SetSnapFeatures::Args::argValue
struct  a2dCommand_SetSnapFeatures::Args::argSet
class  a2dCommand_SetSnapFeature
 set one snapping feature More...
class  a2dCommand_SetSnapFeature::Args
struct  a2dCommand_SetSnapFeature::Args::argValue
struct  a2dCommand_SetSnapFeature::Args::argSet
class  a2dCommand_SetSnap
 set snapping for tools on or off. More...
class  a2dCommand_SetFont
 set font More...
class  a2dCommand_SetStroke
 set More...
class  a2dCommand_SetFill
 set More...
class  a2dCommand_SetStrokeColour
class  a2dCommand_SetFillColour
class  a2dCommand_SetContourWidth
 set SetContourWidth More...
class  a2dCommand_SetPathType
 set SetPathType More...
class  a2dCommand_Refresh
 set More...
class  a2dCommand_GdsIoSaveTextAsPolygon
 set More...
class  a2dCommand_KeyIoSaveTextAsPolygon
 set More...
class  a2dCommand_ViewAsImage
 Export view as image. More...
class  a2dCommand_ViewAsImage::Args
struct  a2dCommand_ViewAsImage::Args::argValue
struct  a2dCommand_ViewAsImage::Args::argSet
class  a2dCommand_ViewAsSvg
 Export view as ViewAsSvg. More...
class  a2dCommand_ViewAsSvg::Args
struct  a2dCommand_ViewAsSvg::Args::argValue
struct  a2dCommand_ViewAsSvg::Args::argSet
class  a2dCommand_NewGroup
 create new group at x,y More...
class  a2dCommand_NewGroup::Args
struct  a2dCommand_NewGroup::Args::argValue
struct  a2dCommand_NewGroup::Args::argSet
class  a2dCommand_NewPin
 create new group at x,y More...
class  a2dCommand_NewPin::Args
struct  a2dCommand_NewPin::Args::argValue
struct  a2dCommand_NewPin::Args::argSet
class  a2dCommand_SetShowObject
class  a2dCommand_SetShowObject::Args
struct  a2dCommand_SetShowObject::Args::argValue
struct  a2dCommand_SetShowObject::Args::argSet
class  a2dCommand_SaveLayers
 Save layer settings to a CVG file. More...
class  a2dCommand_LoadLayers
 Load layer settings from a CVG file. More...
class  a2dCommand_SetCursor
 set cursor More...
class  a2dCommand_SetCursor::Args
struct  a2dCommand_SetCursor::Args::argValue
struct  a2dCommand_SetCursor::Args::argSet
class  a2dCommand_SetRelativeStart
 set releative measurement start More...
class  a2dCommand_AddMeasurement
 add measurement More...
class  a2dCommand_ClearMeasurements
 clear all measurements More...
class  a2dCommand_PushInto
class  a2dCommand_PushInto::Args
struct  a2dCommand_PushInto::Args::argValue
struct  a2dCommand_PushInto::Args::argSet
class  a2dCommand_KeyIoSaveFromView
 set More...
class  a2dCommand_GdsIoSaveFromView
 set More...
class  a2dCommand_SetLayerMask
 set layer of objects which fit the mask More...
class  a2dCommand_DeleteMask
 delete objects which fit the mask More...
class  a2dCommand_ToTopMask
 objects which fit the mask to top in parent (rendered last) More...
class  a2dCommand_ToBackMask
 objects which fit the mask to bottom in parent (rendered first) More...
class  a2dCommand_CopyMask
 objects which fit the mask are copied to target and translated More...
class  a2dCommand_MoveMask
 objects which fit the mask are moved to target and translated More...
class  a2dCommand_GroupMask
 objects which fit the mask are grouped into a new object More...
class  a2dCommand_UnGroupMask
 objects which fit the mask are grouped into a new object More...
class  a2dCommand_MergeMask
 objects which fit the mask are merge into one new object More...
class  a2dCommand_OffsetMask
 objects which fit the mask are offset corrected More...
class  a2dCommand_PolygonToSurfaceMask
 objects which fit the mask are offset corrected More...
class  a2dCommand_SurfaceToPolygonMask
 objects which fit the mask are offset corrected More...
class  a2dCommand_UrlOnMask
 objects which fit the mask are given an Url property More...
class  a2dCommand_SetFillStrokeMask
 objects which fit the mask are given a new fill and stroke style More...
class  a2dCommand_ImagesToRectMask
 objects which fit the mask are converted to rectangles More...
class  a2dCommand_SetLayersProperty
 set all layers visible or not More...
class  a2dCommand_ConvertMask
 objects which fit the mask are converted to polygons or vector paths More...
class  a2dCommand_ConvertMask::Args
struct  a2dCommand_ConvertMask::Args::argValue
struct  a2dCommand_ConvertMask::Args::argSet
class  wxDoubleNumberEntryDialog
 wxDoubleNumberEntryDialog: a dialog with spin control, [ok] and [cancel] buttons More...

Typedefs

typedef a2dlist
< a2dCommandMatrixData
a2dObjectMatrixList

Functions

a2dDrawer2Da2dGetDrawer2D ()
 get drawing context of current a2dCanvasView
a2dCentralCanvasCommandProcessora2dGetCmdh ()
double wxGetDoubleNumberFromUser (const wxString &message, const wxString &prompt, const wxString &caption, double value=0, double min=0, double max=100, wxWindow *parent=(wxWindow *) NULL, const wxPoint &pos=wxDefaultPosition)
 get Double from user

Variables

const a2dMenuIdItem CmdMenu_ChangeCanvasObjectStyle
const a2dMenuIdItem CmdMenu_ChangeCentralStyle
const a2dMenuIdItem CmdMenu_SetLayer
const a2dMenuIdItem CmdMenu_SetTarget
const a2dMenuIdItem CmdMenu_SetDrawWireFrame
const a2dMenuIdItem CmdMenu_DrawGridLines
const a2dMenuIdItem CmdMenu_DrawGridAtFront
const a2dMenuIdItem CmdMenu_SetYAxis
const a2dMenuIdItem CmdMenu_Option_SplinePoly
const a2dMenuIdItem CmdMenu_Option_CursorCrosshair
const a2dMenuIdItem CmdMenu_Option_RescaleAtReSize
const a2dMenuIdItem CmdMenu_Option_ReverseLayers
const a2dMenuIdItem CmdMenu_Refresh
const a2dMenuIdItem CmdMenu_ZoomOut
const a2dMenuIdItem CmdMenu_ZoomOut2
const a2dMenuIdItem CmdMenu_ZoomIn2
const a2dMenuIdItem CmdMenu_EmptyShownObject
const a2dMenuIdItem CmdMenu_DrawGrid
const a2dMenuIdItem CmdMenu_SetSnap
const a2dMenuIdItem CmdMenu_SetSnapFeatures
const a2dMenuIdItem CmdMenu_SetSnapFeature
const a2dMenuIdItem CmdMenu_SetStroke
const a2dMenuIdItem CmdMenu_SetFill
const a2dMenuIdItem CmdMenu_SetStrokeColour
const a2dMenuIdItem CmdMenu_SetFillColour
const a2dMenuIdItem CmdMenu_SetContourWidth
const a2dMenuIdItem CmdMenu_SetPathType
const a2dMenuIdItem CmdMenu_SetNormalizeFactor
const a2dMenuIdItem CmdMenu_GdsIoSaveTextAsPolygon
const a2dMenuIdItem CmdMenu_KeyIoSaveTextAsPolygon
const a2dMenuIdItem CmdMenu_SetGdsIoSaveFromView
const a2dMenuIdItem CmdMenu_SetKeyIoSaveFromView
const a2dMenuIdItem CmdMenu_PushInto
const a2dMenuIdItem CmdMenu_NewGroup
const a2dMenuIdItem CmdMenu_NewPin
const a2dMenuIdItem CmdMenu_SaveLayers
const a2dMenuIdItem CmdMenu_SaveLayersHome
const a2dMenuIdItem CmdMenu_SaveLayersLastDir
const a2dMenuIdItem CmdMenu_SaveLayersCurrentDir
const a2dMenuIdItem CmdMenu_LoadLayers
const a2dMenuIdItem CmdMenu_LoadLayersHome
const a2dMenuIdItem CmdMenu_LoadLayersLastDir
const a2dMenuIdItem CmdMenu_LoadLayersCurrentDir
const a2dMenuIdItem CmdMenu_SetCursor
const a2dMenuIdItem CmdMenu_SetRelativeStart
const a2dMenuIdItem CmdMenu_AddMeasurement
const a2dMenuIdItem CmdMenu_ClearMeasurements
const a2dMenuIdItem CmdMenu_GdsIoSaveFromView
const a2dMenuIdItem CmdMenu_KeyIoSaveFromView
const a2dMenuIdItem CmdMenu_SetLayersProperty
const a2dMenuIdItem CmdMenu_Selected_SelectAll
const a2dMenuIdItem CmdMenu_Selected_DeSelectAll
const a2dMenuIdItem CmdMenu_Selected_Delete
const a2dMenuIdItem CmdMenu_Selected_Group
const a2dMenuIdItem CmdMenu_Selected_ImageToRectangles
const a2dMenuIdItem CmdMenu_Selected_ToTop
const a2dMenuIdItem CmdMenu_Selected_ToBack
const a2dMenuIdItem CmdMenu_Selected_SetStyle
const a2dMenuIdItem CmdMenu_Selected_ConvertToPolygonPolylinesWithArcs
const a2dMenuIdItem CmdMenu_Selected_ConvertToPolygonPolylinesWithoutArcs
const a2dMenuIdItem CmdMenu_Selected_ConvertToPolylines
const a2dMenuIdItem CmdMenu_Selected_ConvertLinesArcs
const a2dMenuIdItem CmdMenu_Selected_ConvertToVPaths
const a2dMenuIdItem CmdMenu_Selected_ConvertPolygonToArcs
const a2dMenuIdItem CmdMenu_Selected_ConvertPolylineToArcs
const a2dMenuIdItem CmdMenu_Selected_ConvertPolygonToSurface
const a2dMenuIdItem CmdMenu_Selected_ConvertSurfaceToPolygon
const a2dMenuIdItem CmdMenu_Selected_ConvertPathToPolygon
const a2dMenuIdItem CmdMenu_Selected_UnGroup
const a2dMenuIdItem CmdMenu_Selected_UnGroupDeep
const a2dMenuIdItem CmdMenu_Selected_Merge
const a2dMenuIdItem CmdMenu_Selected_Offset
const a2dMenuIdItem CmdMenu_Selected_CreateRing
const a2dMenuIdItem CmdMenu_GroupAB_Offset
const a2dMenuIdItem CmdMenu_GroupAB_Smooth
const a2dMenuIdItem CmdMenu_GroupAB_CreateRing
const a2dMenuIdItem CmdMenu_GroupAB_Delete
const a2dMenuIdItem CmdMenu_GroupAB_Move
const a2dMenuIdItem CmdMenu_GroupAB_Copy
const a2dMenuIdItem CmdMenu_GroupAB_ToArcs
const a2dMenuIdItem CmdMenu_GroupAB_Or
const a2dMenuIdItem CmdMenu_GroupAB_And
const a2dMenuIdItem CmdMenu_GroupAB_Exor
const a2dMenuIdItem CmdMenu_GroupAB_AsubB
const a2dMenuIdItem CmdMenu_GroupAB_BsubA
const a2dMenuIdItem CmdMenu_GroupAB_ConvertPolygonToSurface
const a2dMenuIdItem CmdMenu_GroupAB_ConvertSurfaceToPolygon


Detailed Description

a2dCanvasCommandProcessor for do, undo and redo changes in a a2dCanvasDocument

Each specific Command to change a document is wrapped into class. This class knows what to do, in order to make the change to the document. The command procesor recieves such a command, stores in the undo stack and tells it to do the command. Undo-ing is reversing the change done, which the command class is able to do, since it stores the situation before the change, or it knows how to get back in that state.

Author:
Klaas Holwerda
Copyright: 2000-2004 (c) Klaas Holwerda

Licence: wxWidgets Licence

RCS-ID:

Id
cancom.h,v 1.89 2009/10/01 19:22:35 titato Exp

Definition in file cancom.h.


Function Documentation

a2dCentralCanvasCommandProcessor* a2dGetCmdh (  ) 

used application broad to get the central command processor, when using Canvas module Essential this a2dDocviewGlobals->GetDocviewCommandProcessor()

Definition at line 43 of file cancom.cpp.

cancom.h File Reference -- Tue Aug 31 17:56:45 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation