# eric4.Project.ProjectResourcesBrowser

Module implementing a class used to display the resources part of the project.

### Classes

ProjectResourcesBrowser | A class used to display the resources part of the project.

### Functions

None

## ProjectResourcesBrowser

A class used to display the resources part of the project.

#### Signals

appendStderr(string)
  emitted after something was received from a QProcess on stderr
appendStdout(string)
  emitted after something was received from a QProcess on stdout
closeSourceWindow(string)
  emitted after a file has been removed/deleted from the project
sourceFile(string)
  emitted to open a resources file in an editor

### Derived from

ProjectBaseBrowser

### Methods

ProjectResourcesBrowser | Constructor
__addResourceFiles | Private method to add resource files to the project.
__addResourcesDirectory | Private method to add resource files of a directory to the project.
__compileAllResources | Private method to compile all resources to source files.
__compileQRC | Privat method to compile a .qrc file to a .py file.
__compileQRCDone | Private slot to handle the finished signal of the compile process.
__compileResource | Private method to compile a resource to a source file.
__compileSelectedResources | Private method to compile selected resources to source files.
__deleteFile | Private method to delete a resource file from the project.
__newResource | Private slot to handle the New Resource menu action.
__openFile | Private slot to handle the Open menu action.
__readStderr | Private slot to handle the readyReadStandardError signal of the pyuic/rbuic process.
__readStdout | Private slot to handle the readyReadStandardOutput signal of the pyuic/rbuic process.
__showPopupMenu | Private slot called by the menu aboutToShow signal.
__showPopupMenuDir | Private slot called by the dirMenu aboutToShow signal.
__showPopupMenuDirMulti | Private slot called by the dirMultiMenu aboutToShow signal.
__showPopupMenuMulti | Private slot called by the multiMenu aboutToShow signal.
_createPopupMenus | Protected overloaded method to generate the popup menu.
_showContextMenu | Protected slot to show the context menu.
compileChangedResources | Public method to compile all changed resources to source files.
handlePreferencesChanged | Public slot used to handle the preferencesChanged signal.

#### ProjectResourcesBrowser (Constructor)

ProjectResourcesBrowser(project, qt4dir, parent = None)

Constructor

project
  reference to the project object
qt4dir
  path of the Qt4 installation directory (string)
parent
  parent widget of this browser (QWidget)

#### ProjectResourcesBrowser.__addResourceFiles

__addResourceFiles()

Private method to add resource files to the project.

#### ProjectResourcesBrowser.__addResourcesDirectory

__addResourcesDirectory()

Private method to add resource files of a directory to the project.

#### ProjectResourcesBrowser.__compileAllResources

__compileAllResources()

Private method to compile all resources to source files.

#### ProjectResourcesBrowser.__compileQRC

__compileQRC(fn, noDialog = False, progress = None)

Privat method to compile a .qrc file to a .py file.

fn
  filename of the .ui file to be compiled
noDialog
  flag indicating silent operations
progress
  reference to the progress dialog

Returns:
  reference to the compile process (QProcess)

#### ProjectResourcesBrowser.__compileQRCDone

__compileQRCDone(exitCode, exitStatus)

Private slot to handle the finished signal of the compile process.

exitCode
  exit code of the process (integer)
exitStatus
  exit status of the process (QProcess.ExitStatus)

#### ProjectResourcesBrowser.__compileResource

__compileResource()

Private method to compile a resource to a source file.

#### ProjectResourcesBrowser.__compileSelectedResources

__compileSelectedResources()

Private method to compile selected resources to source files.

#### ProjectResourcesBrowser.__deleteFile

__deleteFile()

Private method to delete a resource file from the project.

#### ProjectResourcesBrowser.__newResource

__newResource()

Private slot to handle the New Resource menu action.

#### ProjectResourcesBrowser.__openFile

__openFile()

Private slot to handle the Open menu action.

#### ProjectResourcesBrowser.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal of the pyuic/rbuic process.

#### ProjectResourcesBrowser.__readStdout

__readStdout()

Private slot to handle the readyReadStandardOutput signal of the pyuic/rbuic process.

#### ProjectResourcesBrowser.__showPopupMenu

__showPopupMenu()

Private slot called by the menu aboutToShow signal.

#### ProjectResourcesBrowser.__showPopupMenuDir

__showPopupMenuDir()

Private slot called by the dirMenu aboutToShow signal.

#### ProjectResourcesBrowser.__showPopupMenuDirMulti

__showPopupMenuDirMulti()

Private slot called by the dirMultiMenu aboutToShow signal.

#### ProjectResourcesBrowser.__showPopupMenuMulti

__showPopupMenuMulti()

Private slot called by the multiMenu aboutToShow signal.

#### ProjectResourcesBrowser._createPopupMenus

_createPopupMenus()

Protected overloaded method to generate the popup menu.

#### ProjectResourcesBrowser._showContextMenu

_showContextMenu(coord)

Protected slot to show the context menu.

coord
  the position of the mouse pointer (QPoint)

#### ProjectResourcesBrowser.compileChangedResources

compileChangedResources()

Public method to compile all changed resources to source files.

#### ProjectResourcesBrowser.handlePreferencesChanged

handlePreferencesChanged()

Public slot used to handle the preferencesChanged signal.

Up