Mobile API Reference  MicroStrategy 2019
PromptPickerCell.h
Go to the documentation of this file.
1 //
2 // PromptPickerCell.h
3 // MSTRMobile
4 //
5 // Created by Firat Alpergin on 2/27/10.
6 // Copyright 2010 MicroStrategy. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
11 
12 #define NUMERIC_MODE 0
13 #define DATE_TIME_MODE 1
14 
15 #define NUMERIC_PICKER_WIDTH 300
16 #define NUMERIC_PICKER_HEIGHT 40
17 #define NUMERIC_PICKER_SIDE_OFFSET 10
18 #define DATE_TIME_IMAGE_WIDTH 31
19 
20 @class PromptSummaryScreen, ConstantPrompt;
21 
22 @interface PromptPickerCell : PromptFormattableCell <UIPickerViewDataSource, UIPickerViewDelegate, UITextFieldDelegate, UIPopoverControllerDelegate, UIActionSheetDelegate> {
23  UITextField *valueField;
24  UILabel *valueLabel;
25  UIImageView *dateTimeImageView;
27  NSMutableArray *numericPickerElements; //holds the available elements for the numeric picker
28  NSInteger curPickerSelection; //current selection index for the numeric picker
29  NSInteger newPickerSelection;
30  NSInteger mode;
33 
34  UIPickerView *pickerView;
35  UIDatePicker *dateTimePickerView;
36  UIToolbar *pickerToolbar;
37  UIPopoverController *pickerViewPopup;
38  UIActionSheet *pickerActionSheet;
39  UIViewController *pickerViewController;
40  UIBarButtonItem *yearButton;
42 }
43 
44 @property (nonatomic, assign) PromptSummaryScreen *parent;
45 @property (nonatomic, retain) NSDate *curDateSelection;
46 @property (nonatomic, retain) NSDate *freshDateSelection;
47 
48 +(PromptPickerCell*)newCellForPrompt:(ConstantPrompt*)prompt;
49 -(void)showPicker;
50 -(void)hidePicker;
51 -(NSDate *)convertToDate:(NSString *)dateString;
52 -(NSString *)convertToString:(NSDate *)date;
53 
54 @end
signed char BOOL
Definition: PDCwtypes.h:101
PromptSummaryScreen * parent
Definition: PromptPickerCell.h:26
Definition: PromptFormattableCell.h:12
UIPopoverController * pickerViewPopup
Definition: PromptPickerCell.h:37
UIPickerView * pickerView
Definition: PromptPickerCell.h:34
NSInteger newPickerSelection
Definition: PromptPickerCell.h:29
NSDate * curDateSelection
Definition: PromptPickerCell.h:31
NSInteger mode
Definition: PromptPickerCell.h:30
Definition: PromptPickerCell.h:22
BOOL b_pop
Definition: PromptPickerCell.h:41
UITextField * valueField
Definition: PromptPickerCell.h:23
NSInteger curPickerSelection
Definition: PromptPickerCell.h:28
UIActionSheet * pickerActionSheet
Definition: PromptPickerCell.h:38
Definition: PromptSummaryScreen.h:18
UIImageView * dateTimeImageView
Definition: PromptPickerCell.h:25
UIBarButtonItem * yearButton
Definition: PromptPickerCell.h:40
NSMutableArray * numericPickerElements
Definition: PromptPickerCell.h:27
UILabel * valueLabel
Definition: PromptPickerCell.h:24
NSDate * freshDateSelection
Definition: PromptPickerCell.h:32
UIDatePicker * dateTimePickerView
Definition: PromptPickerCell.h:35
UIViewController * pickerViewController
Definition: PromptPickerCell.h:39
UIToolbar * pickerToolbar
Definition: PromptPickerCell.h:36