1 Star 4 Fork 6

morixinguan/HTYFileManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 2.84 KB
一键复制 编辑 原始数据 按行查看 历史
sonichy 提交于 2021-11-01 12:05 . add openwith choose default app
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#define LOCATION_OF_REAL_PATH Qt::UserRole + 1
#include "propertydesktop.h"
#include "ui_propertydesktop.h"
#include <QMainWindow>
#include <QModelIndex>
#include <QLineEdit>
#include <QFileInfoList>
#include <QListWidgetItem>
#include <QSettings>
#include <QDir>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QString BS(qint64 b, int digits);
QLineEdit *lineEdit_location, *lineEdit_search;
QString path, source, pathIcon, pathDesktop, dir, pathSource, dirTrash, dirTrashInfo;
int cut;
PropertyDesktop *dialogPD;
QMenu *sortMenu;
QAction *action_sortName, *action_sortSize, *action_sortType, *action_sortTime;
QModelIndexList modelIndexList;
//QList<QListWidgetItem*> selected_files;
QStringList SL_selected_files;
//QFileInfoList SL_selected_files;
void trashFiles();
void deleteFiles();
QString readSettings(QString path, QString group, QString key);
void open(QString path);
QFileInfoList list;
bool delDir(QString dirpath);
QScrollBar *verticalScrollBar;
void iconPreview(int v);
bool isPreviewFinish, isShowHidden;
//QFileSystemWatcher *watcher;
void readSettings();
void genHomePage();
QSettings settings;
QDir::SortFlags sortFlags = QDir::Name | QDir::DirsFirst;
void appendLog(QString s);
void openwith_filter(QListWidget *listWidget, QString text, QLabel *label);
protected:
void wheelEvent(QWheelEvent*);
void closeEvent(QCloseEvent *event);
void resizeEvent(QResizeEvent *event);
private slots:
void on_action_changelog_triggered();
void on_action_about_triggered();
void on_action_icon_triggered();
void on_action_list_triggered();
void on_action_back_triggered();
void on_action_forward_triggered();
//void nav(QModelIndex index);
void nav(QListWidgetItem *item);
//void listWidgetClicked(QModelIndex index);
void listWidgetDoubleClicked(QModelIndex index);
void listWidgetItemClicked(QListWidgetItem *item);
void listWidgetItemSelectionChanged();
void tableWidgetDoubleClicked(QModelIndex index);
void lineEditLocationReturnPressed();
void customContextMenu(const QPoint &pos);
//void viewContextMenuTV(const QPoint &pos);
void customContextMenuPartition(const QPoint &pos);
void enterOpen();
void search();
void trashDelete();
void copy();
void paste();
void genList(QString spath);
void verticalScrollBarValueChanged(int v);
void switchHidden();
void refresh();
void rename();
void listWidgetItemChanged(QListWidgetItem *LWI);
void zoomIn();
void zoomOut();
void zoom1();
void processOutput();
void processError();
};
#endif // MAINWINDOW_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/morixinguan/HTYFileManager.git
git@gitee.com:morixinguan/HTYFileManager.git
morixinguan
HTYFileManager
HTYFileManager
master

搜索帮助