21 #ifndef PCMANFM_DESKTOPWINDOW_H
22 #define PCMANFM_DESKTOPWINDOW_H
32 class CachedFolderModel;
33 class ProxyFolderModel;
34 class FolderViewListView;
39 class DesktopItemDelegate;
58 void setForeground(
const QColor& color);
59 void setShadow(
const QColor& color);
60 void setBackground(
const QColor& color);
61 void setDesktopFolder();
62 void setWallpaperFile(QString filename);
63 void setWallpaperMode(WallpaperMode mode = WallpaperStretch);
66 void updateWallpaper();
67 void updateFromSettings(
Settings& settings);
69 void xcbEvent(xcb_generic_event_t* generic_event);
71 void queueRelayout(
int delay = 0);
73 int screenNum()
const {
77 void setScreenNum(
int num);
82 virtual void resizeEvent(QResizeEvent* event);
83 virtual void onFileClicked(
int type, FmFileInfo* fileInfo);
85 void loadItemPositions();
86 void saveItemPositions();
88 QImage loadWallpaperFile(QSize requiredSize);
90 virtual bool event(QEvent* event);
91 virtual bool eventFilter(QObject * watched, QEvent * event);
93 virtual void childDropEvent(QDropEvent* e);
96 void onOpenDirRequested(FmPath* path,
int target);
97 void onDesktopPreferences();
99 void onRowsAboutToBeRemoved(
const QModelIndex& parent,
int start,
int end);
100 void onRowsInserted(
const QModelIndex& parent,
int start,
int end);
101 void onLayoutChanged();
102 void onIndexesMoved(
const QModelIndexList& indexes);
104 void relayoutItems();
105 void onStickToCurrentPos(
bool toggled);
110 void onCutActivated();
111 void onCopyActivated();
112 void onPasteActivated();
113 void onRenameActivated();
114 void onDeleteActivated();
115 void onFilePropertiesActivated();
121 Fm::FolderViewListView* listView_;
126 QString wallpaperFile_;
127 WallpaperMode wallpaperMode_;
128 QPixmap wallpaperPixmap_;
134 QHash<QByteArray, QPoint> customItemPos_;
135 QTimer* relayoutTimer_;
140 #endif // PCMANFM_DESKTOPWINDOW_H
Definition: appchoosercombobox.cpp:26
Definition: application.h:52
Definition: settings.h:33
Definition: desktopitemdelegate.h:33
Definition: proxyfoldermodel.h:43
Definition: application.h:38
Definition: cachedfoldermodel.h:29
Definition: launcher.h:30
Definition: desktopwindow.h:42