27 #ifndef FILEMANAGERMAINWINDOW_H
28 #define FILEMANAGERMAINWINDOW_H
30 #include <QMainWindow>
33 #include "CustomTreeView.h"
36 #include <QStackedWidget>
37 #include <QAbstractItemView>
38 #include "CustomFileSystemModel.h"
39 #include "CustomListView.h"
40 #include "ExtendedAttributes.h"
49 static QList<FileManagerMainWindow *> & instances();
50 QString getPath()
const;
53 bool instanceExists(
const QString &directory);
59 QItemSelectionModel *m_selectionModel;
61 QString directory()
const;
62 void setDirectory(
const QString &directory);
68 void showHideStatusBar();
75 bool isFirstInstance()
const;
77 QAbstractItemView* getCurrentView()
const;
81 void selectItems(
const QStringList &paths);
87 void open(
const QString &filePath);
88 void openWith(
const QString &filePath);
89 void openFolderInNewWindow(
const QString &rootPath);
90 void renameSelectedItem();
91 void resizeEvent(QResizeEvent *event);
93 void moveEvent(QMoveEvent *event);
96 void updateEmptyTrashMenu();
98 static void displayPicturesOnAllScreens();
101 QStackedWidget *m_stackedWidget;
103 bool m_isFirstInstance =
false;
105 QString m_currentDir;
112 QStatusBar *m_statusBar;
113 QAction *m_treeViewAction;
114 QAction *m_iconViewAction;
116 QAction *m_newAction;
117 QAction *m_openAction;
118 QAction *m_openWithAction;
119 QAction *m_showContentsAction;
120 QAction *m_getInfoAction;
121 QAction *m_renameAction;
123 QAction *m_moveToTrashAction;
124 QAction *m_emptyTrashAction;
126 QAction *m_showHiddenFilesAction;
127 QAction *m_showStatusBarAction;
129 QStringList readFilenamesFromHiddenFile(
const QString &filePath);
134 void updateStatusBar();
135 void copySelectedItems(
const QString &destinationPath);
136 void moveSelectedItems(
const QString &destinationPath);
138 void saveWindowGeometry();
140 void setFilterRegExpForHiddenFiles(QSortFilterProxyModel *proxyModel,
const QString &hiddenFilePath);
144 void handleSelectionChange();
146 void showPreferencesDialog();
148 void showHideHiddenFiles();
152 void handleScreenChange(
const QRect &geometry);
Definition: CustomFileSystemModel.h:41
Definition: CustomListView.h:38
A custom proxy model for sorting items in views.
Definition: CustomProxyModel.h:45
Definition: CustomTreeView.h:43
The ExtendedAttributes class provides functionality to read and write extended attributes of a file.
Definition: ExtendedAttributes.h:42
Definition: FileManagerMainWindow.h:45