mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-17 20:49:02 +00:00
f0a38a2b3f
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40219
34 lines
918 B
Objective-C
34 lines
918 B
Objective-C
/*
|
|
Copyright 2009 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
This software is licensed under the "HS" License as described in the "LICENSE" file,
|
|
which should be included with this package. The terms are also available at
|
|
http://www.hardcoded.net/licenses/hs_license
|
|
*/
|
|
|
|
#import "DetailsPanel.h"
|
|
#import "Consts.h"
|
|
|
|
@implementation DetailsPanelBase
|
|
- (id)initWithPy:(PyApp *)aPy
|
|
{
|
|
self = [super initWithWindowNibName:@"DetailsPanel"];
|
|
[self window]; //So the detailsTable is initialized.
|
|
[detailsTable setPy:aPy];
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(duplicateSelectionChanged:) name:DuplicateSelectionChangedNotification object:nil];
|
|
return self;
|
|
}
|
|
|
|
- (void)refresh
|
|
{
|
|
[detailsTable reloadData];
|
|
}
|
|
|
|
/* Notifications */
|
|
- (void)duplicateSelectionChanged:(NSNotification *)aNotification
|
|
{
|
|
if ([[self window] isVisible])
|
|
[self refresh];
|
|
}
|
|
@end
|