@@ -99,11 +99,6 @@ class D3TimeChart : public Wt::WContainerWidget
9999 /* * When the user drags on the chart to change the time range the spectrum is displayed for. */
100100 Wt::Signal<int /* start sample number*/ ,int /* end sample number*/ ,Wt::WFlags<Wt::KeyboardModifier>> &chartDragged ();
101101
102- /* * When the chart is resized; gives new width and height of the chart area (e.g., the area inside
103- the axis lines), in pixels.
104- */
105- Wt::Signal<double /* chart width px*/ ,double /* chart height px*/ > &chartResized ();
106-
107102 /* * Signal emitted when the displayed x-axis range changes via a user action; e.g., when zooming
108103 into or out of a region of interest.
109104 */
@@ -138,16 +133,6 @@ class D3TimeChart : public Wt::WContainerWidget
138133 void setY1AxisTitle ( const std::string &title );
139134 void setY2AxisTitle ( const std::string &title );
140135
141-
142- // By default SpectrumDisplayDiv has setLayoutSizeAware(true) set, so if the
143- // widget is being sized by a Wt layout manager, layoutWidth() and
144- // layoutHeight() will return this widget width and height respectively
145- int layoutWidth () const ;
146- int layoutHeight () const ;
147-
148- double chartWidthInPixels () const ;
149- double chartHeightInPixels () const ;
150-
151136 void setCompactAxis ( const bool compact );
152137 bool isAxisCompacted () const ;
153138
@@ -182,9 +167,6 @@ class D3TimeChart : public Wt::WContainerWidget
182167 void setDataToClient ();
183168 void setHighlightRegionsToClient ();
184169
185- // layoutSizeChanged(...): adjusts display binning if necessary
186- virtual void layoutSizeChanged ( int width, int height );
187-
188170 /* * Shows or hides the user-selectable filters to control what the mouse/touch selects and energy range. */
189171 void showFilters ( const bool show );
190172
@@ -255,8 +237,6 @@ class D3TimeChart : public Wt::WContainerWidget
255237 /* * The width of the plotting area in pixels. */
256238 double m_chartWidthPx;
257239
258- /* * The height of the plotting area in pixels. */
259- double m_chartHeightPx;
260240
261241 bool m_compactXAxis;
262242 bool m_showVerticalLines;
@@ -283,20 +263,17 @@ class D3TimeChart : public Wt::WContainerWidget
283263 // Signals to hook C++ code to, to be notified when a user action happens
284264 Wt::Signal<int /* sample number*/ ,Wt::WFlags<Wt::KeyboardModifier>> m_chartClicked;
285265 Wt::Signal<int /* start sample number*/ ,int /* end sample number*/ ,Wt::WFlags<Wt::KeyboardModifier>> m_chartDragged;
286- Wt::Signal<double /* chart width px*/ ,double /* chart height px*/ > m_chartResized;
287266 Wt::Signal<int /* start sample number*/ ,int /* end sample number*/ ,int /* samples per channel*/ > m_displayedXRangeChange;
288267 // Wt::Signal<boost::optional<float> /*lower keV*/,boost::optional<float>/*upper keV*/> m_energyRangeFilterChanged;
289268
290269 // Signals called from JS to propogate infromation to the C++
291270 std::unique_ptr<Wt::JSignal<int ,int >> m_chartClickedJS;
292271 std::unique_ptr<Wt::JSignal<int ,int ,int >> m_chartDraggedJS;
293- std::unique_ptr<Wt::JSignal<double ,double >> m_chartResizedJS;
294272 std::unique_ptr<Wt::JSignal<int ,int ,int >> m_displayedXRangeChangeJS;
295273
296274 // Functions connected to the JSignal's
297275 void chartClickedCallback ( int sample_number, int modifier_keys );
298276 void chartDraggedCallback ( int first_sample_number, int last_sample_number, int modifier_keys );
299- void chartResizedCallback ( double chart_width_px, double chart_height_px );
300277 void displayedXRangeChangeCallback ( int first_sample_number, int last_sample_number, int samples_per_channel );
301278
302279 /* * The javascript variable name used to refer to the SpecrtumChartD3 object.
0 commit comments