Commit graph

5177 commits

Author SHA1 Message Date
wlux
43e10b9aa1 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
rmottola
c92dddb1da 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
gcasa
bd43d10d38 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
gcasa
2ec7e163d8 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
gcasa
512eb11afc 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
gcasa
1ca50afb98 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
rmottola
6663d63025 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
wlux
d7c1c651fb 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
gcasa
5ccdf70532 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
gcasa
892db01056 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
gcasa
d293aa7273 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
gcasa
a6f4c7d516 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
gcasa
10fb5175e7 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
gcasa
7c12759c52 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
gcasa
0976649f2a 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
gcasa
5496efbc41 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
wlux
3e2112f215 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
wlux
f5da3b49ef 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
dpsimons
d056ebe739 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
dpsimons
4f0e846a0a 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
rmottola
aa8d2b6778 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
rmottola
ff0fed4947 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
fredkiefer
bc53479544 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
fredkiefer
54f345dd83 * 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
qmathe
15c2a78b6e 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
jonathanosx
3a49e57a7d * 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
qmathe
2c60ce7838 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
dpsimons
fea19d5fbf 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
dpsimons
1c5e9e4dd9 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
rmottola
05c5226065 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
theraven
c8c06b0474 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
theraven
5bb05e5135 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
theraven
78873afa01 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
theraven
ca5443707d 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
dpsimons
1aa3b51134 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
wlux
29d0dc690f 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
fredkiefer
687d59cb1a 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
wlux
f6603574d1 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
wlux
6ae4c9b25f 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
wlux
15c24d53a9 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
qmathe
fd98ae8cbc 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
wlux
ce32b6e52f 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
fredkiefer
eefcd4bb09 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
fredkiefer
9663941b71 * 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
fredkiefer
33899b229d 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
ericwa
ef6546bf19 Fix more unsigned int / int cases that should be NS[U]Integer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31354 72102866-910b-0410-8b05-ffd578937521
2010-09-16 02:51:30 +00:00
ericwa
bffd2a736e Fix an unsigned->NSUInteger
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31352 72102866-910b-0410-8b05-ffd578937521
2010-09-15 22:17:51 +00:00
fredkiefer
ce2180918a Check if the window and it's gstate exist before undefining the gstate.
Patch by Georg Fleischmann <G.Fleischmann@vhf.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31350 72102866-910b-0410-8b05-ffd578937521
2010-09-15 08:21:32 +00:00
rmottola
c75954f582 remove useless double statement, remove unused variable and assignment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31344 72102866-910b-0410-8b05-ffd578937521
2010-09-13 15:41:53 +00:00
espectador
38c38dc100 Some changes in size of FontPanel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31342 72102866-910b-0410-8b05-ffd578937521
2010-09-13 00:36:45 +00:00
fredkiefer
30240921b4 First batch of corrections based on David's static analysis.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31337 72102866-910b-0410-8b05-ffd578937521
2010-09-12 16:34:22 +00:00
ericwa
82ac6117e8 Replace sel_eq with sel_isEqual
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31285 72102866-910b-0410-8b05-ffd578937521
2010-09-09 23:50:38 +00:00
theraven
8c3501132d Remove use of old runtime function.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31284 72102866-910b-0410-8b05-ffd578937521
2010-09-09 23:39:23 +00:00
qmathe
7c75329e42 Replaced _rFlags.flipped_view use with -isFlipped and deprecated
_rFlagsType.flipped_view.
Still needs some work to automatically invalidate coordinates when the 
flipping changes e.g. between two drawing sessions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31233 72102866-910b-0410-8b05-ffd578937521
2010-09-03 08:21:52 +00:00
dpsimons
3d9f597bca Fix problem with pull-down menu not allowing same item to be selected twice in a row
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31232 72102866-910b-0410-8b05-ffd578937521
2010-09-02 21:18:00 +00:00
dpsimons
ae51e23b36 fix problem of pulldown action not being called for correct cell, and being called twice on Windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31213 72102866-910b-0410-8b05-ffd578937521
2010-08-30 23:02:21 +00:00
wlux
26c6942f2d Fix bug where the _selectedRow attribute of an NSTableView could be
updated incorrectly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31207 72102866-910b-0410-8b05-ffd578937521
2010-08-30 06:59:00 +00:00
fredkiefer
06926e7adb Correction of the declarations for the methods to handle temporary attributes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31205 72102866-910b-0410-8b05-ffd578937521
2010-08-29 18:49:03 +00:00
fredkiefer
9036113878 Fix GModel loading that was broken since the last restructuring of the
NIB loading code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31204 72102866-910b-0410-8b05-ffd578937521
2010-08-29 10:07:13 +00:00
wlux
36450e6910 Update the selected row indexes of an outline view after collapsing or
expanding an item. This fixes bug #29892.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31203 72102866-910b-0410-8b05-ffd578937521
2010-08-27 13:30:23 +00:00
ericwa
b5fc41a47b * ColorPickers/GSWheelColorPicker.m: Rewrite to draw the HSV
wheel in a bitmap. This gives a pretty large performance improvement.
* Source/NSColorPanel.m: Set a sensible min and max size for the
color panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31195 72102866-910b-0410-8b05-ffd578937521
2010-08-23 23:34:06 +00:00
wlux
394071203e If the alt modifier is pressed when the user expands or collapses an
outline view item expand or collapse all children of the item as well.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31185 72102866-910b-0410-8b05-ffd578937521
2010-08-19 16:52:59 +00:00
wlux
c69440db4f Update the document controller's recent document list when NSDocument
saves a document. This means that the user will	find her fresh
documents in that list the next time.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31184 72102866-910b-0410-8b05-ffd578937521
2010-08-19 16:47:27 +00:00
wlux
339d2f079b Fix result type of an NSDocument method, which was incompatible with Cocoa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31163 72102866-910b-0410-8b05-ffd578937521
2010-08-16 07:25:45 +00:00
wlux
7997c9364d Add special case to preserve the current X selection when editing of a
NSTextField is started with a mouse click.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31160 72102866-910b-0410-8b05-ffd578937521
2010-08-15 20:52:09 +00:00
wlux
33898cf1b8 Make the spell panel a utility window like the font and color panels.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31159 72102866-910b-0410-8b05-ffd578937521
2010-08-15 20:38:07 +00:00
wlux
9f1f939d7a Fix bug caused by the fix for #30025, which made it impossible to
programmatically change the selected item of some pop up buttons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31158 72102866-910b-0410-8b05-ffd578937521
2010-08-15 20:28:06 +00:00
wlux
97ef78881c Dismiss the list of a combo box without changing the selection when
the user presses Escape.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31157 72102866-910b-0410-8b05-ffd578937521
2010-08-15 20:12:55 +00:00
rmottola
9a35c03430 cleaned up code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31135 72102866-910b-0410-8b05-ffd578937521
2010-08-13 21:17:39 +00:00
wlux
d4e85d8f8d Pop up the list of a combo box when the user presses the down arrow
key. This gives users full keyboard control for NSComboBox.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31120 72102866-910b-0410-8b05-ffd578937521
2010-08-11 20:49:33 +00:00
fredkiefer
26019a4955 Add more calls to synchronizeTitleAndSelectedItem. This should fix the
remaining cases of bug #30025.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31111 72102866-910b-0410-8b05-ffd578937521
2010-08-10 21:44:49 +00:00
fredkiefer
95142e19e2 Follow Richard's changes to GSAttributedString in base.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31110 72102866-910b-0410-8b05-ffd578937521
2010-08-10 19:53:47 +00:00
wlux
2b0602d6d3 Change the Arrange in Front command to order only the application's
non-miniaturized windows front and not deminiaturize any miniaturized
windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31103 72102866-910b-0410-8b05-ffd578937521
2010-08-09 21:03:20 +00:00
wlux
ea21f14abd Fix an incorrect range check which prevented the user from copying or
moving the current selection of a text view immediately before itself
with DnD operation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31102 72102866-910b-0410-8b05-ffd578937521
2010-08-09 20:38:32 +00:00
ericwa
28b2bb48af Make the NSColorPanel and NSFontPanel use NSUtilityWindowMask.
Also remove the NSMiniaturizableWindowMask from NSFontPanel.
This makes the panels behave as they do on Mac OS.
Feel free to revert/discuss if you disagree with this.. :-)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31081 72102866-910b-0410-8b05-ffd578937521
2010-08-04 05:10:56 +00:00
ericwa
b8bd29bcec * Source/NSPanel.m: Override
-initWithContentRect:styleMask:backing:defer: so that if
NSUtilityWindowMask is part of the style mask, we can
set the panel to be a floating panel (which is the definition
of NSUtilityWindowMask, in addition to making the panel
have a thin title bar.)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31079 72102866-910b-0410-8b05-ffd578937521
2010-08-04 04:36:53 +00:00
rmottola
3ece70c022 added documentation for scroller hiding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31076 72102866-910b-0410-8b05-ffd578937521
2010-08-03 22:26:25 +00:00
gcasa
42bbcde0a9 * Source/GSTheme.m: remove forward declaration for _setArchiveByName
from NSImage category.
	* Source/NSImage.m: Added code in _setImage:forName: to archive
	by name instead.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31075 72102866-910b-0410-8b05-ffd578937521
2010-08-03 21:11:00 +00:00
wlux
d692a68885 Implement a standard find panel for NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31068 72102866-910b-0410-8b05-ffd578937521
2010-08-02 18:57:00 +00:00
fredkiefer
745284f91b Add missing #import.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31067 72102866-910b-0410-8b05-ffd578937521
2010-08-02 14:00:24 +00:00
wlux
52d2e5cf3b Better placement of pull down menus. If there is not enough room at
the preferred edge display the menu at the opposite edge.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31040 72102866-910b-0410-8b05-ffd578937521
2010-07-26 22:13:11 +00:00
wlux
b623ba6665 While shifting a menu on screen that is partially off screen, correctly
handle the cases where the menu is off screen on the top and the left
side of the screen, respectively. This fixes bug #31415.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31038 72102866-910b-0410-8b05-ffd578937521
2010-07-26 19:16:18 +00:00
fredkiefer
519f920b8c Use NSDeleteCharacter for the backspace key.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31033 72102866-910b-0410-8b05-ffd578937521
2010-07-26 12:39:37 +00:00
fredkiefer
da660947da Correction of last changes as pointed out by Derek Fawcus
<dfawcus@employees.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31032 72102866-910b-0410-8b05-ffd578937521
2010-07-26 11:05:07 +00:00
ericwa
2f421281dd * Source/NSSplitView.m (-adjustSubviews):
Call setFrame: on subviews rather than setFrameSize: followed
by setFrameOrigin:, so that the subviews never have an inconsistent
frame (old origin + new size).
	
This was messing up cases with NSOpenGLView's inside split views,
(e.g. usr-apps/examples/gui/MyGL) because the NSOpenGLView,
when notified of its size changing, was using the invalid origin.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31030 72102866-910b-0410-8b05-ffd578937521
2010-07-26 01:54:24 +00:00
fredkiefer
7957a90007 Add support for backtab character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31026 72102866-910b-0410-8b05-ffd578937521
2010-07-25 20:51:40 +00:00
gcasa
7c984daa0b 2010-07-22 19:35-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSTheme.m: Call method _setArchiveByName: with YES so that
	images loaded by a theme will not be persisted as image data, but
	rather as references.  This will avoid an issue with saving theme
	images when saving files in Gorm while a theme is loaded.
	* Source/NSImage.m: Added method _setArchiveByName:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31021 72102866-910b-0410-8b05-ffd578937521
2010-07-22 23:27:36 +00:00
fredkiefer
5b7393b71d Try to correct bug #30025. This corrects the initial display of a popup
button.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30964 72102866-910b-0410-8b05-ffd578937521
2010-07-14 22:21:59 +00:00
wlux
9e1060fe35 Ensure that the appearance of an NSPopUpButton is not inadvertently
changed when the menu view of its menu is set.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30939 72102866-910b-0410-8b05-ffd578937521
2010-07-09 20:06:18 +00:00
wlux
6e30942930 When sizing a menu view correctly take into account that the first
item of a pull down menu is not visible.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30837 72102866-910b-0410-8b05-ffd578937521
2010-06-23 21:38:29 +00:00
dpsimons
1d8f81f716 further refinements to behavior of performKeyEquivalent: methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30828 72102866-910b-0410-8b05-ffd578937521
2010-06-22 22:00:47 +00:00
wlux
8d78ce30b1 Swap meaning of NSMinYEdge and NSMaxYEdge for attaching a pull down
menu to its button to match their use in Cocoa. Recall that pop up
buttons use flipped geometry.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30808 72102866-910b-0410-8b05-ffd578937521
2010-06-22 07:56:22 +00:00
wlux
bc7dabba43 Fix display of pull down menus to not show their first item, which
holds the title, and fix the attachment of pull down menus to their
button. In addition, fix -setTitle: to actually set the title of a
pull down menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30807 72102866-910b-0410-8b05-ffd578937521
2010-06-22 07:34:31 +00:00
wlux
667ad46abe Fix tick mark related calculations of NSSliderCell to correctly take
into account that the first and last tick marks conincide with the
minimum and maximum values of the slider.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30804 72102866-910b-0410-8b05-ffd578937521
2010-06-21 19:42:08 +00:00
wlux
958681e979 Avoid potential illegal access violation introduced with the previous
commit.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30775 72102866-910b-0410-8b05-ffd578937521
2010-06-18 17:03:55 +00:00
wlux
cf66de78fc Attempt to auto detect the document type when initializing an
attributed string and the type wasn't specified by the caller.
Carefully add base URL to the document importing options only when it
is not nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30774 72102866-910b-0410-8b05-ffd578937521
2010-06-18 07:49:26 +00:00
wlux
fb91a00dd3 Fix previous NSMenu change to ignore shift key except when a function
key is pressed. Change NSButton -performKeyEquivalent: in a similar way.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30720 72102866-910b-0410-8b05-ffd578937521
2010-06-15 03:12:37 +00:00
dpsimons
1f6c867adf Fix menu key equivalents to only trigger when the exact modifiers are held down
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30626 72102866-910b-0410-8b05-ffd578937521
2010-06-08 21:56:15 +00:00
dpsimons
6455999cca Implement NSUserKeyEquivalents default for providing custom key equivalents for menu items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30620 72102866-910b-0410-8b05-ffd578937521
2010-06-08 16:38:30 +00:00
nicola
d967ad7491 Fixed bug moving views from one window to another, which was causing the EOModeler inspector not to work on GNUstep (while it works on Apple)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30581 72102866-910b-0410-8b05-ffd578937521
2010-06-05 00:47:49 +00:00
wlux
b717ba290c Do not attempt to open an untitled document upon launching a document
based application that does not define an editor type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30535 72102866-910b-0410-8b05-ffd578937521
2010-06-01 21:36:51 +00:00
qmathe
0eee79f7b5 Fixed many drawing issues (many ones being related to the flipping).
See bug report #27782

In particular, fixed -[NSImage drawXXX] and -[NSImage composite/dissolveXXX] 
methods to work exactly as Cocoa when the Cairo backend is used.
Added a new draw operator (in addition to composite) to the backend. Cairo is 
the only backend that implements it for now.
Eliminated as many flipping checks as possible.

Warning: Untested with the winlib backend. 
You must update, recompile and install both Back and Gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30523 72102866-910b-0410-8b05-ffd578937521
2010-06-01 11:04:36 +00:00
wlux
67adeb4133 Disable directory selection in open panels presented by
NSDocumentController, which is useless since document file packages
are shown as plain files in the panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30516 72102866-910b-0410-8b05-ffd578937521
2010-05-31 22:34:05 +00:00
wlux
c8a398925b Fix NSAlert implementation so that buttons are assigned tags starting
with NSAlertFirstButtonReturn, except if the panel was created with
the backward compatibility method +alertWithMessageText:defaultButton:...
Also assign appropriate key equivalents to buttons in panels created
with the old OpenStep alert panel functions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30515 72102866-910b-0410-8b05-ffd578937521
2010-05-31 22:20:38 +00:00
fredkiefer
57cc668254 * Headers/AppKit/NSOutlineView.h,
* Source/NSOutlineView.m: Add -parentForItem: and -frameOfOutlineCellAtRow:. 
Use the later in -drawRow:clipRect:.
Change methods to use NSInteger and CGFloat.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30514 72102866-910b-0410-8b05-ffd578937521
2010-05-31 22:18:45 +00:00
wlux
e225579e41 Avoid a race with some lame window managers, which could lead to a
crash when a window is closed and deallocated while a tool tip is
visible.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30513 72102866-910b-0410-8b05-ffd578937521
2010-05-31 21:55:33 +00:00
wlux
bed8731d61 Add support for document types with a wild card extension to
NSDocumentController and NSDocument.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30512 72102866-910b-0410-8b05-ffd578937521
2010-05-31 21:40:13 +00:00
dwetzel
ab99ab06c6 new Files NSViewController.h and NSViewController.m. Fixes #29822
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30506 72102866-910b-0410-8b05-ffd578937521
2010-05-31 03:46:35 +00:00
wlux
fe438e779e Avoid loading a window controller's nib prematurely if the document
edited status is changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30500 72102866-910b-0410-8b05-ffd578937521
2010-05-30 22:55:39 +00:00
wlux
f235cc977a Fixed keyed decoding of NSFont to fall back to a standard font only if
the named font was not found.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30499 72102866-910b-0410-8b05-ffd578937521
2010-05-30 21:47:04 +00:00
wlux
69cd10b709 Select text restored by an undo in a NSTextView and set insertion
point to the end of the changed text after a redo.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30498 72102866-910b-0410-8b05-ffd578937521
2010-05-30 21:17:50 +00:00
wlux
f21e9f221d Really commit the NSTextContainer changes of r30491 and not only their
change log.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30497 72102866-910b-0410-8b05-ffd578937521
2010-05-30 20:57:01 +00:00
wlux
029f131d9a Ensure a more consistent initial setup of a new NSTextView and its
text container.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30495 72102866-910b-0410-8b05-ffd578937521
2010-05-30 18:25:17 +00:00
wlux
a782d3cd24 Replace a bogus workaround to set up the text network of a NSTextView
loaded from a .nib file with a clean solution and fix decoding and
encoding of a few text view flags, which did not match Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30493 72102866-910b-0410-8b05-ffd578937521
2010-05-30 18:18:26 +00:00
wlux
156f12d3d8 Make NSLayoutManager attributes and flags persistent when using a
keyed archiver, i.e., saving or loading a .nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30490 72102866-910b-0410-8b05-ffd578937521
2010-05-30 17:51:29 +00:00
gcasa
1e3e307b16 * Source/NSSplitView.m: In mouseDown: initialize p and op to
NSZeroPoint to prevent compiler warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30475 72102866-910b-0410-8b05-ffd578937521
2010-05-29 15:52:29 +00:00
gcasa
03846781e9 * Source/NSBitmapImageRep+PNG.m: Reverting change which removed
check for setjmp.  This was causing a compilation error.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30474 72102866-910b-0410-8b05-ffd578937521
2010-05-29 15:27:59 +00:00
wlux
10c98c9b2f Correct serious nib loading bug on big endian machines.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30472 72102866-910b-0410-8b05-ffd578937521
2010-05-29 08:32:02 +00:00
gcasa
c63d0d7f02 Change to makefile for Xib change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30469 72102866-910b-0410-8b05-ffd578937521
2010-05-29 05:30:38 +00:00
gcasa
bb160d2f6a Add Xib loading header so that the classes in the GSXibLoader can be used by applications.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30467 72102866-910b-0410-8b05-ffd578937521
2010-05-29 05:27:04 +00:00
rmottola
122d5b0f91 Skip libpng's check for setjmp. I hope we are indeed correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30453 72102866-910b-0410-8b05-ffd578937521
2010-05-25 11:00:03 +00:00
fredkiefer
b8f7410a2c Another small change for gcc 2.95
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30450 72102866-910b-0410-8b05-ffd578937521
2010-05-24 20:09:17 +00:00
fredkiefer
f91f9ab2c9 Small corrections to last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30449 72102866-910b-0410-8b05-ffd578937521
2010-05-24 19:30:49 +00:00
fredkiefer
e64aca8bb2 few compiler warning fixes plus a lot of #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30448 72102866-910b-0410-8b05-ffd578937521
2010-05-24 10:48:14 +00:00
dpsimons
4aa28ed522 Make toolbar resizing behavior match the Cocoa behavior
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30440 72102866-910b-0410-8b05-ffd578937521
2010-05-21 15:01:45 +00:00
gcasa
ba0e9047b7 * Headers/Additions/GNUstepGUI/GSTheme.h: Added method
displayPopUpMenu:... to handle the display of the popup menus for
	themes.
	* Source/GSThemeMenu.m: Added default implementation.
	* Source/NSPopUpButtonCell.m: Call the displayPopUpMenu:... method
	in the method attachPopUpWithFrame:inView:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30433 72102866-910b-0410-8b05-ffd578937521
2010-05-20 08:09:08 +00:00
rmottola
399ffcd288 changed header include to import
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30415 72102866-910b-0410-8b05-ffd578937521
2010-05-18 22:24:07 +00:00
fredkiefer
82f273bc79 * Source/NSToolbarItem.m (-setView:): Only set the min/max size of
the toolbar item when it was zero.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30413 72102866-910b-0410-8b05-ffd578937521
2010-05-17 20:19:00 +00:00
gcasa
f723d6ed8b * Source/NSApplication.m: Attempt to open files from the command
line, if possible in -finishLaunching.  This matches the behavior
	seen on OpenStep and on Mac OS X/Cocoa.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30407 72102866-910b-0410-8b05-ffd578937521
2010-05-17 08:29:55 +00:00
qmathe
7dd04afe94 Moved the main Nib file loading from -finishLaunching to NSApplicationMain() in
order to match Cocoa behavior/documentation.

This makes easier to implement a custom AppKit main that works with both Cocoa 
and GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30398 72102866-910b-0410-8b05-ffd578937521
2010-05-16 13:56:50 +00:00
wlux
faf2a91a13 Fix bug where a window was ignoring its autosaved frame when loaded
from a .nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30396 72102866-910b-0410-8b05-ffd578937521
2010-05-15 21:00:25 +00:00
wlux
faedadfcd0 Remove key equivalents from the font manager's default font menu that
conflict with standard key equivalents.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30395 72102866-910b-0410-8b05-ffd578937521
2010-05-15 20:52:29 +00:00
wlux
be698a3d7c Propagate the change of NSWindow's designated initializer to all
affected subclasses.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30394 72102866-910b-0410-8b05-ffd578937521
2010-05-15 20:43:27 +00:00
wlux
e8d8c17ac8 Add support for a recent documents menu in .gorm files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30390 72102866-910b-0410-8b05-ffd578937521
2010-05-14 19:20:45 +00:00
wlux
12b7ba5f76 Give the application delegate a chance to open documents from the
recent documents menu. This makes the menu available to non-document
based applications as documented and implemented by Apple.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30386 72102866-910b-0410-8b05-ffd578937521
2010-05-14 07:42:34 +00:00
fredkiefer
85253f4282 Toolbar resizing: If there are flexible items and flexible space the items will be expanded
first.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30381 72102866-910b-0410-8b05-ffd578937521
2010-05-13 16:29:38 +00:00
fredkiefer
d8a5434efb Further improvement of toolbar resizing and missing changelog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30380 72102866-910b-0410-8b05-ffd578937521
2010-05-13 14:25:54 +00:00
wlux
e140af22af Don't send -awakeFromNib to an NSApplication proxy in a .nib file (nor
any other proxy) and do not record it in the top level array either.
Identification of proxy objects is based on their object IDs.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30379 72102866-910b-0410-8b05-ffd578937521
2010-05-13 14:08:26 +00:00
wlux
07a552ed96 Ensure proper order of actions when loading a .nib file and make sure
all objects are instantiated before establishing any connections. This
fixes an issue where, e.g., a generic shared document controller
instance is created before a custom instance defined in the nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30376 72102866-910b-0410-8b05-ffd578937521
2010-05-13 13:01:44 +00:00
fredkiefer
ad422833d4 Clean up toolbar item resizing, this now allows for resizable item other than flexible space.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30371 72102866-910b-0410-8b05-ffd578937521
2010-05-12 23:06:02 +00:00
gcasa
c78d98f976 * Headers/Additions/GNUstepGUI/GSTheme.h: Added method
rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/GSThemeMenu.m: Implementation of method 
	rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/NSMenu.m: use the theming code implemented above instead
	of rendering the menu directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30370 72102866-910b-0410-8b05-ffd578937521
2010-05-12 22:47:10 +00:00
wlux
afd9a10680 Fix a rather long standing incompatibility between GNUstep and Cocoa
and make -initWithContentRect:styleMask:backing:defer: the designated
initializer of NSWindow.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30368 72102866-910b-0410-8b05-ffd578937521
2010-05-12 14:47:10 +00:00
wlux
ea6095852b Next attempt at getting .nib file loading right. Make sure that
-nibInstantiate is sent to all loaded objects and also make sure that
-awakeFromNib is sent to the nib's owner.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30367 72102866-910b-0410-8b05-ffd578937521
2010-05-12 14:19:55 +00:00
wlux
a3ab75dbd1 Make number of remembered recent documents configurable with a user
preference and fix a bug where one extra document was remembered.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30366 72102866-910b-0410-8b05-ffd578937521
2010-05-12 10:24:17 +00:00
wlux
f8ef55b2d8 Fix bug where some objects loaded from a .xib file were not sent an
-awakeFromNib message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30365 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:51:45 +00:00
wlux
048e22fe5a Fix a small glitch in the previous commit and make use of the setter
method to initialize the private name attribute of an NSMenu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30364 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:15:25 +00:00
wlux
948014105b Add a private name attribute to menus to identify special purpose
menus. Fixes a bug where the services, windows, and recent documents
menu were defunct when loading the menu from a .nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30363 72102866-910b-0410-8b05-ffd578937521
2010-05-12 09:02:25 +00:00
wlux
06f3192de9 Add an attribute to NSDocumentController to maintain the recent
documents menu. Make the methods to access that menu available to
other classes in -gui.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30362 72102866-910b-0410-8b05-ffd578937521
2010-05-12 08:17:26 +00:00
wlux
ad6813556f Fix bug where some objects loaded from a .nib file were not sent an
-awakeFromNib message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30361 72102866-910b-0410-8b05-ffd578937521
2010-05-12 07:59:57 +00:00
fredkiefer
e45e3bc0b0 Remove compiler warning for NSBrowser header cell drawing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30360 72102866-910b-0410-8b05-ffd578937521
2010-05-11 16:48:44 +00:00
rfm
68a1850fd5 Attempt fix for Riccardos's latest issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30328 72102866-910b-0410-8b05-ffd578937521
2010-05-09 06:55:33 +00:00
fredkiefer
b308995696 Make dealloc of NSWindow a tiny bit saver.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30321 72102866-910b-0410-8b05-ffd578937521
2010-05-08 20:18:14 +00:00
wlux
8af0ab6112 Fix a regression where a window's content view was improperly resized
when toggleToolbarShown: makes its toolbar visible again.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30319 72102866-910b-0410-8b05-ffd578937521
2010-05-07 18:22:13 +00:00
fredkiefer
afc320aacf Add method directoryURL to NSSavePanel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30278 72102866-910b-0410-8b05-ffd578937521
2010-05-02 10:21:40 +00:00
fedor
f95229cbbc * configure, configure.ac, Headers/Additions/GNUstepGUI/config.h.in,
Source/NSSliderCell.m: Check for atan2f function (not present on
old Solaris systems for instance).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30254 72102866-910b-0410-8b05-ffd578937521
2010-04-28 18:14:43 +00:00
dpsimons
08f19c72bf fix occasional exception while dragging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30234 72102866-910b-0410-8b05-ffd578937521
2010-04-24 19:43:35 +00:00
dpsimons
a3603ff386 Handle nil view passed to _checkTrackingRectangles:forEvent:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30233 72102866-910b-0410-8b05-ffd578937521
2010-04-24 17:21:22 +00:00
dpsimons
7a815aa384 Only rebuild in-window menus when needed (significant performance improvement)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30232 72102866-910b-0410-8b05-ffd578937521
2010-04-24 17:12:35 +00:00
ericwa
329dc9aef1 gui: fix bug 29635 NSMenuItem -initWithCoder: should set modifier mask to 0 if NSKeyEquivModMask not defined
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30229 72102866-910b-0410-8b05-ffd578937521
2010-04-24 00:03:30 +00:00
jonathanosx
8676ead49c * Source/NSWindowController.m: Fixed a problem where controller marks
the window as loaded even when the nib failed to load.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30227 72102866-910b-0410-8b05-ffd578937521
2010-04-23 19:26:44 +00:00
wlux
ddddcb1144 Fix incorrect return code of NSRunAlertPanel when called in a non-gui
application.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30222 72102866-910b-0410-8b05-ffd578937521
2010-04-23 15:12:06 +00:00
dpsimons
259dc054b6 fix problems with overlaps between toolbars, window contents, and in-window menus
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30206 72102866-910b-0410-8b05-ffd578937521
2010-04-20 19:37:10 +00:00
dpsimons
4f04ae9d0d Honor sendsActionOnEndEditing setting when editing ended by something other than return
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30196 72102866-910b-0410-8b05-ffd578937521
2010-04-19 17:11:25 +00:00
ericwa
dcebe1ef37 NSBrowser header themeing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30189 72102866-910b-0410-8b05-ffd578937521
2010-04-19 03:14:36 +00:00
ericwa
5767b71934 core/gui: Add an option to turn off the inner border lines in NSScrollView which look bad on any non-NeXT like theme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30186 72102866-910b-0410-8b05-ffd578937521
2010-04-18 22:39:18 +00:00
rmottola
a4fb383863 removed c99isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30175 72102866-910b-0410-8b05-ffd578937521
2010-04-16 18:58:26 +00:00
ericwa
9da9dae16e NSSegmentedCell initWithCoder: fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30171 72102866-910b-0410-8b05-ffd578937521
2010-04-15 19:46:59 +00:00
wlux
b245fb9d7d When editing of a text field ends after pressing the Return key and no
(other) view has become first responder make the text field itself
first responder by selecting its text just like this is done after
pressing Tab and Shift-Tab.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30145 72102866-910b-0410-8b05-ffd578937521
2010-04-14 07:11:50 +00:00
rmottola
ee1aa5dc70 removed c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30144 72102866-910b-0410-8b05-ffd578937521
2010-04-13 22:54:33 +00:00
dpsimons
1f5719db0b Fix numerous issues with toolbar customization
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30143 72102866-910b-0410-8b05-ffd578937521
2010-04-13 21:38:31 +00:00
jonathanosx
b0b25e2f29 * Source/GSToolTips.m: Use a single retained window for tooltips instead of a
newly created one each time.  This significantly reduces callback interaction 
  with MS-Windows callbacks.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30141 72102866-910b-0410-8b05-ffd578937521
2010-04-13 18:59:45 +00:00
fredkiefer
f4908e6f24 * Source/NSBitmapImageRep+JPEG.m (-_JPEGRepresentationWithProperties:errorMessage:): Use the
correct size for the structure in memset.
Patch by Philippe Roussel <p.o.roussel@free.fr>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30132 72102866-910b-0410-8b05-ffd578937521
2010-04-12 14:27:37 +00:00
ericwa
f2fd7b10c2 Fix for delivery of rightMouseDragged: and otherMouseDragged: which were not working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30120 72102866-910b-0410-8b05-ffd578937521
2010-04-11 00:31:59 +00:00
theraven
3da9ac45b7 Lots of small tweaks to make -gui compile without warnings with clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30119 72102866-910b-0410-8b05-ffd578937521
2010-04-10 20:33:30 +00:00
theraven
3529a217e2 Expand RETAIN()/RELEASE() macros calling super (work around for clang PR6811).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30118 72102866-910b-0410-8b05-ffd578937521
2010-04-10 17:48:49 +00:00
fredkiefer
cec34abb20 Remove compiler warnings from clang.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30117 72102866-910b-0410-8b05-ffd578937521
2010-04-10 17:48:46 +00:00
jonathanosx
220882c69c Source/GSToolTips.m: Prevent Windows API callback from crashing when displaying tooltips.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30105 72102866-910b-0410-8b05-ffd578937521
2010-04-08 17:49:47 +00:00
fredkiefer
851b8ece4d Final set of #include -> #import replacement in additional headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30097 72102866-910b-0410-8b05-ffd578937521
2010-04-07 08:59:43 +00:00
fredkiefer
211d150a79 Remove some stupid compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30091 72102866-910b-0410-8b05-ffd578937521
2010-04-06 08:12:47 +00:00
fredkiefer
d4b51a7b63 Avoid compiler warnings from old compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30089 72102866-910b-0410-8b05-ffd578937521
2010-04-05 18:20:24 +00:00
dpsimons
b3bb898eba Fix problems with next key view chain
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30088 72102866-910b-0410-8b05-ffd578937521
2010-04-05 16:59:51 +00:00
dpsimons
d5c7b875c9 Fix crash caused by close being called recursively
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30087 72102866-910b-0410-8b05-ffd578937521
2010-04-05 16:07:46 +00:00
dpsimons
a6b0dc31cd fix problem with drawer window being shown prematurely
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30086 72102866-910b-0410-8b05-ffd578937521
2010-04-05 15:31:48 +00:00
fredkiefer
bee71b7d8b Final part of #include -> #import replacement in official headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30084 72102866-910b-0410-8b05-ffd578937521
2010-03-31 21:21:18 +00:00
fredkiefer
3d559c477e Yet another set of #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30083 72102866-910b-0410-8b05-ffd578937521
2010-03-31 08:14:50 +00:00
gcasa
025a72aaca * Source/NSTableView.m: Add nil check to make sure that the
nil values set for certain keys don't get set since they are
	normally set by connections later in the nib loading process. 
	I'm not sure why IB includes these when they're set to nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30082 72102866-910b-0410-8b05-ffd578937521
2010-03-31 04:02:03 +00:00
fredkiefer
e5373254e4 Use NSNibOwner instead of @"NSOwner". Remove the hard coded "gorm"
extension. Try to use higher level NIB loading methods where possible.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30077 72102866-910b-0410-8b05-ffd578937521
2010-03-30 07:54:04 +00:00
wlux
b69e5ffdbd Remove a stray semicolon, which made NSWindow ignore all GSAppKitWindowLeave
events. This was the cause for, e.g., somewhat too sticky tooltips.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30075 72102866-910b-0410-8b05-ffd578937521
2010-03-30 07:28:05 +00:00
wlux
615f8a31c0 Attempt to improve a possibly misleading comment about releasing top
level objects of a gorm/nib file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30074 72102866-910b-0410-8b05-ffd578937521
2010-03-30 07:09:44 +00:00
fredkiefer
1f85c0a65f This should have been in the previous commit instead of NSPasteboard.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30071 72102866-910b-0410-8b05-ffd578937521
2010-03-28 21:34:13 +00:00
fredkiefer
a3f75b271f Rewrite of top level object handling in NIB/Gorm/Xib loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30070 72102866-910b-0410-8b05-ffd578937521
2010-03-28 21:33:08 +00:00
wlux
6ffe3918e5 Implement additional NSResponder action methods to scroll to the
beginning and end of a document, respectively.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30057 72102866-910b-0410-8b05-ffd578937521
2010-03-27 22:03:34 +00:00
wlux
e23c76d028 Change move word forwoard to move to the next end of a word rather
than the beginning of the next word so users can quickly navigate to
either end of words.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30056 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:51:33 +00:00
wlux
d0a7bfda42 Usability improvements: When setting the cursor to the beginning of a
line, set the typing attributes to the attributes of the first character
of that line rather than the preceding newline. When deleting text, set
the typing attributes to those of the first deleted character rather
than those of the character preceding the deleted range.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30055 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:41:29 +00:00
wlux
21b251d643 Allow shift-clicking in a text view to shrink the current selection.
Comes handy when you accidentally selected a few characters too much.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30054 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:29:02 +00:00
wlux
3d5ef6c541 Select pasted text in a text view after a DnD operation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30053 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:17:00 +00:00
wlux
515f6d28de Show a document's represented file name in the title of its window
also when its display name is equal to the last path component of the
file name, since that is what NSDocument uses by default for
compatibility with OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30052 72102866-910b-0410-8b05-ffd578937521
2010-03-27 21:06:45 +00:00
wlux
6fe88f9e37 Extend lifetime of a window controller to the end of the current event
cycle when its window is closed to prevent crashes due to a premature
release after the latest nib loading changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30051 72102866-910b-0410-8b05-ffd578937521
2010-03-27 20:53:48 +00:00
theraven
14205ea54b Removed all uses of @defs() from -gui, so it now compiles cleanly with the non-fragile ABI. All ivars that must be accessed from other classes are now wrapped in PACKAGE_SCOPE. With clang, this expands to @package, with GCC it expands to @public.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30045 72102866-910b-0410-8b05-ffd578937521
2010-03-27 00:01:03 +00:00
rmottola
b06fb57e31 removed c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30041 72102866-910b-0410-8b05-ffd578937521
2010-03-26 00:10:45 +00:00
fredkiefer
c06bffe250 Some more #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30036 72102866-910b-0410-8b05-ffd578937521
2010-03-25 21:30:28 +00:00
fredkiefer
a82a10471f * Source/GSNibLoading.m (NSIBObjectData-nibInstantiateWithOwner:topLevelObjects:): Loop
over _names instead of _objects.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30035 72102866-910b-0410-8b05-ffd578937521
2010-03-25 20:41:06 +00:00
fredkiefer
9426e71556 Yet another bit of #include -> #import replacement. Replace includes of Foundation.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30034 72102866-910b-0410-8b05-ffd578937521
2010-03-25 09:11:50 +00:00
fredkiefer
c524f07ab6 Another bit of #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30033 72102866-910b-0410-8b05-ffd578937521
2010-03-24 22:41:21 +00:00
dpsimons
f158b0a047 use NSPanel instead of NSWindow for tooltips
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30030 72102866-910b-0410-8b05-ffd578937521
2010-03-24 17:14:34 +00:00
fredkiefer
9768ee6425 Next bit of #include -> #import replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30029 72102866-910b-0410-8b05-ffd578937521
2010-03-24 09:18:14 +00:00
fredkiefer
d2321f05c7 Change tag to NSInteger.
Patch by Anibal Rindisbacher <anibal784@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30026 72102866-910b-0410-8b05-ffd578937521
2010-03-23 21:26:24 +00:00
fredkiefer
a6880c0f99 * Source/NSTextContainer.m (-replaceLayoutManager:): Retain the
text storage while replacing the layout manager. See last patch.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30025 72102866-910b-0410-8b05-ffd578937521
2010-03-23 20:27:23 +00:00
fredkiefer
8561ca5047 Small improvements on XIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30023 72102866-910b-0410-8b05-ffd578937521
2010-03-23 07:15:17 +00:00
fredkiefer
6748c36979 Fix issues with last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30019 72102866-910b-0410-8b05-ffd578937521
2010-03-22 21:25:35 +00:00
fredkiefer
444b0fc6db Get the class NSNib to work and use it in NSBundleAdditions.
Restructure top level object handling for NIB loading.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30018 72102866-910b-0410-8b05-ffd578937521
2010-03-22 09:08:50 +00:00
fredkiefer
ec2ea1114d Workaround for Bean NIB loading issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30016 72102866-910b-0410-8b05-ffd578937521
2010-03-21 23:27:47 +00:00
ericwa
402a8fef59 Fix for NSSearchField not sending action messages during typing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30011 72102866-910b-0410-8b05-ffd578937521
2010-03-20 20:57:15 +00:00
fredkiefer
0e91a1f652 Small improvements to NIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30010 72102866-910b-0410-8b05-ffd578937521
2010-03-20 17:23:10 +00:00
fredkiefer
fa7360af1e Clean up includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30009 72102866-910b-0410-8b05-ffd578937521
2010-03-20 14:09:02 +00:00
jonathanosx
808f778c16 Don't attempt to add a nil sort descriptor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30005 72102866-910b-0410-8b05-ffd578937521
2010-03-19 23:39:07 +00:00
fredkiefer
c24eef3a7c Remove includes of GSCategories.h, as this file no longer exists.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30000 72102866-910b-0410-8b05-ffd578937521
2010-03-19 08:18:43 +00:00
fredkiefer
b6c4bb0066 * Source/NSBitmapImageRep+JPEG.m: Put cinfo into a defined state
before using it.
Patch by Vincent Richomme <forumer@smartmobili.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29998 72102866-910b-0410-8b05-ffd578937521
2010-03-18 08:36:28 +00:00
fredkiefer
8b4249dddd * Source/NSTextView.m (-readSelectionFromPasteboard:type:): Fix
potential memory leak for colour pasting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29992 72102866-910b-0410-8b05-ffd578937521
2010-03-17 09:36:19 +00:00
ericwa
6a14a009a2 NSSliderCell: implement circular sliders
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29985 72102866-910b-0410-8b05-ffd578937521
2010-03-17 00:18:30 +00:00
fredkiefer
bb364f992c Handle events of type flagschanged correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29978 72102866-910b-0410-8b05-ffd578937521
2010-03-16 09:15:54 +00:00
rfm
937ea133cb uninitialised var fix suggested by Anibal Rindisbacher <anibal784@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29970 72102866-910b-0410-8b05-ffd578937521
2010-03-15 21:26:06 +00:00
fredkiefer
ef8700cc8e Correct the decoding of the <bytes> element. Now colour are correct.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29964 72102866-910b-0410-8b05-ffd578937521
2010-03-15 13:10:05 +00:00
fredkiefer
60daf66eb6 Small keyed decoing improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29963 72102866-910b-0410-8b05-ffd578937521
2010-03-15 12:55:12 +00:00
fredkiefer
93e1163bde Retain teh text view not the layout manager during container replacement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29960 72102866-910b-0410-8b05-ffd578937521
2010-03-15 11:23:09 +00:00
fredkiefer
bbf6f7bd5e Better debug output plus minor improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29959 72102866-910b-0410-8b05-ffd578937521
2010-03-15 10:49:21 +00:00
ericwa
7352243ba7 NSOpenGLView: fix resising when loaded from nibs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29956 72102866-910b-0410-8b05-ffd578937521
2010-03-15 00:11:11 +00:00
fredkiefer
951bca9ec0 Add file for basic XIB loading. This is only partly working and will
need some more polishing and testing. Feel free to help with that.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29955 72102866-910b-0410-8b05-ffd578937521
2010-03-14 23:07:53 +00:00
espectador
15ad2b586f Added missing internationalisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29937 72102866-910b-0410-8b05-ffd578937521
2010-03-14 05:45:53 +00:00
espectador
13132c1620 Corrected the title of print panel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29934 72102866-910b-0410-8b05-ffd578937521
2010-03-14 05:06:10 +00:00
fredkiefer
46bba406d0 Add two Cocoa debug helper methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29924 72102866-910b-0410-8b05-ffd578937521
2010-03-13 15:17:21 +00:00
fredkiefer
8924d931c0 * Source/NSBundleAdditions.m (NSNibOutletConnector
-establishConnection): Undo the last change to this method, as
it should not retain the assign value.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29923 72102866-910b-0410-8b05-ffd578937521
2010-03-13 13:15:47 +00:00
dpsimons
860014e3a0 Set insertion point _after_ pasted text, don't select it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29916 72102866-910b-0410-8b05-ffd578937521
2010-03-12 23:38:30 +00:00
dpsimons
6c2256cdd3 fix behavior of simple click within selected text; optimize setNeedsDisplayInRect: when called with empty rect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29914 72102866-910b-0410-8b05-ffd578937521
2010-03-12 22:50:42 +00:00
dpsimons
2c5b219cd5 Call isFlipped rather than accessing flag directly (fixes a problem with view loaded from a nib)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29906 72102866-910b-0410-8b05-ffd578937521
2010-03-12 02:08:01 +00:00
wlux
6eaffce9ea Fix some optimistic coding in NSCell which was causing a crash in
AddressManager.app.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29904 72102866-910b-0410-8b05-ffd578937521
2010-03-11 18:43:15 +00:00
dpsimons
802665ebcc protect changedMessagesEnabled flag; update menus after modal session, key or main window change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29891 72102866-910b-0410-8b05-ffd578937521
2010-03-09 23:11:40 +00:00
rfm
f6b454e7e1 Fixes for bug #29085
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29864 72102866-910b-0410-8b05-ffd578937521
2010-03-07 08:28:11 +00:00
rfm
949deb4d7a make non-standard images persist oafter theme has unloaded, in case anything
in the gui is still using them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29851 72102866-910b-0410-8b05-ffd578937521
2010-03-05 10:43:40 +00:00
rfm
7f3482e73a Updates for changes in base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29839 72102866-910b-0410-8b05-ffd578937521
2010-03-05 05:18:39 +00:00
fredkiefer
3a1e3b1b35 Started cleanup of #includes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29833 72102866-910b-0410-8b05-ffd578937521
2010-03-04 10:12:13 +00:00
rfm
43a948acf5 Use standard -zone method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29824 72102866-910b-0410-8b05-ffd578937521
2010-03-03 17:33:29 +00:00
gcasa
1e25c52b89 * Headers/Additions/GNUstepGUI/GSTheme.h: Add category to allow
overriding of classes used for save/open panels.
	* Source/GNUmakefile: Build new category.
	* Source/GSThemeOpenSavePanels.m: Implementation of methods
	-savePanelClass and -openPanelClass.
	* Source/NSOpenPanel.m: Modifications to use class from current 
	theme.
	* Source/NSSavePanel.m: Modifications to use class from current 
	theme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29791 72102866-910b-0410-8b05-ffd578937521
2010-02-28 04:31:54 +00:00
rfm
b26c2b4df6 Fix error updating dynamic services
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29768 72102866-910b-0410-8b05-ffd578937521
2010-02-26 05:20:59 +00:00
gcasa
d3c4c5b0c7 Correction for crash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29760 72102866-910b-0410-8b05-ffd578937521
2010-02-26 03:39:24 +00:00
rmottola
cbad0e1027 fix c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29759 72102866-910b-0410-8b05-ffd578937521
2010-02-25 23:13:08 +00:00
rmottola
e4a081f773 revert accidental commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29758 72102866-910b-0410-8b05-ffd578937521
2010-02-25 21:56:34 +00:00
rmottola
d01fcd0e58 revert accidental commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29757 72102866-910b-0410-8b05-ffd578937521
2010-02-25 21:49:24 +00:00
rmottola
776d5aa982 fix c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29756 72102866-910b-0410-8b05-ffd578937521
2010-02-25 21:41:39 +00:00
jonathanosx
5c1cbe5755 Fix to prevent restoring an NSWindowFrame to a completely off-screen location.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29747 72102866-910b-0410-8b05-ffd578937521
2010-02-25 18:30:10 +00:00
rfm
12deec5de5 simplify and avoid compiler warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29733 72102866-910b-0410-8b05-ffd578937521
2010-02-25 09:08:35 +00:00
rfm
4ef6854ec2 tiny cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29718 72102866-910b-0410-8b05-ffd578937521
2010-02-24 13:48:44 +00:00
rfm
f93a32c846 add missing import of NSScreen.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29716 72102866-910b-0410-8b05-ffd578937521
2010-02-24 11:53:53 +00:00
fredkiefer
e845156611 Synchronise the title of a popup cell, when setting its object value.
This resolves an issue in SimpleAgenda. Perhaps this call needs to be
moved into one of the selection methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29713 72102866-910b-0410-8b05-ffd578937521
2010-02-24 09:32:35 +00:00
rmottola
8db14fce17 use controlColor to match cocoa behaviour
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29712 72102866-910b-0410-8b05-ffd578937521
2010-02-23 23:05:57 +00:00
wlux
f5dafed11d Fix NSButtonCell's -setImagePosition: to avoid resetting the button's
image or title. Neither of this is desirable as it prevents
temporarily hiding the image or title by changing the image
position. This makes the behavior of -setImagePosition: now fully
compatible with Mac OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29704 72102866-910b-0410-8b05-ffd578937521
2010-02-22 20:50:08 +00:00
jonathanosx
bcfbfe9fe8 Remove PNG is experimental log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29693 72102866-910b-0410-8b05-ffd578937521
2010-02-20 19:16:20 +00:00
fredkiefer
c6f8e27681 dopt to the fact that NSAffineTransform now uses a matrix of CGFloats.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29688 72102866-910b-0410-8b05-ffd578937521
2010-02-20 16:30:27 +00:00
fredkiefer
ed8ede43f0 Make the signatures of methods consistent between headers and implementation files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29687 72102866-910b-0410-8b05-ffd578937521
2010-02-20 13:21:57 +00:00
fredkiefer
a67707b682 Fix up teh includes to compile again after latest changes to base. Still
plenty of warnings and the result isn't working at least on 64 bit
machines :-(


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29685 72102866-910b-0410-8b05-ffd578937521
2010-02-20 10:40:44 +00:00
wlux
903272b7b4 Extend GSspell server to support multiple languages if aspell has
dictionaries for those languages installed.

Note: At present, users or an administrator must manually update the
Info.plist file of GSspell.service to really be able to use languages
besides American English. Hints for a better solution welcome.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29683 72102866-910b-0410-8b05-ffd578937521
2010-02-20 01:27:44 +00:00
wlux
3a8b974deb Make Spelling panel key only when necessary and fix browser attributes
in the panel's gorm file.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29682 72102866-910b-0410-8b05-ffd578937521
2010-02-20 00:38:40 +00:00
wlux
5515a56fd2 Usability improvement: Make color and font panels key only when
necessary. Avoids annoying and unnecessary focus shifts when changing
colors or fonts.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29681 72102866-910b-0410-8b05-ffd578937521
2010-02-20 00:20:30 +00:00
wlux
11d5564384 Add forgotten test to apply smart insert and delete during drag and
drop in a text view only when selection granularity is select by word.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29679 72102866-910b-0410-8b05-ffd578937521
2010-02-19 23:15:13 +00:00
gcasa
87c74dc4c2 * Source/NSWindow.m: Remove private menu - (void) _menuUpdate, since
it was causing performance issue on windows as the menu was updating
	each time through the runloop.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29668 72102866-910b-0410-8b05-ffd578937521
2010-02-18 22:19:27 +00:00
fredkiefer
b142ff7815 Start cleanup after big base change. Remove the usage of extension
methods.
New 10.5 methods on NSCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29656 72102866-910b-0410-8b05-ffd578937521
2010-02-17 09:58:38 +00:00
fredkiefer
3205cc4fcc Small improvements to allow changing of the text container for a text
view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29648 72102866-910b-0410-8b05-ffd578937521
2010-02-15 17:04:17 +00:00
wlux
90b24848cc Send messages from the Spelling panel down to the responder chain of the
main window only, to avoid spell checking the panel's own text field.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29640 72102866-910b-0410-8b05-ffd578937521
2010-02-15 11:44:03 +00:00
wlux
e541ba3bc3 Update the typing attributes of a rich text view also if the selected
range has a non-zero length. Fixes a problem where, e.g., corrections
from the spell panel could use wrong attributes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29635 72102866-910b-0410-8b05-ffd578937521
2010-02-15 07:57:11 +00:00
qmathe
7600520a7d Fixed GSAppKitDraggingDrop event to have a valid location
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29617 72102866-910b-0410-8b05-ffd578937521
2010-02-14 12:15:05 +00:00
ericwa
fd38c0849a * Source/NSMenu.m: Make the background color of NSMenuPanel clear
* Source/GSThemeDrawing.m:
in drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:,
when not using tiles, fill the background of the menu with
the window background color.
Now themes can draw semitransparent menus, and they work properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29600 72102866-910b-0410-8b05-ffd578937521
2010-02-13 03:24:19 +00:00
gcasa
f7fa51234e * Source/NSBrowser.m: Make sure that the matrix used in the
browser draws its cell backgrounds properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29598 72102866-910b-0410-8b05-ffd578937521
2010-02-13 00:42:13 +00:00
ericwa
fb11be2f73 Make NSMenuView return NO for isOpaque
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29596 72102866-910b-0410-8b05-ffd578937521
2010-02-13 00:07:57 +00:00
ericwa
23b37df715 Make the window border color customizable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29595 72102866-910b-0410-8b05-ffd578937521
2010-02-12 23:57:21 +00:00
ericwa
130f420011 NSColorWell themeing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29594 72102866-910b-0410-8b05-ffd578937521
2010-02-12 23:09:35 +00:00
ericwa
5aef4835fc Allow customization of window title text color for key/normal/main windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29593 72102866-910b-0410-8b05-ffd578937521
2010-02-12 22:19:40 +00:00
espectador
4aec81bc53 Search extra colors for the menu bar in the theme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29591 72102866-910b-0410-8b05-ffd578937521
2010-02-12 17:56:11 +00:00
wlux
bb6792671e Implement the NSText kill buffer. Ctrl-k and Ctrl-y in a text view now
work as under Emacs and OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29585 72102866-910b-0410-8b05-ffd578937521
2010-02-12 15:54:29 +00:00
wlux
f61bf18e28 Fix issue where the insertion point was not placed in an empty last
line of a text view when clicking with the mouse.
Fix issue where the insertion point was not placed in an empty last
line when using the down arrow key (bug #15893).
Fix issue where the insertion point was placed incorrectly if the last
line of a text view ends in an invisible character (e.g., a tab).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29584 72102866-910b-0410-8b05-ffd578937521
2010-02-12 15:27:02 +00:00
wlux
414b85653e Fix a whole bunch of potential crashers in NSAttributedString.m and
NSDocument.m where the error return parameter was written to without a
null pointer check.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29580 72102866-910b-0410-8b05-ffd578937521
2010-02-12 14:18:59 +00:00
ericwa
b6ac9d8830 * GSThemeDrawing.m: Move code in NSTableHeaderView which leaves a
1pt gap underneath table headers to GSThemeDrawing, since it only
looks decent with a NeXT-like theme. This fixes the
misalignment between the table corner and the table headers visible
in the Narcissus theme


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29567 72102866-910b-0410-8b05-ffd578937521
2010-02-12 06:59:12 +00:00
nicola
773af6ffc6 Removed obsolete manual dependency rules in gnustep-gui GNUmakefile.postamble
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29564 72102866-910b-0410-8b05-ffd578937521
2010-02-11 22:40:50 +00:00
nicola
b2ba810510 Minor tidy-ups of makefiles - removed some obsolete code and fixed a few typos
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29557 72102866-910b-0410-8b05-ffd578937521
2010-02-11 18:21:07 +00:00
nicola
6e56ce395a Do not try including GNUmakefile.local
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29554 72102866-910b-0410-8b05-ffd578937521
2010-02-11 17:53:42 +00:00
rmottola
d1ecd0f9e2 revert accidental commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29544 72102866-910b-0410-8b05-ffd578937521
2010-02-11 11:22:52 +00:00
rmottola
f324ec887f drawsBackground and drawsCellBackground default to NO, to match Cocoa behaviour (and improve theming)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29536 72102866-910b-0410-8b05-ffd578937521
2010-02-10 21:46:02 +00:00
rmottola
e536c19dce do not draw form background
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29534 72102866-910b-0410-8b05-ffd578937521
2010-02-10 11:14:21 +00:00
ericwa
6ab53887e7 Respond to horizontal scrolling in NSScrollView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29531 72102866-910b-0410-8b05-ffd578937521
2010-02-10 07:31:24 +00:00
dpsimons
c039b1fb67 Made drawers work (see ChangeLog for more details)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29530 72102866-910b-0410-8b05-ffd578937521
2010-02-10 00:58:29 +00:00
dpsimons
129f0cd597 Remove subviews AFTER next/previous key views have been cleaned up, in case any subviews were in the view chain
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29529 72102866-910b-0410-8b05-ffd578937521
2010-02-09 22:05:25 +00:00
rfm
57d07cbb6f Fix to return an immutable proxy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29520 72102866-910b-0410-8b05-ffd578937521
2010-02-09 09:14:14 +00:00
ericwa
7f52a1fd2a Draw window title bar with image tiles, if available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29504 72102866-910b-0410-8b05-ffd578937521
2010-02-07 22:09:32 +00:00
ericwa
e4b84cdeda Draw borders using image tiles, if available.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29503 72102866-910b-0410-8b05-ffd578937521
2010-02-07 21:42:50 +00:00
ericwa
3d1fb4f506 * Source/NSPopUpButtonCell.m (-selectItem:): Mark the previously
selected item as needing display. This fixes the 'popup' indicators
not being erased.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29502 72102866-910b-0410-8b05-ffd578937521
2010-02-07 21:15:06 +00:00
rmottola
b3037f8ad8 use proper class check instead of quick and dirty size check for flexible space property
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29500 72102866-910b-0410-8b05-ffd578937521
2010-02-07 18:41:04 +00:00
qmathe
43c76c02df Fixed table header/content random disappearance with unarchived table/outline
views.

NSTableView non-keyed unarchiving was not always initializing _columnOrigins.
NSScrollView keyed unarchiving was decoding non-encoded flags (the flags were 
thus initialized with random memory content).
See ChangeLog for detailed explanations.

Also added double action keyed archiving to NSTableView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29494 72102866-910b-0410-8b05-ffd578937521
2010-02-06 11:32:34 +00:00
gcasa
73c3db5f74 Added hasMenu and hasToolbar methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29489 72102866-910b-0410-8b05-ffd578937521
2010-02-05 21:30:29 +00:00
qmathe
613b3813bd Fixed button actions which were sent to the button itself when the target is
the first responder. We don't give anymore the first responder status to a 
button on a click.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29471 72102866-910b-0410-8b05-ffd578937521
2010-02-03 19:12:02 +00:00
ericwa
ec9518eb66 Fix NSStepperCell min/max clamping behaviour (same fix as the one to NSSliderCell I made a while ago)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29457 72102866-910b-0410-8b05-ffd578937521
2010-02-01 10:08:28 +00:00
ericwa
e42a857b66 Preliminary support for themeing the window resize bar with tiles.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29456 72102866-910b-0410-8b05-ffd578937521
2010-02-01 08:41:04 +00:00
ericwa
1e62a48e11 Add GSThemeDisabledState
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29455 72102866-910b-0410-8b05-ffd578937521
2010-02-01 08:26:40 +00:00
ericwa
feac9a489a Use theme tiles (if available) to draw progress bars.
New tile name: GSProgressIndicatorBarDeterminate


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29453 72102866-910b-0410-8b05-ffd578937521
2010-02-01 06:20:11 +00:00
ericwa
b2bc86196a * Source/GSThemeDrawing.m: Use theme tiles (if available)
to draw segmented controls, chosen based on the segment style constant,
and falling back to drawing buttons if the segment tiles are not
available.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29452 72102866-910b-0410-8b05-ffd578937521
2010-02-01 05:27:01 +00:00
ericwa
b6ff87adec Use theme tiles (if available) to draw menu backgrounds and items.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29447 72102866-910b-0410-8b05-ffd578937521
2010-01-30 05:00:29 +00:00
gcasa
94ea683223 * Headers/Additions/GNUstepGUI/GSTheme.h: Added new method
declaration for updateAllWindowsWithMenu:
	* Source/GSThemeMenu.m: Added default implementation of 
	updateAllWindowsWithMenu:
	* Source/NSMenu.m: Added call to updateAllWindowsWithMenu: on
	current theme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29445 72102866-910b-0410-8b05-ffd578937521
2010-01-30 03:11:56 +00:00
ericwa
f886235d70 Use theme tiles (if available) to draw table headers. New tile names are
GSTableHeader and GSTableCorner.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29444 72102866-910b-0410-8b05-ffd578937521
2010-01-29 22:21:34 +00:00
ericwa
d8b6bbe16b Use tiles for drawing scroller slots, if available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29443 72102866-910b-0410-8b05-ffd578937521
2010-01-29 20:55:24 +00:00
ericwa
2d68d4d027 Add support for looking up button tiles based on bezel style
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29441 72102866-910b-0410-8b05-ffd578937521
2010-01-29 08:08:10 +00:00
ericwa
773b43ab89 NSSegmentItem should be enabled by default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29437 72102866-910b-0410-8b05-ffd578937521
2010-01-29 03:19:36 +00:00
ericwa
af81f8a914 NSSegmentedCell themeing support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29435 72102866-910b-0410-8b05-ffd578937521
2010-01-29 03:11:43 +00:00
ericwa
b6dd322c45 Treat NSButtonCell's with a bezel style as being non-opaque
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29434 72102866-910b-0410-8b05-ffd578937521
2010-01-29 02:14:25 +00:00
ericwa
0f666924a3 Correct typo in NSTexturedRoundedBezelStyle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29432 72102866-910b-0410-8b05-ffd578937521
2010-01-28 23:33:08 +00:00
ericwa
5fa5e2a83b Factor out table header cell drawing into a new GSTheme method,
-drawTableHeaderCell:withFrame:inView:state:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29431 72102866-910b-0410-8b05-ffd578937521
2010-01-28 07:25:04 +00:00
ericwa
775d9caf51 Create a new GSTheme method for drawing the background of NSMenuView,
-drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29430 72102866-910b-0410-8b05-ffd578937521
2010-01-28 04:28:23 +00:00
ericwa
0614c779b0 Remove some accidentally committed code from r29416
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29429 72102866-910b-0410-8b05-ffd578937521
2010-01-28 01:40:35 +00:00
wlux
bb813d8ae7 Send -applicationShouldTerminateAfterLastWindowClosed: to the delegate
only after a short delay so that all observers can process the
NSWindowWillCloseNotification. This ensures that a modified document
associated with the closed window has been closed before -terminate:
is called and therefore the user isn't asked twice whether she wants
to save the unsaved changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29428 72102866-910b-0410-8b05-ffd578937521
2010-01-28 00:10:42 +00:00
wlux
4381015ec7 Don't touch icon positions when the icon manager is not used, so that
any icon placement performed by the user does not get lost when a
miniwindow is deminiaturized.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29427 72102866-910b-0410-8b05-ffd578937521
2010-01-27 23:43:41 +00:00
wlux
d1faa4b3b4 Implement smart insert and delete and use it when cutting, copying,
pasting, and deleting full words in a text view or text field.

Note: I have changed NSTextView initialization to enable smart insert
and delete by default, since this is the default on OS X. (It is even
documented, though in a maybe obscure place, cf. "Text Editing
Programming Guide for Cocoa: Subclassing NSTextView".)  However, this
means that support for this feature will be somewhat inconsistent.
Smart insert and delete is enabled for text views created
programmatically (including the field editor), but not for text views
loaded from existing nib files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29426 72102866-910b-0410-8b05-ffd578937521
2010-01-27 23:26:09 +00:00
ericwa
8369ad55c1 * Source/GSThemeDrawing.m (-buttonBorderForCell:style:state:):
Use the new contentRect when calculating the border for tiles


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29425 72102866-910b-0410-8b05-ffd578937521
2010-01-27 23:24:21 +00:00
ericwa
1ed115d842 * Source/GSThemeTools.m: Correct implementation of contentRectForRect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29424 72102866-910b-0410-8b05-ffd578937521
2010-01-27 23:17:37 +00:00
ericwa
8906ec7b22 Support for the padding box/content rect feature of Nine Patch theme tiles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29423 72102866-910b-0410-8b05-ffd578937521
2010-01-27 22:43:21 +00:00
fredkiefer
25a22d9fc9 Small clang compatibility patch by Niels Grewe
<niels.grewe@halbordnung.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29421 72102866-910b-0410-8b05-ffd578937521
2010-01-27 14:23:45 +00:00
fredkiefer
7a9c943bc4 Implementation of -rangeOfTextTable:atIndex: method on
NSAttributedString.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29420 72102866-910b-0410-8b05-ffd578937521
2010-01-27 14:10:38 +00:00
qmathe
05a3aad048 Added the possibility to customize the title view look and behavior in a theme
with a GSTitleView subclass.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29419 72102866-910b-0410-8b05-ffd578937521
2010-01-27 11:29:07 +00:00
qmathe
57cdb1250b Dispatch drag events with -[NSApp sendEvent:] and make each synthetized drag
event the current event in order to be consistent with Mac OS X behavior.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29418 72102866-910b-0410-8b05-ffd578937521
2010-01-27 11:21:13 +00:00
ericwa
471c112e9d * Source/NSView.m (-setHidden:): When hiding a view, we need to
call -setNeedsDisplay:YES on the superview, rather than self


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29417 72102866-910b-0410-8b05-ffd578937521
2010-01-27 08:31:19 +00:00
ericwa
384f64e87e * Source/NSView.m (-setHidden:): Fix un-hiding of hidden views, loaded
from nib's, with subviews. The subview coordinates just need to be
invalidated when the view is unhidden.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29416 72102866-910b-0410-8b05-ffd578937521
2010-01-27 07:40:54 +00:00
gcasa
48a4ef2ece * Source/NSWindow.m: Uncomment updateMenu:.. method call in
-[NSWindow update] method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29383 72102866-910b-0410-8b05-ffd578937521
2010-01-24 08:05:45 +00:00
ericwa
5c6e6f88c9 * Source/NSColorWell.m: Add a minimum distance which you need to
drag the color from a well before it is treated as a drag.
TODO: Unify this with the dragging threshold in other parts of
gui and make a user default called GSDragThreshold, maybe?



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29377 72102866-910b-0410-8b05-ffd578937521
2010-01-24 06:27:36 +00:00
ericwa
62a4f0dd3e * Source/GSWindowDecorationView.m: In drawRect:, clear the window
background before getting the theme to draw its background.
This makes windows with semitransparent background colors work
properly.
NOTE: While the clear operation is very fast, we may want to only do
it if the window background colour has an alpha value of < 1.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29376 72102866-910b-0410-8b05-ffd578937521
2010-01-24 05:06:33 +00:00
ericwa
dd093185eb * Source/NSMenuView.m: For horizontal menus, treat clicking in the
8 pixels of padding to the left of the first menu item as activating
the first menu item.
This lets you open the application menu with a Macintosh-syle
menu bar when the mouse is on the top-left pixel of the screen.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29375 72102866-910b-0410-8b05-ffd578937521
2010-01-24 00:08:32 +00:00
gcasa
3daab3781d Update menu code and set menu on window creation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29373 72102866-910b-0410-8b05-ffd578937521
2010-01-23 23:41:07 +00:00
rmottola
13e9913ec8 do not process GSAppKitWindowLeave events for closed windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29332 72102866-910b-0410-8b05-ffd578937521
2010-01-20 14:58:59 +00:00
gcasa
e65a790956 Correct problem with popups in windows 95 mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29314 72102866-910b-0410-8b05-ffd578937521
2010-01-19 18:48:00 +00:00
fredkiefer
5bc41a34b0 Use YES as default value for AutoenablesItems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29312 72102866-910b-0410-8b05-ffd578937521
2010-01-19 08:34:24 +00:00
rmottola
7268a24443 make extension checking case insensitive
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29310 72102866-910b-0410-8b05-ffd578937521
2010-01-17 23:37:11 +00:00
gcasa
20283d50fd * Source/NSWindow.m: Temporarily revert previous change for debugging.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29302 72102866-910b-0410-8b05-ffd578937521
2010-01-17 06:01:58 +00:00
qmathe
b5d13a91db Fixed sort direction stuck to the reverse of the sort descriptor prototype
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29298 72102866-910b-0410-8b05-ffd578937521
2010-01-16 22:43:31 +00:00
qmathe
ec403f1296 Rewrote _selectColumn:modifiers: to be simpler, support selection by range as
Cocoa does, and remove the toggle selection behavior when a column is clicked 
twice (in conflict with the ability to change the sort direction).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29296 72102866-910b-0410-8b05-ffd578937521
2010-01-16 20:29:59 +00:00
gcasa
83dac5cfec * Source/NSWindow.m: Don't use the flags for key/main window tracking.
These flags are getting out of sync due to different behavior on
	different backends.  Also, it's better to keep the state in one place
	instead of keeping them in sync.  I changed all of the instances of
	_f.is_key to [self isKeyWindow] and all of the instances of _f.is_main
	to [self isMainWindow] and those methods now check with NSApp to 
	determine if the current window is main.   I realize this is slower
	than the previous method of using flags, but it is also more resilient
	and reliable when the backend sends extra events.  This corrects the
	issue on Windows where we were losing the main window and had two 
	windows marked as "main".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29295 72102866-910b-0410-8b05-ffd578937521
2010-01-16 19:56:27 +00:00
qmathe
239eec74dc Finished to implement the NSTable/OutlineView sort descriptor support.
More changes are needed to get proper sorting support (e.g. visual feedback).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29293 72102866-910b-0410-8b05-ffd578937521
2010-01-16 14:45:13 +00:00
espectador
fd57feed5b Fixed bug #28580
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29292 72102866-910b-0410-8b05-ffd578937521
2010-01-16 05:22:02 +00:00
gcasa
df93c9277b * Headers/Additions/GNUstepGUI/GSTheme.h: Added method to call
back menuHeightForWindow:
	* Source/GSThemeMenu.m: Added default implementation of 
	menuHeightForWindow:.  Default implementation returns NSMenuView
	menuBarHeight.
	* Source/GSWindowDecorationView.m: Use menuHeightForWindow: instead
	of getting it directly from the menu view.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29288 72102866-910b-0410-8b05-ffd578937521
2010-01-15 18:10:04 +00:00
dpsimons
6d057abc84 Raise an exception instead of crashing (at least on Windows) when we fail to obtain a window from the back end.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29284 72102866-910b-0410-8b05-ffd578937521
2010-01-14 23:57:11 +00:00
gcasa
c36c29e8ff * Source/NSApplication.m: For hide: perform miniaturizeAll:
on Windows, since hiding the app causes it to be inaccessible on 
	that platform.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29281 72102866-910b-0410-8b05-ffd578937521
2010-01-14 12:06:35 +00:00
gcasa
2f3f77f8bd * Source/NSToolbarFrameworkPrivate.h: Correct include for new
location of GSWidnowDecorationView.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29278 72102866-910b-0410-8b05-ffd578937521
2010-01-14 09:04:45 +00:00
gcasa
26109fa49c * Source/GSWindowDecorationView.h: Removed from here since I moved
it to the GNUstepGUI headers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29277 72102866-910b-0410-8b05-ffd578937521
2010-01-14 08:16:44 +00:00
gcasa
dcea95cb77 * Headers/Additions/GNUstepGUI/GSTheme.h: Added methods
to support adding menus and processing commands from windows, if
       appropriate.
       * Headers/Additions/GNUstepGUI/GSWindowDecorationView.h: Added
       new methods for menu and toolbar flags.
       * Headers/AppKit/NSInterfaceStyle.h: Added new interface style.
       * Source/GNUmakefile: Added header.
       * Source/GSStandardWindowDecorationView.m: Change include
       to include header in new location.
       * Source/GSThemeMenu.m: Default theme implementation for
       Menus.
       * Source/GSWindowDecorationView.m: Add the setHasMenu:/setHasToolbar:
       flags.
       * Source/NSWindow.m: Use the theme to set the menu instead of
       setting it directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29271 72102866-910b-0410-8b05-ffd578937521
2010-01-13 20:51:30 +00:00
wlux
5736f119e9 Ensure proper working of autosaving for NSDocument subclasses that
override -writeWithBackupToFile:ofType:saveOperation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29267 72102866-910b-0410-8b05-ffd578937521
2010-01-11 21:26:12 +00:00
wlux
31586c0e6f Fix incorrect assignment in NSProgressIndicator -setDisplayedWhenStopped:
which made that method a no-op.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29266 72102866-910b-0410-8b05-ffd578937521
2010-01-11 21:15:54 +00:00
qmathe
a825d81220 Fixed broken cell editability in outline views by replicating NSTableView
changes r25091.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29264 72102866-910b-0410-8b05-ffd578937521
2010-01-11 14:04:44 +00:00
fredkiefer
7efba8c5a4 Better handling of text attachtment. Fixes bug #28464
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29260 72102866-910b-0410-8b05-ffd578937521
2010-01-11 12:32:27 +00:00
wlux
56dd03f899 Fix a bug that prevented changing the color of the selected text of a
text view via drag and drop.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29250 72102866-910b-0410-8b05-ffd578937521
2010-01-09 09:09:57 +00:00
rmottola
4a2f89d5e6 init scrollerWidth to 0.0, so that GSTheme can properly override it
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29237 72102866-910b-0410-8b05-ffd578937521
2010-01-08 17:58:08 +00:00
gcasa
51a01681c5 * Source/NSMenu.m: Do not show the menu at the top of the screen in
NSWindows95InterfaceStyle mode. 

	NOTE: This is the first half of the commits for the in-window menu
	changes.  The next change will entail regenerating the menu for each
	window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29210 72102866-910b-0410-8b05-ffd578937521
2010-01-05 08:37:44 +00:00
gcasa
acc5451a23 * Source/GSWindowDecorationView.[hm]: Addition of ivars to track
if a toolbar or menu is present in the window decorations.  Modified
	code to set these to YES/NO.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29203 72102866-910b-0410-8b05-ffd578937521
2010-01-04 05:24:37 +00:00
rmottola
cf31b51198 When adding a toolbar take in account the possibly existing in-window menu. WHen removing the in-window menu take care of shifting the toolbar view up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29202 72102866-910b-0410-8b05-ffd578937521
2010-01-04 01:43:05 +00:00
espectador
d8ddbef28a Added missing internationalisation (now is completed) and more strings in spanish
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29201 72102866-910b-0410-8b05-ffd578937521
2010-01-04 01:41:31 +00:00
espectador
a7465998ed Added missing internationalisation and more strings in spanish
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29198 72102866-910b-0410-8b05-ffd578937521
2010-01-03 22:27:01 +00:00
espectador
18ccb39873 Added missing internationalisation and more strings in spanish
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29197 72102866-910b-0410-8b05-ffd578937521
2010-01-03 21:38:44 +00:00
espectador
1f90f3e40f Added missing internationalisation and more strings in spanish
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29196 72102866-910b-0410-8b05-ffd578937521
2010-01-03 19:22:04 +00:00
espectador
f14fae5c48 Added missing internationalisation and more strings in spanish
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29195 72102866-910b-0410-8b05-ffd578937521
2010-01-03 18:35:25 +00:00
espectador
d42de53b15 Add missing internationalization and more localizable strings in spanish
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29193 72102866-910b-0410-8b05-ffd578937521
2010-01-03 04:41:36 +00:00
fredkiefer
d83d3676c3 Add missing internationalisation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29189 72102866-910b-0410-8b05-ffd578937521
2010-01-02 17:09:11 +00:00
ericwa
a180f7e40f Add dummy NSShadow implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29188 72102866-910b-0410-8b05-ffd578937521
2010-01-01 04:45:23 +00:00
fredkiefer
028f8b2698 Clean up and addition of cut/copy/paste methods, based on code
by Nikolaus Schaller <hns@computer.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29178 72102866-910b-0410-8b05-ffd578937521
2009-12-29 11:24:01 +00:00
qmathe
6dd84b196f Added -columnIndexesInRect: and updated documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29175 72102866-910b-0410-8b05-ffd578937521
2009-12-27 16:05:48 +00:00
rmottola
55a070b567 corrected multi-line string constant
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29167 72102866-910b-0410-8b05-ffd578937521
2009-12-26 21:14:50 +00:00
rmottola
3d507957df removed c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29166 72102866-910b-0410-8b05-ffd578937521
2009-12-26 10:43:09 +00:00
wlux
5d4d22c18f Prevent a crash when -selectedRange is called for an NSTextView
without a layout manager.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29165 72102866-910b-0410-8b05-ffd578937521
2009-12-23 01:01:57 +00:00
wlux
d1b4561211 Implement coalescing of undo actions for typing events in NSTextView.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29164 72102866-910b-0410-8b05-ffd578937521
2009-12-23 00:39:18 +00:00
wlux
b16ee73226 Fix incorrect assignment in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29162 72102866-910b-0410-8b05-ffd578937521
2009-12-22 23:27:56 +00:00
wlux
bd09833337 Usability improvement: A single click into a cell of an unselected row
of a table view now can change the cell's state even when the table
view allows dragging.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29161 72102866-910b-0410-8b05-ffd578937521
2009-12-22 23:21:40 +00:00
gcasa
0371e4e2ce Corrected documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29160 72102866-910b-0410-8b05-ffd578937521
2009-12-22 22:29:41 +00:00
wlux
f17e5bb858 Use the first responder's undo manager in an NSWindow's undo: and
redo: actions if available. Avoids the need for overriding these
methods in any responder class which supports undo/redo and is
compatible with OS X.
Generalize user interface validation for NSWindow.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29158 72102866-910b-0410-8b05-ffd578937521
2009-12-22 00:14:16 +00:00
wlux
bac9319cc7 If the message text of an alert panel is too wide to fit into the
panel wrap its text to the scroll view's width. Limit the width and
height of alert panels to 60% of the screen's width and height
respectively.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29157 72102866-910b-0410-8b05-ffd578937521
2009-12-21 23:44:44 +00:00
wlux
525ed00081 Fix bug where an NSScrollView incorrectly claimed to be opaque while
its clip view is not.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29156 72102866-910b-0410-8b05-ffd578937521
2009-12-21 23:01:23 +00:00
wlux
9a2f82232f Reset the current selection of an NSOpenPanel when directory selection
is disabled. This prevents bogus directories being returned from the
next modal session of the panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29155 72102866-910b-0410-8b05-ffd578937521
2009-12-21 22:55:01 +00:00
wlux
3e74bde70f Reset the allowsOtherFileTypes NSSavePanel attribute to its default
when a fresh save panel is requested.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29154 72102866-910b-0410-8b05-ffd578937521
2009-12-21 22:45:57 +00:00
fredkiefer
138604f74e Patch by German Arias <german@xelalug.org>.
Allows to get icon placement from separate process.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29153 72102866-910b-0410-8b05-ffd578937521
2009-12-21 17:27:56 +00:00
ericwa
a2c57254c5 NSColorWell: Draw a black-and-white pattern behind transparent color swatches.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29152 72102866-910b-0410-8b05-ffd578937521
2009-12-21 04:09:35 +00:00
ericwa
a6e6810aa5 -[GSRGBColor isEqual:] was ignoring the alpha component when determining equality.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29151 72102866-910b-0410-8b05-ffd578937521
2009-12-21 03:39:46 +00:00
ericwa
cd133a2b57 Finish NSColorWell interaction tweaks:
- activation of the now happens on mouseUp, not mouseDown
- non-bordered NSColorWells can't be activated by clicking
- non-bordered NSColorWells start a drag operation upon mouseDown
- disabled NSColorWells don't accept colours being dropped on them
- dropping a colour on the well inside the NSColorPanel now
  also updates the active NSColorWell
Also moved the static variable for keeping track of where the mouseDown
occurred to an instance variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29150 72102866-910b-0410-8b05-ffd578937521
2009-12-21 00:31:24 +00:00
fredkiefer
541b9309de Add the keyed encoding/decoding code for Quentin's extensions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29149 72102866-910b-0410-8b05-ffd578937521
2009-12-20 23:28:05 +00:00
ericwa
49ce5f2c70 * Source/NSSliderCell.m: Some more changes to NSSliderCell to get
BezierPathLab working, and a test suite in
 tests/testsuite/gui/NSSliderCell. Set the doubleValue to 0 in -init,
 unarchive the @"NSValue" key and set the floatValue to it when
 unarchiving, adjust setObjectValue: so that when minValue > maxValue,
 the slider cell takes its value to be minValue.
 Also override setContinuous: and isContinuous to use
 NSLeftMouseDraggedMask rather than NSPeriodicMask, which makes
 the continuous setting of sliders in Nibs work properly in GNUstep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29148 72102866-910b-0410-8b05-ffd578937521
2009-12-20 22:21:40 +00:00
ericwa
b3d818cf84 Cairo backend:
-DPSsetflat: and -DPScurrentflat should not have been transforming
the flatness value with the current transformation matrix.
The effect of this could be seen in the Apple BezierPathLab example;
zooming in on the circle caused it to look more and more like a
polygon.

Also set NSBezierPath default flatness to 0.6 to match OS X
(it was 1.0, which made circles look a bit rough)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29145 72102866-910b-0410-8b05-ffd578937521
2009-12-20 18:47:26 +00:00
fredkiefer
32d83a1422 Cleaned up implementation of NSButtonCell title setting. This allowed to
remove special case from NSCell setString:.
Removed unneeded NSSliderCell methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29142 72102866-910b-0410-8b05-ffd578937521
2009-12-19 23:05:48 +00:00
fredkiefer
f7a09c739b First attempt at implemtning these classes. Code mostly by Nikolaus
Schaller <hns@computer.org>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29141 72102866-910b-0410-8b05-ffd578937521
2009-12-19 22:35:06 +00:00
theraven
d88a5650fa * Source/NSSliderCell.m:
Rework the handling of maxValue and minValue. The cell's value is now
clamped to the permisible range when it is set, rather than in
floatValue, matching OS X behaviour. setMinValue: and setMaxValue:
also clamp the current value.
Also make NSSliderCell continuous by default when unarchived (matches
OS X).

Patch by Eric Wasylishen!
(Please someone give him commit access)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29139 72102866-910b-0410-8b05-ffd578937521
2009-12-19 00:05:52 +00:00
qmathe
78dcbb6c4e Corrected table view to support drop on root with -1 as the drop row (as
explained in the Cocoa documentation).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29137 72102866-910b-0410-8b05-ffd578937521
2009-12-17 13:51:40 +00:00
wlux
406fe08ad8 Prevent division by zero exception if a theme has no images for a
spinning or indeterminate progress indicator.
Ensure that a running animation is stopped when an indeterminate
indicator is changed into a determinate one.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29136 72102866-910b-0410-8b05-ffd578937521
2009-12-17 02:36:22 +00:00
wlux
f670165fc2 Fix bug where the field editor of an edited combo box cell overlaps
the cell's ellipsis button.
Fix bug where the pop up window of a combo box might stay open when
the user leaves the combo box with the keyboard.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29135 72102866-910b-0410-8b05-ffd578937521
2009-12-17 02:21:56 +00:00
wlux
00fb50716f Phase out the wraps NSCell attribute, since it is implied by the
lineBreakMode attribute. Note that with this change cells now wrap by
default, as has always been the case on OS X.
Also fix a related inconsistency where text that is wrapped by the
cell was displayed in a single line during editing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29134 72102866-910b-0410-8b05-ffd578937521
2009-12-17 01:49:20 +00:00
wlux
68b0f819f2 Fix various issues when drawing controls with edited cells. This
includes a fix for the problem of properly resizing and redrawing the
editor when the cell is resized or moved during editing (bug #22678).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29133 72102866-910b-0410-8b05-ffd578937521
2009-12-17 01:03:07 +00:00
wlux
82aee08d88 Change drawing of text field cells so that they can display multiple
lines of text.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29132 72102866-910b-0410-8b05-ffd578937521
2009-12-16 22:25:59 +00:00
wlux
42a97f5908 Do better job on validating the OK button of the Open panel. Replaces
the previous "fix" for bug #25471, which made it impossible to use the
open panel for choosing directories (except by entering a fake file
name into the panel) and actually did not fix that bug other than by
coincidence.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29129 72102866-910b-0410-8b05-ffd578937521
2009-12-15 23:56:51 +00:00
wlux
44c81fa9a7 Fix NSBrowser so that branch cells are really deselected when multiple
selection is enabled and allowsBranchSelection is set to NO. Also
replace the workaround for bug #18881 by a better fix.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29128 72102866-910b-0410-8b05-ffd578937521
2009-12-15 23:21:16 +00:00
wlux
e93f94e5ab Avoid a bogus warning that was shown when a Save panel requires a file
type extension and the user has entered a file name without an
extension. In addition fix the filename method so that setting
allowsOtherFileTypes to YES works as advertised.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29126 72102866-910b-0410-8b05-ffd578937521
2009-12-15 22:52:40 +00:00
rmottola
39a91b9021 removed c99-isms
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29125 72102866-910b-0410-8b05-ffd578937521
2009-12-15 22:22:01 +00:00
fredkiefer
d96753d9dc Another patch by Eric Wasylishen correcting the GSThemeTools tile
rectangles.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29121 72102866-910b-0410-8b05-ffd578937521
2009-12-14 14:02:09 +00:00
fredkiefer
b712698565 Apply patch by Eric Wasylishen to correct the orientation of colorAtX:y:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29120 72102866-910b-0410-8b05-ffd578937521
2009-12-14 13:26:26 +00:00
rmottola
288ce81a3b Only add windows that are either visible or miniaturized.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29117 72102866-910b-0410-8b05-ffd578937521
2009-12-12 10:10:40 +00:00
gcasa
39bc8c324a * Source/GSNibLoader.m: Added logging to help debugging of issues
with nib loading.
	* Source/NSTextContainer.m: -[NSTextContainer initWithCoder:]
	removed call to unarchive the textview to prevent a leak.  Also
	don't set the textview as the text container.   Currently we 
	just get the contents of the text container and rebuild it
	in NSTextView.m.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29116 72102866-910b-0410-8b05-ffd578937521
2009-12-11 18:12:46 +00:00
qmathe
3e5a1cefaa Added NSWindow 'title' binding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29113 72102866-910b-0410-8b05-ffd578937521
2009-12-10 12:43:35 +00:00
qmathe
30108b6069 Fixed missing release in -dealloc for _sortDescriptorPrototype ivar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29108 72102866-910b-0410-8b05-ffd578937521
2009-12-08 17:07:25 +00:00
qmathe
338b54de3c Added all the new table column methods and constants up to Mac OS X 10.6.
These new additions remain to be fully implemented and the archiving code to be 
updated.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29107 72102866-910b-0410-8b05-ffd578937521
2009-12-08 17:01:01 +00:00
hansfbaier
41a2059174 * Source/NSColorWell.m (-mouseDragged:, -mouseDown:): Applied patch from Eric Wasylishen to activate it on click inside the colored rectangle (same behavior as in OS X)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29106 72102866-910b-0410-8b05-ffd578937521
2009-12-08 07:55:39 +00:00
qmathe
f6a61569fa Fixed drop above indicator when the insertion level doesn't match the previous
row and is based on the horizontal pointer position.

NSOutlineView drag and drop behavior matches Mac OS X very closely now and all 
the bugs I was aware of have been corrected.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29103 72102866-910b-0410-8b05-ffd578937521
2009-12-06 01:36:26 +00:00
qmathe
cd86476602 Modified the drag code to call -canDragRowsWithIndexes:atPoint: as expected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29100 72102866-910b-0410-8b05-ffd578937521
2009-12-05 23:22:39 +00:00
qmathe
9d999d0f79 Further simplified outline view drag and drop code and wrote detailed documentation.
Added drop on root indicator support.
Fixed exception with auto-expand and root area.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29098 72102866-910b-0410-8b05-ffd578937521
2009-12-05 18:28:45 +00:00
rfm
099af210a3 minor simplification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29088 72102866-910b-0410-8b05-ffd578937521
2009-12-01 09:53:54 +00:00
rfm
8d0b8c6fbc Make outline view DnD fully functioual.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29083 72102866-910b-0410-8b05-ffd578937521
2009-11-30 18:56:51 +00:00
rfm
b70463270b First hack at expand/collapse as we drag over expandable items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29082 72102866-910b-0410-8b05-ffd578937521
2009-11-29 18:02:06 +00:00
wlux
0840e3b3dc Fix bug where NSView's -dealloc could break the key view chain.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29081 72102866-910b-0410-8b05-ffd578937521
2009-11-29 14:25:54 +00:00
wlux
ef0b67bc70 Present a warning when the user enters a filename with a wrong
extension in NSSavePanel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29080 72102866-910b-0410-8b05-ffd578937521
2009-11-29 14:07:29 +00:00
rfm
9af6ab1c95 improve display
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29079 72102866-910b-0410-8b05-ffd578937521
2009-11-29 13:51:15 +00:00
rfm
72b65076d7 remove misleading comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29078 72102866-910b-0410-8b05-ffd578937521
2009-11-29 07:35:06 +00:00
rfm
5208c44f6e Fix removal of quit item from info menu
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29077 72102866-910b-0410-8b05-ffd578937521
2009-11-28 17:31:24 +00:00
rfm
1181b02b98 improve menu loading
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29076 72102866-910b-0410-8b05-ffd578937521
2009-11-28 15:48:59 +00:00
rfm
f71f876d17 Fix storing of splitter locations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29072 72102866-910b-0410-8b05-ffd578937521
2009-11-27 09:22:57 +00:00
rfm
82d1ada3dc fix drawing bug when number of rows decreases
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29065 72102866-910b-0410-8b05-ffd578937521
2009-11-26 20:33:44 +00:00
wlux
97d1907a52 Avoid writing back an unchanged string to the cell's field editor.
Fix bug where an attributed string would not be considered a valid
object value of a cell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29059 72102866-910b-0410-8b05-ffd578937521
2009-11-24 23:53:58 +00:00
wlux
3d4e46d962 Merge bug fix from Doug Simons to trunk.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29058 72102866-910b-0410-8b05-ffd578937521
2009-11-24 23:30:45 +00:00
theraven
ef47f509c2 Made GSTheme implement fast forwarding. Should speed things up a lot with the new ABI.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29052 72102866-910b-0410-8b05-ffd578937521
2009-11-23 23:13:26 +00:00
theraven
7f29857b51 ... and the same change in NSResponder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29051 72102866-910b-0410-8b05-ffd578937521
2009-11-23 23:06:00 +00:00
theraven
c5578bd178 Replaced two superfluous NSInvocation construction occurrences with direct calls to the IMP in question. According to Riccardo 'it is really snappier in most user operations'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29050 72102866-910b-0410-8b05-ffd578937521
2009-11-23 23:01:23 +00:00
rfm
9b1b4de952 revert accidental change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29045 72102866-910b-0410-8b05-ffd578937521
2009-11-20 13:43:02 +00:00
rfm
e954a93ff3 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29044 72102866-910b-0410-8b05-ffd578937521
2009-11-20 13:36:46 +00:00
rfm
b2bd0b411e tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29043 72102866-910b-0410-8b05-ffd578937521
2009-11-20 12:55:57 +00:00
rfm
2211c22d20 Support overriding of methods in any class by the theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29042 72102866-910b-0410-8b05-ffd578937521
2009-11-20 12:13:10 +00:00
rfm
e901475983 api cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29039 72102866-910b-0410-8b05-ffd578937521
2009-11-19 20:37:43 +00:00
rfm
3777fc7194 theming cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29024 72102866-910b-0410-8b05-ffd578937521
2009-11-16 14:28:11 +00:00
fredkiefer
f8a1d4528a Clean up for NSSlider and NSSliderCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29022 72102866-910b-0410-8b05-ffd578937521
2009-11-16 12:26:38 +00:00
fredkiefer
196917f012 Attempt to correct side effect of last NSActionCell change.
Small cleanup in NSCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29020 72102866-910b-0410-8b05-ffd578937521
2009-11-16 11:40:14 +00:00
fredkiefer
0e3c026363 Move the validateUserIntefaceItem back to NSTextView.m
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29019 72102866-910b-0410-8b05-ffd578937521
2009-11-16 11:17:20 +00:00
fredkiefer
a1d035a26e Remove validateUserIntefaceItem:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29018 72102866-910b-0410-8b05-ffd578937521
2009-11-15 18:20:57 +00:00
fredkiefer
e6b676615b Merge changes from Doug Simons to trunk.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29017 72102866-910b-0410-8b05-ffd578937521
2009-11-15 18:04:17 +00:00
wlux
bf0766fd29 Improve key view loop processing by always shifting keyboard focus to
the next and previous key view, respectively, upon receving Ctrl-Tab
and Ctrl-Shift-Tab keyboard events.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29013 72102866-910b-0410-8b05-ffd578937521
2009-11-14 22:45:23 +00:00
wlux
d001ff8961 Implement menu and user interface item validation for NSTextView. The
list of validated actions is incomplete but at least includes all
items from a standard Edit menu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29012 72102866-910b-0410-8b05-ffd578937521
2009-11-14 22:25:22 +00:00
wlux
b34a156dd0 Fix NSActionCell implementation so that -setObjectValue: and
-setStringValue: have an effect while the cell is edited.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29010 72102866-910b-0410-8b05-ffd578937521
2009-11-14 22:15:31 +00:00
hansfbaier
7562076324 Source/GSThemeDrawing.m: fix bug introduced in last commit (progress bar fills the whole area)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29004 72102866-910b-0410-8b05-ffd578937521
2009-11-14 03:52:59 +00:00
hansfbaier
2dd44b877b Factor out drawing of progress indicator's bezel and bar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29003 72102866-910b-0410-8b05-ffd578937521
2009-11-14 03:46:00 +00:00
hansfbaier
a6ac9e24c7 make the arrow image in NSMenuItemCell themeable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29001 72102866-910b-0410-8b05-ffd578937521
2009-11-14 02:56:29 +00:00
fredkiefer
81a8907f45 Fix small bug in last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28996 72102866-910b-0410-8b05-ffd578937521
2009-11-13 07:51:58 +00:00
rfm
c5a5827272 fix copy/dealloc of named images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28993 72102866-910b-0410-8b05-ffd578937521
2009-11-12 12:44:40 +00:00
fredkiefer
82e0d9ae48 Small changes to NSWindow.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28992 72102866-910b-0410-8b05-ffd578937521
2009-11-12 09:05:22 +00:00
fredkiefer
637f46436a Move initialisation and drawing of progress indicator into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28987 72102866-910b-0410-8b05-ffd578937521
2009-11-09 20:15:36 +00:00
fredkiefer
5f4d9c01cc Move the colour well border drawing into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28986 72102866-910b-0410-8b05-ffd578937521
2009-11-09 18:00:54 +00:00
fredkiefer
48bf51f21c Move corner view drawing into GSTheme.
Add new 10.3 methods for NSTableHeaderCell.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28985 72102866-910b-0410-8b05-ffd578937521
2009-11-09 14:53:59 +00:00
fredkiefer
6f96e84bc6 Move stepper drawing code into GSTheme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28983 72102866-910b-0410-8b05-ffd578937521
2009-11-09 13:01:48 +00:00