-
Notifications
You must be signed in to change notification settings - Fork 2
/
Toolbar.h
59 lines (36 loc) · 1.22 KB
/
Toolbar.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// Toolbar.h
// CronniX
//
// Created by sas on Sun Jun 10 2001.
// Copyright (c) 2001 __CompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#import "crController.h"
@class crController;
@interface Toolbar : NSObject {
crController *controller;
NSToolbar *toolbar;
NSMutableDictionary *items;
NSToolbarItem *useritem;
}
- (id)initWithController: (crController *)controller;
// toolbar delegates
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag;
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar;
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar;
- (int)count;
// user actions
- (void)newLineToolbarItemClicked:(NSToolbarItem*)item;
- (void)removeLineToolbarItemClicked:(NSToolbarItem*)item;
- (void)openForUserToolbarItemClicked:(NSToolbarItem*)item;
- (void)writeCrontabToolbarItemClicked:(NSToolbarItem*)item;
// toolbar menu actions
- (void)customize:(id)sender;
- (void)showhide:(id)sender;
- (void)setUser: (NSString *)username;
- (BOOL)isVisible;
// workers
- (void) setImageWithName: (NSString *)name forItem: (NSToolbarItem *)item;
@end