Blame view

DUREX Vendor Control/MenuTableViewController.h 2.76 KB
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
//
//  MenuTableViewController.h
//  DUREX Vendor Control
//
//  Created by Imanol Barba on 5/23/14.
//  Copyright (c) 2014 Emmoco. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EMFramework.h"
#import "CommunicationProtocol.h"
Imanol-Mikel Barba Sabariego authored
12
#import "Stack.h"
Imanol-Mikel Barba Sabariego authored
13
#import "DatePickerViewController.h"
Imanol-Mikel Barba Sabariego authored
14
15
#import "PriceChangerViewController.h"
#import "NameChangerViewController.h"
Imanol-Mikel Barba Sabariego authored
16
17
18
19
20

#define num(x) [NSNumber numberWithUnsignedInt:x]

#define MENU_ELEMENTS                   @"Maintenance",@"Basic Configuration",@"Sending a Report"
#define MENU_CELLS_PER_SECTION          num(3)
Imanol-Mikel Barba Sabariego authored
21
#define MENU_HEADERS                        nil
Imanol-Mikel Barba Sabariego authored
22
Imanol-Mikel Barba Sabariego authored
23
24
25
#define MAINTENANCE_ELEMENTS            @"CH1 presence",@"CH2 presence",@"CH3 presence",@"CH4 presence",@"CH5 presence",@"CH6 presence",@"CH7 presence",@"CH8 presence",@"CH1 spin",@"CH2 spin",@"CH3 spin",@"CH4 spin",@"CH5 spin",@"CH6 spin",@"CH7 spin",@"CH8 spin",@"Door sensor",@"Wall sensor",@"Oscillator",@"1€ Coin presence",@"50c Coin presence",@"1€ Coin spin",@"50c Coin spin",@"Sales log",@"Incident report",@"Send report"
#define MAINTENANCE_CELLS_PER_SECTION   num(23),num(3)
#define MAINTENANCE_HEADERS              NSLocalizedString(@"Sensors", nil),NSLocalizedString(@"Commands", nil)
Imanol-Mikel Barba Sabariego authored
26
Imanol-Mikel Barba Sabariego authored
27
28
29
#define SALES_ELEMENTS            @"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Channel",@"Product Code",@"Nominal Price",@"Discounted Price",@"1€ Change",@"50c Change",@"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Channel",@"Product Code",@"Nominal Price",@"Discounted Price",@"1€ Change",@"50c Change",@"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"Channel",@"Product Code",@"Nominal Price",@"Discounted Price",@"1€ Change",@"50c Change"
#define SALES_CELLS_PER_SECTION   num(12),num(12),num(12)
#define SALES_HEADERS             @"14/06/2014",@"25/06/2014",@"05/07/2014"
Imanol-Mikel Barba Sabariego authored
30
Imanol-Mikel Barba Sabariego authored
31
32
33
34
35
#define CONFIGURATION_ELEMENTS          @"Update Date & Time",@"Update product price",@"Update product name"
#define CONFIGURATION_CELLS_PER_SECTION num(3)
#define CONFIGURATION_HEADERS           nil

#define CELL_IDENTIFIERS                @"MenuCell",@"MaintenanceCell",@"SalesCell",@"ConfigCell",@"ReportCell"
Imanol-Mikel Barba Sabariego authored
36
37
38
39

enum {
    MENU = 0,
    MAINTENANCE,
Imanol-Mikel Barba Sabariego authored
40
    SALES,
Imanol-Mikel Barba Sabariego authored
41
    BASIC_CONFIGURATION,
Imanol-Mikel Barba Sabariego authored
42
    REPORT,
Imanol-Mikel Barba Sabariego authored
43
44
} navigationLevel;
Imanol-Mikel Barba Sabariego authored
45
@interface MenuTableViewController : UITableViewController <DatePickerViewControllerDelegate,PriceChangerViewControllerDelegate,NameChangerViewControllerDelegate>
Imanol-Mikel Barba Sabariego authored
46
Imanol-Mikel Barba Sabariego authored
47
@property (strong,nonatomic) Stack *parentLayout;
Imanol-Mikel Barba Sabariego authored
48
49
50
@property (strong,nonatomic) DatePickerViewController *datePickerViewController;
@property (strong,nonatomic) PriceChangerViewController *priceChangerViewController;
@property (strong,nonatomic) NameChangerViewController *nameChangerViewController;
Imanol-Mikel Barba Sabariego authored
51
Imanol-Mikel Barba Sabariego authored
52
53
- (void) navBack;
Imanol-Mikel Barba Sabariego authored
54
@end