Skip to content

Commit a905a83

Browse files
committed
Merge branch 'master' of github.com:sandialabs/InterSpec
2 parents ecdad4e + 4d6bb1f commit a905a83

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

src/EnergyCalTool.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,12 +685,11 @@ class CalDisplay : public WContainerWidget
685685
m_downloadCALp = new WAnchor( WLink(m_tool->calpResources()), btndiv );
686686
m_downloadCALp->setTarget( AnchorTarget::TargetNewWindow );
687687
m_downloadCALp->setStyleClass( "LinkBtn DownloadLink" );
688-
m_downloadCALp->setText( "CALp" );
689688
#else
690-
m_downloadCALp = new WPushButton( "CALp", btndiv );
689+
m_downloadCALp = new WPushButton( btndiv );
691690
m_downloadCALp->setIcon( "InterSpec_resources/images/download_small.svg" );
692-
m_downloadCALp->setLinkTarget( Wt::TargetNewWindow );
693691
m_downloadCALp->setLink( WLink( m_tool->calpResources() ) );
692+
m_downloadCALp->setLinkTarget( Wt::TargetNewWindow );
694693
m_downloadCALp->setStyleClass( "LinkBtn DownloadBtn CALp" );
695694

696695
#if( ANDROID )
@@ -701,6 +700,8 @@ class CalDisplay : public WContainerWidget
701700
#endif //ANDROID
702701

703702
#endif //#if( BUILD_AS_OSX_APP || IOS ) / #else
703+
704+
m_downloadCALp->setText( "CALp" );
704705

705706
m_uploadCALp = new WPushButton( btndiv );
706707
m_uploadCALp->setIcon( "InterSpec_resources/images/upload_small.svg" );
@@ -1307,13 +1308,12 @@ void EnergyCalTool::initWidgets( EnergyCalTool::LayoutType layoutType )
13071308
m_downloadCALp = new WAnchor( WLink(m_calpResource), btndiv );
13081309
m_downloadCALp->setTarget( AnchorTarget::TargetNewWindow );
13091310
m_downloadCALp->setStyleClass( "LinkBtn DownloadLink CALp" );
1310-
m_downloadCALp->setText( "CALp" );
13111311
#else
1312-
m_downloadCALp = new WPushButton( "CALp", btndiv );
1312+
m_downloadCALp = new WPushButton( btndiv );
13131313
m_downloadCALp->setIcon( "InterSpec_resources/images/download_small.svg" );
1314+
m_downloadCALp->setLink( WLink( m_calpResource ) );
13141315
m_downloadCALp->setLinkTarget( Wt::TargetNewWindow );
13151316
m_downloadCALp->setStyleClass( "LinkBtn DownloadBtn CALp" );
1316-
m_downloadCALp->setLink( WLink(m_calpResource) );
13171317

13181318
#if( ANDROID )
13191319
// Using hacked saving to temporary file in Android, instead of via network download of file.
@@ -1323,6 +1323,7 @@ void EnergyCalTool::initWidgets( EnergyCalTool::LayoutType layoutType )
13231323
#endif //ANDROID
13241324

13251325
#endif
1326+
m_downloadCALp->setText( "CALp" );
13261327

13271328
m_downloadCALp->clicked().connect( std::bind([this](){
13281329
m_interspec->logMessage( "You can apply this CALp file later to a different spectrum by"

src/RelActAutoGui.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3770,22 +3770,22 @@ void RelActAutoGui::addDownloadAndUploadLinks( Wt::WContainerWidget *parent )
37703770
WAnchor *btn = new WAnchor( WLink(m_html_download_rsc), parent );
37713771
btn->setTarget( AnchorTarget::TargetNewWindow );
37723772
btn->setStyleClass( "LinkBtn DownloadLink RelActDownload" );
3773-
btn->setText( "HTML Report" );
37743773
#else
3775-
WPushButton *btn = new WPushButton( "HTML Report", parent );
3774+
WPushButton *btn = new WPushButton( parent );
37763775
btn->setIcon( "InterSpec_resources/images/download_small.svg" );
3776+
btn->setLink( WLink( m_html_download_rsc ) );
37773777
btn->setLinkTarget( Wt::TargetNewWindow );
37783778
btn->setStyleClass( "LinkBtn DownloadBtn RelActDownload" );
3779-
btn->setLink( WLink(m_html_download_rsc) );
3780-
3779+
37813780
#if( ANDROID )
37823781
// Using hacked saving to temporary file in Android, instead of via network download of file.
37833782
m_downloadHtmlReport->clicked().connect( std::bind([this](){
37843783
android_download_workaround( m_calpResource, "isotopics_by_nuclide.html");
37853784
}) );
37863785
#endif //ANDROID
3787-
37883786
#endif
3787+
3788+
btn->setText( "HTML Report" );
37893789

37903790
m_calc_started.connect( btn, &WWidget::disable );
37913791
m_calc_failed.connect( btn, &WWidget::disable );

src/RelActManualGui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ class ManRelEffNucDisp : public Wt::WPanel
246246
setTitle( m_nuc ? m_nuc->symbol : m_reaction->name() );
247247
setCollapsible( true );
248248
setCollapsed( true );
249-
setAnimation( { WAnimation::AnimationEffect::SlideInFromTop,
250-
WAnimation::TimingFunction::Linear, 250 } );
249+
//setAnimation( { WAnimation::AnimationEffect::SlideInFromTop,
250+
// WAnimation::TimingFunction::Linear, 250 } );
251251

252252
if( m_nuc )
253253
{

0 commit comments

Comments
 (0)