mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-01 02:56:28 +03:00
Added auto close brackets support to TextDocument and ecode.
Allow to change fonts in ecode.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user