@@ -172,6 +172,7 @@ NewUserWizard::NewUserWizard(QWidget* parent) : QWizard(parent)
172172 addPage (createPathSettingPage ());
173173 addPage (createConnectionChoicePage ());
174174 addPage (createLicensePage ());
175+ addPage (createDocPage ());
175176}
176177
177178QWizardPage* NewUserWizard::createIntroPage ()
@@ -201,7 +202,7 @@ QWizardPage* NewUserWizard::createPathSettingPage()
201202 page->setTitle (" Configuring Paths" );
202203 page->setSubTitle (" Specify the location of SCIRun's data folder. This path is referenced in network files and modules using the code %SCIRUNDATADIR%." );
203204 auto downloadLabel = new QLabel (" The data can be downloaded from <a href=\" http://www.sci.utah.edu/download/scirun/\" >sci.utah.edu</a>" );
204-
205+ downloadLabel-> setOpenExternalLinks ( true );
205206 auto layout = new QVBoxLayout;
206207 layout->addWidget (downloadLabel);
207208
@@ -221,42 +222,62 @@ QWizardPage* NewUserWizard::createLicensePage()
221222 auto page = new QWizardPage;
222223 page->setTitle (" Applicable Licenses" );
223224 QString licenseText (
224- " <p><a href = \" https://github. com/SCIInstitute/SCIRun/blob /master/src/LICENSE.txt\" >SCIRun License</a>"
225- " <p><a href = \" https://github. com/CIBC-Internal/teem/blob /master/LICENSE.txt\" >Teem License</a>"
225+ " <p><a href = \" https://raw.githubusercontent. com/SCIInstitute/SCIRun/master/src/LICENSE.txt\" >SCIRun License</a>"
226+ " <p><a href = \" https://raw.githubusercontent. com/CIBC-Internal/teem/master/LICENSE.txt\" >Teem License</a>"
226227#if WITH_TETGEN
227228 " <p><a href = \" http://wias-berlin.de/software/tetgen/1.5/FAQ-license.html\" >Tetgen License</a>"
228229#endif
229230 );
230231 auto layout = new QVBoxLayout;
231232 auto licenseLabel = new QLabel (licenseText);
233+ licenseLabel->setStyleSheet (" QLabel { background-color : lightgray; color : blue; }" );
234+ licenseLabel->setAlignment (Qt::AlignCenter);
235+ licenseLabel->setOpenExternalLinks (true );
232236 layout->addWidget (licenseLabel);
233237 page->setLayout (layout);
234238 return page;
235239}
236240
241+ QWizardPage* NewUserWizard::createDocPage ()
242+ {
243+ auto page = new QWizardPage;
244+ page->setTitle (" Documentation" );
245+ page->setSubTitle (" For more information on SCIRun 5 functionality, documentation can be found at: " );
246+ auto layout = new QVBoxLayout;
247+ auto docLabel = new QLabel (
248+ " <p><a href = \" https://github.com/SCIInstitute/SCIRun/wiki\" >New SCIRun Wiki</a>"
249+ " <p><a href = \" http://scirundocwiki.sci.utah.edu/SCIRunDocs/index.php5/CIBC:Documentation:SCIRun:Reference\" >Old SCIRun Wiki</a>"
250+ " <p><a href = \" http://sciinstitute.github.io/scirun.pages/\" >SCIRun Doc Home Page</a>"
251+ " <p><a href = \" mailto:[email protected] \" >SCIRun Users mailing list</a>" 252+ );
253+ docLabel->setStyleSheet (" QLabel { background-color : lightgray; color : blue; }" );
254+ docLabel->setAlignment (Qt::AlignCenter);
255+ docLabel->setOpenExternalLinks (true );
256+ layout->addWidget (docLabel);
257+ page->setLayout (layout);
258+ return page;
259+ }
260+
237261void NewUserWizard::updatePathLabel (const QString& dir)
238262{
239263 pathWidget_->setText (dir);
240264}
241265
242-
243266class ConnectionStyleWizardPage : public QWizardPage , public Ui ::ConnectionStyleWizardPage
244267{
245268public:
246269 ConnectionStyleWizardPage ()
247270 {
248271 setupUi (this );
249272 manhattanLabel_->setPixmap (QPixmap (" :/general/Resources/manhattan.png" ));
250- registerField (" useManhattan*" , manhattanRadioButton_);
251273 euclideanLabel_->setPixmap (QPixmap (" :/general/Resources/euclidean.png" ));
252- registerField (" useEuclidean*" , euclideanRadioButton_);
253274 cubicLabel_->setPixmap (QPixmap (" :/general/Resources/cubic.png" ));
254- registerField (" useCubic*" , cubicRadioButton_);
275+ registerField (" connectionChoice*" , connectionComboBox_);
276+ connect (connectionComboBox_, SIGNAL (currentIndexChanged (int )), SCIRunMainWindow::Instance (), SLOT (setConnectionPipelineType (int )));
255277 }
256278};
257279
258280QWizardPage* NewUserWizard::createConnectionChoicePage ()
259281{
260- auto page = new ConnectionStyleWizardPage;
261- return page;
262- }
282+ return new ConnectionStyleWizardPage;
283+ }
0 commit comments