mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 16:11:25 +00:00
Adding Languages panel part I
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
79ae98bbb0
commit
912da0d4b3
9 changed files with 59 additions and 0 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2010-11-22 German Arias <german@xelalug.org>
|
||||
* Framework/GNUmakefile: Added ProjectLanguages.gorm
|
||||
* Headers/ProjectCenter/PCProjectInspector.h:
|
||||
* Framework/PCProjectInspector.m:
|
||||
Added projectLanguagesView and the method create the
|
||||
panel.
|
||||
* Framework/English.lproj/ProjectInspector.gorm:
|
||||
Added "ProjectLanguages" option.
|
||||
* Framework/English.lproj/ProjectLanguages.gorm:
|
||||
New "Project Languages" panel. At the moment this
|
||||
is empty, I will add the content later.
|
||||
|
||||
2010-11-21 German Arias <german@xelalug.org>
|
||||
* Framework/PCProjectInspector.m: Set "project" and
|
||||
"projectDir" when the panel is loaded. And take the
|
||||
|
|
Binary file not shown.
Binary file not shown.
11
Framework/English.lproj/ProjectLanguages.gorm/data.classes
Normal file
11
Framework/English.lproj/ProjectLanguages.gorm/data.classes
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"## Comment" = "Do NOT change this file, Gorm maintains it";
|
||||
PCProjectInspector = {
|
||||
Actions = (
|
||||
);
|
||||
Outlets = (
|
||||
projectLanguagesView
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
}
|
BIN
Framework/English.lproj/ProjectLanguages.gorm/data.info
Normal file
BIN
Framework/English.lproj/ProjectLanguages.gorm/data.info
Normal file
Binary file not shown.
BIN
Framework/English.lproj/ProjectLanguages.gorm/objects.gorm
Normal file
BIN
Framework/English.lproj/ProjectLanguages.gorm/objects.gorm
Normal file
Binary file not shown.
|
@ -115,6 +115,7 @@ ProjectCenter_LOCALIZED_RESOURCE_FILES = \
|
|||
BuildAttributes.gorm \
|
||||
ProjectAttributes.gorm \
|
||||
ProjectDescription.gorm \
|
||||
ProjectLanguages.gorm \
|
||||
FileAttributes.gorm \
|
||||
LogPanel.gorm \
|
||||
SaveModified.gorm
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
RELEASE(projectAttributesSubview);
|
||||
RELEASE(projectAttributesView);
|
||||
RELEASE(projectDescriptionView);
|
||||
RELEASE(projectLanguagesView);
|
||||
RELEASE(fileAttributesView);
|
||||
|
||||
RELEASE(inspectorPanel);
|
||||
|
@ -124,6 +125,9 @@
|
|||
// Project Description
|
||||
[self createProjectDescription];
|
||||
|
||||
// Project Languages
|
||||
[self createProjectLanguages];
|
||||
|
||||
// File Attributes
|
||||
[self createFileAttributes];
|
||||
|
||||
|
@ -170,6 +174,9 @@
|
|||
[inspectorView setContentView:projectDescriptionView];
|
||||
break;
|
||||
case 3:
|
||||
[inspectorView setContentView:projectLanguagesView];
|
||||
break;
|
||||
case 4:
|
||||
[inspectorView setContentView:fileAttributesView];
|
||||
break;
|
||||
}
|
||||
|
@ -687,6 +694,26 @@
|
|||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// ==== Project Languages
|
||||
// ============================================================================
|
||||
|
||||
- (void)createProjectLanguages
|
||||
{
|
||||
if (projectLanguagesView)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ([NSBundle loadNibNamed:@"ProjectLanguages" owner:self] == NO)
|
||||
{
|
||||
PCLogError(self, @"error loading ProjectLanguages NIB file!");
|
||||
return;
|
||||
}
|
||||
|
||||
[projectLanguagesView retain];
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// ==== File Attributes
|
||||
// ============================================================================
|
||||
|
|
|
@ -88,6 +88,9 @@
|
|||
IBOutlet NSButton *authorUp;
|
||||
IBOutlet NSButton *authorDown;
|
||||
|
||||
// Project Languages
|
||||
IBOutlet NSBox *projectLanguagesView;
|
||||
|
||||
// File Attributes
|
||||
IBOutlet NSBox *fileAttributesView;
|
||||
IBOutlet PCFileNameIcon *fileIconView;
|
||||
|
@ -153,6 +156,11 @@
|
|||
// ============================================================================
|
||||
- (void)createProjectDescription;
|
||||
|
||||
// ============================================================================
|
||||
// ==== Project Languages
|
||||
// ============================================================================
|
||||
- (void)createProjectLanguages;
|
||||
|
||||
// ============================================================================
|
||||
// ==== File Attributes
|
||||
// ============================================================================
|
||||
|
|
Loading…
Reference in a new issue