Commit graph

6765 commits

Author SHA1 Message Date
Wolfgang Lux
9464856dfe Insert window menu items strictly at the bottom of the menu, keeping
only items with actions -performMiniaturize: and -performClose:
beneath them. This allows having additional items at the top of the
menu and works better for window menus that follow the Mac OS X UI
guidelines and have miniaturize and zoom commands at the top and
arrange in front below them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31891 72102866-910b-0410-8b05-ffd578937521
2011-01-15 14:19:24 +00:00
Gregory John Casamento
3afec9e148 2011-01-09 21:58-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSSavePanel.m: (-_initWithoutGModel): added
	code near the and to close the current menu when in Win95
	mode.  If this doesn't happen the menu remains open
	and allows the user to drag the window around while the 
	menu remains in it's old position.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31864 72102866-910b-0410-8b05-ffd578937521
2011-01-10 02:48:30 +00:00
Germán Arias
bf270ebcfb Fixed the behaviour of menu in window when hide the app
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31859 72102866-910b-0410-8b05-ffd578937521
2011-01-09 06:10:02 +00:00
Germán Arias
90687109f7 Improvements for menu in window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31857 72102866-910b-0410-8b05-ffd578937521
2011-01-08 07:04:57 +00:00
Germán Arias
a803a8f4c2 Fixed the tracking of mouse at horizontal menu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31844 72102866-910b-0410-8b05-ffd578937521
2011-01-07 05:27:29 +00:00
Doug Simons
fe64bf3e97 Fix cancel button to correctly clear the field and send action.
Fix -textDidChange: to correctly send action rather than popping up the menu on each keystroke (when sendsWholeSearchString is false).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31833 72102866-910b-0410-8b05-ffd578937521
2011-01-04 18:57:26 +00:00
Wolfgang Lux
106d7bf39d Fix long standing bug where an incorrect tiff representation was
generated for RGB images if bits per sample != 8.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31829 72102866-910b-0410-8b05-ffd578937521
2011-01-04 14:10:12 +00:00
Wolfgang Lux
da2407140a Add some support for help links and markers in RTF documents. These
end up as dedicated attachments in attributed strings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31828 72102866-910b-0410-8b05-ffd578937521
2011-01-03 11:48:57 +00:00
Wolfgang Lux
e5313230fd Commit missing ChangeLog for last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31827 72102866-910b-0410-8b05-ffd578937521
2011-01-03 08:50:59 +00:00
Wolfgang Lux
9f861c89a5 Extend and modify RTF grammar to handle \NeXTHelpLink and \NeXTHelpMarker
commands possibly used in old documents generated on NeXTstep/OpenStep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31826 72102866-910b-0410-8b05-ffd578937521
2011-01-03 08:50:17 +00:00
Wolfgang Lux
3831a1ef4e Update RTF parser to compile with more recent bison versions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31825 72102866-910b-0410-8b05-ffd578937521
2011-01-03 08:25:42 +00:00
Wolfgang Lux
eeb4161156 Implement NSMatrix -setEnabled:. It enables or disables all cells as
in Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31823 72102866-910b-0410-8b05-ffd578937521
2011-01-03 07:51:11 +00:00
Wolfgang Lux
f107c5484a Call the deprecated OpenStep delegate methods if the delegate of a
text attachment does not implement the new Mac OS X methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31816 72102866-910b-0410-8b05-ffd578937521
2011-01-01 16:56:12 +00:00
Wolfgang Lux
043ca66dd9 Add missing conversion from character indexes to glyph indexes when
computing an attachment cell's frame in a text view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31815 72102866-910b-0410-8b05-ffd578937521
2011-01-01 16:48:08 +00:00
Wolfgang Lux
678df29a94 Prevent potential null pointer dereference when computing the size of
an attachment.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31814 72102866-910b-0410-8b05-ffd578937521
2011-01-01 16:43:34 +00:00
Wolfgang Lux
0245f84ad2 Avoid potential crash when removing the last layout manager of a text
storage whose text network is owned by a text view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31813 72102866-910b-0410-8b05-ffd578937521
2011-01-01 16:35:03 +00:00
Fred Kiefer
3b7e6aa708 * Source/GSToolbarView.m (initSystemExtensionsColors): Remove
this function and the NSColor extensions as these no longer get
used. The colours for NSToolbar are handled by GSTheme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31807 72102866-910b-0410-8b05-ffd578937521
2010-12-31 16:19:52 +00:00
Wolfgang Lux
abd36c5caa Make pop up menus in Macintosh menu style behave more similar to OS X.
In particular, when the user clicks the button, the menu stays open
until the next click.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31802 72102866-910b-0410-8b05-ffd578937521
2010-12-30 20:13:14 +00:00
Wolfgang Lux
b436fc237c Make pop up menus in Macintosh menu style behave more similar to OS X.
In particular, when the user clicks the button, the menu stays open
until the next click.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31801 72102866-910b-0410-8b05-ffd578937521
2010-12-30 20:10:37 +00:00
Wolfgang Lux
2583abd450 Various fixes for menus in Macintosh interface style (some apply to
Windows95 style as well).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31800 72102866-910b-0410-8b05-ffd578937521
2010-12-30 19:56:03 +00:00
Wolfgang Lux
fb66e35ad6 Don't show a toolbar customization palette for a toolbar when user
customization is disabled.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31799 72102866-910b-0410-8b05-ffd578937521
2010-12-30 18:58:12 +00:00
Fred Kiefer
62a8ead182 * Source/NSLayoutManager.m: Add code to handle temporary
attributes. This code is taken from NSAttributedString and the
two
        core methods are still missing.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31798 72102866-910b-0410-8b05-ffd578937521
2010-12-30 15:29:05 +00:00
Gregory John Casamento
5504324af2 * Source/NSMenuItemCell.m: Implement drawing a line in the menu
separator item for the Windows95 and Mac modes. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31797 72102866-910b-0410-8b05-ffd578937521
2010-12-29 17:21:15 +00:00
Wolfgang Lux
41923d49c8 Rewrite implementation of drag and drop on a NSTextView so that the
target view is scrolled even when it does not accept the drag
operation. This is useful, e.g., when a subclass considers parts of
the text read only and does not accept a drop in those regions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31796 72102866-910b-0410-8b05-ffd578937521
2010-12-29 13:18:02 +00:00
Wolfgang Lux
07e61a136c Improve implementation of NSWorkspace methods querying volume and file
system information.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31795 72102866-910b-0410-8b05-ffd578937521
2010-12-29 13:03:20 +00:00
Wolfgang Lux
3ea03c38f7 Introduce (private) NSWorkspace notification to propagate changes of
the application or icon associated with a file type and URL scheme,
respectively.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31794 72102866-910b-0410-8b05-ffd578937521
2010-12-29 12:19:00 +00:00
Wolfgang Lux
694843b3e1 When NSDocument presents a save panel, make sure the file name has a
valid extension for the document's type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31793 72102866-910b-0410-8b05-ffd578937521
2010-12-29 11:47:16 +00:00
Gregory John Casamento
13a2fd6326 * Source/GSThemeMenu.m: Changes for compiling with older compilers.
* Source/GSWindowDecorationView.m: Move the view up a little.
	* Source/NSMenuItemCell.m: Experimental changes for drawing
	separator items.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31790 72102866-910b-0410-8b05-ffd578937521
2010-12-27 21:41:54 +00:00
Fred Kiefer
dc285c6df1 Some coding standard changes for NSSearchField
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31788 72102866-910b-0410-8b05-ffd578937521
2010-12-27 13:44:18 +00:00
Fred Kiefer
caeca26669 Check whether the drag source supports methods before calling them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31787 72102866-910b-0410-8b05-ffd578937521
2010-12-27 13:40:57 +00:00
Nicola Pero
05820e79ac Minor tidyup for new Objective-C runtimes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31786 72102866-910b-0410-8b05-ffd578937521
2010-12-27 12:03:56 +00:00
Nicola Pero
f80e259048 Explicitly encode/decode enumerated types as 'int' which is what all
the existing archives use (even if it is incorrect as in many cases
the types are actually 'unsigned int')


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31785 72102866-910b-0410-8b05-ffd578937521
2010-12-27 11:57:04 +00:00
Gregory John Casamento
cc3ce8896e * Source/GSThemeMenu.m: Added implementation for
updateAllWindowsWithMenu:, updateMenu:forWindow:, altered
	implementation for setMenu:forWindow:, added private method
	_setMenu: to set the current menu on the window.
	* Source/GSWindowDecorationView.m: Changes to layout
	* Source/NSMenu.m: Only call the method updateAllWindowsWithMenu:
	when NSMenuInterfaceStyle = NSWindows95InterfaceStyle.
	* Source/NSMenuView.m: Change to -update so that it does not
	render the top bar of the menu if NSMenuInterfaceStyle =
	NSWindows95InterfaceStyle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31782 72102866-910b-0410-8b05-ffd578937521
2010-12-27 07:05:38 +00:00
Fred Kiefer
3817cc34d5 * Source/NSEvent.m (-deltaX, -deltaY, -deltaZ): Don't raise an
exception when called on the wrong type of event.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31766 72102866-910b-0410-8b05-ffd578937521
2010-12-23 16:48:12 +00:00
Fred Kiefer
4abc4ac83b Add the 10.5 coordinate transformation methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31755 72102866-910b-0410-8b05-ffd578937521
2010-12-22 17:06:35 +00:00
Fred Kiefer
de9abfb7ee Correct the definition of NSDragOperation and all its usages.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31754 72102866-910b-0410-8b05-ffd578937521
2010-12-22 16:16:14 +00:00
Doug Simons
3a9b7dbab3 Set search menu 'ownedByPopup' to make it work on Windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31747 72102866-910b-0410-8b05-ffd578937521
2010-12-17 21:27:48 +00:00
Riccardo Mottola
774ac5ba02 added Icon for the Music folder
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31731 72102866-910b-0410-8b05-ffd578937521
2010-12-14 10:22:50 +00:00
Fred Kiefer
cdb08be089 Implement glyph attribute handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31730 72102866-910b-0410-8b05-ffd578937521
2010-12-13 21:26:15 +00:00
Jonathan Gillaspie
77495ccde1 Prevent trying to retrieve a menuCell that is out of range.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31729 72102866-910b-0410-8b05-ffd578937521
2010-12-13 17:50:09 +00:00
Wolfgang Lux
51823d2d82 Fix bug in -setState:atRow:column: where the old selected cell wasn't
properly deselected when the matrix's mode is NSRadioMatrixMode.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31721 72102866-910b-0410-8b05-ffd578937521
2010-12-09 20:31:27 +00:00
Wolfgang Lux
efd0bc2248 Clip the rectangle computed by -rectArrayForGlyphRange: for the last
line to the line fragment's used rectangle if the line doesn't end
with a newline (or other invisible character). This better matches
Apple's implementation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31720 72102866-910b-0410-8b05-ffd578937521
2010-12-09 18:04:25 +00:00
Riccardo Mottola
4e154ce3ef Match NeXT 15x15 dimension and tweak check alpha
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31717 72102866-910b-0410-8b05-ffd578937521
2010-12-07 17:04:33 +00:00
Wolfgang Lux
90dc44a8f6 Don't make an invisible window main window in NSApplication
-finishLaunching when the application has no main window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31715 72102866-910b-0410-8b05-ffd578937521
2010-12-07 08:00:43 +00:00
Wolfgang Lux
879c4b2af4 Allow any window that responds YES to -worksWhenModal to become key in
a modal session.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31714 72102866-910b-0410-8b05-ffd578937521
2010-12-07 07:55:48 +00:00
Riccardo Mottola
d4a93852ff Added handling of a Desktop icon (and added the icon itself)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31713 72102866-910b-0410-8b05-ffd578937521
2010-12-06 00:46:58 +00:00
Gregory John Casamento
285bafeebe Correcting spelling error in one of the theme methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31701 72102866-910b-0410-8b05-ffd578937521
2010-12-02 17:23:00 +00:00
Gregory John Casamento
64516b7af5 Additional table view methods for themeing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31679 72102866-910b-0410-8b05-ffd578937521
2010-11-28 03:55:58 +00:00
Gregory John Casamento
529856ef33 Added NSTableView to the drawing methods for GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31678 72102866-910b-0410-8b05-ffd578937521
2010-11-28 00:05:46 +00:00
Gregory John Casamento
be0954d2ac Change to GSThemeDrawing to implement drawTableHeaderRect:inView:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31673 72102866-910b-0410-8b05-ffd578937521
2010-11-27 18:17:49 +00:00