Commit graph

4782 commits

Author SHA1 Message Date
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
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
Riccardo Mottola
a34d9f2b4a Revert color well thickness. If desired, this should go in a theme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31672 72102866-910b-0410-8b05-ffd578937521
2010-11-27 11:57:57 +00:00
Wolfgang Lux
9d5e012476 Make print info changes of a document undoable as in Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31671 72102866-910b-0410-8b05-ffd578937521
2010-11-27 11:21:31 +00:00
Gregory John Casamento
942841a1d4 Added methods for drawing tableheader cell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31668 72102866-910b-0410-8b05-ffd578937521
2010-11-27 03:51:13 +00:00
Gregory John Casamento
5751234b4b Adding methods to draw knob and bar to theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31666 72102866-910b-0410-8b05-ffd578937521
2010-11-26 22:48:46 +00:00
Gregory John Casamento
03ef6c2fb5 Correction for previous commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31664 72102866-910b-0410-8b05-ffd578937521
2010-11-26 21:41:19 +00:00
Gregory John Casamento
4b57864928 Added method to draw scroll view.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31662 72102866-910b-0410-8b05-ffd578937521
2010-11-26 21:27:58 +00:00
Gregory John Casamento
72963b2f49 Added theming for NSMenuView into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31660 72102866-910b-0410-8b05-ffd578937521
2010-11-26 20:28:45 +00:00
Gregory John Casamento
eac1ad07ad Adding theme method for NSBrowser drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31658 72102866-910b-0410-8b05-ffd578937521
2010-11-26 19:49:04 +00:00
Gregory John Casamento
538432c72f Added method to draw scroller using theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31656 72102866-910b-0410-8b05-ffd578937521
2010-11-26 19:16:46 +00:00
Gregory John Casamento
8ed87de2f2 Added method to draw tab view to theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31654 72102866-910b-0410-8b05-ffd578937521
2010-11-26 18:08:58 +00:00
Wolfgang Lux
449c4f8af6 Do not discard close requests for a window in a modal session when the
window has -worksWhenModal==YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31653 72102866-910b-0410-8b05-ffd578937521
2010-11-26 16:07:19 +00:00
Wolfgang Lux
6d47950759 Add missing assignment to update the typing attributes after deleting
backward in an NSTextView, which accidentally was omitted while
committing r30055.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31641 72102866-910b-0410-8b05-ffd578937521
2010-11-22 16:03:20 +00:00
Doug Simons
3d3450fa2b Make border of NSColorWell smaller to more closely match Cocoa metrics.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31633 72102866-910b-0410-8b05-ffd578937521
2010-11-19 17:39:29 +00:00
Doug Simons
066f959ed0 Ensure drawer is visible if parent window became visible since the drawer was opened
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31614 72102866-910b-0410-8b05-ffd578937521
2010-11-16 21:50:23 +00:00
Riccardo Mottola
fc3eab7928 Cache folders and their assdociation with icon names in dictionaries
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31611 72102866-910b-0410-8b05-ffd578937521
2010-11-13 21:50:41 +00:00
Riccardo Mottola
70237f06e7 Handling of icons for folders of type document, image, system and library
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31605 72102866-910b-0410-8b05-ffd578937521
2010-11-11 23:29:22 +00:00
Fred Kiefer
49fdc602ba Remove a few compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31587 72102866-910b-0410-8b05-ffd578937521
2010-11-03 20:26:30 +00:00
Fred Kiefer
b8abcc62ea * Source/NSWindow.m (-validRequestorForSendType:returnType:):
Don't forward this method if the delegate is a NSResponder.
Patch by Georg Fleischmann <G.Fleischmann@vhf.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31586 72102866-910b-0410-8b05-ffd578937521
2010-11-03 20:06:00 +00:00
Quentin Mathe
f4ea4a6237 For NSPopUpButtonCell keyed unarchiving, fixed broken selection and removed
setAutoenableItems: and -setEnabled: use to match Cocoa doc and behavior.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31585 72102866-910b-0410-8b05-ffd578937521
2010-11-03 14:06:17 +00:00
Jonathan Gillaspie
6198e3aa94 * Source/NSView.m: Added some basic santity checkts that the views
are in windows when converting rectangles.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31583 72102866-910b-0410-8b05-ffd578937521
2010-11-02 20:57:52 +00:00
Quentin Mathe
217512165b Overriden -[NSSavePanel runModal] in NSOpenPanel to take in account the allowed
file types as documented in Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31577 72102866-910b-0410-8b05-ffd578937521
2010-10-31 15:34:25 +00:00
Doug Simons
adbf2dfd48 fix problem with actions being called twice on Windows with the WinUXTheme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31572 72102866-910b-0410-8b05-ffd578937521
2010-10-29 14:31:43 +00:00
Doug Simons
9915a56da3 GSToolbarCustomizationView needs to retain its list of palette items.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31562 72102866-910b-0410-8b05-ffd578937521
2010-10-26 00:13:20 +00:00
Riccardo Mottola
7938a855d3 fixed some c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31556 72102866-910b-0410-8b05-ffd578937521
2010-10-24 21:22:59 +00:00
David Chisnall
71783836f1 Fix build with gcc.
Sorry!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31553 72102866-910b-0410-8b05-ffd578937521
2010-10-22 21:23:29 +00:00
David Chisnall
46d64c5822 Fix tooltips.
Morbo says: NSAttributedStrings DO NOT WORK THAT WAY!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31552 72102866-910b-0410-8b05-ffd578937521
2010-10-22 17:45:45 +00:00
David Chisnall
4600fb5bbf Fixed the point argument to -view:stringForToolTip:point:userData: (should be relative to the tracking rectangle, was relative to the window). Added support for displaying tooltips from NSToolTipAttributeName attributes in NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31550 72102866-910b-0410-8b05-ffd578937521
2010-10-22 16:38:29 +00:00
David Chisnall
3521c1f7c4 Added GSFastEnumeration.h from -base to -gui so we can use fast enumeration there too.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31549 72102866-910b-0410-8b05-ffd578937521
2010-10-22 13:11:14 +00:00
Doug Simons
7a41cf901f Fix deadlock issue; make generalPasteboard more efficient
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31539 72102866-910b-0410-8b05-ffd578937521
2010-10-19 22:57:52 +00:00
Wolfgang Lux
782128949e Add methods to manage the user's preferred applications for URL
schemes to NSWorkspace.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31523 72102866-910b-0410-8b05-ffd578937521
2010-10-18 09:04:18 +00:00
Fred Kiefer
eb812a70c0 Revert the WinUX theme specific patch Doug put in some time ago.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31522 72102866-910b-0410-8b05-ffd578937521
2010-10-17 12:19:24 +00:00
Wolfgang Lux
a81934706f Fix bug where NSWorkspace did ignore the user's preferred application
when computing the icon associated with a file type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31515 72102866-910b-0410-8b05-ffd578937521
2010-10-16 07:45:48 +00:00
Wolfgang Lux
4e19857788 Open a new document when a document based application is launched if
the delegate responds YES to applicationShouldOpenUntitledFile: but
does not implement applicationOpenUntitledFile:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31506 72102866-910b-0410-8b05-ffd578937521
2010-10-13 13:36:44 +00:00
Wolfgang Lux
e51e064411 Send windowControllerWillLoadNib: and windowControllerDidLoadNib: to
the owner of the nib, since this is what Apple seems to do and since
this behavior is more useful when a non-document class uses a window
controller.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31491 72102866-910b-0410-8b05-ffd578937521
2010-10-08 06:46:58 +00:00
Quentin Mathe
d864f4cbb6 Fixed NSOutlineView to use incremental loading as Mac OS X does.
You can now use an outline view to browse a big tree structure e.g. a filesystem. 
Previously in such a case, NSOutlineView was attempting to traverse the entire 
directory structure on -reloadData.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31429 72102866-910b-0410-8b05-ffd578937521
2010-09-27 12:21:54 +00:00
Wolfgang Lux
2d8b12abfa Add new category to NSApplication with a method to order the font
panel front. This makes the standard font panel toolbar item work.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31413 72102866-910b-0410-8b05-ffd578937521
2010-09-25 08:12:08 +00:00
Fred Kiefer
bdda29451c Fix small bugs found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31410 72102866-910b-0410-8b05-ffd578937521
2010-09-24 18:58:57 +00:00
Fred Kiefer
8d1ae3ab80 * Source/NSView.m (-_viewWillMoveToWindow:): When calling
[-releaseGState] make sure to keep the value of _allocate_gstate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31409 72102866-910b-0410-8b05-ffd578937521
2010-09-24 18:35:18 +00:00
Fred Kiefer
5ef03d293a Fix bugs found by static code analysis.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31360 72102866-910b-0410-8b05-ffd578937521
2010-09-16 07:57:57 +00:00