ecode: Fix in tooltip. Added static Text::wrapText. Fix export of syntax definitions.

eepp: Started working on a Git plugin.
This commit is contained in:
Martín Lucas Golini
2023-12-16 22:24:35 -03:00
parent b41cbfe1ce
commit e09b62a40d
16 changed files with 714 additions and 140 deletions

View File

@@ -7,8 +7,8 @@ namespace ecode {
Plugin::Plugin( PluginManager* manager ) :
mManager( manager ),
mThreadPool( manager->getThreadPool() ),
mReady( false ), // All plugins will start as not ready until proved the contrary
mLoading( true ) // All plugins will start as loading until the load is complete, this is to
mReady( false ), // All plugins will start as "not ready" until proven the contrary
mLoading( true ) // All plugins will start as "loading" until the load is complete, this is to
// avoid concurrency issues
{}
@@ -45,6 +45,10 @@ PluginManager* Plugin::getManager() const {
return mManager;
}
String Plugin::i18n( const std::string& key, const String& def ) const {
return getManager()->getUISceneNode()->i18n( key, def );
}
void Plugin::onFileSystemEvent( const FileEvent& ev, const FileInfo& file ) {
if ( ev.type != FileSystemEventType::Modified || mShuttingDown || isLoading() )
return;