module soundtab.ui.actions; import dlangui.core.events; enum Actions : int { FileExit = 1030000, FileOptions, FileOpenAccompaniment, FilePlayPauseAccompaniment, InstrumentEditor, InstrumentOpenSoundFile, InstrumentEditorPlayPause, InstrumentEditorPlayPauseSelection, InstrumentCreateLoop, ViewHZoomIn, ViewHZoomOut, ViewHZoom1, ViewHZoomMax, ViewHZoomSel, ViewVZoomIn, ViewVZoomOut, ViewVZoom1, ViewVZoomMax, } const Action ACTION_FILE_OPTIONS = new Action(Actions.FileOptions, "Options..."d); const Action ACTION_FILE_EXIT = new Action(Actions.FileExit, "Exit"d); const Action ACTION_FILE_OPEN_ACCOMPANIMENT = new Action(Actions.FileOpenAccompaniment, "Open .mp3"d, null, KeyCode.F3, 0); const Action ACTION_FILE_PLAY_PAUSE_ACCOMPANIMENT = new Action(Actions.FilePlayPauseAccompaniment, "Play/Pause"d, null, KeyCode.F5, 0); const Action ACTION_INSTRUMENT_EDITOR = new Action(Actions.InstrumentEditor, "Instrument editor"d, null, KeyCode.F4, 0); const Action ACTION_INSTRUMENT_OPEN_SOUND_FILE = new Action(Actions.InstrumentOpenSoundFile, "Open sound file"d, "document-open", KeyCode.F3, 0); const Action ACTION_INSTRUMENT_PLAY_PAUSE = new Action(Actions.InstrumentEditorPlayPause, "Play from cursor/pause"d, "play-pause", KeyCode.SPACE, 0); const Action ACTION_INSTRUMENT_PLAY_PAUSE_SELECTION = new Action(Actions.InstrumentEditorPlayPauseSelection, "Play/pause"d, "play-pause-sel", KeyCode.F5, 0); const Action ACTION_INSTRUMENT_CREATE_LOOP = new Action(Actions.InstrumentCreateLoop, "Create loop for selection"d, "create-loop", KeyCode.INS, 0); const Action ACTION_VIEW_HZOOM_IN = new Action(Actions.ViewHZoomIn, "H Zoom In"d, "hzoomin", KeyCode.ADD, 0); const Action ACTION_VIEW_HZOOM_OUT = new Action(Actions.ViewHZoomOut, "H Zoom Out"d, "hzoomout", KeyCode.SUB, 0); const Action ACTION_VIEW_HZOOM_1 = new Action(Actions.ViewHZoom1, "H Zoom 1:1"d, "hzoom1", KeyCode.ADD, KeyFlag.Control); const Action ACTION_VIEW_HZOOM_MAX = new Action(Actions.ViewHZoomMax, "H Zoom Full View"d, "hzoommax", KeyCode.SUB, KeyFlag.Control); const Action ACTION_VIEW_HZOOM_SEL = new Action(Actions.ViewHZoomSel, "H Zoom Selection"d, "hzoomsel", KeyCode.RETURN); const Action ACTION_VIEW_VZOOM_IN = new Action(Actions.ViewVZoomIn, "V Zoom In"d, "vzoomin", KeyCode.PAGEUP, 0); const Action ACTION_VIEW_VZOOM_OUT = new Action(Actions.ViewVZoomOut, "V Zoom Out"d, "vzoomout", KeyCode.PAGEDOWN, 0); const Action ACTION_VIEW_VZOOM_1 = new Action(Actions.ViewVZoom1, "V Zoom 1:1"d, "vzoom1", KeyCode.PAGEUP, KeyFlag.Control); const Action ACTION_VIEW_VZOOM_MAX = new Action(Actions.ViewVZoomMax, "V Zoom Max"d, "vzoommax", KeyCode.PAGEDOWN, KeyFlag.Control);