Added auto close brackets support to TextDocument and ecode.

Allow to change fonts in ecode.
This commit is contained in:
Martín Lucas Golini
2020-08-23 21:11:25 -03:00
parent 8ffed6b63f
commit e52924c983
16 changed files with 262 additions and 21 deletions

View File

@@ -109,6 +109,8 @@ class UIGlobalSearchBar : public UILinearLayout {
struct UIConfig {
StyleSheetLength fontSize{12, StyleSheetLength::Dp};
bool showSidePanel{true};
std::string serifFont;
std::string monospaceFont;
};
struct WindowConfig {
@@ -138,6 +140,7 @@ struct CodeEditorConfig {
bool colorPreview{false};
bool autoComplete{true};
bool showDocInfo{true};
std::string autoCloseBrackets{""};
int indentWidth{4};
int tabWidth{4};
int lineBreakingColumn{100};
@@ -177,6 +180,8 @@ class App : public UICodeEditorSplitter::Client {
void openFolderDialog();
void openFontDialog( std::string& fontPath );
void saveFileDialog();
bool findPrevText( SearchState& search );
@@ -366,6 +371,9 @@ class App : public UICodeEditorSplitter::Client {
void loadCurrentDirectory();
void toggleSettingsMenu();
FontTrueType* loadFont( const std::string& name, std::string fontPath,
const std::string& fallback );
};
#endif // EE_TOOLS_CODEEDITOR_HPP