Subversion Repositories svn.mios32

Rev

Rev 2164 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
272 tk 1
// $Id: seq_ui_pages.h 2532 2017-10-12 21:50:45Z tk $
2
/*
2039 tk 3
 * Page table
272 tk 4
 *
5
 * ==========================================================================
6
 *
7
 *  Copyright (C) 2008 Thorsten Klose (tk@midibox.org)
8
 *  Licensed for personal non-commercial use only.
9
 *  All other rights reserved.
10
 *
11
 * ==========================================================================
12
 */
13
 
2039 tk 14
#ifndef _SEQ_UI_PAGES_H
15
#define _SEQ_UI_PAGES_H
16
 
17
/////////////////////////////////////////////////////////////////////////////
18
// Global definitions
19
/////////////////////////////////////////////////////////////////////////////
20
 
21
 
22
/////////////////////////////////////////////////////////////////////////////
23
// Global Types
24
/////////////////////////////////////////////////////////////////////////////
25
 
26
// must be kept in sync with ui_menu_pages table in seq_ui_pages.c
272 tk 27
typedef enum {
1203 tk 28
  SEQ_UI_PAGE_NONE = 0,
29
  SEQ_UI_PAGE_MENU = 1,
30
  SEQ_UI_PAGE_FX = 2,
31
  SEQ_UI_PAGE_STEPSEL = 3,
32
  SEQ_UI_PAGE_TRGSEL = 4,
33
  SEQ_UI_PAGE_PARSEL = 5,
2532 tk 34
  SEQ_UI_PAGE_INSSEL = 6,
35
  SEQ_UI_PAGE_TRACKSEL = 7,
36
  SEQ_UI_PAGE_BPM_PRESETS = 8,
1203 tk 37
 
38
  SEQ_UI_PAGE_DIRECT_RESERVED2 = 9,
39
  SEQ_UI_PAGE_DIRECT_RESERVED3 = 10,
40
  SEQ_UI_PAGE_DIRECT_RESERVED4 = 11,
41
  SEQ_UI_PAGE_DIRECT_RESERVED5 = 12,
42
  SEQ_UI_PAGE_DIRECT_RESERVED6 = 13,
43
  SEQ_UI_PAGE_DIRECT_RESERVED7 = 14,
44
  SEQ_UI_PAGE_DIRECT_RESERVED8 = 15,
45
 
46
  SEQ_UI_PAGE_EDIT = 16,
47
  SEQ_UI_PAGE_MUTE = 17,
48
  SEQ_UI_PAGE_PMUTE = 18,
49
  SEQ_UI_PAGE_PATTERN = 19,
50
  SEQ_UI_PAGE_SONG = 20,
51
  SEQ_UI_PAGE_MIXER = 21,
52
  SEQ_UI_PAGE_TRKEVNT = 22,
2092 tk 53
  SEQ_UI_PAGE_TRKINST = 23,
54
  SEQ_UI_PAGE_TRKMODE = 24,
55
  SEQ_UI_PAGE_TRKDIR = 25,
56
  SEQ_UI_PAGE_TRKDIV = 26,
57
  SEQ_UI_PAGE_TRKLEN = 27,
58
  SEQ_UI_PAGE_TRKTRAN = 28,
59
  SEQ_UI_PAGE_TRKGRV = 29,
60
  SEQ_UI_PAGE_TRGASG = 30,
61
  SEQ_UI_PAGE_TRKMORPH = 31,
62
  SEQ_UI_PAGE_TRKRND = 32,
63
  SEQ_UI_PAGE_TRKEUCLID = 33,
2164 tk 64
  SEQ_UI_PAGE_TRKJAM = 34,
2092 tk 65
  SEQ_UI_PAGE_MANUAL = 35,
66
  SEQ_UI_PAGE_FX_ECHO = 36,
67
  SEQ_UI_PAGE_FX_HUMANIZE = 37,
2118 tk 68
  SEQ_UI_PAGE_FX_ROBOTIZE = 38,
2115 tk 69
  SEQ_UI_PAGE_FX_LIMIT = 39,
70
  SEQ_UI_PAGE_FX_LFO = 40,
71
  SEQ_UI_PAGE_FX_DUPL = 41,
72
  SEQ_UI_PAGE_FX_LOOP = 42,
73
  SEQ_UI_PAGE_FX_SCALE = 43,
74
  SEQ_UI_PAGE_UTIL = 44,
75
  SEQ_UI_PAGE_BPM = 45,
76
  SEQ_UI_PAGE_OPT = 46,
77
  SEQ_UI_PAGE_SAVE = 47,
78
  SEQ_UI_PAGE_METRONOME = 48,
79
  SEQ_UI_PAGE_MIDI = 49,
80
  SEQ_UI_PAGE_MIDIMON = 50,
81
  SEQ_UI_PAGE_SYSEX = 51,
82
  SEQ_UI_PAGE_CV = 52,
83
  SEQ_UI_PAGE_DISK = 53,
84
  SEQ_UI_PAGE_ETH = 54,
85
  SEQ_UI_PAGE_TRKLIVE = 55,
2150 tk 86
  SEQ_UI_PAGE_PATTERN_RMX = 56,
87
  SEQ_UI_PAGE_BOOKMARKS = 57,
88
  SEQ_UI_PAGE_INFO = 58,
89
  SEQ_UI_PAGE_LAST__UNIMPLEMENTED = 59
272 tk 90
} seq_ui_page_t;
91
 
2039 tk 92
#define SEQ_UI_PAGES (SEQ_UI_PAGE_LAST__UNIMPLEMENTED)
272 tk 93
#define SEQ_UI_FIRST_MENU_SELECTION_PAGE SEQ_UI_PAGE_EDIT
747 tk 94
#define SEQ_UI_NUM_MENU_PAGES (SEQ_UI_PAGES-SEQ_UI_FIRST_MENU_SELECTION_PAGE)
272 tk 95
 
96
 
2039 tk 97
/////////////////////////////////////////////////////////////////////////////
98
// Prototypes
99
/////////////////////////////////////////////////////////////////////////////
272 tk 100
 
2039 tk 101
extern s32 SEQ_UI_PAGES_CallInit(seq_ui_page_t page);
102
extern const char *SEQ_UI_PAGES_PageNameGet(seq_ui_page_t page);
103
extern const char *SEQ_UI_PAGES_CfgNameGet(seq_ui_page_t page);
104
extern seq_ui_page_t SEQ_UI_PAGES_CfgNameSearch(const char *name);
105
extern seq_ui_page_t SEQ_UI_PAGES_OldBmIndexSearch(u32 bm_index);
272 tk 106
 
2039 tk 107
extern seq_ui_page_t SEQ_UI_PAGES_MenuShortcutPageGet(u8 pos);
108
extern s32 SEQ_UI_PAGES_MenuShortcutPageSet(u8 pos, seq_ui_page_t page);
109
extern const char *SEQ_UI_PAGES_MenuShortcutNameGet(u8 pos);
272 tk 110
 
111
 
2039 tk 112
/////////////////////////////////////////////////////////////////////////////
113
// Export global variables
114
/////////////////////////////////////////////////////////////////////////////
272 tk 115
 
2039 tk 116
#endif /* _SEQ_UI_PAGES_H */
272 tk 117