Commit graph

1648 commits

Author SHA1 Message Date
fedor
97bfbf5304 Fix image unacrhiving
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10831 72102866-910b-0410-8b05-ffd578937521
2001-09-01 20:57:51 +00:00
FredKiefer
0d9d85cf4d Replaced use of mcell_highlighted with _cell.is_highlighted.
Removed this ivar and mcell_has_submenu from the coding methods.
Removed method [highlight:withFrame:inView:]. in
[drawBorderAndBackgroundWithFrame:inView:] moved duplicated out of
if clause. in [calcSize] use cached arrow image for submenu sizing and
changed image size code. Change all composite operators from
NSCompositeCopy to NSCompositeSourceOver. Use the cached colour if
it is computed otherwise ignore it. In [drawWithFrame:inView:] allways call
[drawBorderAndBackgroundWithFrame:inView:] and check for border there.
Moved lockfocus calls down one level. In [drawInteriorWithFrame:inView:]
removed some of the checks already done in [drawWithFrame:inView:].
Replaced all the highlight/state logic with the one used in
NSButtonCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10828 72102866-910b-0410-8b05-ffd578937521
2001-09-01 17:10:54 +00:00
fedor
2437b86d25 Fix image encoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10827 72102866-910b-0410-8b05-ffd578937521
2001-09-01 04:20:55 +00:00
fedor
debe8cfdcd Image archiving fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10820 72102866-910b-0410-8b05-ffd578937521
2001-08-30 22:02:38 +00:00
nico
cf515f94af Little improvement of the description of the _GNULineLayoutInfo objects -
changing mainly using for debugging


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10818 72102866-910b-0410-8b05-ffd578937521
2001-08-30 20:20:49 +00:00
nico
a5df4ac42f Indentation tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10817 72102866-910b-0410-8b05-ffd578937521
2001-08-30 20:14:50 +00:00
nico
6ac967a696 Indentation tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10813 72102866-910b-0410-8b05-ffd578937521
2001-08-30 18:36:06 +00:00
nico
50928c24bd Fixed crash on checking whether it can init with data, if data is not
actually a tiff


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10811 72102866-910b-0410-8b05-ffd578937521
2001-08-30 17:26:47 +00:00
nico
01066018d7 Fixed dataCellForRow:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10806 72102866-910b-0410-8b05-ffd578937521
2001-08-30 09:31:27 +00:00
nico
70e6c6d80d Indentation tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10805 72102866-910b-0410-8b05-ffd578937521
2001-08-30 09:30:13 +00:00
FredKiefer
4ebfd91996 In [insertItemWithTitle:atIndex:] use action and target from the
cell for menu item.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10803 72102866-910b-0410-8b05-ffd578937521
2001-08-30 06:50:38 +00:00
FredKiefer
19a411023b [insertItemWithTitle:...atIndex:] autorelease the return value.
[mouseDown:] when we create the location directory, autorelease it.
In [_locationKey] and [display] remove unneeded checks for popup.
In [copyWithZone:] set the autoenable property before adding items.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10802 72102866-910b-0410-8b05-ffd578937521
2001-08-30 06:50:04 +00:00
FredKiefer
2e58053c1b Cache the notification center. Simplified all the item handling
methods, e.g [insertItem:atIndex:], [insertItemWithTitle:...],
[removeItemAtIndex:], [indexOfItemWithSubmenu:].
Implemented [setMenuRepresentation:], [isEqual:] and [copyWithZone:].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10787 72102866-910b-0410-8b05-ffd578937521
2001-08-27 18:49:34 +00:00
FredKiefer
cb5e1ea85a Adopted to changes in header. Implemented class for
separator. Exchanged role of the methods [init] and
[initWithTitle:...]. Simplified [setTitle:] and
[setKeyEquivalent:]. Implemented [userKeyEquivalentModifierMask]
and [setTitleWithMnemonic]. Reimplemented [copyWithZone:] to use
NSCopyObject().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10786 72102866-910b-0410-8b05-ffd578937521
2001-08-27 18:48:55 +00:00
nico
a2a3ba52bc Changed the key used in the user defaults to store a table columns so
that it is consistent with the key used by a window to store the frame


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10771 72102866-910b-0410-8b05-ffd578937521
2001-08-22 09:20:39 +00:00
FredKiefer
0e1424a8c9 Removed class NSMenuWindow, use aconfigured NSPanel instead.
New method [_createWindow] to create this.
Removed unused ivars of NSMenuWindowTitleView and renamed the
methods. Corrected the create/retain logic of the button handling
methods, the old code kept on creating buttons which where never released.
[NSMenu _setTornOff:] now calls addCloseButton or releaseCloseButton.
Replaced [NSMenuWindowTitleView titleHeight] with inline function
title_height().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10769 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:24:35 +00:00
FredKiefer
999a667447 Cache the default notification center. In [sendEvent:] handle case
of NSScrollWheel event.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10768 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:24:00 +00:00
FredKiefer
794ce421fe Implemented [rightMouseDown:] with code from NSResponder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10767 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:23:19 +00:00
FredKiefer
ac9d614d30 Added dummy implementation of [scrollWheel:].
Moved menu display code in [rightMouseDown:] to NSApplication.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10766 72102866-910b-0410-8b05-ffd578937521
2001-08-21 23:22:51 +00:00
nico
82b45b95fe Implemented autosaving table columns (position and width)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10760 72102866-910b-0410-8b05-ffd578937521
2001-08-21 19:08:48 +00:00
nico
51a3f8ca43 Use the cached notification center
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10758 72102866-910b-0410-8b05-ffd578937521
2001-08-21 18:13:32 +00:00
fedor
60a7ef53c8 Moved text conversion classes to separate bundle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10755 72102866-910b-0410-8b05-ffd578937521
2001-08-21 14:52:00 +00:00
pyr
c13ef751bc modifications to take [NSTableColumn -dataCellForRow:] into account
[-updateCell:]: only redraws the what's needed

[-setFrame:]: added a call to [self sizeToFit]


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10749 72102866-910b-0410-8b05-ffd578937521
2001-08-21 12:25:29 +00:00
pyr
00488d9da2 New method : -dataCellForRow:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10747 72102866-910b-0410-8b05-ffd578937521
2001-08-21 12:17:37 +00:00
pyr
e349dcaa98 [NSMatrix -sizeToFit] : This method now assumes that all cells have the
same size (this is what specification says). If it is not the case, weird
behaviour can happen ...


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10739 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:48:09 +00:00
pyr
d1e7b4500e Added NSStepper.m NSStepper.h NSStepperCell.m NSStepperCell.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10738 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:29:26 +00:00
pyr
ed3baf3267 NSStepper class : first implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10734 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:16:22 +00:00
pyr
90190ab4a7 NSStepperCell class : first implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10733 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:15:54 +00:00
pyr
9da40a7256 [NSBrowser -_performLoadOfColumn:] : improved performance when loading
previously unloaded column with a passive delegate


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10732 72102866-910b-0410-8b05-ffd578937521
2001-08-20 10:12:11 +00:00
fedor
c158c1db45 Prevent NSTextView from asking a text storage of zero length
for attributes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10731 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:28:27 +00:00
FredKiefer
4d0d7be678 In [setWindowFrameForAttachingToRect:...popUpSelectedItem:]
replaced reference to NSMenuWindow with NSWindow.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10729 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:22:32 +00:00
FredKiefer
c511088b01 Adopted to changes in the header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10728 72102866-910b-0410-8b05-ffd578937521
2001-08-19 23:21:59 +00:00
FredKiefer
ab8762f908 Renamed methods to fit the GSTextConsumer protocol. Adopted to
changes in header. Perliminary implementation for RTFDConsumer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10724 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:08:28 +00:00
FredKiefer
4d4718efa5 RTFConsumer implements the protocol GSTextConsumer. New subclass
RTFDConsumer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10723 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:07:59 +00:00
FredKiefer
b14c5ca3ae Renamed methods to fit the GSTextProducer protocol. Adopted to
changes in header. Implementation for RTFProducer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10722 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:07:35 +00:00
FredKiefer
e25e9e9fe6 Renamed RTFProducer into RTFDProducer, with new subclass
RTFProducer. Both implement the protocol GSTextProducer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10721 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:04:15 +00:00
FredKiefer
d8b63f8de9 Include GSTextConverter.h. New function converter_class() to load
the class for a given text converter format. Use this function in
the RTF methods and use new protocol there.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10720 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:03:17 +00:00
FredKiefer
a85bbcd020 Install GSTextConverter.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10719 72102866-910b-0410-8b05-ffd578937521
2001-08-18 22:02:42 +00:00
FredKiefer
48e52290ec Install NSInputServer.h + NSInputManager.h and compile
NSInputServer.m + NSInputManager.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10716 72102866-910b-0410-8b05-ffd578937521
2001-08-18 15:18:18 +00:00
FredKiefer
c7f6afdcea Dummy implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10715 72102866-910b-0410-8b05-ffd578937521
2001-08-18 15:17:49 +00:00
FredKiefer
8a5a6afa09 Implemented missing NSUpdateDynamicServices().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10710 72102866-910b-0410-8b05-ffd578937521
2001-08-14 22:39:06 +00:00
FredKiefer
8f5f87b67a Added case of NSScrollWheel.
Impelemented missing NSShowSystemInfoPanel().


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10709 72102866-910b-0410-8b05-ffd578937521
2001-08-14 22:38:30 +00:00
FredKiefer
de949a0a83 [initialize] removed obsolete check for default setting of
ImageComposition. In [copyWithZone:] copy the colour space, it
might be mutable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10708 72102866-910b-0410-8b05-ffd578937521
2001-08-14 22:37:11 +00:00
pyr
50f2f7ce0c Changed [-_userResizedTableColumn: leftWidth: rightWidth:] to
[-_userResizedTableColumn: width] for better resizing
Added [-_columnOrigins] for column reordering


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10705 72102866-910b-0410-8b05-ffd578937521
2001-08-13 15:06:53 +00:00
pyr
625b08dccc Reimplemented column resizing
Implemented column reordering


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10704 72102866-910b-0410-8b05-ffd578937521
2001-08-13 15:03:39 +00:00
pyr
e165ba44af [NSSavePanel -runModalForDirectory:file:]
[NSOpenPanel -runModalForDirectory:file:types:]
Moved functionality from NSOpenPanel to NSSavePanel:
the "ok" button is shown as enabled or not at the beginning depending
on whether the given file is valid.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10702 72102866-910b-0410-8b05-ffd578937521
2001-08-13 14:57:20 +00:00
pyr
72480f557e [NSPopUpButton -keyDown:] add code to send the selected item action to its
target (this enables key control of an NSPopUpButton configured as an
pull-down list)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10700 72102866-910b-0410-8b05-ffd578937521
2001-08-13 14:34:35 +00:00
pyr
be084be394 Modified NSDrawGrayBezel and NSDrawWhiteBezel so that they look nicer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10696 72102866-910b-0410-8b05-ffd578937521
2001-08-13 14:24:38 +00:00
nico
a00dc20735 When appending an arc to a bezier path, draw the line from the current
point to the arc start point - unless this is the first element of the path


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10693 72102866-910b-0410-8b05-ffd578937521
2001-08-13 13:08:22 +00:00
nico
544e1f9c1e Fixed setString: when there is no previous string, so that it uses
the typingAttributes


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10691 72102866-910b-0410-8b05-ffd578937521
2001-08-13 11:44:42 +00:00