UniDec
Universal Deconvolution of Mass and Ion Mobility Spectra
Public Member Functions | Public Attributes | List of all members
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel Class Reference
Inheritance diagram for UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel:
Inheritance graph
[legend]
Collaboration diagram for UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, parent)
 
def clear_list (self)
 
def add_data
 
def GetListCtrl (self)
 
def on_column_click (self, event)
 
def on_right_click
 
def on_popup_one
 
def on_popup_two
 
def on_popup_six
 
def on_popup_three
 
def on_popup_four
 
def on_popup_five
 

Public Attributes

 index
 
 list_ctrl
 
 EVT_DELETE_SELECTION_2
 
 EVT_CHARGE_STATE
 
 EVT_DIFFERENCES
 
 remove
 
 selection
 
 selection2
 
 pks
 
 popupID1
 
 popupID2
 
 popupID3
 
 popupID4
 
 popupID5
 
 popupID6
 

Detailed Description

Creates a list control panel for displaying and interacting with Peaks object

Constructor & Destructor Documentation

def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.__init__ (   self,
  parent 
)
Initialize list_ctrl, bind events, and setup events to be broadcast back.
:param parent: Parent of panel that will be created
:return: None

Member Function Documentation

def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.add_data (   self,
  pks,
  show = "area",
  collab1 = "Mass (Da)" 
)
Add data from a Peaks object to the list_ctrl
:param pks: Peaks object
:param show: Keyword describing what to show in column 1

area = p.area
integral = p.integral
diff = p.diff

:param collab1: Column 1 label
:return: None

Here is the caller graph for this function:

def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.clear_list (   self)
Remove all elements from list_ctrl
:return: None
def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.GetListCtrl (   self)
def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_column_click (   self,
  event 
)
def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_popup_five (   self,
  event = None 
)
Spawns a dialog for the first selected item to select the color.
Redraws the list control with the new colors and then triggers an EVT_DELETE_SELECTION_2.
:param event: Unused Event
:return: None
def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_popup_four (   self,
  event = None 
)
Gets the selected items and adds it self.selection2. Triggers EVT_CHARGE_STATE.
:param event:
:return:
def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_popup_one (   self,
  event = None 
)
The selected peaks are added to self.selection and deleted. For each delete peak, p.ignore is set to 1.
Triggers EVT_DELETE_SELECTION_2.
:param event: Unused Event
:return: None
def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_popup_six (   self,
  event = None 
)
Triggers EVT_DIFFERENCES. The first selected item becomes the reference mass. The difference between all
masses and the reference mass is calculated and displayed in column 3.
:param event: Unused Event
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_popup_three (   self,
  event = None 
)
Repopulates the list control with all elements in self.pks.peaks.
:param event: Unused event
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_popup_two (   self,
  event = None 
)
The selected peaks are added to self.selection. All other peaks are deleted form list ctrl
and p.ignore for each is set to 1.
Triggers EVT_DELETE_SELECTION_2.
:param event: Unused Event
:return: None
def UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.on_right_click (   self,
  event = None 
)
Spawn right click menu
:param event: Unused Event
:return: None

Member Data Documentation

UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.EVT_CHARGE_STATE
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.EVT_DELETE_SELECTION_2
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.EVT_DIFFERENCES
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.index
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.list_ctrl
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.pks
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.popupID1
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.popupID2
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.popupID3
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.popupID4
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.popupID5
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.popupID6
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.remove
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.selection
UniDec.unidec_modules.peaklistsort.PeakListCtrlPanel.selection2

The documentation for this class was generated from the following file: