Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sandialabs/InterSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Apr 8, 2023
2 parents ecdad4e + 4d6bb1f commit a905a83
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
13 changes: 7 additions & 6 deletions src/EnergyCalTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,12 +685,11 @@ class CalDisplay : public WContainerWidget
m_downloadCALp = new WAnchor( WLink(m_tool->calpResources()), btndiv );
m_downloadCALp->setTarget( AnchorTarget::TargetNewWindow );
m_downloadCALp->setStyleClass( "LinkBtn DownloadLink" );
m_downloadCALp->setText( "CALp" );
#else
m_downloadCALp = new WPushButton( "CALp", btndiv );
m_downloadCALp = new WPushButton( btndiv );
m_downloadCALp->setIcon( "InterSpec_resources/images/download_small.svg" );
m_downloadCALp->setLinkTarget( Wt::TargetNewWindow );
m_downloadCALp->setLink( WLink( m_tool->calpResources() ) );
m_downloadCALp->setLinkTarget( Wt::TargetNewWindow );
m_downloadCALp->setStyleClass( "LinkBtn DownloadBtn CALp" );

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

#endif //#if( BUILD_AS_OSX_APP || IOS ) / #else

m_downloadCALp->setText( "CALp" );

m_uploadCALp = new WPushButton( btndiv );
m_uploadCALp->setIcon( "InterSpec_resources/images/upload_small.svg" );
Expand Down Expand Up @@ -1307,13 +1308,12 @@ void EnergyCalTool::initWidgets( EnergyCalTool::LayoutType layoutType )
m_downloadCALp = new WAnchor( WLink(m_calpResource), btndiv );
m_downloadCALp->setTarget( AnchorTarget::TargetNewWindow );
m_downloadCALp->setStyleClass( "LinkBtn DownloadLink CALp" );
m_downloadCALp->setText( "CALp" );
#else
m_downloadCALp = new WPushButton( "CALp", btndiv );
m_downloadCALp = new WPushButton( btndiv );
m_downloadCALp->setIcon( "InterSpec_resources/images/download_small.svg" );
m_downloadCALp->setLink( WLink( m_calpResource ) );
m_downloadCALp->setLinkTarget( Wt::TargetNewWindow );
m_downloadCALp->setStyleClass( "LinkBtn DownloadBtn CALp" );
m_downloadCALp->setLink( WLink(m_calpResource) );

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

#endif
m_downloadCALp->setText( "CALp" );

m_downloadCALp->clicked().connect( std::bind([this](){
m_interspec->logMessage( "You can apply this CALp file later to a different spectrum by"
Expand Down
10 changes: 5 additions & 5 deletions src/RelActAutoGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3770,22 +3770,22 @@ void RelActAutoGui::addDownloadAndUploadLinks( Wt::WContainerWidget *parent )
WAnchor *btn = new WAnchor( WLink(m_html_download_rsc), parent );
btn->setTarget( AnchorTarget::TargetNewWindow );
btn->setStyleClass( "LinkBtn DownloadLink RelActDownload" );
btn->setText( "HTML Report" );
#else
WPushButton *btn = new WPushButton( "HTML Report", parent );
WPushButton *btn = new WPushButton( parent );
btn->setIcon( "InterSpec_resources/images/download_small.svg" );
btn->setLink( WLink( m_html_download_rsc ) );
btn->setLinkTarget( Wt::TargetNewWindow );
btn->setStyleClass( "LinkBtn DownloadBtn RelActDownload" );
btn->setLink( WLink(m_html_download_rsc) );


#if( ANDROID )
// Using hacked saving to temporary file in Android, instead of via network download of file.
m_downloadHtmlReport->clicked().connect( std::bind([this](){
android_download_workaround( m_calpResource, "isotopics_by_nuclide.html");
}) );
#endif //ANDROID

#endif

btn->setText( "HTML Report" );

m_calc_started.connect( btn, &WWidget::disable );
m_calc_failed.connect( btn, &WWidget::disable );
Expand Down
4 changes: 2 additions & 2 deletions src/RelActManualGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ class ManRelEffNucDisp : public Wt::WPanel
setTitle( m_nuc ? m_nuc->symbol : m_reaction->name() );
setCollapsible( true );
setCollapsed( true );
setAnimation( { WAnimation::AnimationEffect::SlideInFromTop,
WAnimation::TimingFunction::Linear, 250 } );
//setAnimation( { WAnimation::AnimationEffect::SlideInFromTop,
// WAnimation::TimingFunction::Linear, 250 } );

if( m_nuc )
{
Expand Down

0 comments on commit a905a83

Please sign in to comment.