Home | Trees | Indices | Help |
|
---|
|
Schrodinger version of the QFileDialog class of the QtGui module.
Defines a FileDialog class that mimics the Maestro's file dialogs.
Copyright Schrodinger, LLC. All rights reserved.
|
|||
CustomSideBarMixin | |||
FileDialog File browser dialog with custom sidebar. |
|||
OpenDirAsFileDialog A file dialog tailored to allow the user to "open" directories such as projects or phase databases as if they were files. |
|||
PhaseDatabaseIconProvider Class to ensure that projects get the proper icon in the file open dialog, and also are labeled as type "Project" |
|||
PhaseDatabaseOpenDialog A file dialog tailored to opening Phase databases. |
|||
ProjectOpenDialog A file dialog tailored to opening Projects. |
|||
QFileDialog File browser dialog with custom sidebar. |
|||
_CustomIconProvider Class to ensure that Schrodinger file (and directory) types get a proper icon in the QFileDialog. |
|
|||
|
|||
|
|||
|
|||
str |
|
||
|
|||
str or None |
|
||
str or None |
|
||
str or None |
|
||
str or None |
|
||
str or None |
|
||
list of str or None |
|
||
str or None |
|
||
str or None |
|
||
dict |
|
||
bool |
|
||
bool |
|
|
|||
IS_PYQT4 = False hash(x) |
|||
MAESTRO_FILTER =
|
|||
MAESTRO_SD_FILTER =
|
|||
PDB_FILTER =
|
|||
PHASEDB_FILTER =
|
|||
PHASEDB_SUFFIXES =
|
|||
PROJECTS_FILTER =
|
|||
PROJECT_SUFFIXES =
|
|||
SD_FILTER =
|
|||
__package__ =
|
|||
_last_selected_directory =
|
|||
_last_selected_filter = None hash(x) |
|||
x =
|
|
Attach the first extension in filter to each filename in files that does not already have an extension @type files: list @param files: list of filenames @type filter: str @param filter: the list of filters that can be applied. The first extension is used. The format is "Filetype1 (*.ex1);;Filetype2 (*.ex2 *.ex3)". Examples: - "Image files (*.png *.jpg *.bmp)" - "Images (*.png *.xpm *.jpg);;Text files (*.txt);;All files (*)" @rtype: list @return: list of filenames in the same order as files. Each item in the returned list is unchanged if it had an extension, or has an extension added to it if it did not. The added extension is the first one in the selected filter list of dialog. |
Get the specified location in a way that works on Qt4 and Qt5. Once we've fully switched to Qt5, this code can be inlined and this function can be removed. |
Convenience function that creates a highly customizable file dialog @type parent: qwidget @param parent: the widget over which this dialog should be shown. @type caption: str @param caption: the name that appears in the titlebar of this dialog. @type dir: str @param dir: the initial directory displayed in this dialog @type filter: str @param filter: the list of filters that can be applied to this directory. the format is "Filetype1 (*.ex1);;Filetype2 (*.ex2 *.ex3)". Examples: - "Image files (*.png *.jpg *.bmp)" - "Images (*.png *.xpm *.jpg);;Text files (*.txt);;All files (*)" @type selectedFilter: str @param selectedFilter: the filter used by default. if not specified, the first filter in the filters string is used. @type options: qfiledialog.option enum @param options: see the qfiledialog.option and qfiledialog.setoptions documentation @type default_suffix: str @param default_suffix: the suffix applied to a filename if the user does supply one. the suffix will have a leading '.' appended to it. @type default_filename: str @param default_filename: A default base filename to use to save files in save dialogs. By default, the filename field of the dialog is blank. @type accept_label: str @param accept_label: the text on the 'accept' button @type accept_mode: qfiledialog.acceptmode @param accept_mode: whether the dialog is in open or save mode. see the pyqt documentation for qfiledialog.acceptmode (currently acceptopen and acceptsave are the two options) @type file_mode: qfiledialog.filemode @param file_mode: what the user can select. see the pyqt documentation for qfiledialog.filemode (currently anyfile, existingfile, directory and existingfiles are the options) @type confirm: bool @param confirm: true if a confirmation dialog should be used if the user selects an existing file, false if not @type custom_sidebar: bool @param custom_sidebar: True if the Schrodinger sidebar should be used, False if the default PyQt sidebar should be used. @type sidebar_links: dict @param sidebar_links: Used to create extra links in the left-hand sidebar of the dialog. The keys of the dictionary are a unique identifier for each link (note that 'home' and 'working' are already used), and the values are tuples of the form (path, name) where path and name are str, path indicates the path the sidebar link points to, and name is the name displayed for the link. @type id: str, int or float @param id: The identifier used for this dialog. Dialogs with the same identifier will remember the last directory chosen by the user with any dialog of the same id and open in that directory. The dir keyword parameter can be used to override the initial directory the dialog opens in, but the chosen directory will still be stored for the next time a dialog with the same identifier opens. The default (no id given) is to not remember the chosen directory. @rtype: list or None @return: list of full file pathnames selected by the user, or none if cancel was pressed. Note that all pathnames are strings, and have been converted to platform-consistent pathnames via os.path.normpath. |
Create a Qt file dialog filter string from a list of structure formats.
|
Alters the splitter between the file pane and the directory pane so that both sides are visible. Because Qt saves the state of the dialog, if the users moves the splitter all the way to one side or the other, all future dialogs will show up that way, and it can be very confusing if the file side isn't shown.
|
Convenience function that returns a directory name as selected by the user The base class base_file_dialog documents the keyword arguments for this class.
|
Convenience function to open an Open Project dialog and return the path the user selects. All parameters are passed to and documented in the PhaseDatabaseOpenDialog class.
|
Convenience function to open a Open Project dialog and return the path the user selects. Parameters are passed to and documented in the ProjectOpenDialog class.
|
Return the last directory selected by a user in a dialog with the given id value. If there is no entry for the given id value, None is returned.
|
Convenience function that returns a single filename as selected by the user The base class base_file_dialog documents the keyword arguments for this class.
|
Convenience function that returns a list of filenames as selected by the user The base class base_file_dialog documents the keyword arguments for this class.
|
Convenience function that returns a single WaterMap file as selected by the user. See base_file_dialog for documentation.
|
Convenience function that returns a filename as selected by the user The base class base_file_dialog documents the keyword arguments for this class.
|
|
Detect whether path ends in one of the recognized valid endings that indicate a Phase database.
|
Detect whether path ends in one of the recognized valid endings that indicate a project
|
|
MAESTRO_FILTER
|
MAESTRO_SD_FILTER
|
PDB_FILTER
|
SD_FILTER
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Aug 8 02:52:36 2017 | http://epydoc.sourceforge.net |