|
167eaa6e
»
|
jverkoey |
2009-12-10 |
Use // instead of /** for l... |
1 |
// |
| |
2 |
// Copyright 2009 Facebook |
| |
3 |
// |
| |
4 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| |
5 |
// you may not use this file except in compliance with the License. |
| |
6 |
// You may obtain a copy of the License at |
| |
7 |
// |
| |
8 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| |
9 |
// |
| |
10 |
// Unless required by applicable law or agreed to in writing, software |
| |
11 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| |
12 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| |
13 |
// See the License for the specific language governing permissions and |
| |
14 |
// limitations under the License. |
| |
15 |
// |
|
58ebed0b
»
|
jverkoey |
2009-12-03 |
Prepend the Apache license ... |
16 |
|
|
122b14a4
»
|
Joe Hewitt |
2009-07-15 |
* MASSIVE REFACTORING of vi...  |
17 |
#import "Three20/TTModelViewController.h" |
|
4873b0bb
»
|
Joe Hewitt |
2009-03-06 |
* Rename TTBookView to TTSc... |
18 |
#import "Three20/TTScrollView.h" |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
19 |
#import "Three20/TTThumbsViewController.h" |
| |
20 |
|
|
a56db52a
»
|
joehewitt |
2009-07-26 |
* Fixed: photo viewer didn'... |
21 |
@class TTScrollView, TTPhotoView, TTStyle; |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
22 |
|
|
122b14a4
»
|
Joe Hewitt |
2009-07-15 |
* MASSIVE REFACTORING of vi...  |
23 |
@interface TTPhotoViewController : TTModelViewController |
| |
24 |
<TTScrollViewDelegate, TTScrollViewDataSource, TTThumbsViewControllerDelegate> { |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
25 |
id<TTPhotoSource> _photoSource; |
| |
26 |
id<TTPhoto> _centerPhoto; |
|
fff0e796
»
|
Joe Hewitt |
2009-07-26 |
* Add userInfo property to ... |
27 |
NSInteger _centerPhotoIndex; |
|
89d590b4
»
|
Joe Hewitt |
2009-03-21 |
* Make navigation bar's spa... |
28 |
UIView* _innerView; |
|
4873b0bb
»
|
Joe Hewitt |
2009-03-06 |
* Rename TTBookView to TTSc... |
29 |
TTScrollView* _scrollView; |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
30 |
TTPhotoView* _photoStatusView; |
|
15094552
»
|
Joe Hewitt |
2009-02-12 |
Add a toolbar to the photo ... |
31 |
UIToolbar* _toolbar; |
| |
32 |
UIBarButtonItem* _nextButton; |
| |
33 |
UIBarButtonItem* _previousButton; |
|
a56db52a
»
|
joehewitt |
2009-07-26 |
* Fixed: photo viewer didn'... |
34 |
TTStyle* _captionStyle; |
|
972c6d7b
»
|
Joe Hewitt |
2009-01-30 |
New photo browser features |
35 |
UIImage* _defaultImage; |
| |
36 |
NSString* _statusText; |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
37 |
TTThumbsViewController* _thumbsController; |
|
15094552
»
|
Joe Hewitt |
2009-02-12 |
Add a toolbar to the photo ... |
38 |
NSTimer* _slideshowTimer; |
|
972c6d7b
»
|
Joe Hewitt |
2009-01-30 |
New photo browser features |
39 |
NSTimer* _loadTimer; |
| |
40 |
BOOL _delayLoad; |
|
9c6d6a25
»
|
Joe Hewitt |
2009-01-22 |
First commit |
41 |
} |
| |
42 |
|
| |
43 |
/** |
| |
44 |
* The source of a sequential photo collection that will be displayed. |
| |
45 |
*/ |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
46 |
@property(nonatomic,retain) id<TTPhotoSource> photoSource; |
|
9c6d6a25
»
|
Joe Hewitt |
2009-01-22 |
First commit |
47 |
|
| |
48 |
/** |
| |
49 |
* The photo that is currently visible and centered. |
| |
50 |
* |
| |
51 |
* You can assign this directly to change the photoSource to the one that contains the photo. |
| |
52 |
*/ |
|
8ecafd28
»
|
Joe Hewitt |
2009-04-08 |
* New vector rendering system |
53 |
@property(nonatomic,retain) id<TTPhoto> centerPhoto; |
|
9c6d6a25
»
|
Joe Hewitt |
2009-01-22 |
First commit |
54 |
|
| |
55 |
/** |
| |
56 |
* The index of the currently visible photo. |
| |
57 |
* |
|
972c6d7b
»
|
Joe Hewitt |
2009-01-30 |
New photo browser features |
58 |
* Because centerPhoto can be nil while waiting for the source to load the photo, this property |
| |
59 |
* must be maintained even though centerPhoto has its own index property. |
|
9c6d6a25
»
|
Joe Hewitt |
2009-01-22 |
First commit |
60 |
*/ |
|
fff0e796
»
|
Joe Hewitt |
2009-07-26 |
* Add userInfo property to ... |
61 |
@property(nonatomic,readonly) NSInteger centerPhotoIndex; |
|
9c6d6a25
»
|
Joe Hewitt |
2009-01-22 |
First commit |
62 |
|
| |
63 |
/** |
|
972c6d7b
»
|
Joe Hewitt |
2009-01-30 |
New photo browser features |
64 |
* The default image to show before a photo has been loaded. |
|
9c6d6a25
»
|
Joe Hewitt |
2009-01-22 |
First commit |
65 |
*/ |
|
a1e4bcc3
»
|
Joe Hewitt |
2009-01-31 |
More photo browser perfecti... |
66 |
@property(nonatomic,retain) UIImage* defaultImage; |
|
9c6d6a25
»
|
Joe Hewitt |
2009-01-22 |
First commit |
67 |
|
|
18d0ffdd
»
|
Joe Hewitt |
2009-03-23 |
* Rename some things for cl... |
68 |
/** |
|
a56db52a
»
|
joehewitt |
2009-07-26 |
* Fixed: photo viewer didn'... |
69 |
* The style to use for the caption label. |
| |
70 |
*/ |
| |
71 |
@property(nonatomic,retain) TTStyle* captionStyle; |
| |
72 |
|
|
e1d70543
»
|
Joe Hewitt |
2009-08-01 |
* Invalidate search models ... |
73 |
- (id)initWithPhoto:(id<TTPhoto>)photo; |
| |
74 |
- (id)initWithPhotoSource:(id<TTPhotoSource>)photoSource; |
| |
75 |
|
|
a56db52a
»
|
joehewitt |
2009-07-26 |
* Fixed: photo viewer didn'... |
76 |
/** |
|
18d0ffdd
»
|
Joe Hewitt |
2009-03-23 |
* Rename some things for cl... |
77 |
* Creates a photo view for a new page. |
| |
78 |
* |
| |
79 |
* Do not call this directly. It is meant to be overriden by subclasses. |
| |
80 |
*/ |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
81 |
- (TTPhotoView*)createPhotoView; |
|
972c6d7b
»
|
Joe Hewitt |
2009-01-30 |
New photo browser features |
82 |
|
|
18d0ffdd
»
|
Joe Hewitt |
2009-03-23 |
* Rename some things for cl... |
83 |
/** |
| |
84 |
* Creates the thumbnail controller used by the "See All" button. |
| |
85 |
* |
| |
86 |
* Do not call this directly. It is meant to be overriden by subclasses. |
| |
87 |
*/ |
|
6394c48d
»
|
Joe Hewitt |
2009-02-15 |
* Fixed bug @1026: Rename T... |
88 |
- (TTThumbsViewController*)createThumbsViewController; |
|
972c6d7b
»
|
Joe Hewitt |
2009-01-30 |
New photo browser features |
89 |
|
|
f6cd8b57
»
|
joehewitt |
2009-07-24 |
* New class: TTPostControll... |
90 |
/** |
| |
91 |
* Sent to the controller after it moves from one photo to another. |
| |
92 |
*/ |
| |
93 |
- (void)didMoveToPhoto:(id<TTPhoto>)photo fromPhoto:(id<TTPhoto>)fromPhoto; |
| |
94 |
|
|
dd27ba5b
»
|
Joe Hewitt |
2009-08-10 |
* Helper function to check ... |
95 |
/** |
| |
96 |
* Shows or hides an activity label on top of the photo. |
| |
97 |
*/ |
| |
98 |
- (void)showActivity:(NSString*)title; |
| |
99 |
|
|
82c1be97
»
|
Joe Hewitt |
2009-02-11 |
More robust photo and thumb... |
100 |
@end |