2011-09-13 20:31:25 +00:00
|
|
|
/*
|
|
|
|
Copyright 2011 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 "PrioritizeDialog.h"
|
|
|
|
|
|
|
|
@implementation PrioritizeDialog
|
|
|
|
- (id)initWithPy:(PyApp *)aPy
|
|
|
|
{
|
|
|
|
self = [super initWithNibName:@"PrioritizeDialog" pyClassName:@"PyPrioritizeDialog" pyParent:aPy];
|
|
|
|
[self window];
|
|
|
|
categoryPopUp = [[HSPopUpList alloc] initWithPy:[[self py] categoryList] view:categoryPopUpView];
|
|
|
|
criteriaList = [[HSSelectableList alloc] initWithPy:[[self py] criteriaList] view:criteriaTableView];
|
2011-09-16 15:08:24 +00:00
|
|
|
prioritizationList = [[PrioritizeList alloc] initWithPy:[[self py] prioritizationList] view:prioritizationTableView];
|
2011-09-13 20:31:25 +00:00
|
|
|
[self connect];
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)dealloc
|
|
|
|
{
|
|
|
|
[self disconnect];
|
|
|
|
[categoryPopUp release];
|
|
|
|
[criteriaList release];
|
2011-09-16 15:08:24 +00:00
|
|
|
[prioritizationList release];
|
2011-09-13 20:31:25 +00:00
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (PyPrioritizeDialog *)py
|
|
|
|
{
|
|
|
|
return (PyPrioritizeDialog *)py;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)addSelected:(id)sender
|
|
|
|
{
|
|
|
|
[[self py] addSelected];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)removeSelected:(id)sender
|
|
|
|
{
|
|
|
|
[[self py] removeSelected];
|
|
|
|
}
|
2011-09-13 22:19:46 +00:00
|
|
|
|
|
|
|
- (IBAction)ok:(id)sender
|
|
|
|
{
|
|
|
|
[NSApp stopModal];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)cancel:(id)sender
|
|
|
|
{
|
|
|
|
[NSApp abortModal];
|
|
|
|
}
|
2011-09-13 20:31:25 +00:00
|
|
|
@end
|