Commit graph

33 commits

Author SHA1 Message Date
Sebastian Reitenbach
8562d733c5 * Framework/PCProjectInspector.m
* Modules/Editors/ProjectCenter/SyntaxDefinition.m
        * Modules/Editors/ProjectCenter/SyntaxHighlighter.m
        * Modules/Editors/ProjectCenter/TextPattern.m
        * Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m
          some more (unsigned) int -> NS(U)Integer transitions
          and some shutup of clang compiler warnings

OK Fred



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@36107 72102866-910b-0410-8b05-ffd578937521
2013-02-10 18:30:25 +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
Wolfgang Lux
f8767ee74f Fix an annoying bug in PC's editor where pressing the tab key would
delete whole empty lines. Also register insertions done by the tab key
at the undo manager.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31942 72102866-910b-0410-8b05-ffd578937521
2011-01-24 13:27:52 +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
10ccc32c63 Deleted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30818 72102866-910b-0410-8b05-ffd578937521
2010-06-22 16:02:49 +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
43211ec2b7 declare new code editor view protocol, make the PCEditorView return the editor with a n accessor, make the project window access the undo manager that way
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30551 72102866-910b-0410-8b05-ffd578937521
2010-06-02 23:55:29 +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
Sergii Stoian
9d2a79b3a4 * Framework/PCProjectBrowser.m: Stop using 'SeparateEditor' prefernce.
Remove use of preferences code.
(doubleClick:): Change support of external editor (add support for .app
editors).
* Framework/PCProjectWindow.m: Start implementing two-mode handling of
tear-off windows. New handling will support two modes: 1. all windows 
are opened inside projet window and 2. Build, Launch/Debug, Loaded Files
(Project Find in future) are opened as tear-off windows. This simplifiles
the code and in my opinion more intuitive then current implementation.
* Modules/Editors/ProjectCenter/PCEditor.m:
(_createWindow): Change window attribute ReleasedWhenClosed to NO.
* PCPrefController.m: Add new parameter 'notify' to method setObject. This
parameter is usefull for situation when open and save panels saves its values.
For example: when project are opened 'Open Project' panel save last opened dir
to PC prefernces and post notificaion about prefs changes. Newly created 
objects of projects may lead to PC segfault.
* Modules/Preferences/Build/PCBuildPrefs.m,
* Modules/Preferences/Interface/PCInterfacePrefs.m,
* Modules/Preferences/Saving/PCSavingPrefs.m,
* Modules/Preferences/Misc/PCMiscPrefs.m,
* Framework/PCFileManager: Use new preferences setObject method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@28038 72102866-910b-0410-8b05-ffd578937521
2009-03-04 22:05:51 +00:00
Sergii Stoian
9724c929cb * Finish alert panels review. All situations that I've missed will
be worked out in future.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27954 72102866-910b-0410-8b05-ffd578937521
2009-02-22 21:46:01 +00:00
Sergii Stoian
1699452ef8 * Framework/PCProjectManager.m:
(close): Implemented. Closes not only project but also non
project files editors.
* Framework/PCProject.m: Clean and alert panels in various situations.
* Framework/PCProjectEditor.m: Move closeAllEditors, saveEditedFiles:,
saveAllFiles and saveFileAs: methods to PCEditorManager. Use
<CodeEditor> close: methods instead of closeFile:save:.
(saveFileAs:): Use superclass method.
* Framework/PCEditorManager.m: Adopt moved methods.
(modifiedFiles): Implemented. Return array of file paths.
(hasModifiedFiles): Implemented for future use (e.g. prebuild check
in ProjectBuilder). 
(reviewUnsaved:): Implemented. Go through modified files' editors
and close which results in opening of alert "Save?" panels.
* PCAppController.m: 
(applicationShouldTerminate:): Use PCProjectManager close method
instead of closeAllProjects.
* Modules/Editors/ProjectCenter/PCEditor.m:
(_createWindow): Set "edited" flag according to current state.
(saveFile): Add alert panel on fail.
(closeFile:save:): Rewritten to properly process 'save' flag.
* Headers/Protocols/CodeEditor.h: Added close: method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27873 72102866-910b-0410-8b05-ffd578937521
2009-02-16 00:10:59 +00:00
Sergii Stoian
a417d8581e * PCMenuController.m:
(validateMenuItem:): Enable "File" menu items for files opened
  witout project. It fixes bug #25311 (now file saved).
* Framework/PCProjectManager.m:
  (openFileAtPath:): Call to orderFrontEditorForFile: explicitly because
  of last change in PCEditorManager.
* Framework/PCProjectBrowser.m:
  (doubleClick:): Do not open file in separate window with PCProjectEditor
  not PCProjectManager.
* Framework/PCProjectEditor.m:
  (openEditorForCategoryPath:windowed:): Cleanup.
* Framework/PCEditorManager.m:
  (openEditorForFile:editable:windowed:): Remove call to
  orderFrontEditorForFile:.
* Modules/Editors/ProjectCenter/PCEditor.m:
  (_createWindow): Modify default size and position of window.
  (openFileAtPath:editorManager:editable:): Remove creation of internal view.
  Create it when first requested (editorView and componentView methods).
  (windowDidBecomeKey:) No need to set first responder. It seems first responder
  remembered by window correctly.
  (windowDidResignKey:): Call resignFirstResponder: to notify others.
* Modules/Projects/Application/PCAppProject.m:
  (dealloc): TODO added.
* Documentation/TODO: Mark "Finish FileNameIcon..." task as done.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27807 72102866-910b-0410-8b05-ffd578937521
2009-02-08 00:38:13 +00:00
Gregory John Casamento
c35bd787df Changes for gorm file and debugger class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27382 72102866-910b-0410-8b05-ffd578937521
2008-12-22 00:09:23 +00:00
Nicola Pero
077d9acf41 Removed GNUSTEP_CORE_SOFTWARE=YES from makefiles and instead set PACKAGE_NAME=ProjectCenter
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27352 72102866-910b-0410-8b05-ffd578937521
2008-12-19 13:13:49 +00:00
Nicola Pero
dd04c2f9b6 Set GNUSTEP_CORE_SOFTWARE to YES so that project center is installed by default in SYSTEM if gnustep-make has been configured with --disable-packages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27338 72102866-910b-0410-8b05-ffd578937521
2008-12-18 19:25:05 +00:00
Gregory John Casamento
6a3279d598 * ChangeLog: Moved to here top level of project.
* Documentation/ChangeLog: Removed from here...
	* Modules/Editors/ProjectCenter/PCEditor.m: Corrected an issue in the
	windowDidResignKey: method which was making the window the first
	responder.  This was preventing Find from working properly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@26933 72102866-910b-0410-8b05-ffd578937521
2008-10-18 22:16:05 +00:00
Sergii Stoian
f66acd94df * Documentation/Changelog: Update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@26095 72102866-910b-0410-8b05-ffd578937521
2008-02-18 22:50:56 +00:00
Sergii Stoian
4e24cf3451 * Framework/PCEditorManager.m: Added.
* Headers/ProjectCenter/PCEditormanager.h: Added.
* PCMenuController.m: (-fileSaveAs:): move code to 
PCProjectManager.m.
* Headers/ProjectCenter/PCEditorManager.h: New file.
* Framework/PCEditorManager.m: New file. Superclass for
PCProjectEditor.
* Framework/PCProjectManager.m: Use PCEditorManager.
Implement opening files outside of projects (fixes bug #15992).
* Framework/PCProjectLoadedFiles.m: Use PCEditorManager.
* Framework/PCProject.m: (-setProjectManager:): Use new
method of initializing PCProjectEditor.
* Framework/GNUmakefile: Add PCEditorManager.[hm].
* Framework/PCProjectBrowser.m: Made use of 
PCProjectEditor's editorForFile: method.
* Framework/PCProjectEditor.m: Remove initializing of extern
variables (moved into PCEditorManager). Use '_componentView'
var instead of 'componentView'. The same with _scrollView and
_project.
(-initWithProject:): renamed into init. Removed code duplicated
with superclass' code.
(-dealloc): Removed code duplicated with superclass' code.
(-editorForFile🔑): Removed. Code moved into superclass'
editorForFile: method.
(-openEditorForCategoryPath:windowed:): Code that determines
existance of file and if file is plain text move into
[super openEditorForFile:editable:windowed:]. Changed file
opening coditions. Made use of [<CodeEditor> fileStructureItemSelected]
method. Code that determines classes and methods in category path
was removed.
(openEditorForFile:categoryPath:editable:windowed:): Removed in favour
of superclass' method.
(activeEditor): Ditto.
(allEditors): Ditto.
(closeActiveEditor:): Ditto.
(closeEditorForFile:): Ditto.
(saveFile): Ditto.
(saveFileTo:): Ditto.
(revertFileToSaved): Ditto.
(editorDidResignActive:): Ditto.
(editorDidChangeFileName:): Ditto.
(closeAllEditors:): Cleanup.
(saveFileAs:): Made use of new -openEditorForFile:editable:windowed:
method.
* Framework/PCProjectWindow.m: Made usage of editorManager method
of <CodeEditor> protocol.
* Modules/Editors/ProjectCenter/PCEditorView.m: 
(becomeFirstResponder): Use new -becomeFirstResponder: method of
PCEditor class.
* Modules/Editors/ProjectCenter/PCEditor.h: Change name of var 
projectEditor to _editorManager. Add parameter (PCEditorView *)view
to becomeFistResponder and resignFirstResponder methods. Add some
comments.
* Modules/Editors/ProjectCenter/PCEditor.m: Rename method
-openFileAtPath:categoryPath:projectEditor:editable: to
-openFileAtPath:editorManager:editable. Rename -projectEditor method
to -editorManager. Change becomeFistResponder and resignFirstResponder 
methods' definitions.
(fileStructureItemSelected:): Add initial implementation of action 
code according to the type of selected item.
* Headers/Protocols/CodeEditor.h: Change definition of
-openFileAtPath:categoryPath:projectEditor:editable: mathod to
-openFileAtPath:editorManager:editable. Remove methods
scrollToClassName: and scrollToMethodName:. Rename projectEditor
method into editorManager.
* Headers/ProjectCenter/PCProjectEditor.h: Made PCProjectEditor
as subclass of PCEditorManager. Add prefix '_' to variables.
(-initWithProject:): renamed into init.
(setProject:): Added.
Removed methods and variables duplicated with superclass.
* Headers/ProjectCenter/PCProjectManager.h: Add editorManager var.
(-saveFileAs:): renamed to saveFileAs. 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@25991 72102866-910b-0410-8b05-ffd578937521
2008-01-21 22:26:36 +00:00
Sergii Stoian
993f6d5b82 * GNUmakefile: Remove FileRTF.tiff from resoures.
* Images/FileRTF.tiff: Removed.
* Images/FileM.tiff,
* Images/FileMH.tiff,
* Images/FileH.tiff,
* Images/FileHH.tiff,
* Images/FileC.tiff,
* Images/FileCH.tiff,
Moved to Modules/Editors/ProjectEditor/Resources.
* Modules/Editors/ProjectCenter/PCEditor.h: Added new variable
_isEditable.
* Modules/Editors/ProjectCenter/PCEditor.m:
(_createEditorViewWithFrame:): Set editable state for NSTextView here.
Add observer for changed text notification here.
* Resources/Info.plist: NSTypes was extended.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@25954 72102866-910b-0410-8b05-ffd578937521
2008-01-16 00:35:17 +00:00
Sergii Stoian
e8e18614e8 * English.lproj/FindPanel.gorm: Added Find panel.
* PCMenuController.m: Added Find panel support.
* TextFinder.[hm]: Added implementation of Find panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@25498 72102866-910b-0410-8b05-ffd578937521
2007-09-23 22:27:21 +00:00
Gregory John Casamento
1cf72798df Replacment images for PC.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@25462 72102866-910b-0410-8b05-ffd578937521
2007-09-07 06:03:51 +00:00
Sergii Stoian
0674dcb996 * Modules/Editors/ProjectCenter/Resources/ObjC.syntax: Change color
of 'NO'.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@25411 72102866-910b-0410-8b05-ffd578937521
2007-08-22 22:29:49 +00:00
Sergii Stoian
a827776a6e * Modules/Editors/ProjectCenter/Resources/ObjC.syntax: Update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@24390 72102866-910b-0410-8b05-ffd578937521
2007-01-20 15:04:42 +00:00
Sergii Stoian
3793013f03 * Framework/PCProjectManager.m: Fix problem with closing project.
* Framework/PCProjectr.m: Ditto.
        * Framework/PCMakefileFactory.m: Support for root build directory added.
        * Framework/PCProjectBuilder.m: Code cleanup.
        * Framework/PCProjectEditor.m: Enable usage of parser. Start testing process.
        * Framework/PCProjectWindows.m: Enable tooltips for buttons.
        * Framework/PCPrefController.m: setRootBuildDir: fix.

        * PCAppController.m: applicationWillTerminate: Remove file from build dir on
        application quit. This code still needs review (also removed build dir because of
        use PCFileManager's method).

        * Modules/Editors/ProjectCenter/PCEditor.m: browserItemsForItem: Crashes if file
        is not supported by parser. Fixed.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@24353 72102866-910b-0410-8b05-ffd578937521
2007-01-15 18:40:58 +00:00
Sergii Stoian
f113470a11 continuing merging...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@24242 72102866-910b-0410-8b05-ffd578937521
2006-12-26 11:00:33 +00:00