Potku  1.0.0
Class Documentation
 All Classes Namespaces Functions
potku.Potku Class Reference

Inherits QMainWindow.

Public Member Functions

def __init__
 
def open_about_dialog
 
def hide_panel
 
def current_measurement_save_cuts
 
def current_measurement_analyze_elemental_losses
 
def current_measurement_create_energy_spectrum
 
def current_measurement_create_depth_profile
 
def delete_selections
 
def focus_selected_tab
 
def remove_tab
 
def open_project_settings
 
def open_global_settings
 
def open_new_measurement
 
def make_new_project
 
def open_project
 

Public Attributes

 ui
 
 title
 
 icon_manager
 
 settings
 
 project
 
 masses
 
 measurement_tab_widgets
 
 tab_id
 
 panel_shown
 

Detailed Description

Potku is main window class.

Constructor & Destructor Documentation

def potku.Potku.__init__ (   self)
Init main window for Potku.

Member Function Documentation

def potku.Potku.current_measurement_analyze_elemental_losses (   self)
Opens the element losses analyzation tool for the current open 
measurement tab widget.
def potku.Potku.current_measurement_create_depth_profile (   self)
Opens the depth profile analyzation tool for the current open 
measurement tab widget.
def potku.Potku.current_measurement_create_energy_spectrum (   self)
Opens the energy spectrum analyzation tool for the current open 
measurement tab widget.
def potku.Potku.current_measurement_save_cuts (   self)
Saves the current open measurement tab widget's selected cuts 
to cut files.
def potku.Potku.delete_selections (   self)
Deletes the selected tree widget items.
def potku.Potku.focus_selected_tab (   self,
  clicked_item 
)
Focus to selected tab (in tree widget) and if it isn't open, open it.

Args:
    clicked_item: TreeWidgetItem with tab_id attribute (int) that connects
    the item to the corresponding MeasurementTabWidget
def potku.Potku.hide_panel (   self,
  enable_hide = None 
)
Sets the frame (including measurement navigation view, global 
settings and project settings buttons) visible.

Args:
    enable_hide: If True, sets the frame visible and vice versa. 
    If not given, sets the frame visible or hidden depending its 
    previous state.
def potku.Potku.make_new_project (   self)
Opens a dialog for creating a new project.
def potku.Potku.open_about_dialog (   self)
Show Potku program about dialog.
def potku.Potku.open_global_settings (   self)
Opens global settings dialog.
def potku.Potku.open_new_measurement (   self)
Opens file an open dialog and if filename is given opens new measurement 
from it.
def potku.Potku.open_project (   self)
Shows a dialog to open a project.
def potku.Potku.open_project_settings (   self)
Opens project settings dialog.
def potku.Potku.remove_tab (   self,
  tab_index 
)
Remove tab which's close button has been pressed.

Args:
    tab_index: Integer representing index of the current tab

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