Added Sys::execute and Sys::getProcessFilePath (not tested on macOS, could be broken).
ecode:
Optimized document search (now is async).
Improved auto-reload of plugins, should solve some issues.
Added "New Window" option on Settings Menu.
This commit is contained in:
Martín Lucas Golini
2023-10-28 01:09:00 -03:00
parent 7d2fbc4678
commit b7bdfd33ba
16 changed files with 313 additions and 150 deletions

View File

@@ -35,9 +35,12 @@ class EE_API Sys {
/** Wait the time defined before returning. */
static void sleep( const Time& time );
/** @return The application path ( the executable path ) */
/** @return The application path ( the executable path without the executable ) */
static std::string getProcessPath();
/** @return The process path ( the executable file path ) */
static std::string getProcessFilePath();
/** @return The System Time */
static double getSystemTime();
@@ -94,6 +97,9 @@ class EE_API Sys {
* Other platforms will do nothing.
*/
static bool windowAttachConsole();
/** Executes a command */
static void execute( const std::string& cmd );
};
}} // namespace EE::System

View File

@@ -361,28 +361,26 @@ class EE_API TextDocument {
bool removeCommand( const std::string& command );
TextRange find( const String& text, TextPosition from = { 0, 0 }, bool caseSensitive = true,
bool wholeWord = false, const FindReplaceType& type = FindReplaceType::Normal,
bool wholeWord = false, FindReplaceType type = FindReplaceType::Normal,
TextRange restrictRange = TextRange() );
TextRange findLast( const String& text, TextPosition from = { 0, 0 }, bool caseSensitive = true,
bool wholeWord = false,
const FindReplaceType& type = FindReplaceType::Normal,
bool wholeWord = false, FindReplaceType type = FindReplaceType::Normal,
TextRange restrictRange = TextRange() );
TextRanges findAll( const String& text, bool caseSensitive = true, bool wholeWord = false,
const FindReplaceType& type = FindReplaceType::Normal,
FindReplaceType type = FindReplaceType::Normal,
TextRange restrictRange = TextRange(), size_t maxResults = 0 );
int replaceAll( const String& text, const String& replace, const bool& caseSensitive = true,
const bool& wholeWord = false,
const FindReplaceType& type = FindReplaceType::Normal,
const bool& wholeWord = false, FindReplaceType type = FindReplaceType::Normal,
TextRange restrictRange = TextRange() );
TextPosition replaceSelection( const String& replace );
TextPosition replace( String search, const String& replace, TextPosition from = { 0, 0 },
const bool& caseSensitive = true, const bool& wholeWord = false,
const FindReplaceType& type = FindReplaceType::Normal,
FindReplaceType type = FindReplaceType::Normal,
TextRange restrictRange = TextRange() );
String getIndentString();
@@ -699,13 +697,11 @@ class EE_API TextDocument {
LoadStatus loadFromStream( IOStream& file, std::string path, bool callReset );
TextRange findText( String text, TextPosition from = { 0, 0 }, bool caseSensitive = true,
bool wholeWord = false,
const FindReplaceType& type = FindReplaceType::Normal,
bool wholeWord = false, FindReplaceType type = FindReplaceType::Normal,
TextRange restrictRange = TextRange() );
TextRange findTextLast( String text, TextPosition from = { 0, 0 }, bool caseSensitive = true,
bool wholeWord = false,
const FindReplaceType& type = FindReplaceType::Normal,
bool wholeWord = false, FindReplaceType type = FindReplaceType::Normal,
TextRange restrictRange = TextRange() );
};