-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwinMain.h
49 lines (33 loc) · 1.06 KB
/
winMain.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
//--------------------------------------
// The 'main' idle/nav window
//--------------------------------------
#pragma once
#include "gApp.h"
#define MAIN_MODE_IDLE 0
#define MAIN_MODE_ACTIVE 1
class winMain : public uiWindow
{
public:
winMain();
private:
int m_mode;
bool m_draw_needed;
bool m_micro_mode;
bool m_last_micro_mode;
JobState m_last_job_state;
indicatorState_t m_last_wifi_state;
int m_last_mode;
uint8_t m_last_alarm;
int m_last_feed_override;
int m_last_spindle_override;
#ifdef UI_WITH_MESH
float m_last_live_z;
#endif
virtual void begin() override;
virtual void update() override;
virtual void onButton(const uiElement *ele, bool pressed) override;
virtual const char *getMenuLabel() const override { return "MAIN"; }
void doJog(const char *axis, int jog_num);
void setLastOverrideText();
};
extern winMain main_win;