-
Notifications
You must be signed in to change notification settings - Fork 0
/
LabStatusController.h
executable file
·76 lines (56 loc) · 1.77 KB
/
LabStatusController.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// LabStatusController.h
// LabStatus
//
// Created by Christian Pape on 07.10.08.
// Copyright 2008 cc-productions. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PreferencesController.h"
#import "PopUpController.h"
#import "Action.h"
#import "Host.h"
#import "Indicator.h"
@interface LabStatusController : NSObject {
// arrays containing configuration
NSMutableArray *hosts;
NSMutableArray *indicators;
NSMutableArray *actions;
int progress;
// index for the indicator & action controls
int hostIndex, indicatorIndex;
// width of controls
int hostnameWidth;
int headerWidth;
// Outlets for panel & view
IBOutlet NSPanel* labStatusPanel;
IBOutlet NSView* labStatusView;
// array holding header textfields
NSMutableArray *headerControls;
// actual running task
NSTask *task;
// actual running progress indicator
NSProgressIndicator *progressIndicator;
// actual running timer
NSTimer *timer;
// field for message if unconfigured
NSTextField *infoTextField;
// controller for preferences & popup panel
PopUpController *popUpController;
PreferencesController *preferencesController;
// Preferences
Preferences *preferences;
}
- (id)init;
- (void)awakeFromNib;
- (IBAction)showPreferencesPanel:(id)sender;
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication;
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag;
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender;
- (void)resizePanelWithWidth:(int)width height:(int)height;
- (void)createControls;
- (void)removeControls;
- (void)startTimer;
- (void)fireTimer:(NSTimer*)aTimer;
- (void)taskFinished:(NSNotification*)aNotification;
@end