21 #ifndef PCMANFM_DESKTOPWINDOW_H
22 #define PCMANFM_DESKTOPWINDOW_H
30 #include <libfm-qt/folder.h>
33 class CachedFolderModel;
34 class ProxyFolderModel;
35 class FolderViewListView;
40 class DesktopItemDelegate;
59 void setForeground(
const QColor& color);
60 void setShadow(
const QColor& color);
61 void setBackground(
const QColor& color);
62 void setDesktopFolder();
63 void setWallpaperFile(QString filename);
64 void setWallpaperMode(WallpaperMode mode = WallpaperStretch);
67 void updateWallpaper();
68 void updateFromSettings(
Settings& settings);
70 void queueRelayout(
int delay = 0);
72 int screenNum()
const {
76 void setScreenNum(
int num);
79 virtual void prepareFolderMenu(Fm::FolderMenu* menu);
80 virtual void prepareFileMenu(Fm::FileMenu* menu);
81 virtual void resizeEvent(QResizeEvent* event);
82 virtual void onFileClicked(
int type, FmFileInfo* fileInfo);
84 void loadItemPositions();
85 void saveItemPositions();
87 QImage loadWallpaperFile(QSize requiredSize);
89 virtual bool event(QEvent* event);
90 virtual bool eventFilter(QObject * watched, QEvent * event);
92 virtual void childDropEvent(QDropEvent* e);
93 virtual void closeEvent(QCloseEvent *event);
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 onModelSortFilterChanged();
103 void onIndexesMoved(
const QModelIndexList& indexes);
105 void relayoutItems();
106 void onStickToCurrentPos(
bool toggled);
111 void onCutActivated();
112 void onCopyActivated();
113 void onPasteActivated();
114 void onRenameActivated();
115 void onDeleteActivated();
116 void onFilePropertiesActivated();
119 void removeBottomGap();
122 Fm::ProxyFolderModel* proxyModel_;
123 Fm::CachedFolderModel* model_;
125 Fm::FolderViewListView* listView_;
130 QString wallpaperFile_;
131 WallpaperMode wallpaperMode_;
132 QPixmap wallpaperPixmap_;
138 QHash<QByteArray, QPoint> customItemPos_;
139 QTimer* relayoutTimer_;
144 #endif // PCMANFM_DESKTOPWINDOW_H
Definition: application.h:52
Definition: settings.h:121
Definition: desktopitemdelegate.h:33
Definition: launcher.h:30
Definition: desktopwindow.h:43