mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Start the Plugin Manager
This bit of code will try to load all plugins avaliable. Now I need to port a Facebook plugin for this new system, then I'll delete the old preferences widget. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									66d3e99ff2
								
							
						
					
					
						commit
						e62d439bda
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		|  | @ -11,6 +11,9 @@ PluginManager& PluginManager::instance() { | |||
| 	return self; | ||||
| } | ||||
| 
 | ||||
| PluginManager::PluginManager() { | ||||
| } | ||||
| 
 | ||||
| void PluginManager::loadPlugins() { | ||||
| 	QDir pluginsDir(qApp->applicationDirPath()); | ||||
| 
 | ||||
|  |  | |||
|  | @ -4,6 +4,7 @@ | |||
| #include "display.h" | ||||
| #include "desktop-widgets/mainwindow.h" | ||||
| #include "helpers.h" | ||||
| #include "pluginmanager.h" | ||||
| 
 | ||||
| #include <QApplication> | ||||
| #include <QDesktopWidget> | ||||
|  | @ -30,6 +31,8 @@ void init_ui() | |||
| { | ||||
| 	init_qt_late(); | ||||
| 
 | ||||
| 	PluginManager::instance().loadPlugins(); | ||||
| 
 | ||||
| 	window = new MainWindow(); | ||||
| 	if (existing_filename && existing_filename[0] != '\0') | ||||
| 		window->setTitle(MWTF_FILENAME); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue