Complete last commit, which was missing the actual code changes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@31370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-09-17 20:45:55 +00:00
parent e75bdaf6ef
commit bba99ed040
3 changed files with 16 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2010-09-17 Wolfgang Lux <wolfgang.lux@gmail.com>
* Palettes/4Data/GormTextViewAttributesInspector.h:
* Palettes/4Data/GormTextViewAttributesInspector.m (-ok:, -revert:):
* Palettes/4Data/GormNSTextViewInspector.gorm: Add switches to the
text view inspector to control use of an undo manager and the find
panel, respectively.

View file

@ -47,7 +47,9 @@
NSButton *selectableButton;
NSButton *editableButton;
NSButton *multipleFontsButton;
NSButton *graphicsButton;
NSButton *graphicsButton;
NSButton *undoButton;
NSButton *findPanelButton;
}
@end

View file

@ -102,6 +102,15 @@
{
[object setImportsGraphics:[graphicsButton state]];
}
else if ( sender == undoButton )
{
[object setAllowsUndo:[undoButton state]];
}
else if ( sender == findPanelButton )
{
[object setUsesFindPanel:[findPanelButton state]];
}
[super ok:sender];
}
@ -129,6 +138,8 @@
[editableButton setState:[object isEditable]];
[multipleFontsButton setState:[object isRichText]];
[graphicsButton setState:[object importsGraphics]];
[undoButton setState:[object allowsUndo]];
[findPanelButton setState:[object usesFindPanel]];
[super revert:sender];
}