| 
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -42,16 +42,19 @@ MainWindow::MainWindow(QWidget *parent) :
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    int i = 0;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    foreach (IPlugin *plugin, Context::instance().plugins()) {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        QToolButton *plugButton = new QToolButton(this);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        plugButton->setText(plugin->pluginName());
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        plugButton->setIcon(plugin->pluginIcon());
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        plugButton->setIconSize(QSize(32, 32));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        plugButton->setAutoRaise(true);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        plugButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        ui->navigation->layout()->addWidget(plugButton);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        plugButton->setProperty(PLUGIN_INDEX, i);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        if (plugin->pluginId() != "CORE")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            QToolButton *plugButton = new QToolButton(this);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            plugButton->setText(plugin->pluginName());
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            plugButton->setIcon(plugin->pluginIcon());
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            plugButton->setIconSize(QSize(32, 32));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            plugButton->setAutoRaise(true);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            plugButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            ui->navigation->layout()->addWidget(plugButton);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            plugButton->setProperty(PLUGIN_INDEX, i);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				            connect(plugButton, SIGNAL(clicked()), this, SLOT(openPlugin()) );
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        }
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        i++;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        connect(plugButton, SIGNAL(clicked()), this, SLOT(openPlugin()) );
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    }
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				   ((QVBoxLayout*)ui->navigation->layout())->addStretch(1);
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |