| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
- // Please see LICENSE.md in repository root for license information
- // https://github.com/AtomicGameEngine/AtomicGameEngine
- #pragma once
- #include <Atomic/Core/Object.h>
- #include <Atomic/IO/FileSystem.h>
- using namespace Atomic;
- namespace AtomicEditor
- {
- class EditorShortcuts : public Object
- {
- OBJECT(EditorShortcuts);
- public:
- /// Construct.
- EditorShortcuts(Context* context);
- /// Destruct.
- ~EditorShortcuts();
- void InvokeFileClose();
- void InvokeFileSave();
- void InvokeEditCut();
- void InvokeEditCopy();
- void InvokeEditPaste();
- void InvokeEditSelectAll();
- void InvokeEditUndo();
- void InvokeEditRedo();
- void InvokeEditFind();
- void InvokeEditFindNext();
- void InvokeEditFindPrev();
- void InvokeEditFormatCode();
- void InvokeBuild();
- void InvokeBuildSettings();
- void InvokePlayStop();
- private:
- bool IsProjectLoaded();
- void InvokeResourceFrameShortcut(const String& id);
- void HandleKeyDown(StringHash eventType, VariantMap& eventData);
- void HandleKeyUp(StringHash eventType, VariantMap& eventData);
- void HandleEditorShutdown(StringHash eventType, VariantMap& eventData);
- };
- }
|