Commit graph

117 commits

Author SHA1 Message Date
Gregory John Casamento
feb5608836 Gorm now correctly pulls in objects and assigns them names. 2021-05-04 05:04:59 -04:00
Gregory John Casamento
405c345ab1 Fix issue with class instantiation 2021-05-04 04:57:32 -04:00
Gregory John Casamento
31e68f12e6 Fix issue introduced by 'cleanup' merge where mainMenu no longer hides/unhides itself during/after testing the interface. 2021-04-22 04:34:42 -04:00
Gregory John Casamento
0284554411 Fix memory leak when creating matrix cells using inspector. Do not deactivate / close the editor when matrix is expanded. 2021-04-22 04:05:49 -04:00
Gregory John Casamento
27e6f6b309 Add code to safeguard against crash when NSMatrix has no cells or the prototype is nil 2021-04-21 18:14:56 -04:00
Gregory John Casamento
eb0b0bfbe1 Fix all warnings in Gorm 2021-03-28 18:55:29 -04:00
Gregory John Casamento
01ed525ca7 Add new inspector for matrix cell size 2021-03-28 01:34:15 -04:00
fredkiefer
fb3a4840e6 * GormCore/GormDocument.m: Remove NSNibConnector duplicating code in gui.
Use [-attachObjects:toParent:] and [-detachObjects:] more often.
2020-03-29 15:10:46 +02:00
Lars Sonchocky-Helldorf
94816bea7f headers cleaned up: use umbrella headers when using headers from other subprojects (to make PCH easier in the future); umbrella headers created for GormCore, GormObjCHeaderParser, GormPrefs; GNUmakefiles updated accordingly; some stray .cvsignore files deleted 2019-11-03 02:57:39 +01:00
David Chisnall
04554d25c8 Fix accidental variable shadowing.
We were looking up the ivar, but then not using the result, so got null
pointer dereferences later.

This should have been caught by normal compiler warnings, but apparently
Gorm turns them off.
2019-02-03 09:23:14 +00:00
fredkiefer
0d3ab06c92 * GormCore/GormDocument.m: Fix wrong string type in David Chisnall
fix for the new libobjc.
2019-01-25 13:14:55 +01:00
David Chisnall
c554b72b74 Fix Gorm with the new ABI.
Now that @private is enforced by the linker, we can't just bypass it
with categories.  Instead, either access public interfaces or use
reflection to look up instance variables.
2018-12-30 17:24:56 +00:00
Gregory John Casamento
8cdfc782d8 Fix bug#52494: Loading translations should now handle exceptions. 2018-01-24 21:11:39 -05:00
Fred Kiefer
9c9af61d37 * GormCore/GormDocument.m: Rewrite fix for bug #39072 to stop
leaking memory.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@38052 72102866-910b-0410-8b05-ffd578937521
2014-08-31 19:47:45 +00:00
Gregory John Casamento
2af7de1105 Fix bug #28644
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@37931 72102866-910b-0410-8b05-ffd578937521
2014-05-31 15:00:47 +00:00
Gregory John Casamento
3b78ac2018 Fix bug #39072
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@37911 72102866-910b-0410-8b05-ffd578937521
2014-05-27 07:17:37 +00:00
Gregory John Casamento
e87fd029b4 int -> NSInteger transition.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@37359 72102866-910b-0410-8b05-ffd578937521
2013-11-04 15:02:25 +00:00
Gregory John Casamento
d92bf3d1e1 * GormCore/GormDocument.m: Touch document when aligning views in
-alignSelectedObjects:.
	* Palettes/4Data/DataPalette.m: -depositViewResourceFromPasteboard:..
	touch document when adding formatter.
	* Palettes/4Data/GormDateFormatterAttributesInspector.m
	* Palettes/4Data/GormNumberFormatterAttributesInspector.m:
	-ok: touch document when changing formatter.
	Fixes forbug #28643.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36288 72102866-910b-0410-8b05-ffd578937521
2013-03-06 05:07:51 +00:00
David Chisnall
3cd12bee73 Next bit of NSInteger cleanup for -gui.
Fix all of the current warnings in Gorm so that it can be used to test
NSInteger things.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36039 72102866-910b-0410-8b05-ffd578937521
2013-01-30 12:43:27 +00:00
Gregory John Casamento
2e946568b1 * GormCore/GormDocument.m: Corrected issue with adding cells to
object tree so that the can be properly addressed in connections.
	Change to -attachObject:toParent:.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@36024 72102866-910b-0410-8b05-ffd578937521
2013-01-27 01:43:35 +00:00
Gregory John Casamento
d7a2c8488f * GormCore/GormDocument.m: Apply patch suggested by Sebastian.
This appears to correct an issue seen by Sergey causing an out of
	memory error.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@35318 72102866-910b-0410-8b05-ffd578937521
2012-07-26 02:34:50 +00:00
Gregory John Casamento
272e9c73ca Version 1.2.18
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@35215 72102866-910b-0410-8b05-ffd578937521
2012-06-19 04:47:30 +00:00
Gregory John Casamento
d49d1fd71a * GormCore/GormDocument.m
* GormCore/GormFilePrefsManager.m
	* GormCore/GormStandaloneViewEditor.m
	* GormCore/GormViewWithContentViewEditor.m
	* GormCore/GormWindowTemplate.m
	* Palettes/0Menus/GormMenuEditor.m
	* Palettes/0Menus/MenusPalette.m: Eliminate as many of the remaining
	warnings in the code as possible.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@35133 72102866-910b-0410-8b05-ffd578937521
2012-05-02 03:26:17 +00:00
Gregory John Casamento
4671ec0870 * GormCore/GormClassInspector.m
* GormCore/GormClassManager.m
	* GormCore/GormDocument.m
	* GormCore/GormGenericEditor.m
	* GormCore/GormObjectInspector.m
	* GormCore/GormOutlineView.m
	* GormCore/GormPrivate.h
	* GormCore/GormPrivate.m
	* Palettes/0Menus/GormMenuEditor.m
	* Palettes/1Windows/GormDrawerAttributesInspector.m
	* Palettes/3Containers/GormTableColumnAttributesInspector.m
	* Palettes/3Containers/GormTableViewEditor.m
	* Palettes/4Data/DataPalette.m
	* Palettes/4Data/GormNumberFormatterAttributesInspector.m: Change int/unsigned int to NSInteger
	and NSUInteger to address 64-bit issues.  Patch by
	Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
	* Plugins/Gorm/GormGormWrapperLoader.m
	* Plugins/Nib/GormNibWrapperBuilder.m
	* Plugins/Nib/GormNibWrapperLoader.m
	* Plugins/Xib/GormXibWrapperLoader.m: Clean up warnings found by clang.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@35091 72102866-910b-0410-8b05-ffd578937521
2012-04-20 06:12:32 +00:00
Wolfgang Lux
00d92dbb9a Correct declaration bug in previous commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@31831 72102866-910b-0410-8b05-ffd578937521
2011-01-04 18:02:39 +00:00
Wolfgang Lux
ae4cfbd955 Allow making connections to individual cells of a matrix in Gorm.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@31830 72102866-910b-0410-8b05-ffd578937521
2011-01-04 17:05:36 +00:00
Gregory John Casamento
c06e0663ef * English.lproj/GormFontView.gorm: Fix problem with popup showing
as Button.
	* GormCore/GormDocument.m: Add the NSMenu as a top level item only
	if it has filesOwner as it's parent.
	* GormCore/GormPalettesManager.m: remove the restriction for having
	just one instance of NSMenu in the document at the top level.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@30547 72102866-910b-0410-8b05-ffd578937521
2010-06-02 21:38:53 +00:00
Gregory John Casamento
87a0e31e32 * GormCore/GormDocument.m: In
[GormDocument loadFileWrapperRepresentation:ofType:] call
	updateChangeCount: to clear changes so that the document
	doesn't show as modified on load.	


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@30483 72102866-910b-0410-8b05-ffd578937521
2010-05-30 07:00:29 +00:00
Wolfgang Lux
b8cc207f46 Add support for a recent documents menu in gorm documents.
Add a recent documents menu to the file menu and undo and redo
commands to the edit menu in Gorm's palette.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@30465 72102866-910b-0410-8b05-ffd578937521
2010-05-28 21:41:25 +00:00
Gregory John Casamento
2f64f6a5a5 * English.lproj/Gorm.gorm: Remove delegate connection, since it's
manually set in the Gorm NSApplication subclass to self.
	* GormCore/GormDocumentController.[hm]: Added new method 
	buildDocumentType:
	* GormCore/GormDocument.m: Added call to touch in setName: so that
	the document would be set as modified when the user alters
	the name of an object in the document.
	* GormCore/GormDocumentWindow.m: Remove methods preventing
	document window from assuming main/key status.
	* GormCore/GormPalettesManager.m: Remove methods allowing palette
	window to assume main/key status
	* Gorm.m: Added delegate methods to handle opening a document, if
	in a mode which requires a default document to be created.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@30417 72102866-910b-0410-8b05-ffd578937521
2010-05-19 00:26:34 +00:00
Gregory John Casamento
3846644d89 Correction for bug #28643
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@30416 72102866-910b-0410-8b05-ffd578937521
2010-05-18 23:35:30 +00:00
Germán Arias
183b008816 Changes to prevent menus placed off screen on screens with low resolution
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@29089 72102866-910b-0410-8b05-ffd578937521
2009-12-01 19:08:28 +00:00
Gregory John Casamento
d495893e23 * GormCore/GormDocument.m: Remove call to deprecated method.
* GormCore/GormInternalViewEditor.m: Minor cleanup
	* GormObjCHeaderParser/OCMethod.m: Minor cleanup
	* Palettes/2Controls/GormNSTextFieldInspector.gorm: Correct issue
	with misspelled outlet name.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@27841 72102866-910b-0410-8b05-ffd578937521
2009-02-11 06:25:12 +00:00
Gregory John Casamento
c1baf0ea52 * GormCore/GormCustomView.m
* GormCore/GormDocument.m
	* GormCore/GormFilePrefsManager.m
	* GormCore/GormHelpInspector.m
	* GormCore/GormPrivate.h
	* GormCore/GormPrivate.m
	* Palettes/1Windows/GormNSPanel.m
	* Palettes/1Windows/GormNSWindow.m
	* Palettes/1Windows/GormWindowSizeInspector.m
	* Palettes/1Windows/WindowsPalette.m
	* Plugins/Gorm/GormGormWrapperBuilder.m
	* Plugins/Nib/GormNibWrapperBuilder.m
	* Plugins/Nib/GormNibWrapperLoader.h: Use new header files for 
	nib/gorm loading.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@27190 72102866-910b-0410-8b05-ffd578937521
2008-12-02 07:54:31 +00:00
Gregory John Casamento
248a59ef7c * GormCore/GormDocument.m: Change to apply labels in the document
to cells in a matrix.
	* GormCore/GormFilePrefsManager.m: Update version to 1.2.7
	* GormInfo.plist: Same
	* Version: Same


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@27043 72102866-910b-0410-8b05-ffd578937521
2008-11-14 04:31:29 +00:00
Gregory John Casamento
adefb08ae6 Fixing standalone view handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26818 72102866-910b-0410-8b05-ffd578937521
2008-08-24 17:20:16 +00:00
Gregory John Casamento
b908ca07b1 Correction for segfault.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26540 72102866-910b-0410-8b05-ffd578937521
2008-05-18 23:17:31 +00:00
Gregory John Casamento
5ad1715061 Change back to large toolbar on document.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26478 72102866-910b-0410-8b05-ffd578937521
2008-04-28 21:33:05 +00:00
Gregory John Casamento
c51b7b4e4b * English.lproj/GormPalettePanel.gorm: Moved palette window to
gorm file.
	* GNUmakefile: Added new gorm here.
	* GormCore/GormDocument.m: Made toolbar items smaller
	* GormCore/GormPalettesManager.[hm]: Added toolbar implementation
	to this class to allow the user to switch palettes using the toolbar.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26477 72102866-910b-0410-8b05-ffd578937521
2008-04-27 23:34:38 +00:00
Gregory John Casamento
605ca74210 * GormCore/GormDocument.m: change to log to debug instead.
* GormCore/GormImageEditor.m: properly dealloc the image code.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26468 72102866-910b-0410-8b05-ffd578937521
2008-04-24 05:22:44 +00:00
Gregory John Casamento
63126d63f7 * English.lproj/GormDocument.gorm: Correct issue with window.
* GormCore/GormDocument.m
	* GormCore/GormImageEditor.m
	* GormCore/GormObjectEditor.m
	* GormCore/GormSoundEditor.m: Fix memory leak.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26467 72102866-910b-0410-8b05-ffd578937521
2008-04-24 04:55:40 +00:00
Gregory John Casamento
1347eb518d Addition of code for bug#17892.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@25860 72102866-910b-0410-8b05-ffd578937521
2008-01-04 17:06:44 +00:00
Gregory John Casamento
89386fd640 Changed header to reflect license change to GPLv3.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@25559 72102866-910b-0410-8b05-ffd578937521
2007-11-05 23:44:36 +00:00
Matt Rice
fdb080a601 * GormCore/GormDocument.m (_real_close): New function.
(handleNotification:): Move document closing code to _real_close.
        (close:): Call _real_close.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@24467 72102866-910b-0410-8b05-ffd578937521
2007-02-04 22:17:42 +00:00
Gregory John Casamento
7fa91a4e06 * GormCore/GormDocument.h: Change declaration for window member
from NSWindow to GormDocumentWindow.
	* GormCore/GormDocument.m: Move cast from call to setDocument:
	to call to _docWindow private method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@24181 72102866-910b-0410-8b05-ffd578937521
2006-12-04 01:06:28 +00:00
Gregory John Casamento
c86b0ada46 * GormCore/GormDocument.m: Use setDocument: method in awakeFromNib.
* GormCore/GormDocumentWindow.h: Add setDocument: method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@24180 72102866-910b-0410-8b05-ffd578937521
2006-12-04 00:35:31 +00:00
Matt Rice
4a03adccea * Palettes/0Menus/GormMenuEditor.m (-mouseDown:): Call
startConnecting.
        * GormCore/GormViewEditor.m (-startConnectingObject:withEvent:): Ditto.
        * GormCore/GormObjectEditor.m (-mouseDown:): Ditto.
        * GormCore/GormDocument.m (changeToViewWithTag:): Don't change the
        selection if connecting.
        * GormCore/GormResourceManager.m: Revert previous commit.
        * Gorm.m (-startConnecting:): Remove checks for a nil
        connectDestination.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@24178 72102866-910b-0410-8b05-ffd578937521
2006-12-03 01:11:26 +00:00
Matt Rice
8b6d518d07 * GormCore/GNUmakefile: Add GormDocumentWindow.[h,m].
* GormCore/GormResourceManager.m: Add code to handle
        image/sound/header files.
        * GormCore/GormDocument.[h,m]: Add -viewWithTag: method.
        * GormCore/GormClassEditor.m: Remove dragging destination code
        for resources.
        * GormCore/GormResourceEditor.m: Ditto.
        * GormCore/GormObjectEditor.m: Ditto.
        (addObject:): Change the editor to the GormObjectEditor.
        * GormCore/GormDocument.m: Register the window for dragged types.
        Implement -viewWithTag:.
        * GormCore/GormDocumentWindow.[h,m]: New subclass of NSWindow which
        handles drag and drop to GormResourceManager.
        * GormCore/GormDocument.gorm: Set the main document  window to a
        GormDocumentWindow class.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@24129 72102866-910b-0410-8b05-ffd578937521
2006-11-19 00:48:34 +00:00
Gregory John Casamento
0b54892c78 * GormCore/GormClassManager.[hm]: Added actionExists:onClassNamed: and
outletExists:onClassNamed: methods to query the existence of a
        given action/outlet on a given class.
        * GormCore/GormDocument.[hm]: Added refreshConnectionsForClassNamed:
        method.
        * Images/GormFile.tiff: Added "gorm" in the center to make it obvious
        which type this is for.
        * Images/GormNib.tiff: Added "nib" in the center to make it obvious
        which type this is for.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23917 72102866-910b-0410-8b05-ffd578937521
2006-10-20 02:59:11 +00:00
Gregory John Casamento
9628e807f1 * English.lproj/GormClassEditor.gorm: Added new gorm file to hold
classes view contents as well as search and operations drop down.
	* English.lproj/GormDocument.gorm: Removed seatch and drop down
	* GNUmakefile: Added new gorm file.
	* GormCore/GormClassEditor.h: new outlets classesView and mainView, 
	added declarations for methods createSubclass:, createClassFiles:, 
	instantiateClass:, removeClass:
	* GormCore/GormClassEditor.m: Changes to methods to use the above.
	* GormCore/GormDocument.h: Removed duplicate declarations.
	* GormCore/GormDocument.m: Remove code for methods and replace with
	simple calls to the editor.
	* Palettes/2Controls/GormBoxAttributesInspector.m: ok: and revert:
	changed to convert to integer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23765 72102866-910b-0410-8b05-ffd578937521
2006-10-05 17:20:40 +00:00