mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
Fixed warning during the compilation of PE's cocoa UI unit.
--HG-- branch : xibless rename : cocoa/base/DetailsPanel.h => cocoa/base/DetailsPanelBase.h rename : cocoa/base/DetailsPanel.m => cocoa/base/DetailsPanelBase.m rename : cocoa/pe/DetailsPanelPE.h => cocoa/pe/DetailsPanel.h rename : cocoa/pe/DetailsPanelPE.m => cocoa/pe/DetailsPanel.m
This commit is contained in:
parent
244af5b652
commit
1fe42f673f
@ -10,7 +10,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
#import <Python.h>
|
#import <Python.h>
|
||||||
#import "PyDetailsPanel.h"
|
#import "PyDetailsPanel.h"
|
||||||
|
|
||||||
@interface DetailsPanel : NSWindowController <NSTableViewDataSource>
|
@interface DetailsPanelBase : NSWindowController <NSTableViewDataSource>
|
||||||
{
|
{
|
||||||
NSTableView *detailsTable;
|
NSTableView *detailsTable;
|
||||||
|
|
||||||
@ -22,6 +22,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
- (id)initWithPyRef:(PyObject *)aPyRef;
|
- (id)initWithPyRef:(PyObject *)aPyRef;
|
||||||
- (PyDetailsPanel *)model;
|
- (PyDetailsPanel *)model;
|
||||||
|
|
||||||
|
- (NSWindow *)createWindow;
|
||||||
- (BOOL)isVisible;
|
- (BOOL)isVisible;
|
||||||
- (void)toggleVisibility;
|
- (void)toggleVisibility;
|
||||||
|
|
@ -6,18 +6,17 @@ which should be included with this package. The terms are also available at
|
|||||||
http://www.hardcoded.net/licenses/bsd_license
|
http://www.hardcoded.net/licenses/bsd_license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "DetailsPanel.h"
|
#import "DetailsPanelBase.h"
|
||||||
#import "DetailsPanel_UI.h"
|
|
||||||
#import "HSPyUtil.h"
|
#import "HSPyUtil.h"
|
||||||
|
|
||||||
@implementation DetailsPanel
|
@implementation DetailsPanelBase
|
||||||
|
|
||||||
@synthesize detailsTable;
|
@synthesize detailsTable;
|
||||||
|
|
||||||
- (id)initWithPyRef:(PyObject *)aPyRef
|
- (id)initWithPyRef:(PyObject *)aPyRef
|
||||||
{
|
{
|
||||||
self = [super initWithWindow:nil];
|
self = [super initWithWindow:nil];
|
||||||
[self setWindow:createDetailsPanel_UI(self)];
|
[self setWindow:[self createWindow]];
|
||||||
model = [[PyDetailsPanel alloc] initWithModel:aPyRef];
|
model = [[PyDetailsPanel alloc] initWithModel:aPyRef];
|
||||||
[model bindCallback:createCallback(@"DetailsPanelView", self)];
|
[model bindCallback:createCallback(@"DetailsPanelView", self)];
|
||||||
return self;
|
return self;
|
||||||
@ -34,6 +33,11 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
return (PyDetailsPanel *)model;
|
return (PyDetailsPanel *)model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSWindow *)createWindow
|
||||||
|
{
|
||||||
|
return nil; // Virtual
|
||||||
|
}
|
||||||
|
|
||||||
- (void)refreshDetails
|
- (void)refreshDetails
|
||||||
{
|
{
|
||||||
[detailsTable reloadData];
|
[detailsTable reloadData];
|
13
cocoa/me/DetailsPanel.h
Normal file
13
cocoa/me/DetailsPanel.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
||||||
|
|
||||||
|
This software is licensed under the "BSD" 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/bsd_license
|
||||||
|
*/
|
||||||
|
|
||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "DetailsPanelBase.h"
|
||||||
|
|
||||||
|
@interface DetailsPanel : DetailsPanelBase
|
||||||
|
@end
|
17
cocoa/me/DetailsPanel.m
Normal file
17
cocoa/me/DetailsPanel.m
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
||||||
|
|
||||||
|
This software is licensed under the "BSD" 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/bsd_license
|
||||||
|
*/
|
||||||
|
|
||||||
|
#import "DetailsPanel.h"
|
||||||
|
#import "DetailsPanel_UI.h"
|
||||||
|
|
||||||
|
@implementation DetailsPanel
|
||||||
|
- (NSWindow *)createWindow
|
||||||
|
{
|
||||||
|
return createDetailsPanel_UI(self);
|
||||||
|
}
|
||||||
|
@end
|
@ -11,7 +11,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
#import "Utils.h"
|
#import "Utils.h"
|
||||||
#import "ValueTransformers.h"
|
#import "ValueTransformers.h"
|
||||||
#import "Consts.h"
|
#import "Consts.h"
|
||||||
#import "DetailsPanelPE.h"
|
#import "DetailsPanel.h"
|
||||||
#import "DirectoryPanel.h"
|
#import "DirectoryPanel.h"
|
||||||
#import "ResultWindow.h"
|
#import "ResultWindow.h"
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
|
|
||||||
- (DetailsPanel *)createDetailsPanel
|
- (DetailsPanel *)createDetailsPanel
|
||||||
{
|
{
|
||||||
return [[DetailsPanelPE alloc] initWithApp:model];
|
return [[DetailsPanel alloc] initWithApp:model];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)clearPictureCache
|
- (void)clearPictureCache
|
||||||
|
@ -7,10 +7,10 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
#import "DetailsPanel.h"
|
#import "DetailsPanelBase.h"
|
||||||
#import "PyDupeGuru.h"
|
#import "PyDupeGuru.h"
|
||||||
|
|
||||||
@interface DetailsPanelPE : DetailsPanel
|
@interface DetailsPanel : DetailsPanelBase
|
||||||
{
|
{
|
||||||
NSImageView *dupeImage;
|
NSImageView *dupeImage;
|
||||||
NSProgressIndicator *dupeProgressIndicator;
|
NSProgressIndicator *dupeProgressIndicator;
|
@ -10,10 +10,11 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
#import "NSNotificationAdditions.h"
|
#import "NSNotificationAdditions.h"
|
||||||
#import "NSImageAdditions.h"
|
#import "NSImageAdditions.h"
|
||||||
#import "PyDupeGuru.h"
|
#import "PyDupeGuru.h"
|
||||||
#import "DetailsPanelPE.h"
|
#import "DetailsPanel.h"
|
||||||
#import "Consts.h"
|
#import "Consts.h"
|
||||||
|
#import "DetailsPanel_UI.h"
|
||||||
|
|
||||||
@implementation DetailsPanelPE
|
@implementation DetailsPanel
|
||||||
|
|
||||||
@synthesize dupeImage;
|
@synthesize dupeImage;
|
||||||
@synthesize dupeProgressIndicator;
|
@synthesize dupeProgressIndicator;
|
||||||
@ -29,6 +30,11 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSWindow *)createWindow
|
||||||
|
{
|
||||||
|
return createDetailsPanel_UI(self);
|
||||||
|
}
|
||||||
|
|
||||||
- (void)loadImageAsync:(NSString *)imagePath
|
- (void)loadImageAsync:(NSString *)imagePath
|
||||||
{
|
{
|
||||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
@ -1,5 +1,5 @@
|
|||||||
ownerclass = 'DetailsPanelPE'
|
ownerclass = 'DetailsPanel'
|
||||||
ownerimport = 'DetailsPanelPE.h'
|
ownerimport = 'DetailsPanel.h'
|
||||||
|
|
||||||
result = Panel(593, 398, "Details of Selected File")
|
result = Panel(593, 398, "Details of Selected File")
|
||||||
table = TableView(result)
|
table = TableView(result)
|
||||||
|
13
cocoa/se/DetailsPanel.h
Normal file
13
cocoa/se/DetailsPanel.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
||||||
|
|
||||||
|
This software is licensed under the "BSD" 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/bsd_license
|
||||||
|
*/
|
||||||
|
|
||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
#import "DetailsPanelBase.h"
|
||||||
|
|
||||||
|
@interface DetailsPanel : DetailsPanelBase
|
||||||
|
@end
|
17
cocoa/se/DetailsPanel.m
Normal file
17
cocoa/se/DetailsPanel.m
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2012 Hardcoded Software (http://www.hardcoded.net)
|
||||||
|
|
||||||
|
This software is licensed under the "BSD" 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/bsd_license
|
||||||
|
*/
|
||||||
|
|
||||||
|
#import "DetailsPanel.h"
|
||||||
|
#import "DetailsPanel_UI.h"
|
||||||
|
|
||||||
|
@implementation DetailsPanel
|
||||||
|
- (NSWindow *)createWindow
|
||||||
|
{
|
||||||
|
return createDetailsPanel_UI(self);
|
||||||
|
}
|
||||||
|
@end
|
Loading…
x
Reference in New Issue
Block a user