Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions Events.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Events.hpp
*
* Created on: 6 Jan 2017
* Author: David
*/

#ifndef SRC_EVENTS_HPP_
#define SRC_EVENTS_HPP_

// Event numbers, used to say what we need to do when a field is touched
// *** MUST leave value 0 free to mean "no event"
enum Event : uint8_t
{
evNull = 0, // value must match nullEvent declared in Display.hpp

// Page selection
evTabControl, evTabPrint, evTabMsg, evTabSetup,

// Heater control
evSelectHead, evAdjustActiveTemp, evAdjustStandbyTemp,

// Control functions
evMovePopup, evExtrudePopup, evFan, evListMacros,
evMoveX, evMoveY, evMoveZ, evMoveU, evMoveV, evMoveW, // these 6 must be contiguous and in this order
evExtrudeAmount, evExtrudeRate, evExtrude, evRetract,

// Print functions
evExtrusionFactor,
evAdjustFan,
evAdjustInt,
evSetInt,
evListFiles,

evFile, evMacro, evMacroControlPage,
evPrintFile,
evSendCommand,
evFactoryReset,
evAdjustSpeed,

evScrollFiles, evScrollMacros, evFilesUp, evMacrosUp, evChangeCard,

evKeyboard,

// Setup functions
evCalTouch, evSetBaudRate, evInvertX, evInvertY, evAdjustBaudRate, evSetVolume, evAdjustVolume, evReset, evWiFiSettings,

evYes,
evCancel,
evDeleteFile,
evSimulateFile,
evPausePrint,
evResumePrint,
evBabyStepPopup, evBabyStepAmount,

evKey, evShift, evBackspace, evSendKeyboardCommand, evUp, evDown,

evWiFiSSID, evWiFiPassword, evWiFiKey, evWiFiShift, evWiFiBackspace, evSendWiFiCommand,

evAdjustLanguage, evSetLanguage,
evAdjustColours, evSetColours,
evBrighter, evDimmer,
evSetDimmingType,

evEmergencyStop,

evJogZ, evCloseAlert

#ifdef OEM_LAYOUT
, evOemJogPage, evOemSetIncrement, evOemAdjustUpDown, evOemDone, evOemSetBrightness, evOemAxisSelect, evOemDistanceSelect, evOemCardSelect
#endif
};

#endif /* SRC_EVENTS_HPP_ */
Loading