mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Methods UIWidget::setLayoutSizePolicy, UIWidget::setLayoutWidthPolicy, UIWidget::setLayoutHeightPolicy now trigger auto resize when changing its size policy to SizePolicy::WrapContent.
Added Sys::getLogicalDrives, implemented for Windows and Linux. UIFileDialog now shows the local drives when no more parent folders are present (when you can't go "up" anymore). Added DiskDrivesModel. Replaced all strcmp with strncmp. FileSystem::mkDir now supports recursive mkdir. Improvements and fixes in UIAbstractTableView, UITableView and UITreeView. Silenced use-after-free warning in the Memory Manager. Allow use premake option "--with-debug-symbols" for Windows builds. Closes SpartanJ/ecode#8.
This commit is contained in:
@@ -378,10 +378,12 @@ void App::loadConfig( const LogLevel& logLevel ) {
|
||||
FileSystem::makeDir( mConfigPath );
|
||||
FileSystem::dirAddSlashAtEnd( mConfigPath );
|
||||
mPluginsPath = mConfigPath + "plugins";
|
||||
mColorSchemesPath = mConfigPath + "editor" + FileSystem::getOSSlash() + "colorschemes";
|
||||
mColorSchemesPath = mConfigPath + "editor" + FileSystem::getOSSlash() + "colorschemes" +
|
||||
FileSystem::getOSSlash();
|
||||
mTerminalManager = std::make_unique<TerminalManager>( this );
|
||||
mTerminalManager->setTerminalColorSchemesPath( mConfigPath + "terminal" +
|
||||
FileSystem::getOSSlash() + "colorschemes" );
|
||||
FileSystem::getOSSlash() + "colorschemes" +
|
||||
FileSystem::getOSSlash() );
|
||||
mTerminalManager->setUseFrameBuffer( mUseFrameBuffer );
|
||||
|
||||
if ( !FileSystem::fileExists( mPluginsPath ) )
|
||||
@@ -3872,6 +3874,7 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
|
||||
{ "palette", 0xefc5 },
|
||||
{ "file-code", 0xecd1 },
|
||||
{ "cursor-pointer", 0xec09 },
|
||||
{ "drive", 0xedf8 },
|
||||
};
|
||||
for ( const auto& icon : icons )
|
||||
iconTheme->add( UIGlyphIcon::New( icon.first, iconFont, icon.second ) );
|
||||
@@ -4007,10 +4010,13 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
|
||||
if ( FileSystem::isDirectory( mColorSchemesPath ) ) {
|
||||
auto colorSchemesFiles = FileSystem::filesGetInPath( mColorSchemesPath );
|
||||
for ( auto& file : colorSchemesFiles ) {
|
||||
auto colorSchemesInFile = SyntaxColorScheme::loadFromFile( file );
|
||||
auto colorSchemesInFile =
|
||||
SyntaxColorScheme::loadFromFile( mColorSchemesPath + file );
|
||||
for ( auto& coloScheme : colorSchemesInFile )
|
||||
colorSchemes.emplace_back( coloScheme );
|
||||
}
|
||||
} else {
|
||||
FileSystem::makeDir( mColorSchemesPath, true );
|
||||
}
|
||||
|
||||
mTerminalManager->loadTerminalColorSchemes();
|
||||
|
||||
Reference in New Issue
Block a user