forked from dev2dev/Molecules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SLSMoleculeRootViewController.h
56 lines (42 loc) · 1.68 KB
/
SLSMoleculeRootViewController.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
//
// SLSMoleculeRootViewController.h
// Molecules
//
// The source code for Molecules is available under a BSD license. See License.txt for details.
//
// Created by Brad Larson on 6/30/2008.
//
// This controller manages a root view into which the 3D view and the molecule table selection views and animated for the neat flipping effect
#import <UIKit/UIKit.h>
#import <sqlite3.h>
#import "SLSMoleculeCustomDownloadViewController.h"
@class SLSMoleculeGLViewController;
@class SLSMolecule;
@class SLSMoleculeTableViewController;
@interface SLSMoleculeRootViewController : UIViewController
{
SLSMoleculeGLViewController *glViewController;
UIButton *rotationButton;
UINavigationController *tableNavigationController;
SLSMoleculeTableViewController *tableViewController;
SLSMolecule *bufferedMolecule, *previousMolecule;
NSMutableArray *molecules;
BOOL toggleViewDisabled;
sqlite3 *database;
}
@property (nonatomic, retain) SLSMoleculeGLViewController *glViewController;
@property (nonatomic, readonly) UINavigationController *tableNavigationController;
@property (nonatomic, readonly) SLSMoleculeTableViewController *tableViewController;
@property (nonatomic, assign) sqlite3 *database;
@property (nonatomic, retain) NSMutableArray *molecules;
// Manage the switching of views
- (void)toggleView:(NSNotification *)note;
// Passthroughs for managing molecules
- (void)loadInitialMolecule;
- (void)selectedMoleculeDidChange:(NSInteger)newMoleculeIndex;
- (void)cancelMoleculeLoading;
- (void)updateTableListOfMolecules;
- (void)customURLSelectedForMoleculeDownload:(NSNotification *)note;
// Manage the switching of rotation state
- (void)toggleRotationButton:(NSNotification *)note;
@end