-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [detailspace] minimum detailsapce plugin
Add minimum detailspace plugin and base qml compoment. Log: Add minimum detailspace plugin.
- Loading branch information
Showing
14 changed files
with
647 additions
and
37 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
30 changes: 0 additions & 30 deletions
30
src/plugins/filemanager/core/dfmplugin-detailspace/DetailSpace.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
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
35 changes: 35 additions & 0 deletions
35
src/plugins/filemanager/core/dfmplugin-detailspace/detailspacecontainment.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,35 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "detailspacecontainment.h" | ||
|
||
#include <dfm-base/interfaces/fileinfo.h> | ||
#include <dfm-base/base/schemefactory.h> | ||
#include <dfm-base/utils/thumbnail/thumbnailhelper.h> | ||
|
||
#include <dfm-framework/event/event.h> | ||
|
||
DFMBASE_USE_NAMESPACE | ||
|
||
namespace dfmplugin_detailspace { | ||
|
||
DetailSpaceContainment::DetailSpaceContainment(QObject *parent) | ||
: dfmgui::Containment(parent) | ||
{ | ||
} | ||
|
||
bool DetailSpaceContainment::detailVisible() const | ||
{ | ||
return visibleFlag; | ||
} | ||
|
||
void DetailSpaceContainment::setDetailVisible(bool b) | ||
{ | ||
if (visibleFlag != b) { | ||
visibleFlag = b; | ||
Q_EMIT detailVisibleChanged(b); | ||
} | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
src/plugins/filemanager/core/dfmplugin-detailspace/detailspacecontainment.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,34 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#ifndef DETAILSPACECONTAINMENT_H | ||
#define DETAILSPACECONTAINMENT_H | ||
|
||
#include <QObject> | ||
|
||
#include <dfm-gui/containment.h> | ||
|
||
namespace dfmplugin_detailspace { | ||
|
||
class DetailSpaceContainment : public dfmgui::Containment | ||
{ | ||
Q_OBJECT | ||
|
||
Q_PROPERTY(bool detailVisible READ detailVisible WRITE setDetailVisible NOTIFY detailVisibleChanged FINAL) | ||
|
||
public: | ||
explicit DetailSpaceContainment(QObject *parent = nullptr); | ||
|
||
bool detailVisible() const; | ||
void setDetailVisible(bool b); | ||
Q_SIGNAL void detailVisibleChanged(bool b); | ||
|
||
private: | ||
bool visibleFlag { false }; | ||
QString curIconName; | ||
}; | ||
|
||
} | ||
|
||
#endif // DETAILSPACECONTAINMENT_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.