From a49482266aa609a23b6fc13dca407a3a530a9b2d Mon Sep 17 00:00:00 2001 From: shatty Date: Thu, 7 Nov 2002 00:08:05 +0000 Subject: [PATCH] font operations now make the document unclean. they can't be undone, but R5 doesn't let you undo them either. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1865 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/stylededit/StyledEditWindow.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/apps/stylededit/StyledEditWindow.cpp b/src/apps/stylededit/StyledEditWindow.cpp index 92ace8c8d3..67e1c7f310 100644 --- a/src/apps/stylededit/StyledEditWindow.cpp +++ b/src/apps/stylededit/StyledEditWindow.cpp @@ -958,6 +958,11 @@ StyledEditWindow::SetFontSize(float fontSize) fTextView->GetFontAndColor(&font,&sameProperties); font.SetSize(fontSize); fTextView->SetFontAndColor(&font,B_FONT_SIZE); + fClean = false; + fUndoCleans = false; + fRedoCleans = false; + fRevertItem->SetEnabled(fSaveMessage != NULL); + fSaveItem->SetEnabled(true); }/***StyledEditWindow::SetFontSize()***/ void @@ -968,7 +973,11 @@ StyledEditWindow::SetFontColor(rgb_color *color) fTextView->GetFontAndColor(&font,&sameProperties,NULL,NULL); fTextView->SetFontAndColor(&font, B_FONT_ALL,color); - + fClean = false; + fUndoCleans = false; + fRedoCleans = false; + fRevertItem->SetEnabled(fSaveMessage != NULL); + fSaveItem->SetEnabled(true); }/***StyledEditWindow::SetFontColor()***/ void @@ -984,5 +993,9 @@ StyledEditWindow::SetFontStyle(const char *fontFamily, const char *fontStyle) BMenuItem *superItem; superItem= fMenuBar->FindItem(fontFamily); superItem->SetMarked(true); - + fClean = false; + fUndoCleans = false; + fRedoCleans = false; + fRevertItem->SetEnabled(fSaveMessage != NULL); + fSaveItem->SetEnabled(true); }/***StyledEditWindow::SetFontStyle()***/