Debian Codegraph @

Source/Core/MacUpdater/ViewController.m

raw
1 // Copyright 2019 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #import "ViewController.h"
5
6 @implementation ViewController
7
8 - (void)viewDidLoad
9 {
10 [super viewDidLoad];
11 NSWindow* window = [[self view] window];
12
13 [window setLevel:kCGMainMenuWindowLevel - 1];
14 [window setCollectionBehavior:NSWindowCollectionBehaviorStationary |
15 NSWindowCollectionBehaviorCanJoinAllSpaces |
16 NSWindowCollectionBehaviorFullScreenAuxiliary];
17 }
18
19 - (void)SetDescription:(NSString*)string
20 {
21 [_labelProgress setStringValue:string];
22 }
23
24 - (void)SetTotalMarquee:(bool)marquee
25 {
26 [_progressTotal setIndeterminate:marquee];
27 }
28
29 - (void)SetCurrentMarquee:(bool)marquee
30 {
31 [_progressCurrent setIndeterminate:marquee];
32 }
33
34 - (void)SetTotalProgress:(double)current total:(double)total
35 {
36 [_progressTotal setMaxValue:total];
37 [_progressTotal setDoubleValue:current];
38 }
39
40 - (void)SetCurrentProgress:(double)current total:(double)total
41 {
42 [_progressCurrent setMaxValue:total];
43 [_progressCurrent setDoubleValue:current];
44 }
45
46 - (void)setRepresentedObject:(id)representedObject
47 {
48 [super setRepresentedObject:representedObject];
49 }
50
51 @end