MCPcopy Create free account
hub / github.com/SpartanJ/eepp / loadLayoutFile

Method loadLayoutFile

src/tools/uieditor/uieditor.cpp:774–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774void App::loadLayoutFile( std::string layoutPath ) {
775 if ( FileSystem::fileExists( layoutPath ) ) {
776 loadLayout( layoutPath );
777
778 for ( auto pathIt = mRecentFiles.begin(); pathIt != mRecentFiles.end(); pathIt++ ) {
779 if ( *pathIt == layoutPath ) {
780 mRecentFiles.erase( pathIt );
781 break;
782 }
783 }
784
785 mRecentFiles.insert( mRecentFiles.begin(), layoutPath );
786
787 if ( mRecentFiles.size() > 10 )
788 mRecentFiles.resize( 10 );
789
790 updateRecentFiles();
791 }
792}
793
794void App::loadProject( std::string projectPath ) {
795 if ( !FileSystem::fileExists( projectPath ) )

Callers

nothing calls this directly

Calls 6

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
insertMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected