Step 107b: gate UI by editor mode
This commit is contained in:
10
editor/src/EditorModePolicy.h
Normal file
10
editor/src/EditorModePolicy.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#include "BufferManager.h"
|
||||
|
||||
inline bool isTextMode(BufferManager::BufferMode mode) {
|
||||
return mode == BufferManager::BufferMode::Text;
|
||||
}
|
||||
|
||||
inline bool allowStructuredFeatures(BufferManager::BufferMode mode) {
|
||||
return mode == BufferManager::BufferMode::Structured;
|
||||
}
|
||||
Reference in New Issue
Block a user