Public Member Functions | |
| def | __init__ |
| def | OnRadioXferMBRadiobutton |
| This function is empty. | |
| def | OnRadioXferGBRadiobutton |
| This function is empty. | |
| def | OnRadioXferKBRadiobutton |
| This function is empty. | |
| def | OnRadioSizeScaleKBRadiobutton |
| This function is empty. | |
| def | OnRadioSizeScaleMBRadiobutton |
| This function is empty. | |
| def | OnRadioSizeScaleGBRadiobutton |
| This function is empty. | |
| def | OnRadioTimeScaleSecsRadiobutton |
| This function is empty. | |
| def | OnRadioTimeScaleMinsRadiobutton |
| This function is empty. | |
| def | OnRadioTimeScaleHoursRadiobutton |
| This function is empty. | |
| def | OnRadioButtonRefreshHighRadiobutton |
| This function is empty. | |
| def | OnRadioButtonRefreshMedRadiobutton |
| This function is empty. | |
| def | OnRadioButtonRefreshLowRadiobutton |
| This function is empty. | |
| def | OnButtonApplyButton |
| "Apply" Button Handler | |
| def | OnButtonCancelButton |
| "Cancel" Button Handler | |
| def | validateGlobalSettings |
| Validates the "Drawing Options" tab settings. | |
| def | loadConfiguration |
| Sets GUI controls to match displayConfigurator values. | |
| def | CreateBitmap |
| Creates the bitmap (i.e. | |
| def | getGlbPeerXferOptions |
| Returns the "Network Peers" transfer settings (in Drawing Options tab). | |
| def | getGlbPeerIdleOptions |
| Returns the "Network Peers" idle time settings (in Drawing Options). | |
| def | getGlbLineOptions |
| Returns a string value of the "Line" Radio Button (i.e. | |
| def | getGlbLabelOptions |
| Returns a string value of the "Label" Radio Button (in Drawing Options tab). | |
| def | getGlbDisplayScale |
| Returns the "Display Scale" (in Drawing Options tab). | |
| def | getGlbRefreshRate |
| Returns the refresh rate as a string (i.e. | |
| def | getGlbDisplayLabel |
| Returns the value of the "Peer Display Label" ComboBox (in Drawing Options tab). | |
| def | getAppDefaultColor |
| Returns the default Color used by the "Network Process List" color chooser. | |
| def | getAppColorDict |
| Returns a Dictionary of what colors are associated with which processes. | |
| def | initApplicationsControls |
| Additional control initialization. | |
| def | populateAppProcesList |
| Populates the Process ListBox (in Process Info tab). | |
| def | disableAppControls |
| Disables the color chooser controls (in Process Info tab). | |
| def | enableAppControls |
| Enables the color chooser controls (in Process Info tab). | |
| def | OnButtonSetColorButton |
| "Change Peer Color" Button Handler. | |
| def | OnButtonDefaultColorButton |
| "Use Default Color" Button Handler | |
| def | OnButtonRefreshListButton |
| "Refresh List" (process) Button Handler | |
| def | OnListCtrlProcessListListItemSelected |
| Keeps track of which item was selected, and update the color in the bitmap. | |
| def | OnListCtrlProcessListListItemDeselected |
| Handler called whenever no process in the "Network Process List" is selected (i.e. | |
| def | OnButtonUseDefaultButton |
| "Default Peer Color" Button Handler (i.e. | |
| def | initMapOptions |
| Initializes the map option controls. | |
| def | getMapDetailLevel |
| Returns the map detail level (Radio Button value). | |
| def | getMapDrawCSBorders |
| Returns the value of the "Draw Country and State Borders" CheckBox. | |
| def | getMapDrawRivers |
| Returns the value of the "Draw Rivers" CheckBox. | |
| def | OnRadioButtonHighDetailRadiobutton |
| "Map Detail" (High) Radio Button Handler | |
| def | OnRadioButtonLowDetailRadiobutton |
| "Map Detail" (Low) Radio Button Handler | |
| def | OnCheckBoxDrawCountriesCheckbox |
| "Draw Country and State Borders" CheckBox Handler | |
| def | OnCheckBoxDrawRiversCheckbox |
| "Draw Rivers" CheckBox Handler | |
Public Attributes | |
| buttonApply | |
| buttonCancel | |
| settingsNotebook | |
| globPanel | |
| appPanel | |
| checkboxMinXfer | |
| checkboxMaxIdle | |
| radioBtnLineNever | |
| radioBtnLineAlways | |
| radioBtnLineOnly | |
| comboBoxLabelZoom | |
| radioBtnLabelNever | |
| radioBtnLabelAlways | |
| radioBtnLabelOnly | |
| comboBoxLineZoom | |
| textLinMarkScale | |
| radioSizeScaleKB | |
| radioSizeScaleMB | |
| radioSizeScaleGB | |
| textMapRefresh | |
| radioButtonRefreshHigh | |
| radioButtonRefreshMed | |
| radioButtonRefreshLow | |
| staticBoxLinesLabels | |
| staticBoxNetworkPeers | |
| staticBoxDisplayScale | |
| staticBoxRefreshRate | |
| comboBoxMinXferScale | |
| textFadeAway | |
| comboBoxMaxIdleScale | |
| buttonSetColor | |
| staticBitmapProcessColor | |
| buttonDefaultColor | |
| staticBitmapDefaultColor | |
| buttonRefreshList | |
| staticBoxNetworkedProcesses | |
| listCtrlProcessList | |
| buttonUseDefault | |
| intCtrlMinXfer | |
| intCtrlMaxIdle | |
| comboBoxLabel | |
| staticTextDisplayLabel | |
| panelMapParams | |
| radioButtonHighDetail | |
| radioButtonLowDetail | |
| checkBoxDrawCountries | |
| staticBoxMapDetails | |
| checkBoxDrawRivers | |
| staticBoxMapElements | |
| refreshRateStart | |
| transportTable | |
| refreshRateConfigChanged | |
| dispConfigurator | |
| processColorDict | |
| processDefaultColor | |
| processSelected | |
| selectedProcess | |
| mapOptionsChanged | |
This class should be edited using the Boa Constructor IDE. Minimal inline documentation will be provided for this class as it may interfere with the automatic code generation.
The displaySettings class represents the applications's 'Display Settings' window
Definition at line 70 of file displaySettings.py.
| def objects.gui.displaySettings.displaySettings.__init__ | ( | self, | ||
| parent | ||||
| ) |
Definition at line 490 of file displaySettings.py.
00490 : 00491 self._init_ctrls(parent) 00492 00493 self.refreshRateStart = "" 00494 00495 self.transportTable = extXportTableDict() 00496 00497 00498 ## This function is empty
| def objects.gui.displaySettings.displaySettings.CreateBitmap | ( | self, | ||
| color, | ||||
| w, | ||||
| h | ||||
| ) |
Creates the bitmap (i.e.
color preview box) used to assign a color to a process.
| color | Color value | |
| w | Width of the Color preview Box | |
| h | Height of the Color preview Box |
Definition at line 758 of file displaySettings.py.
00758 : 00759 bmp = wx.EmptyBitmap(w, h) 00760 dc = wx.MemoryDC() 00761 dc.SelectObject(bmp) 00762 dc.SetBackground(wx.Brush(color)) 00763 dc.Clear() 00764 dc.SelectObject(wx.NullBitmap) 00765 return bmp 00766 00767 ## Returns the "Network Peers" transfer settings (in Drawing Options tab).
| def objects.gui.displaySettings.displaySettings.disableAppControls | ( | self | ) |
Disables the color chooser controls (in Process Info tab).
Definition at line 939 of file displaySettings.py.
00939 : 00940 self.buttonSetColor.Disable() 00941 self.buttonDefaultColor.Disable() 00942 00943 ## Enables the color chooser controls (in Process Info tab).
| def objects.gui.displaySettings.displaySettings.enableAppControls | ( | self | ) |
Enables the color chooser controls (in Process Info tab).
Definition at line 945 of file displaySettings.py.
00945 : 00946 self.buttonSetColor.Enable() 00947 self.buttonDefaultColor.Enable() 00948 00949 ## "Change Peer Color" Button Handler.
| def objects.gui.displaySettings.displaySettings.getAppColorDict | ( | self | ) |
Returns a Dictionary of what colors are associated with which processes.
Definition at line 871 of file displaySettings.py.
00871 : 00872 return self.processColorDict 00873 00874 ## Additional control initialization.
| def objects.gui.displaySettings.displaySettings.getAppDefaultColor | ( | self | ) |
Returns the default Color used by the "Network Process List" color chooser.
Definition at line 865 of file displaySettings.py.
00865 : 00866 return self.processDefaultColor 00867 00868 ## Returns a Dictionary of what colors are associated with which processes
| def objects.gui.displaySettings.displaySettings.getGlbDisplayLabel | ( | self | ) |
Returns the value of the "Peer Display Label" ComboBox (in Drawing Options tab).
Definition at line 856 of file displaySettings.py.
00856 : 00857 return self.comboBoxLabel.GetValue() 00858 00859 """ Process Info Tab related stuff
| def objects.gui.displaySettings.displaySettings.getGlbDisplayScale | ( | self | ) |
Returns the "Display Scale" (in Drawing Options tab).
Definition at line 827 of file displaySettings.py.
00827 : 00828 dispXferScale = None 00829 dispTimeScale = None 00830 00831 if self.radioSizeScaleKB.GetValue() == True: 00832 dispXferScale = 1000 00833 elif self.radioSizeScaleMB.GetValue() == True: 00834 dispXferScale = 1000000 00835 else: 00836 dispXferScale = 1000000000 00837 00838 return dispXferScale 00839 00840 ## Returns the refresh rate as a string (i.e. Low, Med, High)
| def objects.gui.displaySettings.displaySettings.getGlbLabelOptions | ( | self | ) |
Returns a string value of the "Label" Radio Button (in Drawing Options tab).
Definition at line 814 of file displaySettings.py.
00814 : 00815 if self.radioBtnLabelAlways.GetValue() == True: 00816 selectedButton = "Always" 00817 elif self.radioBtnLabelNever.GetValue() == True: 00818 selectedButton = "Never" 00819 else: 00820 selectedButton = "Only" 00821 00822 return selectedButton, self.comboBoxLabelZoom.GetValue() 00823 00824 ## Returns the "Display Scale" (in Drawing Options tab).
| def objects.gui.displaySettings.displaySettings.getGlbLineOptions | ( | self | ) |
Returns a string value of the "Line" Radio Button (i.e.
Always, Never, Only)
Definition at line 801 of file displaySettings.py.
00801 : 00802 if self.radioBtnLineAlways.GetValue() == True: 00803 selectedButton = "Always" 00804 elif self.radioBtnLineNever.GetValue() == True: 00805 selectedButton = "Never" 00806 else: 00807 selectedButton = "Only" 00808 00809 return selectedButton, self.comboBoxLineZoom.GetValue() 00810 00811
| def objects.gui.displaySettings.displaySettings.getGlbPeerIdleOptions | ( | self | ) |
Returns the "Network Peers" idle time settings (in Drawing Options).
@ return CheckBox value, max idle time, transfer scale (in seconds: 1, 60 or 3600)
Definition at line 786 of file displaySettings.py.
00786 : 00787 timeScale = None 00788 00789 if self.comboBoxMaxIdleScale.GetSelection() == 0: 00790 timeScale = 1 00791 elif self.comboBoxMaxIdleScale.GetSelection() == 1: 00792 timeScale = 60 00793 else: 00794 timeScale = 3600 00795 00796 return self.checkboxMaxIdle.GetValue(), self.intCtrlMaxIdle.GetValue(), timeScale 00797 00798 ## Returns a string value of the "Line" Radio Button (i.e. Always, Never, Only)
| def objects.gui.displaySettings.displaySettings.getGlbPeerXferOptions | ( | self | ) |
Returns the "Network Peers" transfer settings (in Drawing Options tab).
@ return CheckBox value, minimum display transfer, transfer scale (in Bytes: 1000, 1000000 or 1000000000)
Definition at line 770 of file displaySettings.py.
00770 : 00771 xferScale = None 00772 00773 if self.comboBoxMinXferScale.GetSelection() == 0: 00774 xferScale = 1000 00775 elif self.comboBoxMinXferScale.GetSelection() == 1: 00776 xferScale = 1000000 00777 else: 00778 xferScale = 1000000000 00779 00780 00781 return self.checkboxMinXfer.GetValue(), self.intCtrlMinXfer.GetValue(), xferScale 00782 00783 ## Returns the "Network Peers" idle time settings (in Drawing Options).
| def objects.gui.displaySettings.displaySettings.getGlbRefreshRate | ( | self | ) |
Returns the refresh rate as a string (i.e.
Low, Med, High)
Definition at line 843 of file displaySettings.py.
00843 : 00844 00845 if self.radioButtonRefreshLow.GetValue() == True: 00846 selectedButton = "Low" 00847 elif self.radioButtonRefreshMed.GetValue() == True: 00848 selectedButton = "Med" 00849 else: 00850 selectedButton = "Hi" 00851 00852 return selectedButton 00853 ## Returns the value of the "Peer Display Label" ComboBox (in Drawing Options tab).
| def objects.gui.displaySettings.displaySettings.getMapDetailLevel | ( | self | ) |
Returns the map detail level (Radio Button value).
Definition at line 1055 of file displaySettings.py.
01055 : 01056 return self.radioButtonHighDetail.GetValue() 01057 01058 ## Returns the value of the "Draw Country and State Borders" CheckBox
| def objects.gui.displaySettings.displaySettings.getMapDrawCSBorders | ( | self | ) |
Returns the value of the "Draw Country and State Borders" CheckBox.
Definition at line 1061 of file displaySettings.py.
01061 : 01062 return self.checkBoxDrawCountries.GetValue() 01063 01064 ## Returns the value of the "Draw Rivers" CheckBox
| def objects.gui.displaySettings.displaySettings.getMapDrawRivers | ( | self | ) |
Returns the value of the "Draw Rivers" CheckBox.
Definition at line 1067 of file displaySettings.py.
01067 : 01068 return self.checkBoxDrawRivers.GetValue() 01069 01070 ## "Map Detail" (High) Radio Button Handler
| def objects.gui.displaySettings.displaySettings.initApplicationsControls | ( | self | ) |
Additional control initialization.
Definition at line 876 of file displaySettings.py.
00876 : 00877 self.processColorDict = dict() 00878 self.processDefaultColor = self.dispConfigurator.app_getProcessDefaultColor() 00879 00880 # populate the table 00881 self.populateAppProcesList() 00882 00883 defColorBmp = self.CreateBitmap(self.processDefaultColor, 56, 56) 00884 self.staticBitmapDefaultColor.SetBitmap(defColorBmp) 00885 00886 ProcessColorBmp = self.CreateBitmap(self.processDefaultColor, 56, 56) 00887 self.staticBitmapProcessColor.SetBitmap(ProcessColorBmp) 00888 00889
| def objects.gui.displaySettings.displaySettings.initMapOptions | ( | self | ) |
Initializes the map option controls.
Definition at line 1039 of file displaySettings.py.
01039 : 01040 self.mapOptionsChanged = False 01041 mapDetail = self.dispConfigurator.map_getMapDetail() 01042 01043 if mapDetail == True: 01044 self.radioButtonLowDetail.SetValue(False) 01045 self.radioButtonHighDetail.SetValue(True) 01046 else: 01047 self.radioButtonLowDetail.SetValue(True) 01048 self.radioButtonHighDetail.SetValue(False) 01049 01050 self.checkBoxDrawCountries.SetValue(self.dispConfigurator.map_getDrawCSBorders()) 01051 self.checkBoxDrawRivers.SetValue(self.dispConfigurator.map_getDrawRivers()) 01052 ## Returns the map detail level (Radio Button value)
| def objects.gui.displaySettings.displaySettings.loadConfiguration | ( | self, | ||
| displayConfigurator | ||||
| ) |
Sets GUI controls to match displayConfigurator values.
| displayConfigurator,: | displayConfigurator object (which reads settings from INI file) |
Definition at line 650 of file displaySettings.py.
00650 : 00651 00652 self.dispConfigurator = displayConfigurator 00653 00654 #Global Settings... 00655 00656 #Network Peers 00657 minXferOn, minXfer, xferScale = self.dispConfigurator.glb_getMinXferOptions() 00658 maxIdleOn, minIdle, idleScale = self.dispConfigurator.glb_getMaxIdleOptions() 00659 00660 self.checkboxMinXfer.SetValue(minXferOn) 00661 self.intCtrlMinXfer.SetValue(minXfer) 00662 00663 #set the xfer scale 00664 if xferScale == 1000: 00665 self.comboBoxMinXferScale.SetSelection(0) 00666 elif xferScale == 1000000: 00667 self.comboBoxMinXferScale.SetSelection(1) 00668 else: 00669 self.comboBoxMinXferScale.SetSelection(2) 00670 00671 00672 00673 self.checkboxMaxIdle.SetValue(maxIdleOn) 00674 self.intCtrlMaxIdle.SetValue(minIdle) 00675 #set the time scal 00676 if idleScale == 1: 00677 self.comboBoxMaxIdleScale.SetSelection(0) 00678 elif idleScale == 60: 00679 self.comboBoxMaxIdleScale.SetSelection(1) 00680 else: 00681 self.comboBoxMaxIdleScale.SetSelection(2) 00682 00683 00684 #Connecting Lines 00685 lineOption, lineZoom = self.dispConfigurator.glb_getLineOptions() 00686 00687 if lineOption == "Always": 00688 self.radioBtnLineAlways.SetValue(True) 00689 self.comboBoxLineZoom.Disable() 00690 elif lineOption == "Never": 00691 self.radioBtnLineNever.SetValue(True) 00692 self.comboBoxLineZoom.Disable() 00693 else: #lineOption == "Only": 00694 self.radioBtnLineOnly.SetValue(True) 00695 00696 self.comboBoxLineZoom.SetStringSelection(lineZoom) 00697 00698 #Labels 00699 labelOption, labelZoom = self.dispConfigurator.glb_getLabelOptions() 00700 00701 00702 if labelOption == "Always": 00703 self.radioBtnLabelAlways.SetValue(True) 00704 self.comboBoxLabelZoom.Disable() 00705 elif labelOption == "Never": 00706 self.radioBtnLabelNever.SetValue(True) 00707 self.comboBoxLabelZoom.Disable() 00708 else: #labelOption == "Only": 00709 self.radioBtnLabelOnly.SetValue(True) 00710 00711 self.comboBoxLabelZoom.SetStringSelection(labelZoom) 00712 00713 #Display Scale 00714 dispXferScale = self.dispConfigurator.glb_getDisplayScale() 00715 00716 00717 if dispXferScale == 1000: 00718 self.radioSizeScaleKB.SetValue(True) 00719 elif dispXferScale == 1000000: 00720 self.radioSizeScaleMB.SetValue(True) 00721 else: #dispXferScale == "1000000000": 00722 self.radioSizeScaleGB.SetValue(True) 00723 00724 00725 #Refresh Rate 00726 refreshRate = self.dispConfigurator.glb_getRefreshRate() 00727 00728 if refreshRate == "Low": 00729 self.radioButtonRefreshLow.SetValue(True) 00730 elif refreshRate == "Med": 00731 self.radioButtonRefreshMed.SetValue(True) 00732 else: #refreshRate == "Hi": 00733 self.radioButtonRefreshHigh.SetValue(True) 00734 00735 # keep track of whether the refresh rate parameter changed 00736 self.refreshRateStart = refreshRate 00737 00738 # set the display label 00739 displayLabel = self.dispConfigurator.glb_getDisplayLabel() 00740 00741 if displayLabel == "_DEFAULT_": 00742 self.comboBoxLabel.SetSelection(0) 00743 else: 00744 self.comboBoxLabel.SetStringSelection(displayLabel) 00745 00746 # initialize application controls 00747 self.initApplicationsControls() 00748 00749 # initialze map options 00750 self.initMapOptions() 00751 00752 ## Creates the bitmap (i.e. color preview box) used to assign a color to a process.
| def objects.gui.displaySettings.displaySettings.OnButtonApplyButton | ( | self, | ||
| event | ||||
| ) |
"Apply" Button Handler
| event | Standard wx.Button event |
Definition at line 596 of file displaySettings.py.
00596 : 00597 # figure out of refresh rate has changed 00598 if self.radioButtonRefreshLow.GetValue() == True: 00599 currRefresh = "Low" 00600 elif self.radioButtonRefreshMed.GetValue() == True: 00601 currRefresh = "Med" 00602 else: 00603 currRefresh = "Hi" 00604 00605 00606 if self.refreshRateStart != currRefresh: 00607 self.refreshRateConfigChanged = True 00608 else: 00609 self.refreshRateConfigChanged = False 00610 00611 if self.validateGlobalSettings() == False: 00612 return 00613 00614 return self.EndModal(wx.ID_OK) 00615 00616 ## "Cancel" Button Handler
| def objects.gui.displaySettings.displaySettings.OnButtonCancelButton | ( | self, | ||
| event | ||||
| ) |
"Cancel" Button Handler
| event | Standard wx.Button event |
Definition at line 619 of file displaySettings.py.
00619 : 00620 return self.EndModal(wx.ID_CANCEL) 00621 00622 ## Validates the "Drawing Options" tab settings
| def objects.gui.displaySettings.displaySettings.OnButtonDefaultColorButton | ( | self, | ||
| event | ||||
| ) |
"Use Default Color" Button Handler
| event | Standard wx.Button event |
Definition at line 978 of file displaySettings.py.
00978 : 00979 colorDialog = wx.ColourDialog(self) 00980 00981 if colorDialog.ShowModal() == wx.ID_OK: 00982 defaultColor = colorDialog.GetColourData().GetColour().GetAsString(wx.C2S_HTML_SYNTAX) 00983 00984 ProcessColorBmp = self.CreateBitmap(defaultColor, 56, 56) 00985 self.staticBitmapDefaultColor.SetBitmap(ProcessColorBmp) 00986 00987 self.processDefaultColor = defaultColor 00988 00989 ## "Refresh List" (process) Button Handler
| def objects.gui.displaySettings.displaySettings.OnButtonRefreshListButton | ( | self, | ||
| event | ||||
| ) |
"Refresh List" (process) Button Handler
| event | Standard wx.Button event |
Definition at line 992 of file displaySettings.py.
00992 : 00993 self.listCtrlProcessList.DeleteAllItems() 00994 self.populateAppProcesList() 00995 ## Keeps track of which item was selected, and update the color in the bitmap. This is called in response to an event.
| def objects.gui.displaySettings.displaySettings.OnButtonSetColorButton | ( | self, | ||
| event | ||||
| ) |
"Change Peer Color" Button Handler.
| event | Standard wx.Button event |
Definition at line 952 of file displaySettings.py.
00952 : 00953 if self.processSelected == False: 00954 dlg = wx.MessageDialog(None, "No process was selected", 'Error', wx.ICON_ERROR) 00955 dlg.ShowModal() 00956 dlg.Destroy() 00957 return 00958 00959 colorDialog = wx.ColourDialog(self) 00960 00961 if colorDialog.ShowModal() == wx.ID_OK: 00962 newColor = colorDialog.GetColourData().GetColour().GetAsString(wx.C2S_HTML_SYNTAX) 00963 00964 ProcessColorBmp = self.CreateBitmap(newColor, 56, 56) 00965 self.staticBitmapProcessColor.SetBitmap(ProcessColorBmp) 00966 00967 proc = self.selectedProcess.lower() 00968 self.processColorDict[proc] = newColor 00969 00970 00971 00972 colorDialog.Destroy() 00973 00974 00975 ## "Use Default Color" Button Handler
| def objects.gui.displaySettings.displaySettings.OnButtonUseDefaultButton | ( | self, | ||
| event | ||||
| ) |
"Default Peer Color" Button Handler (i.e.
sets the process default color)
| event | Standard wx.Button event |
Definition at line 1021 of file displaySettings.py.
01021 : 01022 if self.processSelected == False: 01023 dlg = wx.MessageDialog(None, "No process was selected", 'Error', wx.ICON_ERROR) 01024 dlg.ShowModal() 01025 dlg.Destroy() 01026 return 01027 01028 ProcessColorBmp = self.CreateBitmap(self.processDefaultColor, 56, 56) 01029 self.staticBitmapProcessColor.SetBitmap(ProcessColorBmp) 01030 01031 proc = self.selectedProcess.lower() 01032 self.processColorDict[proc] = self.processDefaultColor 01033 01034 """ Map options related tab
| def objects.gui.displaySettings.displaySettings.OnCheckBoxDrawCountriesCheckbox | ( | self, | ||
| event | ||||
| ) |
"Draw Country and State Borders" CheckBox Handler
| event | Standard wx.Button event |
Definition at line 1086 of file displaySettings.py.
01086 : 01087 self.mapOptionsChanged = True 01088 01089 ## "Draw Rivers" CheckBox Handler
| def objects.gui.displaySettings.displaySettings.OnCheckBoxDrawRiversCheckbox | ( | self, | ||
| event | ||||
| ) |
"Draw Rivers" CheckBox Handler
| event | Standard wx.Button event |
Definition at line 1092 of file displaySettings.py.
01092 : 01093 self.mapOptionsChanged = True 01094 01095 01096 01097 01098 01099 01100 01101 01102 01103 01104
| def objects.gui.displaySettings.displaySettings.OnListCtrlProcessListListItemDeselected | ( | self, | ||
| event | ||||
| ) |
Handler called whenever no process in the "Network Process List" is selected (i.e.
when the user clicks on a whitespace area)
| event | Standard wx.Button event |
Definition at line 1015 of file displaySettings.py.
01015 : 01016 self.processSelected = False 01017 01018 ## "Default Peer Color" Button Handler (i.e. sets the process default color)
| def objects.gui.displaySettings.displaySettings.OnListCtrlProcessListListItemSelected | ( | self, | ||
| event | ||||
| ) |
Keeps track of which item was selected, and update the color in the bitmap.
This is called in response to an event.
| event | Standard wx.Button event |
Definition at line 998 of file displaySettings.py.
00998 : 00999 item = event.GetItem() 01000 01001 self.processSelected = True 01002 self.selectedProcess = item.GetText() 01003 01004 # set the bitmap color to what it's supposed to be 01005 if self.processColorDict.has_key(self.selectedProcess): 01006 ProcessColorBmp = self.CreateBitmap(self.processColorDict[self.selectedProcess], 56, 56) 01007 self.staticBitmapProcessColor.SetBitmap(ProcessColorBmp) 01008 else: #use the default color 01009 ProcessColorBmp = self.CreateBitmap(self.processDefaultColor, 56, 56) 01010 self.staticBitmapProcessColor.SetBitmap(ProcessColorBmp) 01011 01012 ## Handler called whenever no process in the "Network Process List" is selected (i.e. when the user clicks on a whitespace area)
| def objects.gui.displaySettings.displaySettings.OnRadioButtonHighDetailRadiobutton | ( | self, | ||
| event | ||||
| ) |
"Map Detail" (High) Radio Button Handler
| event | Standard wx.Button event |
Definition at line 1073 of file displaySettings.py.
01073 : 01074 self.mapOptionsChanged = True 01075 01076 01077 ## "Map Detail" (Low) Radio Button Handler
| def objects.gui.displaySettings.displaySettings.OnRadioButtonLowDetailRadiobutton | ( | self, | ||
| event | ||||
| ) |
"Map Detail" (Low) Radio Button Handler
| event | Standard wx.Button event |
Definition at line 1080 of file displaySettings.py.
01080 : 01081 self.mapOptionsChanged = True 01082 01083 ## "Draw Country and State Borders" CheckBox Handler
| def objects.gui.displaySettings.displaySettings.OnRadioButtonRefreshHighRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 578 of file displaySettings.py.
00578 : 00579 event.Skip() 00580 00581 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioButtonRefreshLowRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 590 of file displaySettings.py.
00590 : 00591 event.Skip() 00592 00593 ## "Apply" Button Handler
| def objects.gui.displaySettings.displaySettings.OnRadioButtonRefreshMedRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 584 of file displaySettings.py.
00584 : 00585 event.Skip() 00586 00587 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioSizeScaleGBRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 554 of file displaySettings.py.
00554 : 00555 event.Skip() 00556 00557 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioSizeScaleKBRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 542 of file displaySettings.py.
00542 : 00543 event.Skip() 00544 00545 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioSizeScaleMBRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 548 of file displaySettings.py.
00548 : 00549 event.Skip() 00550 00551 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioTimeScaleHoursRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 572 of file displaySettings.py.
00572 : 00573 event.Skip() 00574 00575 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioTimeScaleMinsRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 566 of file displaySettings.py.
00566 : 00567 event.Skip() 00568 00569 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioTimeScaleSecsRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 560 of file displaySettings.py.
00560 : 00561 event.Skip() 00562 00563 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioXferGBRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 507 of file displaySettings.py.
00507 : 00508 event.Skip() 00509 00510 ## This function is empty
| def objects.gui.displaySettings.displaySettings.OnRadioXferKBRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 513 of file displaySettings.py.
00513 : 00514 event.Skip() 00515 00516 ## Disables the "Line Zoom Factor" ComboBox
| def objects.gui.displaySettings.displaySettings.OnRadioXferMBRadiobutton | ( | self, | ||
| event | ||||
| ) |
This function is empty.
| event | Standard wx.Button event |
Definition at line 501 of file displaySettings.py.
00501 : 00502 event.Skip() 00503 00504 ## This function is empty
| def objects.gui.displaySettings.displaySettings.populateAppProcesList | ( | self | ) |
Populates the Process ListBox (in Process Info tab).
Definition at line 891 of file displaySettings.py.
00891 : 00892 00893 procListException = False 00894 00895 # step 1. Get all running processes as well as processed not running 00896 # detected thus far 00897 try: 00898 procDict = self.transportTable.getEnrichedProcessDict() 00899 except Exception, err: 00900 procListException = True 00901 00902 # step 2. Merge the above dict with things found in configuration file. 00903 # i.e. processes which were color coded in a previous run 00904 00905 configProcessList = self.dispConfigurator.app_getProcessColorCodes() 00906 00907 for proc, color in configProcessList: 00908 proc = proc.lower() 00909 self.processColorDict[proc] = color 00910 if not procDict.has_key(proc): 00911 procDict[proc] = "No" 00912 00913 # step 3. deal with exceptions, and populate this list 00914 if procListException == True: 00915 self.disableAppControls() 00916 dlg = wx.MessageDialog(None, "There was an error retreiving the process list in the Application Tab", 'Error', wx.ICON_ERROR) 00917 dlg.ShowModal() 00918 dlg.Destroy() 00919 00920 self.disableAppControls() 00921 00922 elif len(procDict) == 0: 00923 self.listCtrlProcessList.InsertStringItem("No Processes Found", 0) 00924 self.listCtrlProcessList.Select(0) 00925 self.disableAppControls() 00926 else: 00927 keys = procDict.keys() 00928 keys.sort() 00929 00930 for key in keys: 00931 index = self.listCtrlProcessList.InsertStringItem(sys.maxint, key) 00932 self.listCtrlProcessList.SetStringItem(index, 1, procDict[key]) 00933 00934 self.listCtrlProcessList.Select(0) 00935 self.enableAppControls() 00936 00937
| def objects.gui.displaySettings.displaySettings.validateGlobalSettings | ( | self | ) |
Validates the "Drawing Options" tab settings.
Definition at line 625 of file displaySettings.py.
00625 : 00626 min, max = self.intCtrlMinXfer.GetBounds() 00627 if min == None: min = 0 00628 if max == None: max = 1000000 00629 00630 if not (min <= self.intCtrlMinXfer.GetValue() <= max): 00631 dlg = wx.MessageDialog(None, "Min Transfer value is not within a reasonable range", 'Error', wx.ICON_ERROR) 00632 dlg.ShowModal() 00633 dlg.Destroy() 00634 return False 00635 00636 min, max = self.intCtrlMaxIdle.GetBounds() 00637 if min == None: min = 0 00638 if max == None: max = 1000000 00639 if not (min <= self.intCtrlMaxIdle.GetValue() <= max): 00640 dlg = wx.MessageDialog(None, "Maximum Idle Time value is not within a reasonable range", 'Error', wx.ICON_ERROR) 00641 dlg.ShowModal() 00642 dlg.Destroy() 00643 return False 00644 00645 return True 00646 00647 ## Sets GUI controls to match displayConfigurator values
Definition at line 120 of file displaySettings.py.
Definition at line 97 of file displaySettings.py.
Definition at line 103 of file displaySettings.py.
Definition at line 351 of file displaySettings.py.
Definition at line 366 of file displaySettings.py.
Definition at line 337 of file displaySettings.py.
Definition at line 395 of file displaySettings.py.
Definition at line 456 of file displaySettings.py.
Definition at line 472 of file displaySettings.py.
Definition at line 131 of file displaySettings.py.
Definition at line 124 of file displaySettings.py.
Definition at line 419 of file displaySettings.py.
Definition at line 168 of file displaySettings.py.
Definition at line 207 of file displaySettings.py.
Definition at line 330 of file displaySettings.py.
Definition at line 316 of file displaySettings.py.
Definition at line 652 of file displaySettings.py.
Definition at line 114 of file displaySettings.py.
Definition at line 411 of file displaySettings.py.
Definition at line 403 of file displaySettings.py.
Definition at line 382 of file displaySettings.py.
Definition at line 1040 of file displaySettings.py.
Definition at line 433 of file displaySettings.py.
Definition at line 877 of file displaySettings.py.
Definition at line 878 of file displaySettings.py.
Definition at line 953 of file displaySettings.py.
Definition at line 187 of file displaySettings.py.
Definition at line 177 of file displaySettings.py.
Definition at line 197 of file displaySettings.py.
Definition at line 148 of file displaySettings.py.
Definition at line 138 of file displaySettings.py.
Definition at line 158 of file displaySettings.py.
Definition at line 438 of file displaySettings.py.
Definition at line 447 of file displaySettings.py.
Definition at line 254 of file displaySettings.py.
Definition at line 274 of file displaySettings.py.
Definition at line 264 of file displaySettings.py.
Definition at line 239 of file displaySettings.py.
Definition at line 221 of file displaySettings.py.
Definition at line 230 of file displaySettings.py.
Definition at line 607 of file displaySettings.py.
Definition at line 493 of file displaySettings.py.
Definition at line 1002 of file displaySettings.py.
Definition at line 109 of file displaySettings.py.
Definition at line 360 of file displaySettings.py.
Definition at line 345 of file displaySettings.py.
Definition at line 300 of file displaySettings.py.
Definition at line 284 of file displaySettings.py.
Definition at line 465 of file displaySettings.py.
Definition at line 481 of file displaySettings.py.
Definition at line 375 of file displaySettings.py.
Definition at line 292 of file displaySettings.py.
Definition at line 308 of file displaySettings.py.
Definition at line 427 of file displaySettings.py.
Definition at line 324 of file displaySettings.py.
Definition at line 215 of file displaySettings.py.
Definition at line 248 of file displaySettings.py.
Definition at line 495 of file displaySettings.py.
1.5.8