Inspector Class Reference

#include <Inspector.h>

Inheritance diagram for Inspector:

Inheritance graph
InspectorBaseQDialog
[legend]
Collaboration diagram for Inspector:

Collaboration graph
InspectorBaseQDialogQButtonGroupQSliderQLabelAxisWidgetQLineEditQVBoxLayoutQScrollBarQWidgetPlotTableQHBoxLayoutQPushButtonQPixmapCanvasWindowBaseQListViewQCheckBoxQTabWidgetPlotterBaseRangeCanvasWindowQRadioButtonQGroupBoxQFrameQWidgetStackQComboBoxObserverObservableRectQString
[legend]
List of all members.

Detailed Description

A derived class of InspectorBase class which is generated by the Qt designer.

It provides an Inspector it provides methods specific to the Qt implementation of the HippoDraw application.

Bug:
@@@ Can not change DataSource of plot if function has been applied.
Bug:
@@@ When Applying all cuts to DataRep that comes from different Ntuple, should raise Dialog to ask whether to not do it, or do it with same set of cut names and values, but from different datasource.
Bug:
@@@ When adding DataRep to another and first has cuts applied, then raise dialog to ask user if he wants same cuts applied or not.
Bug:
@@@ When color map is changed on plot with multiple DataReps objects, it should be changed on all on them.
Bug:
@@@ When plot has a function cut, trying to add and existing data cut causes crash.
Bug:
@@@ For test_FitsWriting.py, the time cut doesn't show up in Cuts panel when selecting the color plot.
Bug:
@@@ On axis tabbed panel, changing the high range via text box doesn't set the right bin width. So the range appears set in the box, but it is wrong. Use ConstantModelFit.py, autoscale, then set range.
Bug:
@@@ In axis tabbed panel, changng Y bin width on color plot increases range excessively.
Bug:
@@ On axis tabbed panel, zoom pan doesn't work for static histograms.
Bug:
@@ When changing DataSource on multiple plots, and some could not be changed, one gets no warning.
Bug:
@@ stats panel documentation image needs updating.
Bug:
@ In Stats tabbed panel, the STD button is disabled.
Bug:
@ GUI On the Axis tabbed panel, the low and high sliders have large slider handle rectangle than the width and offset ones.
Bug:
@@ On cuts tabbed panel, switching to zoom pan doesn't work if one end of cut range is at full range.
Bug:
@@@ On the Axis tabbed panel, when in zoom / pan mode, the position slider is hard to control when X axis is in log scale.
Bug:
In Data tabbed panel, the title doesn't get set if there are multiple data reps on plot. Probably should take title of first one. What if the data reps comes from two different data sources, then what title is used?
Bug:
On empty DataSource, the axis tabbed panel doesn't show the ranges etc. Use empty.py to see it.
Bug:
@ Access to adjustment of fitting cut is not available from the inspector if other cuts have been applied to the same display.
Bug:
@ Adjusting other cuts also affects the fitting cut.
Bug:
@ Can not compile with gcc 2.96 because of use of ostringstream.
Bug:
@ On data tabbed panel, the Add and Remove buttons should be disabled when not appropriate, or info dialog should pop up when used in correctly.
Bug:
@@@ Trying to change color on display that uses color does nothing. Should bring up an information dialog.
Bug:
When changing the DataSource on a plot which has a cut, the DataSoruce of the cut and all its targets is also changed without warning.
Bug:
On Plot tabbed panel, show box edges should be disabled if no boxes.
Bug:
After saving and loading a variable 3 color scale, it is different from the original one. ( Looks like variable rainbow ).
Requests:
It would be helpful if the Canvas settings pop-up had an "Apply" button that retiles the canvas, but which does not close the window (or save the configuration). You could just have the "Retile" button serve this purpose by not having it close the window.
Requests:
For views that have two histograms overlaid, it would be nice to have a button that returned the KS test statistic and probability that the two data sets are drawn from the same underlying distribution. Not sure what to do if more than two histograms are overlaid or if one of the datareps is not a histogram. Probably best to disable this button.
Requests:
In control-left clicking to select a datarep within a given view, it would be useful to have an easier way of returning to the state where no single datarep is selected. Often I have many datareps plotted in a single view, and I want a quick way of restoring the view rather than cycling through all of the reps, possibly overshooting in my haste.
Requests:
@@ In zoom/pan mode, still should show high and low of range.
Requests:
@@ Set to likelihood fitter when statistics of bins go below some threshold.
Requests:
@ Display objective value to the functions tabbed panel.
Requests:
Should be able to change title/label text with TeX.
Requests:
In status tabbed panel, when no plot is selected should still be able to add text box.
Requests:
On the Stats panel, the radio button entry "Chi-squared statistics of function" should read "Chi-square per dof =" with the value displayed as it is for "Number of entries", "Average x-value", and "Average y-value". Same goes for "Standard deviation of x-value".
Requests:
On Stats tabbed panel, it would be nice when selecting text in box that the keyboard focus would go to box and a return with trigger the insertion.
Requests:
@@@ Sliders controlling cuts that are plotted on logarithmic x-axes should respond on a logarithmic scale instead of a linear one.
Requests:
Hoyle would like one x but 16 channels in Y displayed on one XY plot, but not do it via 16 DataRep objects.
Todo:
In Stats tabbed panel, should add a feature of a composite text rep that combines the single TextRep objects into a composite.
Todo:
When the size of the labels of the function parameters changes, the sliders change as well. GUI bug. low priority to fix.
Todo:
In cuts tabbed panel, the upper box gets updated when cut range changed even when it hasn't changed.
Requests:
In the stats summary panel, the description should match the type used by the factory.
Todo:
Replace the ComboBox objects in the Cut inspector with lists. Then the user can see in one glance all the cuts on a plot. There usually will not be that many of them.
Todo:
For check boxes, should use clicked signal instead of toggled so that the check box can be set to a value without emitting a signal.
Todo:
On the Cuts tabbed pane, does the Replace button make sense. What if selected plot has multiple cuts, which one to replace.
Bug:
@ Have inspector notice that a DataSource have been added via the Python interface without having to click on the CanvasView.
Todo:
On the Inspector data tabbed panel, should leave the four binding options on all the time and disable the ones that are not used. This way there would be less flicker.
Todo:
In Inspector stats tabbed panel, add average Z if plot has Z axis.
Todo:
In transform tabbed panel, use QDial instead of QSlider.
Bug:
Only first page is showed on Windows platform. Can't scroll down to see other plots. Have to maximize the canvas window.
Author:
Kaustuv <kaustuv@stanford.edu>

Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Sanket B. Malde <sanket@stanford.edu>

Joy Rajiv <jraviv@stanford.edu>

Tao Xu <taox@stanford.edu>

Xie Fang <xiefang@stanford.edu>

Definition at line 229 of file Inspector.h.

Public Slots

virtual void m_editFontToggled (bool)
virtual void m_editLabelFontClicked ()
virtual void m_editTitleFontClicked ()
virtual void m_numContourSlider_valueChanged (int)

Public Member Functions

 accept ()
virtual void allCutsRadioButton_toggled (bool selected)
virtual void customEvent (QCustomEvent *event)
 The method to receive update events from the application queue.
 done (int r)
void enableNewPlotBox (bool yes=true)
 Enables the new plot box.
 enum {Rejected, Accepted}
 exec ()
 extension () const
std::string getSelectedDataSourceName () const
 Returns the name of the currently selected DataSource in Data tabbed panel.
 Inspector (QWidget *parent=0, const char *name=0, bool modal=false, Qt::WFlags flags=0)
 The constructor.
 isModal () const
 isSizeGripEnabled () const
 orientation () const
 prop -whether the size grip is enabled
 prop -whether show() should pop up the dialog as modal or modeless
 reject ()
 result () const
virtual void selectedCutsRadioButton_toggled (bool selected)
 setExtension (QWidget *extension)
 setModal (bool modal)
 setOrientation (Orientation orientation)
 setResult (int i)
void setSelectedFitter (const std::string &name)
 Sets the selected Fitter.
 setSizeGripEnabled (bool)
 show ()
 showExtension (bool showIt)
virtual void statsButtonGroupClicked (int)
virtual void update ()
 The Update Method.
virtual void updateSummaryTab ()
 Updates the Stats tabbed panel's widgets.
virtual ~Inspector ()
 The virtual destructor.

Public Attributes

QRadioButtonallCutsRadioButton
QButtonGroupaxis_button_group
QWidgetaxisTab
hippodraw::AxisWidgetaxisWidget1
hippodraw::AxisWidgetaxisWidget2
hippodraw::AxisWidgetaxisWidget3
QLabelbrk_label
QSliderbrk_pt
QButtonGroupButtonGroup4
QButtonGroupButtonGroup8
QRadioButtoncircle
QSlidercolor_scale
QLabelcolorlabel
QPushButtoncolorSelect_2
QRadioButtoncontourRadioButton1
QRadioButtoncontourRadioButton2
QRadioButtoncross
QGroupBoxcurrentPlot
QButtonGroupcut_button_group
QPushButtoncutEnablePushButton
QPushButtoncutInvertPushButton
QPushButtoncutNewPushButton
QPushButtoncutRemovePushButton
QWidgetcutsTab
QWidgetdataTab
QPushButtondelete_model
QPushButtonedit_model
QRadioButtonfilledCircle
QRadioButtonfilledRectangle
QRadioButtonfilledTriangle
QSliderflat_width
QLabelflatlabel
QPushButtonfunctionsFitToDataButton
QPushButtonfunctionsRemoveButton
QPushButtonfunctionsResetButton
QWidgetfuntionTab
QGroupBoxgroupBox14
QLabellabel
QLabellabel_2
QCheckBoxlogScale
QPushButtonm_addDataRepButton
QRadioButtonm_Air
QComboBoxm_all_ntuples
QRadioButtonm_Arc
QCheckBoxm_autoScale
QComboBoxm_availPlotTypes
QFramem_axis_frame
QGroupBoxm_axis_group_box
QLineEditm_axis_label
QCheckBoxm_boxedge
QRadioButtonm_Car
QCheckBoxm_combine_checkbox
QButtonGroupm_contourBox
QLineEditm_contourLevelsTextBox
QRadioButtonm_cut_data1
QRadioButtonm_cut_data2
QRadioButtonm_cut_fit_radio
QGroupBoxm_cut_selected_box
QPushButtonm_cutAddAll
QPushButtonm_cutAddSelected
QComboBoxm_CutVariableComboBox1
QComboBoxm_CutVariableComboBox2
QPushButtonm_data_create
QLineEditm_dataRepNameText
QPushButtonm_diffdatarep
QPushButtonm_editLabelFont
QPushButtonm_editTitleFont
QCheckBoxm_errorBars
QComboBoxm_fitter_names
QGroupBoxm_func_new
QGroupBoxm_func_parms
QCheckBoxm_FunctionParamsCheckBox
QLineEditm_FunctionParamsLineEdit
QListViewm_FunctionParamsListView
QSliderm_FunctionParamsSlider
QRadioButtonm_Gls
QCheckBoxm_grid
QRadioButtonm_hammer
QCheckBoxm_IgnoreErrorCheckBox
QCheckBoxm_interval_cb
QGroupBoxm_interval_group
QLineEditm_interval_le
QRadioButtonm_lambert
QButtonGroupm_line_group
QRadioButtonm_linear
QRadioButtonm_logx
QRadioButtonm_logxy
QRadioButtonm_logy
QRadioButtonm_Mer
QGroupBoxm_new_cut_box
QGroupBoxm_new_plot_box
QLabelm_numContoursLabel
QSliderm_numContourSlider
QLineEditm_numContoursTextBox
QScrollBarm_offset_range
QLineEditm_offset_text
QPushButtonm_plot_color
QGroupBoxm_plot_symbols
QTabWidgetm_plot_tab
QGroupBoxm_plot_title
QWidgetStackm_point_stack
QComboBoxm_pointRepComboBox
QPushButtonm_PushButtonNewErrorPlot
QPushButtonm_removeDatarep
QPushButtonm_resid
QCheckBoxm_reverse
QComboBoxm_sel_ntuple_name
QComboBoxm_selCutComboBox
QPushButtonm_selectedColor
QRadioButtonm_selectedPlotRadioButton
QRadioButtonm_Sin
QGroupBoxm_slider_control
QRadioButtonm_stats_avg_x
QRadioButtonm_stats_avg_y
QRadioButtonm_stats_chi
QRadioButtonm_stats_fparms
QRadioButtonm_stats_number
QRadioButtonm_stats_overflow
QRadioButtonm_stats_std_x
QRadioButtonm_stats_text
QRadioButtonm_stats_underflow
QLineEditm_statsTextField
QRadioButtonm_Stg
QGroupBoxm_summary
QButtonGroupm_symbol_group
QLineEditm_symbolPointSize
QRadioButtonm_Tan
QLineEditm_titleText
QComboBoxm_value_combo
QScrollBarm_width_range
QLineEditm_width_text
QScrollBarm_x_offset
QLineEditm_x_offset_text
QScrollBarm_y_offset
QLineEditm_y_offset_text
QScrollBarmin_entries_slider
QLineEditmin_entries_text
QLabelnew_binding_0
QLabelnew_binding_1
QLabelnew_binding_2
QLabelnew_binding_3
QLabelnew_binding_4
QComboBoxnew_combo_0
QComboBoxnew_combo_1
QComboBoxnew_combo_2
QComboBoxnew_combo_3
QComboBoxnew_combo_4
QPushButtonnew_model
QPushButtonnewFunctionsAddButton
QComboBoxnewFunctionsComboBox
QPushButtonnewPlotButton
QPushButtonnewSummary
QWidgetpage
QWidgetpage_2
QWidgetplotTab_2
QRadioButtonplus
QPushButtonpushButton26
QRadioButtonradioButton27
QRadioButtonradioButton27_2
QRadioButtonradioButton27_2_2
QRadioButtonradioButton27_2_2_2
QRadioButtonradioButton27_2_2_2_2
QRadioButtonradioButton27_2_2_2_2_2
QRadioButtonradioButton38
QRadioButtonradioButton39
QRadioButtonradioButton40
QRadioButtonrectangle
QPushButtonreset_slider
QGroupBoxrotateGroupBox
QLabelsel_binding_0
QLabelsel_binding_1
QLabelsel_binding_2
QLabelsel_binding_3
QLabelsel_binding_4
QComboBoxsel_combo_0
QComboBoxsel_combo_1
QComboBoxsel_combo_2
QComboBoxsel_combo_3
QComboBoxsel_combo_4
QButtonGroupshow_cut_radio_group
QWidgetstatsTab
QWidgettab
QLabeltextLabel1
QLabelTextLabel1
QLabeltextLabel1_2
QLabeltextLabel1_2_2
QLabelTextLabel1_2_3
QLabelTextLabel1_2_3_2
QLabelTextLabel1_2_4
QLabelTextLabel1_2_4_2
QLabelTextLabel1_3
QLabelTextLabel1_3_2
QLabelTextLabel1_4
QLabeltextLabel5
QButtonGrouptransform_button_group
QRadioButtontriangle
QLabelu_fiiter

Protected Slots

virtual void languageChange ()
virtual void transformNew ()

Protected Member Functions

virtual void addDataRepButton_clicked ()
 Responds to click on the add Data Rep button.
virtual void allNtupleComboActivated (const QString &)
virtual void autoScale_clicked ()
 Slot which responds to the toggle in state of the autoScale check box.
virtual void availPlotTypesActivated (const QString &)
virtual void axis_button_group_clicked (int id)
 Responds to change in axis tabbed panel's axis radio button group.
virtual void axisLabelChanged (int index, const QString &axisName)
 Responds to change in axis binding on existing plotter.
virtual void axisLabelText ()
 Responds to return in axis label text box.
virtual void axisZoomPanCheckBox_clicked ()
 Responds to change in zoom/pan check box.
virtual void colorSelect_2_clicked ()
 Sets the Color of the cut plotter.
virtual void colorSelect_clicked ()
virtual void combineCheckBox_clicked ()
 Responds to the combined bins checkbox clicked.
void contourError ()
 Raises message box on contour input error.
virtual void contourLevelsTextBox_returnPressed ()
 Responds to change in contour levels text box.
virtual void contourRadioButton1_toggled (bool)
 Responds to change in 1st contour radio button.
virtual void contourSlider_valueChanged (int val)
virtual void contourTextBox_returnPressed ()
virtual const std::string convertToString (hippodraw::Axes::Type)
virtual void createResiduals ()
 Creates a display showing the residuals of the function.
virtual void cut_button_group_clicked ()
 Responds to change of the cut panel's radio group.
virtual void cutAddAll ()
 Adds all the cuts to the DataRep.
virtual void cutAddSelected ()
 Adds selected cut to the DataRep.
virtual void cutEnablePushButton_toggled (bool on)
 Responds to the cut enable push button.
virtual void cutHighSlider_sliderMoved (int value)
virtual void cutHighSlider_sliderReleased ()
virtual void cutInvertPushButton_clicked ()
virtual void cutLowSlider_sliderMoved (int value)
virtual void cutLowSlider_sliderReleased ()
virtual void cutNew ()
virtual void cutRemovePushButton_clicked ()
 Responds to the button that removes a cut.
virtual void cutText_returnPressed ()
 Responds to entry in one of the cut text fields.
virtual void cutZoomPanCheckBox_clicked ()
virtual void dataCreateNTuple ()
virtual void dataNTupleSelChanged (int item)
virtual void dataTupleNameChanged (const QString &)
 Respond to change of DataSource name change.
virtual void deleteColorModel ()
 Deletes an existing Value to Color Model.
virtual void editColorModel ()
 Brings up dialog to edit an existing Value to Color model.
void editLabelFontClicked ()
 Edit label font, ( if user wants to overwrite he default ).
void editTitleFontClicked ()
 Edit the title font, ( if user wants to overwrite he default ).
virtual void entriesDrag ()
virtual void fitterNamesActivated (int)
virtual void functionAdd ()
virtual void functionParamsCheckBoxToggled (bool)
 Slot which recieves the signal if state of the checkbox changes in the the function Params tab.
virtual void functionParamsLineEditReturnPressed ()
 Slot which recieves the signal if enter is pressed in the line edit in the the function Params tab.
virtual void functionParamsListViewCurrentChanged ()
 Slot which recieves the signal if Current item changes in the List View of the function Params.
virtual void functionParamsSliderSliderMoved (int)
 Slot which alters the parameter values as the function Params slider is moved.
virtual void functionParamsSliderSliderPressed ()
 Slot which recieves signal when params slider is presssed.
virtual void functionParamsSliderSliderReleased ()
 Slot which set the slider to mid point after it has been release.
virtual void functionsFitToDataButton_clicked ()
 Fits the selected function to the data.
virtual void functionsRemoveButton_clicked ()
 Removing the selected function and updating appropriate tabbed panels.
virtual void functionsResetButton_clicked ()
 Reset the function parameters from the parameters saved before the last fit.
std::string getArrayTupleLabel (const DataSource *rtuple, const std::string &column)
 In case we are dealing with multidimensional data in rows of this column in the given DataSource we would like to deal with on one entry of this multidimensional data.
virtual int getMinEntries ()
 Get the minimum entries number of the plot.
virtual PlotterBasegetPlotter ()
virtual void highRangeDrag ()
virtual void ignoreErrorCheckBoxToggled (bool)
 Slot which responds to the ignoreError check box.
virtual void intervalStateChanged (bool state)
virtual void intervalTextChanged (const QString &)
virtual void lineStyleButtonGroup_clicked (int id)
virtual void logScale_clicked ()
 The Qt slot which responds to the toggle in state of the logScale checkbox.
virtual void lowRangeDrag ()
virtual void m_boxedge_clicked ()
virtual void m_grid_clicked ()
 Responds to the toggle in state of the show grid check box.
virtual void newColorModel ()
 Brings up dialog to create a new Value to Color model.
virtual void newPlotButton_clicked ()
virtual void offsetDrag ()
virtual void pointRepComboBox_activated (const QString &qstr)
virtual void pushButtonNewErrorPlotClicked ()
 The slot that recieves the signal when the PushButtonNewErrorPlot is clicked.
virtual void removeDataRepButton_clicked ()
 Responds to click on the remove Data Rep button.
virtual void resetRotate ()
 Reset to zero.
virtual void resetSlider ()
 Resets sliders to default position.
virtual void