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 {
144 void createMenu(FmFileInfoList* files, FmFileInfo* info, FmPath* cwd);
145 #ifdef CUSTOM_ACTIONS
146 void addCustomActionItem(QMenu* menu,
struct _FmFileActionItem* item);
148 void openFilesWithApp(GAppInfo* app);
151 void onOpenTriggered();
152 void onOpenWithTriggered();
153 void onFilePropertiesTriggered();
154 void onApplicationTriggered();
155 #ifdef CUSTOM_ACTIONS
156 void onCustomActionTrigerred();
160 void onExtractHere();
162 void onCutTriggered();
163 void onCopyTriggered();
164 void onPasteTriggered();
165 void onRenameTriggered();
166 void onDeleteTriggered();
167 void onUnTrashTriggered();
170 FmFileInfoList* files_;
176 bool sameFilesystem_;
180 QAction* openAction_;
181 QAction* openWithMenuAction_;
182 QAction* openWithAction_;
183 QAction* separator1_;
185 QAction* copyAction_;
186 QAction* pasteAction_;
187 QAction* deleteAction_;
188 QAction* unTrashAction_;
189 QAction* renameAction_;
190 QAction* separator2_;
191 QAction* propertiesAction_;
198 #endif // FM_FILEMENU_H
Definition: appchoosercombobox.cpp:26
Definition: filelauncher.h:30