void TEditor::updateCommands() { setCmdState( cmUndo, Boolean( delCount != 0 || insCount != 0 ) ); if( isClipboard() == False ) { setCmdState(cmCut, hasSelection()); setCmdState(cmCopy, hasSelection()); setCmdState(cmPaste, Boolean(clipboard != 0 && (clipboard->hasSelection())) ); } setCmdState(cmClear, hasSelection()); setCmdState(cmFind, True); setCmdState(cmReplace, True); setCmdState(cmSearchAgain, True); }
void TFileEditor::updateCommands() { TEditor::updateCommands(); setCmdState(cmSave, True); setCmdState(cmSaveAs, True); }
void TFileEditor::shutDown() { setCmdState(cmSave, False); setCmdState(cmSaveAs, False); TEditor::shutDown(); }