mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-21 02:41:18 +00:00
Support specification of help file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@23665 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a4c58b49cd
commit
dec193e4c5
5 changed files with 800 additions and 788 deletions
|
@ -19,7 +19,8 @@
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public
|
You should have received a copy of the GNU General Public
|
||||||
License along with this library; if not, write to the Free
|
License along with this library; if not, write to the Free
|
||||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ProjectCenter/ProjectCenter.h>
|
#include <ProjectCenter/ProjectCenter.h>
|
||||||
|
@ -148,6 +149,10 @@ NSString *PCITextFieldGetFocus = @"PCITextFieldGetFocusNotification";
|
||||||
}
|
}
|
||||||
else if (activeTextField == helpFileField)
|
else if (activeTextField == helpFileField)
|
||||||
{
|
{
|
||||||
|
NSString *value = [activeTextField stringValue];
|
||||||
|
|
||||||
|
[self setProjectDictObject: value forKey: PCHelpFile notify: YES];
|
||||||
|
NSLog(@"Set %@", value);
|
||||||
}
|
}
|
||||||
else if (activeTextField == mainNIBField)
|
else if (activeTextField == mainNIBField)
|
||||||
{
|
{
|
||||||
|
@ -168,6 +173,8 @@ NSString *PCITextFieldGetFocus = @"PCITextFieldGetFocusNotification";
|
||||||
}
|
}
|
||||||
else if (activeTextField == helpFileField)
|
else if (activeTextField == helpFileField)
|
||||||
{
|
{
|
||||||
|
[infoDict removeObjectForKey: @"GSHelpContentsFile"];
|
||||||
|
[self setProjectDictObject: @"" forKey: PCHelpFile notify: YES];
|
||||||
}
|
}
|
||||||
else if (activeTextField == mainNIBField)
|
else if (activeTextField == mainNIBField)
|
||||||
{
|
{
|
||||||
|
@ -425,7 +432,8 @@ NSString *PCITextFieldGetFocus = @"PCITextFieldGetFocusNotification";
|
||||||
|
|
||||||
if (([docTypesList selectedRow] < 0) && ([docTypesItems count] > 0))
|
if (([docTypesList selectedRow] < 0) && ([docTypesItems count] > 0))
|
||||||
{
|
{
|
||||||
[docTypesList selectRow:[docTypesItems count]-1 byExtendingSelection:NO];
|
[docTypesList selectRow:
|
||||||
|
[docTypesItems count]-1 byExtendingSelection: NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
[self fillFieldsForRow: [docTypesList selectedRow]];
|
[self fillFieldsForRow: [docTypesList selectedRow]];
|
||||||
|
@ -608,7 +616,8 @@ NSString *PCITextFieldGetFocus = @"PCITextFieldGetFocusNotification";
|
||||||
|
|
||||||
[appImageField setStringValue: [projectDict objectForKey: PCAppIcon]];
|
[appImageField setStringValue: [projectDict objectForKey: PCAppIcon]];
|
||||||
[helpFileField setStringValue: [projectDict objectForKey: PCHelpFile]];
|
[helpFileField setStringValue: [projectDict objectForKey: PCHelpFile]];
|
||||||
[mainNIBField setStringValue:[projectDict objectForKey:PCMainInterfaceFile]];
|
[mainNIBField setStringValue:
|
||||||
|
[projectDict objectForKey: PCMainInterfaceFile]];
|
||||||
|
|
||||||
docTypesItems = [projectDict objectForKey: PCDocumentTypes];
|
docTypesItems = [projectDict objectForKey: PCDocumentTypes];
|
||||||
[docTypesList reloadData];
|
[docTypesList reloadData];
|
||||||
|
@ -617,7 +626,7 @@ NSString *PCITextFieldGetFocus = @"PCITextFieldGetFocusNotification";
|
||||||
// TextFields (PCITextField subclass)
|
// TextFields (PCITextField subclass)
|
||||||
//
|
//
|
||||||
// NSTextField become first responder when user clicks on it and immediately
|
// NSTextField become first responder when user clicks on it and immediately
|
||||||
// lost first resonder status, so we can't catch when focus leaves textfield
|
// lost first responder status, so we can't catch when focus leaves textfield
|
||||||
// with resignFirstResponder: method overriding. Here we're using
|
// with resignFirstResponder: method overriding. Here we're using
|
||||||
// controlTextDidEndEditing (NSTextField's delegate method) to achieve this.
|
// controlTextDidEndEditing (NSTextField's delegate method) to achieve this.
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public
|
You should have received a copy of the GNU General Public
|
||||||
License along with this library; if not, write to the Free
|
License along with this library; if not, write to the Free
|
||||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USAA.
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
Boston, MA 02110-1301, USAA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ProjectCenter/ProjectCenter.h>
|
#include <ProjectCenter/ProjectCenter.h>
|
||||||
|
@ -323,6 +324,7 @@
|
||||||
[self writeInfoEntry: @"NSIcon" forKey: PCAppIcon];
|
[self writeInfoEntry: @"NSIcon" forKey: PCAppIcon];
|
||||||
[self writeInfoEntry: @"NSMainNibFile" forKey: PCMainInterfaceFile];
|
[self writeInfoEntry: @"NSMainNibFile" forKey: PCMainInterfaceFile];
|
||||||
[self writeInfoEntry: @"NSPrincipalClass" forKey: PCPrincipalClass];
|
[self writeInfoEntry: @"NSPrincipalClass" forKey: PCPrincipalClass];
|
||||||
|
[self writeInfoEntry: @"GSHelpContentsFile" forKey: PCHelpFile];
|
||||||
[infoDict setObject: @"Application" forKey: @"NSRole"];
|
[infoDict setObject: @"Application" forKey: @"NSRole"];
|
||||||
// [infoDict setObject: [self convertExtensions] forKey: @"NSTypes"];
|
// [infoDict setObject: [self convertExtensions] forKey: @"NSTypes"];
|
||||||
[self writeInfoEntry: @"NSTypes" forKey: PCDocumentTypes];
|
[self writeInfoEntry: @"NSTypes" forKey: PCDocumentTypes];
|
||||||
|
|
|
@ -334,6 +334,7 @@
|
||||||
[self writeInfoEntry: @"NSIcon" forKey: PCAppIcon];
|
[self writeInfoEntry: @"NSIcon" forKey: PCAppIcon];
|
||||||
[self writeInfoEntry: @"GSMainMarkupFile" forKey: PCMainInterfaceFile];
|
[self writeInfoEntry: @"GSMainMarkupFile" forKey: PCMainInterfaceFile];
|
||||||
[self writeInfoEntry: @"NSPrincipalClass" forKey: PCPrincipalClass];
|
[self writeInfoEntry: @"NSPrincipalClass" forKey: PCPrincipalClass];
|
||||||
|
[self writeInfoEntry: @"GSHelpContentsFile" forKey: PCHelpFile];
|
||||||
[infoDict setObject: @"Application" forKey: @"NSRole"];
|
[infoDict setObject: @"Application" forKey: @"NSRole"];
|
||||||
[infoDict setObject: [self convertExtensions] forKey: @"NSTypes"];
|
[infoDict setObject: [self convertExtensions] forKey: @"NSTypes"];
|
||||||
[self writeInfoEntry: @"URL" forKey: PCURL];
|
[self writeInfoEntry: @"URL" forKey: PCURL];
|
||||||
|
|
Loading…
Reference in a new issue