Commit graph

4430 commits

Author SHA1 Message Date
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