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:
Germán Arias 2010-11-22 17:25:34 +00:00
parent 79ae98bbb0
commit 912da0d4b3
9 changed files with 59 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,11 @@
{
"## Comment" = "Do NOT change this file, Gorm maintains it";
PCProjectInspector = {
Actions = (
);
Outlets = (
projectLanguagesView
);
Super = NSObject;
};
}

View file

@ -115,6 +115,7 @@ ProjectCenter_LOCALIZED_RESOURCE_FILES = \
BuildAttributes.gorm \
ProjectAttributes.gorm \
ProjectDescription.gorm \
ProjectLanguages.gorm \
FileAttributes.gorm \
LogPanel.gorm \
SaveModified.gorm

View file

@ -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
// ============================================================================

View file

@ -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
// ============================================================================