Removed Editor.tiff. Editor button replaced with Loaded Files button. Fixes in Inspector regarding applying changes entered in textfields

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@19769 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2004-07-22 14:42:57 +00:00
parent c3662d2502
commit db635d78a3
10 changed files with 47 additions and 34 deletions

View file

@ -6,9 +6,13 @@
* Library/PCProjectBuilder.m: Use new tooltip code and remove old
style code.
* Library/PCProjectLauncher.m: ditto.
* Library/PCProjectWindow.m: ditto.
* Library/PCProjectWindow.m: ditto. Editor button replaced with
Loaded Files button.
* Library/PCProjectInspector.m: Remove textfields linking programmatically
and make it using GORM. Fix applying changes to textfields.
*Images/ButtonTile.tiff: removed.
* Images/ButtonTile.tiff: removed.
* Images/Editor.tiff: removed.
2004-07-15 Serg Stoyan <stoyan255@ukr.net>

View file

@ -48,7 +48,6 @@ Images/MultiFiles.tiff \
Images/Options.tiff \
Images/Run.tiff \
Images/Stop.tiff \
Images/Editor.tiff \
Images/ProjectCenter_add.tiff \
Images/ProjectCenter_cvs.tiff \
Images/ProjectCenter_dist.tiff \

Binary file not shown.

View file

@ -207,11 +207,10 @@
- (void)mouseEntered:(NSEvent *)theEvent
{
NSLog (@"mouseEntered");
// NSLog (@"mouseEntered");
if (ttTimer == nil)
{
// NSLog (@"mouseEntered: setTimer: %@", data);
ttTimer = [NSTimer scheduledTimerWithTimeInterval:0.5
target:self
selector:@selector(_showTooltip:)

View file

@ -306,6 +306,11 @@
// ==== Notifications
// ============================================================================
- (void)controlTextDidEndEditing:(NSNotification *)aNotification
{
[self changeCommonProjectEntry:[aNotification object]];
}
- (void)activeProjectDidChange:(NSNotification *)aNotif
{
PCProject *rootProject = [projectManager rootActiveProject];
@ -430,13 +435,6 @@
// Buttons
[self setSearchOrderButtonsState];
[cppOptField setNextText:objcOptField];
[objcOptField setNextText:cOptField];
[cOptField setNextText:ldOptField];
[ldOptField setNextText:installPathField];
[installPathField setNextText:toolField];
[toolField setNextText:cppOptField];
// Retain view
[buildAttributesView retain];
}
@ -594,13 +592,7 @@
[authorDown setRefusesFirstResponder:YES];
[authorDown setImage: [NSImage imageNamed:@"common_ArrowDown"]];
// Link textfields
[descriptionField setNextText:releaseField];
[releaseField setNextText:licenseField];
[licenseField setNextText:licDescriptionField];
[licDescriptionField setNextText:urlField];
[urlField setNextText:descriptionField];
// Retain view
[projectDescriptionView retain];
}

View file

@ -42,7 +42,7 @@
NSBox *toolbarView;
PCButton *buildButton;
PCButton *launchButton;
PCButton *editorButton;
PCButton *loadedFilesButton;
PCButton *findButton;
PCButton *inspectorButton;

View file

@ -125,16 +125,27 @@
[toolbarView addSubview: launchButton];
RELEASE (launchButton);
editorButton = [[PCButton alloc] initWithFrame: NSMakeRect(88,5,43,43)];
[editorButton setRefusesFirstResponder:YES];
[editorButton setToolTip: @"Editor"];
[editorButton setImage: IMAGE(@"Editor")];
[editorButton setTarget: self];
[editorButton setAction: @selector(showProjectEditor:)];
[editorButton setAutoresizingMask: (NSViewMaxXMargin | NSViewMinYMargin)];
[editorButton setButtonType: NSMomentaryPushButton];
[toolbarView addSubview: editorButton];
RELEASE (editorButton);
if (![project isExecutable])
{
[launchButton setEnabled:NO];
}
loadedFilesButton = [[PCButton alloc] initWithFrame: NSMakeRect(88,5,43,43)];
[loadedFilesButton setRefusesFirstResponder:YES];
[loadedFilesButton setToolTip: @"Loaded Files"];
[loadedFilesButton setImage: IMAGE(@"Files")];
[loadedFilesButton setTarget: self];
[loadedFilesButton setAction: @selector(showProjectLoadedFiles:)];
[loadedFilesButton
setAutoresizingMask: (NSViewMaxXMargin | NSViewMinYMargin)];
[loadedFilesButton setButtonType: NSMomentaryPushButton];
[toolbarView addSubview: loadedFilesButton];
RELEASE (loadedFilesButton);
if ([self hasLoadedFilesView])
{
[loadedFilesButton setEnabled:NO];
}
findButton = [[PCButton alloc] initWithFrame: NSMakeRect(132,5,43,43)];
[findButton setRefusesFirstResponder:YES];
@ -810,13 +821,21 @@
}
// Loaded Files view
if ([self hasLoadedFilesView] && [[v_split subviews] count] == 1)
if ([self hasLoadedFilesView])
{
[self showProjectLoadedFiles:self];
if ([[v_split subviews] count] == 1)
{
[self showProjectLoadedFiles:self];
}
[loadedFilesButton setEnabled:NO];
}
else if (![self hasLoadedFilesView] && [[v_split subviews] count] == 2)
else
{
[self showProjectLoadedFiles:self];
if ([[v_split subviews] count] == 2)
{
[self showProjectLoadedFiles:self];
}
[loadedFilesButton setEnabled:YES];
}
}