Commit graph

5423 commits

Author SHA1 Message Date
fredkiefer
5cee71869b * Source/NSToolbarFrameworkPrivate.h,
* Source/GSToolbarView.m,
* Source/NSToolbar.m: Minor changes to format code, remove unused
methods and introduce some new helper methods.
2020-12-06 22:10:13 +01:00
fredkiefer
59b4b15f7e Merge branch 'master' of github.com:gnustep/libs-gui
# Conflicts:
#	ChangeLog
2020-11-29 23:08:15 +01:00
fredkiefer
6e417da18e * Source/NSMenuView.m (-mouseDown:): Protect against _window going
away during tracking.
2020-11-29 23:04:50 +01:00
Riccardo Mottola
b7f5fb2edf Use standard setMenu: in release and avoid leaking the Menu. 2020-11-24 00:29:10 +01:00
Riccardo Mottola
7b819af623 Support greyscape output colorspace in JPEG decompression, fix Alpha output do NO, since JPEGs do not support it. 2020-11-03 01:57:34 +01:00
fredkiefer
36772d25a1 * Source/NSTableView.m (-validateEditing): Reset _isValidating on
intermediate return.
Patch by Andreas Höschler <ahoesch@smartsoft.de>.
2020-10-18 23:52:19 +02:00
fredkiefer
4b42583379 * Source/NSColor.m: Protect against theme colour list missing out
on default colours.
2020-10-04 22:39:39 +02:00
fredkiefer
8f46157e16 * Source/GSToolTips.m: Revert bogus last commit. 2020-09-14 23:21:52 +02:00
Gregory John Casamento
351712efb2 Add changelog 2020-09-12 20:10:33 -04:00
fredkiefer
4cb2b0693f * Source/NSTextView.m (-initWithCoder:): Make sure text container is
in sync with the text view resize behaviour.
* Source/NSScrollView.m (-initWithCoder:): Add scrollers as
subviews when decoded.
2020-09-12 21:59:16 +02:00
fredkiefer
c39b49c0d2 * Source/GSLayoutManager.m
+	(-glyphRangeForCharacterRange:actualCharacterRange:): Handle zero
+	length charRagne at end of text correctly.
2020-09-11 22:11:31 +02:00
fredkiefer
6832eaf1c4 * Source/GSXib5KeyedUnarchiver.m (-decodeCellPrototypeForElement:): Fix misuse of setType:. 2020-09-07 17:38:21 +02:00
Gregory John Casamento
25d186af6b Add changelog 2020-08-21 15:31:28 -04:00
fredkiefer
16071b1b10 Fix compiler warnings mit gcc. 2020-08-07 19:44:13 +02:00
Gregory John Casamento
3322db37c2 NSStatusBarButton implementation 2020-07-31 02:40:41 -04:00
Gregory John Casamento
bf9513411d Reformat changelog a little. Remove nc to fix warning. 2020-07-30 05:10:37 -04:00
Gregory John Casamento
81e4aea6df Update changelog 2020-07-28 10:31:22 -04:00
Gregory John Casamento
80e6ad1758 Add changelog 2020-07-20 23:12:50 -04:00
Gregory John Casamento
191b9e3f00 Add changelog entry 2020-07-19 05:45:10 -04:00
Gregory John Casamento
d11cb1b7ca Formalize protocols for NSOutlineDataSource/Delegate. 2020-07-10 07:51:45 -04:00
fredkiefer
c66019024f * Source/GSXib5KeyedUnarchiver.m (alternateName:): Be more careful
when chopping of part of the name.
2020-07-03 19:37:45 +02:00
fredkiefer
56047d27e6 Add missing MacOSX methods. 2020-07-03 16:50:20 +02:00
Gregory John Casamento
b4edb607f8 Add changelog. 2020-06-15 05:26:30 -04:00
fredkiefer
488f7096fb * Headers/AppKit/NSApplication.h: Remove semicolons from the
NSAppKitVersionNumber* definitions.
2020-06-12 10:16:49 +02:00
fredkiefer
d9134d657f Add code to handle code page 10000 in RTF. 2020-05-29 15:18:37 +02:00
fredkiefer
385fb7d204 * Headers/AppKit/NSColor.h,
* Source/NSColor.m: Add newer Cocoa methods.
2020-05-18 22:55:59 +02:00
fredkiefer
be12d7bd1e * Source/NSWindow.m (-makeFirstResponder, -sendEvent:): Correct
handling of new first responder not becoming first responder.
Patch suggested by Josh Freeman <pikopixel@twilightedge.com>.
2020-05-14 23:10:43 +02:00
fredkiefer
981227145e * Source/GSXib5KeyedUnarchiver.m: Clean up NSPathCell decoding. 2020-05-10 21:52:13 +02:00
fredkiefer
8162d07536 * Source/NSStringDrawing.m: Initialize all the cache entries as
not used.
2020-05-09 21:22:41 +02:00
Gregory John Casamento
2cca7e44aa Add changelog 2020-05-09 14:45:34 -04:00
fredkiefer
da3298bad4 Commit patch by Yavor Doganov <yavor@gnu.org> to provide a man page for
GSSpeechRecognitionServer.
2020-05-09 17:24:31 +02:00
fredkiefer
66ca536acc * Source/GSHorizontalTypesetter.m (_addExtraLineFragment): Make
sure curParagraphStyle and line_height always have useful values.
2020-05-09 17:16:47 +02:00
fredkiefer
cad8383e62 * Source/NSWindow.m (-initWithContentRect:...defer:): Call
setFrame:display: to ensure the minium and maximum size gets enforced.
* Source/NSFont.m (-description): Add this method.
2020-05-08 22:41:09 +02:00
Gregory John Casamento
ba79894dfd Add changelog entry 2020-05-06 17:06:55 -04:00
Gregory John Casamento
c8c312351a Fix spelling and extra include. 2020-04-26 15:04:25 -04:00
Gregory John Casamento
9da764d217 Add ChangeLog entry. 2020-04-26 10:58:06 -04:00
Gregory John Casamento
8263947de1 Minor change in ChangeLog to force recompile 2020-04-14 21:48:21 -04:00
Gregory Casamento
bd470fa75c
Merge branch 'master' into mac_specific 2020-04-14 08:13:05 -04:00
Ivan Vučica
fb006b8992
documentation: Standardize announcement file text.
Normalize the accompanying text for the release announcement across
core packages: standardize chapter name and GPG information.
2020-04-13 23:37:10 +01:00
Gregory John Casamento
c5d56a6f87 Add changelog for new changes. 2020-04-13 18:34:46 -04:00
Ivan Vučica
5a0d731da5
release-chore: Update docs for 0.28.0 release. 2020-04-05 21:04:40 +01:00
Wolfgang Lux
9afab3aaf8 Change arguments names to reduce confusion about their intended use 2020-04-01 13:15:48 +02:00
Wolfgang Lux
b42691c160 Remove redundant calls to close method. 2020-04-01 12:57:37 +02:00
Wolfgang Lux
88e318e5e8 Restore call to delegate method which was lost a while ago. 2020-04-01 12:55:53 +02:00
fredkiefer
928e44b65c * Documentation/news.texi: Started to fill in some details for
pending release.
2020-03-26 22:23:37 +01:00
Sergii Stoian
70a001d17f * Model/GNUmakefile: do not overwrite ADDITIONAL_INCLUDE_DIRS
value to help RPM build. In spec file ADDITIONAL_INCLUDE_DIRS can be sat
  to subdirectories which are create by RPM build tool.
2020-03-12 11:55:25 +02:00
Sergii Stoian
a61aa9f68f * Source/NSWindow.m (_applyFrame:): new helper method to do actual
resizing and repositionning.
  (setFrame:display:): use _applyFrame method.
  (applicationDidChangeScreenParameters:): use _applyFrame: method.
2020-03-05 23:27:31 +02:00
Sergii Stoian
3f85f86f3b * Source/NSScreen.m: remove +screen comment - not ready yet. 2020-03-05 12:25:56 +02:00
Sergii Stoian
96a3579e98 * Source/NSWindow.m (applicationDidChangeScreenParameters:):
Call backend's `placewindow::` directly because our origin in OpenStep
  coordinates might left unchanged and `setFrame:display:` has check
  for it.
2020-03-05 02:21:26 +02:00
Sergii Stoian
6d4afe9678 Merge branch 'master' into randr
Conflicts:
	ChangeLog
2020-03-05 02:19:23 +02:00
Sergii Stoian
fcbb4d704b * Source/NSWindow.m (center): always center window on main screen -
monitor where user expects to see window.
2020-02-28 02:18:20 +02:00
Sergii Stoian
f460e3f875 * Source/NSWindow.m (sendEvent:): removed usage of extra local variables
in GSAppKitWindowMoved code block.
2020-02-26 02:05:34 +02:00
Sergii Stoian
216d1f086f Merge branch 'master' into randr
Conflicts:
	ChangeLog
2020-02-23 23:38:36 +02:00
Sergii Stoian
1bf4d59016 * Update ChangeLog 2020-02-23 23:35:27 +02:00
fredkiefer
3db981a95d Move more behaviour from the IBActionConnection5 and IBOutletConnection5
classes to the original ones.
2020-02-23 18:22:21 +01:00
fredkiefer
078d10774c * .travis.yml
* travis-deps.sh: Try to keep up with Niels' changes in base.
2020-02-23 18:17:33 +01:00
Sergii Stoian
c0c5cad292 Merge branch 'master' into randr
Conflicts:
	ChangeLog
2020-02-23 03:04:19 +02:00
Sergii Stoian
99e0f4ddda * Source/NSMenu.m (windowDidChangeScreen:): join two if statements. 2020-02-23 01:56:33 +02:00
Sergii Stoian
11ff1789e8 * Source/NSMenu.m (_setGeometry): take into account main screen
origin when calculating horizontal menu postion.
2020-02-20 01:11:33 +02:00
Sergii Stoian
fe1cf36de0 * Source/NSApplication.m (_appIconInit): take into account main screen
origin when placing application icon.
2020-02-20 00:53:44 +02:00
Sergii Stoian
533be55806 * Source/NSWindow.m (setFrame:display:): use _screeForFrame: here
to prevent `_screen` reassign -  it will be reassigned in
  sendEvent: (GSAppKitWindowMoved event) after call to [self screen].
  (setFrameFromString:): removed unused code because _screenForFrame:
  never returns `nil`. Do not reassign `_screen` here.
2020-02-13 18:30:04 +02:00
Sergii Stoian
2a1b9d4d54 * Source/NSWindow.m (sendEvent:): set current screen to ivar and
send WindowDidChangeScreen notification if window was moved to other
  screen.

* Source/NSScreen.m (mainScreen): returns screen of main menu if no
  key window exists. With this implementation default screen (screen at
  index 0 in screens array) should never be returned.

* Source/NSMenu.m (initWithTitle:): observe WindowDidBecomeKey and
  WindowDidChangeScreen notifications.
  (windowDidChangeScreen:): new method to handle observed notification
  added above. Moves menu to screen of key window for both cases: when
  key window moved to or activated on different screen.
2020-02-12 01:46:17 +02:00
fredkiefer
b4ca06582e * Source/NSFontDescriptor.m: Correct key for encoding and decoding. 2020-02-09 20:19:51 +01:00
Sergii Stoian
a7aa7d014d * Source/GSTitleView.m (mouseDown:): limit menu movement to screen
frame for top/left/right edges. Menu can be moved to the bottom until
  title is completely visible.
2020-01-31 02:31:19 +02:00
Sergii Stoian
71056e625a
Merge branch 'master' into master 2020-01-28 14:46:26 +02:00
Sergii Stoian
b1dedaeb09 * ChangeLog: consolidate latest screen parameter changes. 2020-01-28 12:16:37 +02:00
Sergii Stoian
a4174f2838 * Source/NSWindow.m (applicationDidChangeScreenParameters): take into
account screen origin change during window position recalculation.

* Source/NSScreen.m (dealloc): debug output was removed.
2020-01-27 00:47:08 +02:00
Sergii Stoian
d4ea1a490f * Source/NSWindow.m (initWithContentRect:styleMask:backing:defer:):
added observer of NSApplicationDidChangeScreenParametersNotification.
  (applicationDidChangeScreenParameters:): callback for added notification -
  updates window position, set new screen object and saves frame if
  autosave name exists.

* Source/NSScreen.m (initialize): remove observer of
  NSApplicationDidChangeScreenParametersNotification - NSScreen shouldn't
  do it. Backend explicitely calls -resetScreens before posting notification.
  (_initWithScreenNumber:): ditto.
  (_resetScreens): removed.
  (deviceDescription): removed duplicated addition of NSDeviceSize object.

* Source/NSApplication.m (finishLaunching): remove observer of
  NSApplicationDidChangeScreenParametersNotification.
2020-01-26 03:13:16 +02:00
fredkiefer
11590c680d Add changelog entry for changes. 2020-01-24 23:04:20 +01:00
Sergii Stoian
731abde796 * Source/NSScreen.m (_initWithScreenNumber:): add self as observer to
NSApplicationDidChangeScreenParametersNotification.
(frame): use `_frame` ivar since libs-back recreates screens list.
(dealloc): remove observer.
(applicationDidChangeScreenParameters:): update _frame and _depth
ivars for bad behaving objects which retain NSScreen and not observing
screen parameters changes.
2020-01-24 19:48:28 +02:00
Sergii Stoian
79b98f2903 ChangeLog was updated. 2020-01-23 12:56:09 +02:00
Sergii Stoian
e0af3bd8c9 * Source/NSMenu.m (_screenChanged): removed.
(initWithTitle:): remove observer for
  NSApplicationDidChangeScreenNotification.
2020-01-23 12:46:03 +02:00
fredkiefer
3ac76af826 Move toolbar ivar from NSWindowTemplate5 to NSWindowTemplate. 2020-01-22 20:29:19 +01:00
fredkiefer
eae3f9e991 Add proper handling of code pages in RTF parsing. 2020-01-22 16:54:25 +01:00
fredkiefer
60fc987fb7 Fix compiler warnings 2020-01-20 20:57:32 +01:00
fredkiefer
09853bffc8 Fix indentation 2020-01-20 19:10:15 +01:00
fredkiefer
bc7c0262c5 Clean up the old XIB loading code. 2020-01-19 18:52:36 +01:00
fredkiefer
46ea0fb36d Merge branch 'master' into xib_document
# Conflicts:
#	ChangeLog
2020-01-19 17:24:04 +01:00
fredkiefer
42d771d589 Get master to guild again after breakage of last commit. 2020-01-19 17:21:51 +01:00
fredkiefer
50bc834ddc Add decoding of binding options and handle bindings to arrays
with transformations correctly.
2020-01-19 13:08:58 +01:00
fredkiefer
00bb2396a6 Diverse imporvements to get my XIB5 test application running. 2020-01-18 16:03:24 +01:00
fredkiefer
aeafa9578e Add generic mechanism to decode keys that include the class name.
Also add header clip view to subviews of scroller.
2020-01-12 21:10:54 +01:00
fredkiefer
3a6176b0cf Add observable array and use it for arrangeObjects. 2020-01-12 21:02:16 +01:00
fredkiefer
d7676fb7c2 Use decodeSizeForKey:. 2020-01-12 21:00:00 +01:00
fredkiefer
eb9fd58dce Merge branch 'master' into xib_document
# Conflicts:
#	.gitignore
#	ChangeLog
2020-01-11 19:47:13 +01:00
fredkiefer
5f147345fc Improve predicate editor decoding. 2020-01-11 19:33:24 +01:00
fredkiefer
97cb13a5ff Add some more bindings 2020-01-10 20:53:53 +01:00
Sergii Stoian
9a58a93ee5 * Images/common_StepperDown.tiff,
* Images/common_StepperDownHighlighted.tiff,
* Images/common_StepperUp.tiff,
* Images/common_StepperUpHighlighted.tiff: new images with arrows
similar to scroll view buttons'.

* Source/GSThemeDrawing.m (stepperUpButtonRectWithFrame:),
(stepperDownButtonRectWithFrame:): center buttons horizontally; simplify
and cleanup.

* Source/NSStepper.m (acceptsFirstResponder): return NO. Returning
YES makes sense only if `keyDown:` is implemented.
(acceptsFirstMouse:): return YES.

* Source/NSStepperCell.m (cellSize): initial implementation. Retruns
minimum size based on up and button sizes.
2020-01-10 15:46:22 +02:00
fredkiefer
14f88edfe8 Merge branch 'master' into xib_document
# Conflicts:
#	ChangeLog
2020-01-07 21:27:20 +01:00
fredkiefer
c0714b0de1 Add minimal version of predicate editor copied over from mySTEP. 2020-01-07 21:25:21 +01:00
fredkiefer
dc955b1ce4 Add minimal version of date picker copied over from mySTEP. 2020-01-06 22:25:54 +01:00
fredkiefer
e868f47488 Add changelog entry. 2020-01-03 21:58:32 +01:00
fredkiefer
560f68323b * Source/NSBundleAdditions.m (-pathForNibResource:): Report type
not filename while iterating.
2019-12-29 22:19:24 +01:00
Sergii Stoian
490d47cd05 * ChangeLog: fixed typo. 2019-12-18 23:14:59 +02:00
Sergii Stoian
1d0d5595a0 * Source/NSBrowser.m (frameOfColumn:): shift up column only for browser
with separated sparated columns layout.
(tile): fix column height calculation; moved sanity check of column
height closer to calculation; removed code that duplicates code below.
2019-12-18 17:35:59 +02:00
Sergii Stoian
7c6a22d174 * Source/NSScrollView.m (tile): tweak location and height of vertical
scroller if header or corner view available.

* Source/GSThemeDrawing.m: (drawTableCornerView:withClip:): do not draw
black rectangle because -drawDarkButton:withClip: draws all necessary
elements.

* Source/GSThemeDrawing.m (drawScrollViewRect:inView:): further cleanup
of method implementation. Removed all tweaks of scroller length - all
required calculations must be done in NSScrollView's -tile method. Simplified
caluclations of X and Y positions of scroller.
2019-12-17 17:30:51 +02:00
Sergii Stoian
20db33e008 * Source/GSThemeDrawing.m (drawScrollViewRect:inView:):
Use [self sizeForBorderType: borderType] to determine border width.
2019-12-17 13:29:30 +02:00
Sergii Stoian
5c96e8ba02 * Source/GSThemeDrawing.m (drawScrollViewRect:inView:): fixed scroller
border positionning and length - do not overlap border if any.
2019-12-17 02:16:05 +02:00
Sergii Stoian
5884e55419 * Source/NSFont.m (smallSystemFontSize): return 10 as default value.
Update documention comment regarding default values for NSMiniFontSize
ans NSSmallFontSize.
2019-12-12 23:20:12 +02:00
Sergii Stoian
e5a7cba164 * Source/NSWindow.m
(initialize): use MiniWindowTile image for miniwindow tile.
(drawRect:): adjusted position of title cell to fit tile image.
(setTitle:): disable drawing of title cell background;
use NSMiniControlSize font size for miniwindow title cell.

* Source/NSFont.m (systemFontSizeForControlSize:): increased default font
size for NSMiniControlSize.
2019-12-11 14:30:44 +02:00