PCManFM-Qt
Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Friends | List of all members
PCManFM::DesktopWindow Class Reference
Inheritance diagram for PCManFM::DesktopWindow:
PCManFM::View Fm::FolderView

Public Types

enum  WallpaperMode {
  WallpaperNone, WallpaperStretch, WallpaperFit, WallpaperCenter,
  WallpaperTile
}
 
- Public Types inherited from Fm::FolderView
enum  ViewMode {
  FirstViewMode = 1, IconMode = FirstViewMode, CompactMode, DetailedListMode,
  ThumbnailMode, LastViewMode = ThumbnailMode, NumViewModes = (LastViewMode - FirstViewMode + 1)
}
 
enum  ClickType { ActivatedClick, MiddleClick, ContextMenuClick }
 

Public Member Functions

 DesktopWindow (int screenNum)
 
void setForeground (const QColor &color)
 
void setShadow (const QColor &color)
 
void setBackground (const QColor &color)
 
void setDesktopFolder ()
 
void setWallpaperFile (QString filename)
 
void setWallpaperMode (WallpaperMode mode=WallpaperStretch)
 
void updateWallpaper ()
 
void updateFromSettings (Settings &settings)
 
void queueRelayout (int delay=0)
 
int screenNum () const
 
void setScreenNum (int num)
 
- Public Member Functions inherited from PCManFM::View
 View (Fm::FolderView::ViewMode _mode=IconMode, QWidget *parent=0)
 
void updateFromSettings (Settings &settings)
 
- Public Member Functions inherited from Fm::FolderView
 FolderView (ViewMode _mode=IconMode, QWidget *parent=0)
 
void setViewMode (ViewMode _mode)
 
ViewMode viewMode () const
 
void setIconSize (ViewMode mode, QSize size)
 
QSize iconSize (ViewMode mode) const
 
QAbstractItemView * childView () const
 
ProxyFolderModelmodel () const
 
void setModel (ProxyFolderModel *_model)
 
FmFolder * folder ()
 
FmFileInfo * folderInfo ()
 
FmPath * path ()
 
QItemSelectionModel * selectionModel () const
 
FmFileInfoList * selectedFiles () const
 
FmPathList * selectedFilePaths () const
 
void selectAll ()
 
void invertSelection ()
 
void setFileLauncher (FileLauncher *launcher)
 
FileLauncherfileLauncher ()
 
int autoSelectionDelay () const
 
void setAutoSelectionDelay (int delay)
 

Protected Slots

void onOpenDirRequested (FmPath *path, int target)
 
void onDesktopPreferences ()
 
void onRowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void onRowsInserted (const QModelIndex &parent, int start, int end)
 
void onLayoutChanged ()
 
void onIndexesMoved (const QModelIndexList &indexes)
 
void relayoutItems ()
 
void onStickToCurrentPos (bool toggled)
 
void onCutActivated ()
 
void onCopyActivated ()
 
void onPasteActivated ()
 
void onRenameActivated ()
 
void onDeleteActivated ()
 
void onFilePropertiesActivated ()
 
- Protected Slots inherited from PCManFM::View
void onNewWindow ()
 
void onNewTab ()
 
void onOpenInTerminal ()
 
void onSearch ()
 

Protected Member Functions

virtual void prepareFolderMenu (Fm::FolderMenu *menu)
 
virtual void prepareFileMenu (Fm::FileMenu *menu)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void onFileClicked (int type, FmFileInfo *fileInfo)
 
void loadItemPositions ()
 
void saveItemPositions ()
 
QImage loadWallpaperFile (QSize requiredSize)
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
virtual void childDropEvent (QDropEvent *e)
 
virtual void closeEvent (QCloseEvent *event)
 
- Protected Member Functions inherited from Fm::FolderView
virtual void contextMenuEvent (QContextMenuEvent *event)
 
virtual void childMousePressEvent (QMouseEvent *event)
 
virtual void childDragEnterEvent (QDragEnterEvent *event)
 
virtual void childDragMoveEvent (QDragMoveEvent *e)
 
virtual void childDragLeaveEvent (QDragLeaveEvent *e)
 
void emitClickedAt (ClickType type, const QPoint &pos)
 
QModelIndexList selectedRows (int column=0) const
 
QModelIndexList selectedIndexes () const
 
void updateGridSize ()
 

Friends

class Application
 

Additional Inherited Members

- Public Slots inherited from Fm::FolderView
void onItemActivated (QModelIndex index)
 
void onSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
- Signals inherited from PCManFM::View
void openDirRequested (FmPath *path, int target)
 
- Signals inherited from Fm::FolderView
void clicked (int type, FmFileInfo *file)
 
void clickedBack ()
 
void clickedForward ()
 
void selChanged (int n_sel)
 
void sortChanged ()
 

The documentation for this class was generated from the following files: