grc.ActionHandler.ActionHandler Class Reference

List of all members.

Public Member Functions

def __init__
def handle_states
def update_exec_stop

Public Attributes

 clipboard
 main_window
 get_page
 get_flow_graph
 get_focus_flag
 init_file_paths
 generator

Private Member Functions

def _handle_key_press
def _quit
def _handle_actions


Detailed Description

The action handler will setup all the major window components,
and handle button presses and flow graph operations from the GUI.

Definition at line 38 of file ActionHandler.py.


Member Function Documentation

def grc.ActionHandler.ActionHandler.__init__ (   self,
  file_paths,
  platform 
)

ActionHandler constructor. Create the main window, setup the message handler, import the preferences, and connect all of the action handlers. Finally, enter the gtk main loop and block.

Parameters:
file_paths a list of flow graph file passed from command line
platform platform module

Definition at line 44 of file ActionHandler.py.

def grc.ActionHandler.ActionHandler._handle_key_press (   self,
  widget,
  event 
) [private]

Handle key presses from the keyboard.
Translate key combos into actions.
Key combinations that do not include special keys, such as ctrl or Fcn*,
Also, require that the flow graph has mouse focus when choosing to handle keys.
@return true if the flow graph is in active use

Definition at line 73 of file ActionHandler.py.

def grc.ActionHandler.ActionHandler._quit (   self,
  window,
  event 
) [private]

Handle the delete event from the main window. Generated by pressing X to close, alt+f4, or right click+close. This method in turns calls the state handler to quit.

Returns:
true

Definition at line 144 of file ActionHandler.py.

def grc.ActionHandler.ActionHandler._handle_actions (   self,
  event 
) [private]

Handle all of the activate signals from the gtk actions.
The action signals derive from clicking on a toolbar or menu bar button.
Forward the action to the state handler.

Definition at line 154 of file ActionHandler.py.

def grc.ActionHandler.ActionHandler.handle_states (   self,
  state = '' 
)

Handle the state changes in the GUI. Handle all of the state changes that arise from the action handler or other gui and inputs in the application. The state passed to the handle_states method is a string descriping the change. A series of if/elif statements handle the state by greying out action buttons, causing changes in the flow graph, saving/opening files... The handle_states method is passed to the contructors of many of the classes used in this application enabling them to report any state change.

Parameters:
state a string describing the state change

Definition at line 162 of file ActionHandler.py.

def grc.ActionHandler.ActionHandler.update_exec_stop (   self  ) 

Update the exec and stop buttons.
Lock and unlock the mutex for race conditions with exec flow graph threads.

Definition at line 394 of file ActionHandler.py.


Member Data Documentation

grc.ActionHandler.ActionHandler.clipboard

Definition at line 52 of file ActionHandler.py.

grc.ActionHandler.ActionHandler.main_window

Definition at line 57 of file ActionHandler.py.

grc.ActionHandler.ActionHandler.get_page

Definition at line 60 of file ActionHandler.py.

grc.ActionHandler.ActionHandler.get_flow_graph

Definition at line 61 of file ActionHandler.py.

grc.ActionHandler.ActionHandler.get_focus_flag

Definition at line 62 of file ActionHandler.py.

grc.ActionHandler.ActionHandler.init_file_paths

Definition at line 67 of file ActionHandler.py.

grc.ActionHandler.ActionHandler.generator

Definition at line 358 of file ActionHandler.py.


The documentation for this class was generated from the following file:
Generated on Sat Aug 23 02:00:11 2008 for GNU Radio Companion by  doxygen 1.5.4