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;
60 void setForeground(
const QColor& color);
61 void setShadow(
const QColor& color);
62 void setBackground(
const QColor& color);
63 void setDesktopFolder();
64 void setWallpaperFile(QString filename);
65 void setWallpaperMode(WallpaperMode mode = WallpaperStretch);
68 void updateWallpaper();
69 void updateFromSettings(
Settings& settings);
71 void queueRelayout(
int delay = 0);
73 int screenNum()
const {
77 void setScreenNum(
int num);
80 virtual void prepareFolderMenu(Fm::FolderMenu* menu);
81 virtual void prepareFileMenu(Fm::FileMenu* menu);
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);
94 virtual void closeEvent(QCloseEvent *event);
97 void onOpenDirRequested(FmPath* path,
int target);
98 void onDesktopPreferences();
100 void onRowsAboutToBeRemoved(
const QModelIndex& parent,
int start,
int end);
101 void onRowsInserted(
const QModelIndex& parent,
int start,
int end);
102 void onLayoutChanged();
103 void onModelSortFilterChanged();
104 void onIndexesMoved(
const QModelIndexList& indexes);
105 void onDataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
107 void relayoutItems();
108 void onStickToCurrentPos(
bool toggled);
113 void onCutActivated();
114 void onCopyActivated();
115 void onPasteActivated();
116 void onRenameActivated();
117 void onDeleteActivated();
118 void onFilePropertiesActivated();
121 void removeBottomGap();
124 Fm::ProxyFolderModel* proxyModel_;
125 Fm::CachedFolderModel* model_;
127 Fm::FolderViewListView* listView_;
132 QString wallpaperFile_;
133 WallpaperMode wallpaperMode_;
134 QPixmap wallpaperPixmap_;
140 QHash<QByteArray, QPoint> customItemPos_;
141 QHash<QModelIndex, QString> displayNames_;
142 QTimer* relayoutTimer_;
147 #endif // PCMANFM_DESKTOPWINDOW_H Definition: desktopwindow.h:32
Definition: application.h:53
Definition: settings.h:121
Definition: desktopitemdelegate.h:33
Definition: application.cpp:59
Definition: launcher.h:30
Definition: desktopwindow.h:43