Lines Matching defs:state
124 csCommandState* state = (csCommandState*) node->GetData();
125 delete state;
130 void csDiagramCommand::AddState(csCommandState* state)
132 state->m_doc = m_doc;
133 // state->m_cmd = m_cmd;
134 m_states.Append(state);
137 // Insert a state at the beginning of the list
138 void csDiagramCommand::InsertState(csCommandState* state)
140 state->m_doc = m_doc;
141 // state->m_cmd = m_cmd;
142 m_states.Insert(state);
151 csCommandState* state = (csCommandState*) node->GetData();
152 wxShape* shape = state->GetShapeOnCanvas();
176 csCommandState* state = (csCommandState*) node->GetData();
177 if (shape == state->GetShapeOnCanvas() || shape == state->GetSavedState())
178 return state;
189 csCommandState* state = (csCommandState*) node->GetData();
190 if (!state->Do())
204 csCommandState* state = (csCommandState*) node->GetData();
205 if (!state->Undo())
237 // New state is 'nothing' - maybe pass shape ID to state so we know what
242 wxASSERT( (m_savedState == NULL) ); // new state will be 'nothing'
296 // The app has given the command state a new m_savedState
299 // The new 'saved state' is therefore 'nothing' since there
389 // shape on the canvas, saving the old state.
410 // TODO: make sure the ID is the same. Or, when applying the new state,
414 // Apply the saved state to the shape on the canvas, by copying.
417 // Delete this state now it's been used (m_shapeOnCanvas currently holds this state)
420 // Remember the previous state