From 308ab0cd529e684449c0c602fae143c70c8788ae Mon Sep 17 00:00:00 2001 From: hsoft Date: Mon, 15 Jun 2009 12:33:58 +0000 Subject: [PATCH] base cocoa: pushed DetailsPanel common code down. --HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%4053 --- base/cocoa/DetailsPanel.h | 13 +++++++++++++ base/cocoa/DetailsPanel.m | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 base/cocoa/DetailsPanel.h create mode 100644 base/cocoa/DetailsPanel.m diff --git a/base/cocoa/DetailsPanel.h b/base/cocoa/DetailsPanel.h new file mode 100644 index 00000000..8bbd0f52 --- /dev/null +++ b/base/cocoa/DetailsPanel.h @@ -0,0 +1,13 @@ +#import +#import "PyApp.h" +#import "Table.h" + + +@interface DetailsPanelBase : NSWindowController +{ + IBOutlet TableView *detailsTable; +} +- (id)initWithPy:(PyApp *)aPy; + +- (void)refresh; +@end \ No newline at end of file diff --git a/base/cocoa/DetailsPanel.m b/base/cocoa/DetailsPanel.m new file mode 100644 index 00000000..7cca6ede --- /dev/null +++ b/base/cocoa/DetailsPanel.m @@ -0,0 +1,16 @@ +#import "DetailsPanel.h" + +@implementation DetailsPanelBase +- (id)initWithPy:(PyApp *)aPy +{ + self = [super initWithWindowNibName:@"Details"]; + [self window]; //So the detailsTable is initialized. + [detailsTable setPy:aPy]; + return self; +} + +- (void)refresh +{ + [detailsTable reloadData]; +} +@end