Package schrodinger :: Package application :: Package jaguar :: Package gui :: Module filedialog :: Class FileDialogWithExtraCombo
[hide private]
[frames] | no frames]

Class FileDialogWithExtraCombo

PyQt4.QtGui.QFileDialog --+    
                          |    
ui.qt.filedialog.FileDialog --+
                              |
                             FileDialogWithExtraCombo

A Qt file dialog with an extra combo box about the filename text edit

Instance Methods [hide private]
 
__init__(self, parent, caption, lbl_text, combo_items)
Create a new file dialog with the specified label text and combo box items.
 
_insertWidgets(self, lbl, combo)
Insert the given widgets above the filename text edit
int
selectedOption(self)
Return the currently selected index for the extra combo box

Inherited from ui.qt.filedialog.FileDialog: exec_

Static Methods [hide private]

Inherited from ui.qt.filedialog.FileDialog: getExistingDirectory, getOpenFileName, getOpenFileNames, getSaveFileName

Class Variables [hide private]
  _JAG_IN_FILTER = "Jaguar Input (*.in)"
  _JAG_IN_SUFFIX = "in"
Method Details [hide private]

__init__(self, parent, caption, lbl_text, combo_items)
(Constructor)

 

Create a new file dialog with the specified label text and combo box items.

Parameters:
  • parent (PyQt4.QtGui.QWidget) - The Qt parent widget
  • caption (str) - The title of the dialog
  • lbl_text (str) - The label text to display next to the extra combo box
  • combo_items (tuple) - A list of strings to add to the combo box
Overrides: ui.qt.filedialog.FileDialog.__init__

_insertWidgets(self, lbl, combo)

 

Insert the given widgets above the filename text edit

Parameters:
  • lbl (PyQt4.QtGui.QLabel) - The label to insert
  • combo (PyQt4.QtGui.QComboBox) - The combo box to insert

Note: QFileDialog does not have an API to add widgets, so the Qt FAQ recommends directly adding widgets to the dialog's layout: http://qt- project.org/faq/answer/how_can_i_add_widgets_to_my_qfiledialog_instance. This function will break if the QFileDialog layout ever changes.

selectedOption(self)

 

Return the currently selected index for the extra combo box

Returns: int
The currently selected index for the extra combo box