-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettingsViewController.h
More file actions
86 lines (80 loc) · 2.6 KB
/
SettingsViewController.h
File metadata and controls
86 lines (80 loc) · 2.6 KB
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
77
78
79
80
81
82
83
84
85
86
//
// SettingsViewController.h
// LoopMusic
//
// Created by Cheng Hann Gan on 5/24/14.
// Copyright (c) 2014 Cheng Hann Gan. All rights reserved.
//
#import "LoopMusicViewController.h"
@interface SettingsViewController : LoopMusicViewController <MPMediaPickerControllerDelegate>
{
/// Button to return to the main screen.
IBOutlet UIButton *back;
/// Text field to change the relative volume of the current track.
IBOutlet UITextField *volumeAdjust;
/// Text field to change the time taken for a track to fade out.
IBOutlet UITextField *fadeText;
/// The main screen of the app.
LoopMusicViewController *presenter;
/// Whether a track is being added to the app.
bool addingSong;
/// Index for deciding which alert message to display.
NSInteger alertIndex;
}
/// Button to return to the main screen.
@property(nonatomic, retain) UIButton *back;
/// Text field to change the relative volume of the current track.
@property(nonatomic, retain) UITextField *volumeAdjust;
/// Text field to change the time taken for a track to fade out.
@property(nonatomic, retain) UITextField *fadeText;
/*!
* Navigates back to the main screen and saves the settings.
* @param sender The object that called this function.
*/
- (IBAction)back:(id)sender;
/*!
* Sets the relative volume of the current track.
* @param sender The object that called this function.
*/
- (IBAction)setVolume:(id)sender;
/*!
* Sets the time taken for a track to fade out.
* @param sender The object that called this function.
*/
- (IBAction)setFade:(id)sender;
/*!
* Cleans up UI elements when the screen is closing.
* @param sender The object that called this function.
*/
- (IBAction)close:(id)sender;
/*!
* Navigates to the playlist choosing screen.
* @param sender The object that called this function.
*/
- (IBAction)choosePlaylist:(id)sender;
/*!
* Navigates to the playlist modification screen.
* @param sender The object that called this function.
*/
- (IBAction)modifyPlaylist:(id)sender;
/*!
* Displays a prompt to enter a name for a new playlist.
* @param sender The object that called this function.
*/
- (IBAction)newPlaylist:(id)sender;
/*!
* Displays a prompt to enter a new name for the current playlist.
* @param sender The object that called this function.
*/
- (IBAction)renamePlaylist:(id)sender;
/*!
* Navigates to the playlist deletion screen.
* @param sender The object that called this function.
*/
- (IBAction)deletePlaylist:(id)sender;
/*!
* Navigates to the shuffle setings screen.
* @param sender The object that called this function.
*/
- (IBAction)openShuffleSettings:(id)sender;
@end