mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
Add usesSingleLineMode in inspector
This commit is contained in:
parent
d9e8d3be80
commit
5a35e51db1
5 changed files with 9 additions and 2 deletions
|
@ -13,7 +13,8 @@
|
|||
editableSwitch,
|
||||
scrollableSwitch,
|
||||
selectableSwitch,
|
||||
sendActionMatrix
|
||||
sendActionMatrix,
|
||||
singleLineMode
|
||||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -53,6 +53,7 @@
|
|||
NSButton *editableSwitch;
|
||||
NSButton *selectableSwitch;
|
||||
NSButton *scrollableSwitch;
|
||||
NSButton *singleLineMode;
|
||||
NSForm *tagForm;
|
||||
NSMatrix *sendActionMatrix;
|
||||
}
|
||||
|
|
|
@ -136,6 +136,10 @@
|
|||
BOOL sendActionOnEndEditing = ([[sender cellAtRow: 1 column: 0] state] == NSOnState);
|
||||
[[object cell] setSendsActionOnEndEditing: sendActionOnEndEditing];
|
||||
}
|
||||
else if (sender == singleLineMode)
|
||||
{
|
||||
[[object cell] setUsesSingleLineMode: [scrollableSwitch state]];
|
||||
}
|
||||
|
||||
[super ok:sender];
|
||||
}
|
||||
|
@ -155,7 +159,8 @@
|
|||
[editableSwitch setState:[object isEditable]];
|
||||
[selectableSwitch setState:[object isSelectable]];
|
||||
[scrollableSwitch setState:[[object cell] isScrollable]];
|
||||
|
||||
[singleLineMode setStat:[[object cell] usesSingleLineMode]];
|
||||
|
||||
if ([object isBordered] == YES)
|
||||
{
|
||||
[borderMatrix selectCellAtRow: 0 column: 1];
|
||||
|
|
Loading…
Reference in a new issue