Gregory John Casamento
38f01dab83
Add NSGridView.[hm].
2020-03-19 03:44:35 -04:00
Gregory John Casamento
53f211fdda
Correct license on NSSegmentedControl to reflect the LGPL as it should.
2020-03-17 00:23:04 -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
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
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
97a7bc738e
Move reconnection logic to one method
2020-02-09 21:26:01 -05:00
Gregory John Casamento
4ab70420a8
Add exception handling logic. I did this without using performSelector since it only occurs in a couple of places (it didn't seem worth the effort).
2020-02-09 19:55:46 -05:00
fredkiefer
b4ca06582e
* Source/NSFontDescriptor.m: Correct key for encoding and decoding.
2020-02-09 20:19:51 +01:00
Gregory John Casamento
031868f73e
Changes to support multiple connections.
2020-02-09 05:30:35 -05:00
Gregory John Casamento
4b1d3c679f
Implement both ignoring all recognizers, but the ones specified and ignoring when app is not active.
2020-02-08 15:01:31 -05:00
Gregory John Casamento
6539ed8913
Final cleanup of debug output
2020-02-08 06:44:43 -05:00
Gregory John Casamento
f05702d450
Stop thread properly and close utterance.
2020-02-08 06:22:14 -05:00
Gregory John Casamento
07bf3d32e4
Shut down server when all connections are dead
2020-02-08 06:08:27 -05:00
Gregory John Casamento
60cf308471
Collapse server into normal instance
2020-02-08 02:45:40 -05:00
Gregory John Casamento
3468a92539
Cleanup. Fix issues pointed out in review.
2020-02-07 04:50:40 -05:00
Gregory John Casamento
4ebc932cb3
Fix issues pointed out by fred
2020-02-07 04:25:39 -05:00
Gregory John Casamento
8320300fdd
Cleanup speech synth implementation. Correct recognizer.
2020-02-06 03:15:18 -05:00
Gregory John Casamento
a9bc3fe5d9
Cleanup and some minor changes
2020-02-06 02:35:53 -05:00
Gregory John Casamento
92e00382c0
Make changes suggested by fred
2020-02-05 22:56:16 -05:00
Gregory John Casamento
ebefe3805b
Merge branch 'master' into NSSpeechRecognizer_branch
2020-02-04 06:03:47 -05:00
Gregory John Casamento
72697f699c
Complete initial implementation of speech recognizer
2020-02-04 05:26:52 -05:00
Sergii Stoian
d1466b23ef
Merge pull request #52 from gnustep/randr
...
Keep menu inside visible screen frame.
2020-02-03 02:24:47 +02:00
Sergii Stoian
deec9c5932
* Source/GSTitleView.m (mouseDown:): add additional sanity checks
...
for NSScreen, NSWindow values.
2020-02-03 02:22:27 +02:00
Sergii Stoian
75cbfce281
* Source/GSTitleView.m (mouseDown): use [_window screen] instead
...
of [NSScreen mainScreen].
2020-02-02 22:40:43 +02:00
Gregory John Casamento
b1f9f1fd78
Fix speech recognizer compilation
2020-02-01 04:41:52 -05:00
Gregory John Casamento
75122ac78e
Server name to #define
2020-02-01 04:33:25 -05:00
Gregory John Casamento
f891819498
Add code to connect with server
2020-02-01 04:30:36 -05:00