Blame view

DUREX tests/MenuTableViewController.h 1.12 KB
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
//
//  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 "CommunicationProtocol.h"
Imanol-Mikel Barba Sabariego authored
11
#import "Stack.h"
Imanol-Mikel Barba Sabariego authored
12
13
14
15
16

#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
17
#define MENU_HEADERS                        nil
Imanol-Mikel Barba Sabariego authored
18
Imanol-Mikel Barba Sabariego authored
19
20
21
#define MAINTENANCE_ELEMENTS            @"Time",@"20€ Notes",@"10€ Notes",@"5€ Notes",@"2€ Coins",@"1€ Coins",@"50c Coins",@"CPP_TABLE",@"1€ Change",@"50c Change"
#define MAINTENANCE_CELLS_PER_SECTION   num(10),num(0)
#define MAINTENANCE_HEADERS              @"Status",@"Sensors"
Imanol-Mikel Barba Sabariego authored
22
Imanol-Mikel Barba Sabariego authored
23
#define CELL_IDENTIFIERS                @"MenuCell",@"MaintenanceCell",@"ConfigCell",@"ReportCell"
Imanol-Mikel Barba Sabariego authored
24
25
26
27
28
29
30
31
32
33
34
35

#define NUM_CHANNELS                    8

enum {
    MENU = 0,
    MAINTENANCE,
    BASIC_CONFIGURATION,
    REPORT,
} navigationLevel;

@interface MenuTableViewController : UITableViewController
Imanol-Mikel Barba Sabariego authored
36
@property (strong,nonatomic) Stack *parentLayout;
Imanol-Mikel Barba Sabariego authored
37
Imanol-Mikel Barba Sabariego authored
38
39
- (void) navBack;
Imanol-Mikel Barba Sabariego authored
40
@end