Sergei Golovin
d63d77b98e
* fixed a memory leak
...
* Modules/Editors/ProjectCenter/PCEditor.m:
- replaced RETAIN() with ASSIGN() to avoid memory leaking;
2021-11-29 12:20:33 +04:00
Sergei Golovin
377359a92f
* fixed a unbalanced retain/release ivar
...
* Modules/Editors/ProjectCenter/PCEditor.m:
- changed the -[openFileAtPath:editorManager:editable:] to retain
the ivar 'textColor'... to balance its retain/release count;
2021-11-29 07:59:31 +04:00
Riccardo Mottola
c0f24a756f
cleanup some debug logs
2021-11-28 23:40:43 +01:00
Riccardo Mottola
4216c13cda
Do not send double computeNewParenthesisNesting: on key pressed.
...
Furthermore, use a timer so that in case of rapid re-computing it gets invalidated before and only calculated at the last event.
2021-11-26 02:20:40 +01:00
Riccardo Mottola
01a3a61b2e
do not change font on highlight, just the background: thus storing the old font attributes becomes needless
2021-11-23 01:22:54 +01:00
Riccardo Mottola
a0856faf21
remane textBackground to textBackgroundColor and use that for restoring highlit characters, without resding/storing such attribute
2021-11-23 01:09:50 +01:00
Riccardo Mottola
1749847eac
minor optimizations
2021-11-23 00:42:13 +01:00
Riccardo Mottola
8ab1b66eb5
fix spelling error in ivar
2021-10-28 01:40:01 +02:00
Riccardo Mottola
d6a2ce3650
remove foreground color, we do not change it when highlighting
2021-10-28 01:36:39 +02:00
Riccardo Mottola
60db8c598f
refactor some of the character highlighting, trying to rely only on the start-end pair of locations without old extra variables
2021-10-21 23:36:13 +02:00
Riccardo Mottola
aff171ceff
instead of using getLineStart which returns a character after scanning lines, we directly scan lines and count the newlines, so the string is needs to be scanned once only to know hoe many newlines. Some IMP caching to improve this ineffcient o(n) at every cursor movement
2021-09-17 00:53:40 +02:00
Riccardo Mottola
bae62a963b
actually store the preference color in textColor ivar
2021-09-16 00:52:15 +02:00
Riccardo Mottola
b701d1a40b
also keep ligatures off when reverting
2021-08-19 14:57:24 +02:00
Riccardo Mottola
b3fa5f1949
turn off ligatures in the code editor
2021-08-19 14:50:58 +02:00
Gregory Casamento
af4e9fffe4
Merge pull request #19 from gnustep/debugger_editor
2021-08-09 19:23:57 -04:00
Riccardo Mottola
18136e7678
get selected range of selection
2021-08-04 01:42:08 +02:00
Riccardo Mottola
f9d8e56a2e
actually register NSTextViewDidChangeSelectionNotification
2021-08-04 00:53:34 +02:00
Gregory John Casamento
736093b0c1
Fix centering issue
2021-08-03 18:48:00 -04:00
Riccardo Mottola
08cd658b6d
cleanup
2021-07-13 22:31:02 +02:00
Riccardo Mottola
f9ed96a3e4
offer option to reload file
2021-04-05 19:51:42 +02:00
Riccardo Mottola
2ace3c327a
re-set modification date on save, show alert panel
2021-03-31 23:25:50 +02:00
Riccardo Mottola
a6fc84bc9b
saveFileTo should not update the save time
2021-02-22 16:55:13 +01:00
Riccardo Mottola
78e4f47c8f
use path passed as parameter
2021-02-22 16:00:48 +01:00
Riccardo Mottola
059e105652
Keep track of the file modification date on each open/save, compare it to the current file to detect external modifications.
2021-02-19 10:45:30 +01:00
Riccardo Mottola
aa2ce8fd73
notify Gorm only if the file was really saved, or it will reload the old file
2021-02-18 00:32:47 +01:00
Riccardo Mottola
6544ff872e
assure color is in RGB color space vefore calculating inverse
2021-02-11 12:01:48 +01:00
Riccardo Mottola
ad65327732
Respect background selection preferences and infer text as inverse.
2021-02-06 12:31:10 +01:00
Riccardo Mottola
fcd0c869e2
Enable parsing of obj-c++
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38627 72102866-910b-0410-8b05-ffd578937521
2015-06-12 23:17:06 +00:00
Riccardo Mottola
fdae99568e
Handle missing image better
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38624 72102866-910b-0410-8b05-ffd578937521
2015-06-12 09:55:32 +00:00
Riccardo Mottola
7c4cd31b73
set background color with new prefs method, set foreground color (useless)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38427 72102866-910b-0410-8b05-ffd578937521
2015-03-22 23:19:16 +00:00
Riccardo Mottola
cb8e9ca4d7
fix warning
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38422 72102866-910b-0410-8b05-ffd578937521
2015-03-22 20:54:24 +00:00
Riccardo Mottola
2bb51c8462
Actually use the background color preference
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38421 72102866-910b-0410-8b05-ffd578937521
2015-03-22 18:26:50 +00:00
Wolfgang Lux
e617310415
Fix condition order to prevent out of range array accesses, which may
...
lead to a segfault when unhighlighting two matching parentheses.
Fix by Markus <desterium@t-online.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38050 72102866-910b-0410-8b05-ffd578937521
2014-08-25 21:20:32 +00:00
Riccardo Mottola
a7673e0ac3
Move GoToLine to the View akin to the NSTextView find panel and declare it in the editor view protocol.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38031 72102866-910b-0410-8b05-ffd578937521
2014-08-03 22:03:38 +00:00
Germán Arias
7fc6faaddc
Fix problem with FindPanel.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38024 72102866-910b-0410-8b05-ffd578937521
2014-08-03 07:16:41 +00:00
Riccardo Mottola
ffb201e9cb
Convert line numbers to NSUInteger / integerValue
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38021 72102866-910b-0410-8b05-ffd578937521
2014-07-31 10:18:31 +00:00
Germán Arias
bdf1f9e902
Use standard menu Find and connect Line Number... to first responder.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@37221 72102866-910b-0410-8b05-ffd578937521
2013-10-13 19:04:09 +00:00
Germán Arias
74db97895a
Improvements to handle the style NSWindows95InterfaceStyle.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@37153 72102866-910b-0410-8b05-ffd578937521
2013-09-25 00:25:49 +00:00
Wolfgang Lux
f3ac6d9d8a
ProjectCenter fixes for compilation on 64-bit hosts.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@35330 72102866-910b-0410-8b05-ffd578937521
2012-07-30 21:07:19 +00:00
Wolfgang Lux
405a68887b
Ask user for confirmation before reverting a file in PC.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31943 72102866-910b-0410-8b05-ffd578937521
2011-01-24 13:29:44 +00:00
Riccardo Mottola
2a4aa4f0b8
initialize range to ensure it does not ocntain garbage later
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31628 72102866-910b-0410-8b05-ffd578937521
2010-11-18 16:47:25 +00:00
Riccardo Mottola
099849f7ff
Init could return a different object, take it in account
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31617 72102866-910b-0410-8b05-ffd578937521
2010-11-17 23:45:17 +00:00
Gregory John Casamento
c3960f94ee
* Modules/Editors/ProjectCenter/PCEditor.m: in -save implemented
...
simple mechanism for propagating changes in classes to Gorm when
updating a header file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30941 72102866-910b-0410-8b05-ffd578937521
2010-07-10 05:11:58 +00:00
Riccardo Mottola
491745fd36
Fix highlighting for standalone editors.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30819 72102866-910b-0410-8b05-ffd578937521
2010-06-22 16:03:05 +00:00
Riccardo Mottola
85941fac98
clean up parenthesis highlighting
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30805 72102866-910b-0410-8b05-ffd578937521
2010-06-22 00:20:46 +00:00
Wolfgang Lux
082fb0ae70
Attempt to prevent ProjectCenter crashes when a project is closed by
...
ensuring that project and editor windows are closed before their
owners are deallocated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30599 72102866-910b-0410-8b05-ffd578937521
2010-06-07 07:04:24 +00:00
Riccardo Mottola
7928e2b4e5
keep an Undo manager for the Editor and return that to the window
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30527 72102866-910b-0410-8b05-ffd578937521
2010-06-01 13:35:07 +00:00
Gregory John Casamento
3517ccbc92
* Modules/Editors/ProjectCenter/PCEditor.m: Temporarily comment out
...
previous change util we find the proper fix as it was preventing
files from being saved.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30480 72102866-910b-0410-8b05-ffd578937521
2010-05-30 05:36:36 +00:00
Riccardo Mottola
3ce2f4a4c5
setup undo on the editor view
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@29858 72102866-910b-0410-8b05-ffd578937521
2010-03-06 16:07:28 +00:00
Sergii Stoian
ec139b282b
* ChangeLog; Update.
...
* Modules/Preferences/Misc/PCMiscPrefs.h,
* Modules/Preferences/Misc/PCMiscPrefs.m,
* Modules/Preferences/Misc/Resources/MiscPrefs.gorm/data.classes,
* Modules/Preferences/Misc/Resources/MiscPrefs.gorm/objects.gorm:
Add new setting UseTearOffWindows.
* Framework/PCProjectWindow.m: Use new setting.
* Modules/Editors/ProjectCenter/PCEditor.m:
(dealloc): Add releasing _window.
* Documentation/TODO: Update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28042 72102866-910b-0410-8b05-ffd578937521
2009-03-05 00:42:59 +00:00