fredkiefer
c15ff512c7
Add proper initializer and try to get retain counts correct.
2020-03-13 17:57:49 +01:00
Gregory John Casamento
8f5e702766
Remove uneeded code
2020-03-13 05:19:07 -04:00
Gregory John Casamento
369e45ebe2
Add/Remove descriptors when appropriate
2020-03-13 03:14:42 -04:00
Gregory John Casamento
1f04167c7d
Autorelease NSFontCollection when created by _writeToFile
2020-03-12 16:03:39 -04:00
Gregory John Casamento
3a027a7eba
Remove errant comment
2020-03-12 15:46:52 -04:00
Gregory John Casamento
22fa2f21ea
Remove redundant check
2020-03-12 15:45:55 -04:00
Gregory John Casamento
28ff42fa4b
Correct indentation
2020-03-12 15:43:57 -04:00
fredkiefer
5680d2e0fd
Correct the implementation of some simple methods on NSFileCollection.
2020-03-12 16:40:04 +01:00
Gregory John Casamento
3194948df4
minor improvements.
2020-03-11 23:39:39 -04:00
Gregory John Casamento
4b72608c35
Fix storage of font collection files
2020-03-11 23:36:22 -04:00
Gregory John Casamento
38f4292989
Fix encoding
2020-03-11 19:00:52 -04:00
Gregory John Casamento
ddce45a6a2
Release memory from archiving and unarchiving.
2020-03-11 01:17:51 -04:00
Gregory John Casamento
2760d90061
Rewrite the reading and writing portions of NSFontCollection so that we can output the root object as NSFontCollectionDictionary
2020-03-11 01:06:29 -04:00
Gregory John Casamento
681e5c9ed9
Correct issue with encoding, use a dictionary to store everything. Create collections when initializing when appropriate
2020-03-09 04:11:56 -04:00
Gregory John Casamento
fb7bdc70a0
Merge branch 'master' of github.com:gnustep/libs-gui into NSFontCollection_branch
2020-03-08 20:50:59 -04: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
Gregory John Casamento
bf5d40ea58
Merge branch 'master' of github.com:gnustep/libs-gui into NSFontCollection_branch
2020-03-02 15:11:34 -05: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
Gregory John Casamento
f54d47667b
Add implementations or mutable font dcollectioin
2020-02-26 07:36:45 -05:00
Gregory John Casamento
80bab3fa5a
Implement encoding
2020-02-25 21:25:55 -05: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
Gregory John Casamento
a06dc3bef4
Add implementation for a few more methods
2020-02-25 18:15:02 -05:00
Gregory John Casamento
46d2636b36
Update _removeFile method. Correct minor comments
2020-02-25 11:02:39 -05:00
Gregory John Casamento
bd1a349c0a
Merge branch 'master' into NSFontCollection_branch
2020-02-25 09:00:17 -05:00
Gregory John Casamento
70bc1153de
Font collection constants
2020-02-25 08:58:44 -05:00
Sergii Stoian
b3e099f4ab
* Source/NSScreen.m (screens): add initial description of new logic
...
around screens (back, windows and menus) as comment.
2020-02-25 02:28:02 +02:00
Sergii Stoian
216d1f086f
Merge branch 'master' into randr
...
Conflicts:
ChangeLog
2020-02-23 23:38:36 +02:00
Sergii Stoian
fe5616f5e1
* Source/NSWindow.m
...
(applicationDidChangeScreenParameters:): quit while loop after
screen was found.
(sendEvent:): use `_screen` ivar to get screen befor frame change.
2020-02-23 23:26:18 +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
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
Gregory John Casamento
344a4bbaf8
Eliminate duplicate entries in GNUmakefile, remove 'blocking' capability in speech recognizer code for now.
2020-02-17 01:35:57 -05:00
Sergii Stoian
557486906a
* Source/NSMenu.m (initWithTitle:): moved observer setup for
...
window notification to applicationDidFinishLaunching: method.
(setTornOff:): setup oberver for window notifications if menu is
torn off, uset observer otherwise.
(applicationDidFinishLaunching:): setup oberver only for main menu.
(windowDidChangeScreen:): do not process notifications from menu
windows. Use -netstedSetFrameOrigin for frame change to take care
of submenus repositioning.
2020-02-14 14:14:05 +02:00
Sergii Stoian
c1c77cc7c0
* Source/NSMenu.m (windowDidChangeScreen:): simplify calculation of
...
frame X position.
2020-02-14 12:34:20 +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
381c24cdf4
* Source/NSWindow.m (processEvent:): notification moved back here from
...
`screen` method. Placing posting notification into `screen` method
is unreliable/dangerous - notification observer may call [NSWindow screen]
which results in notification posting loop.
2020-02-12 13:55:15 +02:00
Sergii Stoian
4c531f04bc
* Source/NSWindow.m (processEvent:): posting notification
...
NSWindowDidChangeScreenNotification moved into `screen`
method.
2020-02-12 13:08:58 +02:00
Sergii Stoian
77778fb2bc
* Source/NSMenu.m (windowDidChangeScreen:): fixed formatting.
2020-02-12 12:10:14 +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
Gregory John Casamento
bacceb1a46
Prevent logging of content into public log. Only log server events
2020-02-11 06:37:49 -05:00
Gregory John Casamento
d0e05bfc3f
Add restart logic
2020-02-11 06:33:42 -05:00
Gregory John Casamento
9953d7d132
Correct issue with detecting if app is in foreground
2020-02-11 06:11:43 -05:00
Gregory John Casamento
5b96ad6692
Merge branch 'master' of github.com:gnustep/libs-gui into NSSpeechRecognizer_branch
2020-02-10 03:03:20 -05:00
Gregory John Casamento
1b2c0aad96
Correct some indentation
2020-02-10 02:31:39 -05:00
Gregory John Casamento
a9eb7c92e2
Minor changes
2020-02-09 23:00:26 -05:00