mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-19 00:51:51 +00:00
setup undo on the editor view
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@29858 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6607fcc0ef
commit
3ce2f4a4c5
2 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-03-06 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Modules\Editors\ProjectCenter\PCEditor.m: setup undo on the editor
|
||||
view
|
||||
|
||||
2009-11-26 Richard frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Modules/Projects/Application/Resources/AppController.m:
|
||||
|
@ -16,7 +21,7 @@
|
|||
|
||||
2009-09-19 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Images/Options.tiff
|
||||
* Images/Options.tiff:
|
||||
Added new icon, drawn by me.
|
||||
|
||||
2009-09-18 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
||||
|
||||
Copyright (C) 2002-2004 Free Software Foundation
|
||||
Copyright (C) 2002-2010 Free Software Foundation
|
||||
|
||||
Authors: Philippe C.D. Robert
|
||||
Serg Stoyan
|
||||
Riccardo Mottola
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
|
@ -145,6 +146,10 @@
|
|||
[[ev textContainer] setContainerSize:NSMakeSize(fr.size.width, 1e7)];
|
||||
|
||||
[ev setEditable:_isEditable];
|
||||
|
||||
// Activate undo
|
||||
[ev setAllowsUndo: YES];
|
||||
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
addObserver:self
|
||||
selector:@selector(textDidChange:)
|
||||
|
@ -801,6 +806,11 @@
|
|||
if ([object isKindOfClass:[PCEditorView class]]
|
||||
&& (object == _intEditorView || object == _extEditorView))
|
||||
{
|
||||
if (![self hasUndoManager])
|
||||
{
|
||||
[self updateChangeCount: NSChangeDone];
|
||||
}
|
||||
|
||||
if (_isEdited == NO)
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
|
|
Loading…
Reference in a new issue