24 #include "libfmqtglobals.h" 26 #include <qabstractitemmodel.h> 31 struct _FmFileActionItem;
41 explicit FileMenu(FmFileInfoList* files, FmFileInfo* info, FmPath* cwd, QWidget* parent = 0);
42 explicit FileMenu(FmFileInfoList* files, FmFileInfo* info, FmPath* cwd,
const QString& title, QWidget* parent = 0);
49 void setUseTrash(
bool trash);
51 bool confirmDelete() {
52 return confirmDelete_;
55 void setConfirmDelete(
bool confirm) {
56 confirmDelete_ = confirm;
59 QAction* openAction() {
63 QAction* openWithMenuAction() {
64 return openWithMenuAction_;
67 QAction* openWithAction() {
68 return openWithAction_;
71 QAction* separator1() {
75 QAction* cutAction() {
79 QAction* copyAction() {
83 QAction* pasteAction() {
87 QAction* deleteAction() {
91 QAction* unTrashAction() {
92 return unTrashAction_;
95 QAction* renameAction() {
99 QAction* separator2() {
103 QAction* propertiesAction() {
104 return propertiesAction_;
107 FmFileInfoList* files() {
111 FmFileInfo* firstFile() {
120 fileLauncher_ = launcher;
124 return fileLauncher_;
127 bool sameType()
const {
131 bool sameFilesystem()
const {
132 return sameFilesystem_;
135 bool allVirtual()
const {
139 bool allTrash()
const {
143 bool confirmTrash()
const {
144 return confirmTrash_;
147 void setConfirmTrash(
bool value) {
148 confirmTrash_ = value;
152 void createMenu(FmFileInfoList* files, FmFileInfo* info, FmPath* cwd);
153 #ifdef CUSTOM_ACTIONS 154 void addCustomActionItem(QMenu* menu,
struct _FmFileActionItem* item);
156 void openFilesWithApp(GAppInfo* app);
159 void onOpenTriggered();
160 void onOpenWithTriggered();
161 void onFilePropertiesTriggered();
162 void onApplicationTriggered();
163 #ifdef CUSTOM_ACTIONS 164 void onCustomActionTrigerred();
168 void onExtractHere();
170 void onCutTriggered();
171 void onCopyTriggered();
172 void onPasteTriggered();
173 void onRenameTriggered();
174 void onDeleteTriggered();
175 void onUnTrashTriggered();
178 FmFileInfoList* files_;
186 bool sameFilesystem_;
190 QAction* openAction_;
191 QAction* openWithMenuAction_;
192 QAction* openWithAction_;
193 QAction* separator1_;
195 QAction* copyAction_;
196 QAction* pasteAction_;
197 QAction* deleteAction_;
198 QAction* unTrashAction_;
199 QAction* renameAction_;
200 QAction* separator2_;
201 QAction* propertiesAction_;
208 #endif // FM_FILEMENU_H Definition: appchoosercombobox.cpp:26
Definition: filelauncher.h:30