Changeset 8542:2d2329d0a370 in orange


Ignore:
Timestamp:
07/30/11 20:01:19 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
a836baa7bf12a079cc97ecb6c09d7135eaaa1f3f
Message:

More GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWRadviz3D.py

    r8541 r8542  
    1616        OWPlot3D.__init__(self, parent) 
    1717        orngScaleLinProjData.__init__(self) 
     18 
     19        self.show_value_lines = False 
     20        self.value_line_length = 0 
     21        self.use_different_symbols = True 
     22        self.use_different_colors = True 
     23        self.send_selection_on_update = False 
    1824 
    1925    def set_data(self, data, subset_data=None, **args): 
     
    94100        #self.graph.gui.show_legend_check_box(box) 
    95101        bbox = OWGUI.widgetBox(box, orientation="horizontal") 
    96         #OWGUI.checkBox(bbox, self, 'graph.showValueLines', 'Show value lines  ', callback = self.updateGraph) 
    97         #OWGUI.qwtHSlider(bbox, self, 'graph.valueLineLength', minValue=1, maxValue=10, step=1, callback = self.updateGraph, showValueLabel = 0) 
    98         #OWGUI.checkBox(box, self, 'graph.useDifferentSymbols', 'Use different symbols', callback = self.updateGraph, tooltip = "Show different class values using different symbols") 
    99         #OWGUI.checkBox(box, self, 'graph.useDifferentColors', 'Use different colors', callback = self.updateGraph, tooltip = "Show different class values using different colors") 
    100         #self.graph.gui.filled_symbols_check_box(box) 
    101         #self.graph.gui.antialiasing_check_box(box) 
    102         #wbox = OWGUI.widgetBox(box, orientation = "horizontal") 
    103         #OWGUI.checkBox(wbox, self, 'graph.showProbabilities', 'Show probabilities'+'  ', callback = self.updateGraph, tooltip = "Show a background image with class probabilities") 
    104         #smallWidget = OWGUI.SmallWidgetLabel(wbox, pixmap = 1, box = "Advanced settings", tooltip = "Show advanced settings") 
    105         #OWGUI.rubber(wbox) 
     102        OWGUI.checkBox(bbox, self, 'plot.show_value_lines', 'Show value lines  ', callback=self.update_plot) 
     103        OWGUI.qwtHSlider(bbox, self, 'plot.value_line_length', minValue=1, maxValue=10, step=1, callback=self.update_plot, showValueLabel=0) 
     104        OWGUI.checkBox(box, self, 'plot.use_different_symbols', 'Use different symbols', callback=self.update_plot, 
     105            tooltip="Show different class values using different symbols") 
     106        OWGUI.checkBox(box, self, 'plot.use_different_colors', 'Use different colors', 
     107            callback=self.update_plot, tooltip="Show different class values using different colors") 
    106108 
    107109        box = OWGUI.widgetBox(self.settings_tab, "Colors", orientation="horizontal") 
     
    110112            debuggingEnabled=0) 
    111113 
    112         #box = OWGUI.widgetBox(self.settings_tab, "Tooltips Settings") 
    113         #OWGUI.comboBox(box, self, "graph.tooltipKind", items = ["Show line tooltips", "Show visible attributes", "Show all attributes"], callback = self.updateGraph) 
    114         #OWGUI.comboBox(box, self, "graph.tooltipValue", items = ["Tooltips show data values", "Tooltips show spring values"], callback = self.updateGraph, tooltip = "Do you wish that tooltips would show you original values of visualized attributes or the 'spring' values (values between 0 and 1). \nSpring values are scaled values that are used for determining the position of shown points. Observing these values will therefore enable you to \nunderstand why the points are placed where they are.") 
     114        self.tooltip_kind = 0 
     115        self.tooltip_value = 0 
     116        box = OWGUI.widgetBox(self.settings_tab, "Tooltips Settings") 
     117        OWGUI.comboBox(box, self, "tooltip_kind", 
     118            items=["Show line tooltips", "Show visible attributes", "Show all attributes"], 
     119            callback=self.update_plot) 
     120        OWGUI.comboBox(box, self, "tooltip_value", 
     121            items=["Tooltips show data values", "Tooltips show spring values"], 
     122            callback=self.update_plot, 
     123            tooltip="Do you wish that tooltips would show you original values of visualized"+\ 
     124                    "attributes or the 'spring' values (values between 0 and 1). \nSpring values "+\ 
     125                    "are scaled values that are used for determining the position of shown points."+\ 
     126                    "Observing these values will therefore enable you to \nunderstand why the points are placed where they are.") 
    115127 
    116         #box = OWGUI.widgetBox(self.SettingsTab, "Auto Send Selected Data When...") 
    117         #OWGUI.checkBox(box, self, 'autoSendSelection', 'Adding/Removing selection areas', callback = self.selectionChanged, tooltip = "Send selected data whenever a selection area is added or removed") 
    118         #OWGUI.checkBox(box, self, 'graph.sendSelectionOnUpdate', 'Moving/Resizing selection areas', tooltip = "Send selected data when a user moves or resizes an existing selection area") 
    119         #OWGUI.comboBox(box, self, "addProjectedPositions", items = ["Do not modify the domain", "Append projection as attributes", "Append projection as meta attributes"], callback = self.sendSelections) 
    120         #self.selectionChanged() 
    121  
    122         #box = OWGUI.widgetBox(smallWidget.widget, orientation = "horizontal") 
    123         #OWGUI.widgetLabel(box, "Granularity:  ") 
    124         #OWGUI.hSlider(box, self, 'graph.squareGranularity', minValue=1, maxValue=10, step=1, callback = self.updateGraph) 
    125  
    126         #box = OWGUI.widgetBox(smallWidget.widget, orientation = "horizontal") 
    127         #OWGUI.checkBox(box, self, 'graph.spaceBetweenCells', 'Show space between cells', callback = self.updateGraph) 
     128        self.auto_send_selection = 0 
     129        self.add_projected_positions = 0 
     130        box = OWGUI.widgetBox(self.settings_tab, "Auto Send Selected Data When...") 
     131        OWGUI.checkBox(box, self, 'auto_send_selection', 'Adding/Removing selection areas', 
     132            callback=self.selection_changed, tooltip="Send selected data whenever a selection area is added or removed") 
     133        OWGUI.checkBox(box, self, 'plot.send_selection_on_update', 'Moving/Resizing selection areas', 
     134            tooltip="Send selected data when a user moves or resizes an existing selection area") 
     135        OWGUI.comboBox(box, self, "add_projected_positions", 
     136            items=["Do not modify the domain", "Append projection as attributes", "Append projection as meta attributes"], 
     137            callback=self.send_selections) 
     138        self.selection_changed() 
    128139 
    129140        self.settings_tab.layout().addStretch(100) 
    130  
    131         #self.icons = self.createAttributeIconDict() 
    132         #self.debugSettings = ["hiddenAttributes", "shownAttributes"] 
    133  
    134         #dlg = self.createColorDialog() 
    135         #self.graph.contPalette = dlg.getContinuousPalette("contPalette") 
    136         #self.graph.discPalette = dlg.getDiscretePalette("discPalette") 
    137         #self.graph.setCanvasBackground(dlg.getColor("Canvas")) 
    138  
    139141        self.resize(900, 700) 
    140142 
Note: See TracChangeset for help on using the changeset viewer.