| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -36,10 +36,8 @@ int download(std::string url) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					QLabel * title_label(QString text) { | 
					 | 
					 | 
					 | 
					QLabel * title_label(QString text) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  QLabel *l = new QLabel(text); | 
					 | 
					 | 
					 | 
					  QLabel *l = new QLabel(text); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  l->setStyleSheet(R"( | 
					 | 
					 | 
					 | 
					  l->setStyleSheet(R"( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    QLabel { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    font-size: 100px; | 
					 | 
					 | 
					 | 
					    font-size: 100px; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    font-weight: bold; | 
					 | 
					 | 
					 | 
					    font-weight: bold; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  )"); | 
					 | 
					 | 
					 | 
					  )"); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  return l; | 
					 | 
					 | 
					 | 
					  return l; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -60,8 +58,6 @@ QWidget * Setup::getting_started() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  main_layout->addWidget(btn); | 
					 | 
					 | 
					 | 
					  main_layout->addWidget(btn); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  QObject::connect(btn, SIGNAL(released()), this, SLOT(nextPage())); | 
					 | 
					 | 
					 | 
					  QObject::connect(btn, SIGNAL(released()), this, SLOT(nextPage())); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  main_layout->addSpacing(100); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  QWidget *widget = new QWidget(); | 
					 | 
					 | 
					 | 
					  QWidget *widget = new QWidget(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  widget->setLayout(main_layout); | 
					 | 
					 | 
					 | 
					  widget->setLayout(main_layout); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  return widget; | 
					 | 
					 | 
					 | 
					  return widget; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -125,26 +121,21 @@ QWidget * Setup::downloading() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					void Setup::nextPage() { | 
					 | 
					 | 
					 | 
					void Setup::nextPage() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  layout->setCurrentIndex(layout->currentIndex() + 1); | 
					 | 
					 | 
					 | 
					  setCurrentIndex(currentIndex() + 1); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  // start download
 | 
					 | 
					 | 
					 | 
					  // start download
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  if (layout->currentIndex() == layout->count() - 1)  { | 
					 | 
					 | 
					 | 
					  if (currentIndex() == count() - 1)  { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    std::string url = url_input->text().toStdString(); | 
					 | 
					 | 
					 | 
					    std::string url = url_input->text().toStdString(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    download(url); | 
					 | 
					 | 
					 | 
					    download(url); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					Setup::Setup(QWidget *parent) { | 
					 | 
					 | 
					 | 
					Setup::Setup(QWidget *parent) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  layout = new QStackedLayout(); | 
					 | 
					 | 
					 | 
					  addWidget(getting_started()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  layout->addWidget(getting_started()); | 
					 | 
					 | 
					 | 
					  addWidget(network_setup()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  layout->addWidget(network_setup()); | 
					 | 
					 | 
					 | 
					  addWidget(software_selection()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  layout->addWidget(software_selection()); | 
					 | 
					 | 
					 | 
					  addWidget(downloading()); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  layout->addWidget(downloading()); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  // TODO: this is needed to make first page not squished, why?
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  layout->setSizeConstraint(QLayout::SetMinimumSize); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  setLayout(layout); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  setStyleSheet(R"( | 
					 | 
					 | 
					 | 
					  setStyleSheet(R"( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    QWidget { | 
					 | 
					 | 
					 | 
					    QWidget { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      color: white; | 
					 | 
					 | 
					 | 
					      color: white; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |