mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 16:11:25 +00:00
Connect add/remove buttons.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@40223 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eab302cc30
commit
3edc315827
5 changed files with 13 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
||||
|
||||
Copyright (C) 2001-2015 Free Software Foundation
|
||||
Copyright (C) 2001-2016 Free Software Foundation
|
||||
|
||||
Author: Serg Stoyan <stoyan@on.com.ua>
|
||||
Riccardo Mottola <rm@gnu.org>
|
||||
|
@ -50,7 +50,9 @@
|
|||
- (void)clearMainNib:(id)sender;
|
||||
- (BOOL)setMainNibWithFileAtPath:(NSString *)path;
|
||||
|
||||
- (void)setDocBasedApp:(id)sender;
|
||||
- (IBAction)setDocBasedApp:(id)sender;
|
||||
- (IBAction)addDocType: (id)sender;
|
||||
- (IBAction)removeDocType: (id)sender;
|
||||
|
||||
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
|
||||
- (id) tableView:(NSTableView *)aTableView
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
Copyright (C) 2001-2016 Free Software Foundation
|
||||
|
||||
Author: Serg Stoyan <stoyan@on.com.ua>
|
||||
Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
|
@ -261,7 +262,7 @@ cleanup(NSMutableDictionary *m, NSString *k)
|
|||
[docTypesPanel makeKeyAndOrderFront: nil];
|
||||
}
|
||||
|
||||
- (void)setDocBasedApp: (id)sender
|
||||
- (IBAction)setDocBasedApp: (id)sender
|
||||
{
|
||||
NSString *docBased = [projectDict objectForKey: PCDocumentBasedApp];
|
||||
|
||||
|
@ -341,7 +342,7 @@ cleanup(NSMutableDictionary *m, NSString *k)
|
|||
}
|
||||
}
|
||||
|
||||
- (void)addDocType: (id)sender
|
||||
- (IBAction)addDocType: (id)sender
|
||||
{
|
||||
NSInteger row;
|
||||
NSMutableDictionary *entry = [NSMutableDictionary dictionaryWithCapacity: 6];
|
||||
|
@ -375,7 +376,7 @@ cleanup(NSMutableDictionary *m, NSString *k)
|
|||
notify: YES];
|
||||
}
|
||||
|
||||
- (void)removeDocType: (id)sender
|
||||
- (IBAction)removeDocType: (id)sender
|
||||
{
|
||||
int selectedRow = [docTypesList selectedRow];
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
FirstResponder = {
|
||||
Actions = (
|
||||
"addDocType:",
|
||||
"clearAppIcon:",
|
||||
"clearFile:",
|
||||
"clearHelpFile:",
|
||||
|
@ -28,7 +29,9 @@
|
|||
"setAppType:",
|
||||
"setBundleIdentifier:",
|
||||
"setDocBasedApp:",
|
||||
"showDocTypesPanel:"
|
||||
"showDocTypesPanel:",
|
||||
"addDocType:",
|
||||
"removeDocType:"
|
||||
);
|
||||
Outlets = (
|
||||
projectAttributesView,
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue