grc.gui.FileDialogs.FileDialog Class Reference

Inheritance diagram for grc.gui.FileDialogs.FileDialog:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def add_and_set_filter
def get_rectified_filename
def run

Public Attributes

 type


Detailed Description

A dialog box to save or open flow graph files. This is a base class, do not use.

Definition at line 70 of file FileDialogs.py.


Member Function Documentation

def grc.gui.FileDialogs.FileDialog.__init__ (   self,
  current_file_path = '' 
)

FileDialog constructor.

Parameters:
current_file_path the current directory or path to the open flow graph

Definition at line 73 of file FileDialogs.py.

def grc.gui.FileDialogs.FileDialog.add_and_set_filter (   self,
  filter 
)

Add the gtk file filter to the list of filters and set it as the default file filter.

Parameters:
filter a gtk file filter.

Definition at line 94 of file FileDialogs.py.

def grc.gui.FileDialogs.FileDialog.get_rectified_filename (   self  ) 

Run the dialog and get the filename. If this is a save dialog and the file name is missing the extension, append the file extension. If the file name with the extension already exists, show a overwrite dialog. If this is an open dialog, return a list of filenames.

Returns:
the complete file path

Definition at line 102 of file FileDialogs.py.

def grc.gui.FileDialogs.FileDialog.run (   self  ) 

Get the filename and destroy the dialog.

Returns:
the filename or None if a close/cancel occured.

Definition at line 143 of file FileDialogs.py.


Member Data Documentation

grc.gui.FileDialogs.FileDialog.type

Definition at line 79 of file FileDialogs.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