2009-06-15 12:33:58 +00:00
|
|
|
#import "DetailsPanel.h"
|
2009-06-15 12:53:47 +00:00
|
|
|
#import "Consts.h"
|
2009-06-15 12:33:58 +00:00
|
|
|
|
|
|
|
@implementation DetailsPanelBase
|
|
|
|
- (id)initWithPy:(PyApp *)aPy
|
|
|
|
{
|
|
|
|
self = [super initWithWindowNibName:@"Details"];
|
|
|
|
[self window]; //So the detailsTable is initialized.
|
|
|
|
[detailsTable setPy:aPy];
|
2009-06-15 12:53:47 +00:00
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(duplicateSelectionChanged:) name:DuplicateSelectionChangedNotification object:nil];
|
2009-06-15 12:33:58 +00:00
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)refresh
|
|
|
|
{
|
|
|
|
[detailsTable reloadData];
|
|
|
|
}
|
2009-06-15 12:53:47 +00:00
|
|
|
|
|
|
|
/* Notifications */
|
|
|
|
- (void)duplicateSelectionChanged:(NSNotification *)aNotification
|
|
|
|
{
|
|
|
|
if ([[self window] isVisible])
|
|
|
|
[self refresh];
|
|
|
|
}
|
2009-06-15 12:33:58 +00:00
|
|
|
@end
|