-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: [workspace] show workspace file list
reimpl workspace in qml, and set base workspace into mainwindow. Log: refactor workspace
- Loading branch information
1 parent
6b935e1
commit 1ec70ae
Showing
32 changed files
with
856 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
src/plugins/filemanager/core/dfmplugin-workspace/Workspace.qml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/plugins/filemanager/core/dfmplugin-workspace/fileviewcontainment.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "fileviewcontainment.h" | ||
|
||
#include <dfm-gui/panel.h> | ||
#include <dfm-gui/applet.h> | ||
#include <dfm-gui/appletitem.h> | ||
#include <dfm-gui/appletfactory.h> | ||
|
||
#include <dfm-framework/dpf.h> | ||
#include <dfm-base/dfm_event_defines.h> | ||
|
||
using namespace dfmgui; | ||
using namespace dfmplugin_workspace; | ||
|
||
FileViewContainment::FileViewContainment(QObject *parent) | ||
: Containment(parent) | ||
{ | ||
} | ||
|
||
quint64 FileViewContainment::getWinId() | ||
{ | ||
return this->panel()->windId(); | ||
} |
29 changes: 29 additions & 0 deletions
29
src/plugins/filemanager/core/dfmplugin-workspace/fileviewcontainment.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#ifndef FILEVIEWCONTAINMENT_H | ||
#define FILEVIEWCONTAINMENT_H | ||
|
||
#include <dfm-gui/containment.h> | ||
|
||
#include <QObject> | ||
|
||
DFMGUI_BEGIN_NAMESPACE | ||
class AppletItem; | ||
DFMGUI_END_NAMESPACE | ||
|
||
namespace dfmplugin_workspace { | ||
|
||
class FileViewContainment : public dfmgui::Containment | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit FileViewContainment(QObject *parent = nullptr); | ||
|
||
Q_INVOKABLE quint64 getWinId(); | ||
}; | ||
|
||
} // namespace dfmplugin_workspace | ||
|
||
#endif // FILEVIEWCONTAINMENT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.