-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathFilterController.m
37 lines (31 loc) · 1.01 KB
/
FilterController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// FilterController.m
// Cindex
//
// Created by Peter Lennie on 6/7/08.
// Copyright 2008 Indexing Research. All rights reserved.
//
#import "FilterController.h"
@implementation FilterController
- (void)awakeFromNib {
[super awakeFromNib];
int count;
FF = [[self document] iIndex];
[enablefilter setState:FF->head.privpars.filter.on];
for (count = 0; count < FLAGLIMIT; count++)
[[labels cellWithTag:count] setState:FF->head.privpars.filter.label[count]];
}
- (IBAction)showHelp:(id)sender {
[[NSHelpManager sharedHelpManager] openHelpAnchor:@"hiding0_Anchor-14210" inBook:@"Cindex 4.2.5 Help"];
}
- (IBAction)closeSheet:(id)sender {
if ([sender tag] == OKTAG) {
int count;
FF->head.privpars.filter.on = [enablefilter state];
for (count = 0; count < FLAGLIMIT; count++)
FF->head.privpars.filter.label[count] = [[labels cellWithTag:count] state];
[[self document] redisplay:0 mode:0]; // redisplay all records
}
[self.window.sheetParent endSheet:self.window returnCode:[sender tag]];
}
@end