-
Notifications
You must be signed in to change notification settings - Fork 3
/
TransparentOverlay.h
executable file
·86 lines (69 loc) · 2.29 KB
/
TransparentOverlay.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
77
78
79
80
81
82
83
84
85
//
// TransparentOverlay.h
// DropDownList1
//
// Created by Nick Marchenko on 01.10.10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "BaseItemObject.h"
@protocol DropDownListTableDelegate;
@interface TransparentOverlay : UIView <UITableViewDelegate, UITableViewDataSource>
{
UITableView *table;
// CGPoint - the origin of the button
CGPoint buttonOrigin;
// Type (uses in _pasteData: To:)
NSString *type;
// Cell background
UIImage *cellBGImage;
// Cell background hover
UIImage *cellBGHoverImage;
// Cell amount to disp
int cellDispAmount;
// Previously selected cell
int previouslySelectedCell;
// Main background
UIView *bgView;
// Top
UIImage *topMainBG;
// Middle
UIImage *middleMainBG;
// Bottom
UIImage *bottomMainBG;
// BG x, y margin
CGFloat xBGMargin;
CGFloat yBGMargin;
// BG under table height
CGFloat bgUnderTableHeight;
// Table possition according to the dropdown button
CGFloat tableXMargin;
CGFloat tableYMargin;
// Array for table cells
NSMutableArray *objects; //BaseItemsObject instances
id<DropDownListTableDelegate> delegate;
}
@property (nonatomic, retain) UITableView *table;
@property CGPoint buttonOrigin;
@property (nonatomic, retain) NSString *type;
@property int cellDispAmount;
@property int previouslySelectedCell;
@property (nonatomic, retain) UIImage *cellBGImage;
@property (nonatomic, retain) UIImage *cellBGHoverImage;
@property (nonatomic, retain) UIImage *topMainBG;
@property (nonatomic, retain) UIImage *middleMainBG;
@property (nonatomic, retain) UIImage *bottomMainBG;
@property (nonatomic, assign) CGFloat xBGMargin;
@property (nonatomic, assign) CGFloat yBGMargin;
@property (nonatomic, assign) CGFloat bgUnderTableHeight;
@property (nonatomic, assign) CGFloat tableXMargin;
@property (nonatomic, assign) CGFloat tableYMargin;
@property (nonatomic, retain) NSMutableArray *objects;
@property (nonatomic, retain) id<DropDownListTableDelegate> delegate;
- (id) initWithButtonOrigin:(CGPoint)_buttonOrigin;
- (void) showOpenDropDownList;
- (void) closeOpenDropdownList;
@end
@protocol DropDownListTableDelegate
- (void) cellDidSelected:(int) row;
@end