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 queueRelayout(
int delay = 0);
71 int screenNum()
const {
75 void setScreenNum(
int num);
80 virtual void resizeEvent(QResizeEvent* event);
81 virtual void onFileClicked(
int type, FmFileInfo* fileInfo);
83 void loadItemPositions();
84 void saveItemPositions();
86 QImage loadWallpaperFile(QSize requiredSize);
88 virtual bool event(QEvent* event);
89 virtual bool eventFilter(QObject * watched, QEvent * event);
91 virtual void childDropEvent(QDropEvent* e);
92 virtual void closeEvent(QCloseEvent *event);
95 void onOpenDirRequested(FmPath* path,
int target);
96 void onDesktopPreferences();
98 void onRowsAboutToBeRemoved(
const QModelIndex& parent,
int start,
int end);
99 void onRowsInserted(
const QModelIndex& parent,
int start,
int end);
100 void onLayoutChanged();
101 void onIndexesMoved(
const QModelIndexList& indexes);
103 void relayoutItems();
104 void onStickToCurrentPos(
bool toggled);
109 void onCutActivated();
110 void onCopyActivated();
111 void onPasteActivated();
112 void onRenameActivated();
113 void onDeleteActivated();
114 void onFilePropertiesActivated();
120 Fm::FolderViewListView* listView_;
125 QString wallpaperFile_;
126 WallpaperMode wallpaperMode_;
127 QPixmap wallpaperPixmap_;
133 QHash<QByteArray, QPoint> customItemPos_;
134 QTimer* relayoutTimer_;
139 #endif // PCMANFM_DESKTOPWINDOW_H Definition: appchoosercombobox.cpp:26
Definition: application.h:53
Definition: settings.h:41
Definition: desktopitemdelegate.h:33
Definition: proxyfoldermodel.h:43
Definition: application.h:39
Definition: cachedfoldermodel.h:29
Definition: launcher.h:30
Definition: desktopwindow.h:42