Skip to content

Commit

Permalink
Add "FAQs" to in-app documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Sep 29, 2023
1 parent 8926e80 commit 6faa307
Show file tree
Hide file tree
Showing 31 changed files with 1,405 additions and 29 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion InterSpec_resources/static_text/faqs/faqs.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
{
border-top: 1px solid black;
margin-top: 2px;
width: 100%;
width: calc( 100% - 20px );
display: block;
overflow-x: hidden;
padding-top: 5px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 5px;
}
1,407 changes: 1,384 additions & 23 deletions InterSpec_resources/static_text/faqs/faqs.xml

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Please see https://www.nist.gov/pml/radiation-physics/ansiieee-n4242-2020-version, or https://www.nist.gov/programs-projects/documentary-standards-ansiieee-n4242-standard for more information.

Note: the N42-2012 files produced by InterSpec contains a <DHS:InterSpec></DHS:InterSpec> element, in violation of the specification, and which may cause some XML parsers troubles; there also may be other small deviations from the specifications - these issues are known, and intended to be fixed in the future.
Note: the N42-2012 files produced by InterSpec contains a &lt;DHS:InterSpec&gt;&lt;/DHS:InterSpec&gt; element, in violation of the specification, and which may cause some XML parsers troubles; there also may be other small deviations from the specifications - these issues are known, and intended to be fixed in the future.
</message>

<message id="N42-2006">
Expand All @@ -25,7 +25,7 @@
<message id="CHN">
This options produces an integer binary CHN file.

This format holds a single spectrum, measurment start time, spectrum title (up to 63 characters), detector description, and current energy calibration.
This format holds a single spectrum, measurement start time, spectrum title (up to 63 characters), detector description, and current energy calibration.

Energy deviation pairs, neutron counts, InterSpec specific information (DRF, activity fits, etc), as well as any other meta information, will not be included in the output file.
</message>
Expand Down Expand Up @@ -79,23 +79,23 @@
<message id="SPC (int)">
This options produces a single-spectrum, integer-based binary SPC file.

This format includes the gamma spectrum, neutron counts, gps info, measurment start time, detector serial number, and energy calibration.
This format includes the gamma spectrum, neutron counts, gps info, measurement start time, detector serial number, and energy calibration.

Energy deviation pairs, analysis results, InterSpec specific information (DRFs, peaks fit, fit activities, etc), and other meta information will not be included.
</message>

<message id="SPC (float)">
This options produces a single-spectrum, float-based binary SPC file.

This format includes the gamma spectrum, neutron counts, gps info, measurment start time, detector serial number, and energy calibration.
This format includes the gamma spectrum, neutron counts, gps info, measurement start time, detector serial number, and energy calibration.

Energy deviation pairs, analysis results, InterSpec specific information (DRFs, peaks fit, fit activities, etc), and other meta information will not be included.
</message>

<message id="SPC (ascii)">
This options produces a single-spectrum ASCII SPC file.

This format includes the gamma spectrum, neutron counts, gps info, measurment start time, detector serial number, energy calibration, some detector analysis information, manufacturer, and model information.
This format includes the gamma spectrum, neutron counts, gps info, measurement start time, detector serial number, energy calibration, some detector analysis information, manufacturer, and model information.

Energy deviation pairs, some analysis information results, InterSpec specific information (DRFs, peaks fit, fit activities, etc), and possibly some, but not all, meta information will not be included.
</message>
Expand Down
10 changes: 10 additions & 0 deletions src/InterSpec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,16 @@ void InterSpec::hotKeyPressed( const unsigned int value )
createExportSpectrumFileDialog();
break;

// Temporarily add shortcut for showing FAQ window during development

This comment has been minimized.

Copy link
@ckuethe

ckuethe Oct 4, 2023

Contributor

This breaks the build on my machine.

According to this code search (https://github.com/search?q=repo%3Asandialabs%2FInterSpec+showFaqTab&type=code) there is no definition of showFaqTab() anywhere as of this writing.

This comment has been minimized.

Copy link
@wcjohns

wcjohns Oct 5, 2023

Author Collaborator

Sorry about this - just committed a fix.
I was working on a few different aspects at once, and trying to keep the commits single-subject, but obviously failed to be consistent.

case 'f': case 'F':
{
showWelcomeDialog( true );
if( m_useInfoWindow )
m_useInfoWindow->showFaqTab();
break;
}


case 37: case 38: case 39: case 40:
arrowKeyPressed( value );
break;
Expand Down
1 change: 1 addition & 0 deletions src/InterSpecApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ void InterSpecApp::setupDomEnvironment()
case 'k': // Clear showing reference photopeak lines
case 's': // Store
case 'l': // Log/Linear
case 'f': case 'F': // Show FAQs - for development only
case 'e': case 'E': // Export file dialog
if( $(".Wt-dialogcover").is(':visible') ) // Dont do shortcut when there is a blocking-dialog showing
return;
Expand Down

0 comments on commit 6faa307

Please sign in to comment.