3737#include " InterSpec/AuxWindow.h"
3838
3939// ToDo:
40+ // - Better and more-consistent printing to appropriate number of significant figures.
4041// - Havent fully tested that copying to clipboard will work everywhere.
4142// - Can maybe improve copying to clipboard using the clipboard API.
4243// - Have some capability to automatically fit for a number of pre-defined
@@ -81,6 +82,26 @@ class FluxToolWindow : public AuxWindow
8182
8283class FluxToolWidget : public Wt ::WContainerWidget
8384{
85+ public:
86+ enum class DisplayInfoLevel
87+ {
88+ /* * Only energy, nuclide, and gammas into 4pi are shown.
89+ Gammas into 4pi uncertainty gets its own column in CSV, and is given as a percent uncertainty.
90+ */
91+ Simple,
92+
93+ /* * Nuclide, IntrinsicEff, GeometricEff, FluxOnDet columns are NOT shown.
94+ Uncertainties get own column in CSV, as actual value (e.g., not percent).
95+ */
96+ Normal,
97+
98+ /* * All columns are shown.
99+ Uncertainties are placed in their own column in CSV, as the actual value (e.g., not percent).
100+ */
101+ Extended
102+ };// enum class DisplayInfoLevel
103+
104+
84105public:
85106 FluxToolWidget ( InterSpec *viewer,
86107 Wt::WContainerWidget *parent = 0 );
@@ -105,11 +126,16 @@ class FluxToolWidget : public Wt::WContainerWidget
105126
106127 Wt::Signal<> &tableUpdated ();
107128
129+ DisplayInfoLevel displayInfoLevel () const ;
130+
108131protected:
109132 void init ();
110133 void setTableNeedsUpdating ();
111134 void refreshPeakTable ();
112- void setMinimalColumnsOnly ( const bool minonly );
135+
136+
137+ void setDisplayInfoLevel ( const DisplayInfoLevel disptype );
138+
113139#if ( FLUX_USE_COPY_TO_CLIPBOARD )
114140 void tableCopiedToCliboardCallback ( const int copied );
115141#endif
@@ -132,8 +158,8 @@ class FluxToolWidget : public Wt::WContainerWidget
132158 */
133159 bool m_needsTableRefresh;
134160
135- /* * Whether to show all the columns or not. Default no . */
136- bool m_compactColumns ;
161+ /* * What columns to show . */
162+ DisplayInfoLevel m_displayInfoLevel ;
137163
138164 Wt::Signal<> m_tableUpdated;
139165
0 commit comments