1//
2//  PRCHisto.m
3//  PRICE
4//  Histogram Controller
5//
6//  Created by Riccardo Mottola on Thu Dec 18 2003.
7//  Copyright (c) 2003 Carduus. All rights reserved.
8//
9// This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
10// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
12#import "MyDocument.h"
13#import "PRCHisto.h"
14
15
16@implementation PRCHisto
17
18- (IBAction)showHistogram:(id)sender
19{
20    if (!histoWindow)
21        [NSBundle loadNibNamed:@"Histogram" owner:self];
22    [histoWindow makeKeyAndOrderFront:nil];
23    [histoView setImage :[[[NSDocumentController sharedDocumentController] currentDocument] activeImage]];
24    [histoView calculateHistogram];
25    [histoView setNeedsDisplay: YES];
26}
27
28@end
29