OpState OpShowGrid::GetState(String_256*, OpDescriptor*) { OpState OpSt; DocView *pDocView = DocView::GetSelected(); if (pDocView != NULL) OpSt.Ticked = pDocView->GetShowGridState(); return OpSt; }
void OpShowGrid::Do(OpDescriptor*) { DocView *pDocView = DocView::GetSelected(); if (pDocView != NULL) { if (Tool::GetCurrentID() != TOOLID_GRID) NodeGrid::ForceRedrawAllGrids(); pDocView->SetShowGridState(!pDocView->GetShowGridState()); } End(); }