Skip to content

Commit

Permalink
chore: rename 'corona' to 'panel'
Browse files Browse the repository at this point in the history
  rename top layer.
  • Loading branch information
18202781743 committed Nov 2, 2023
1 parent c9f8f9f commit 40691da
Show file tree
Hide file tree
Showing 79 changed files with 104 additions and 104 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ find_package(PkgConfig REQUIRED)
add_subdirectory(frame)
add_subdirectory(shell)
add_subdirectory(example)
add_subdirectory(coronas)
add_subdirectory(panels)

configure_package_config_file(
"${CMAKE_CURRENT_LIST_DIR}/misc/DDEShellConfig.cmake.in"
Expand Down
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ find_package(Qt${QT_VERSION_MAJOR} ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Co
add_subdirectory(applet-example)
add_subdirectory(applet-example-data)
add_subdirectory(containment-example)
add_subdirectory(corona-example)
add_subdirectory(panel-example)
add_subdirectory(layershell-example)
add_subdirectory(osd-example)
14 changes: 0 additions & 14 deletions example/corona-example/CMakeLists.txt

This file was deleted.

27 changes: 0 additions & 27 deletions example/corona-example/examplecorona.cpp

This file was deleted.

14 changes: 14 additions & 0 deletions example/panel-example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: GPL-3.0-or-later

add_library(ds-panel-example SHARED
examplepanel.cpp
examplepanel.h
)

target_link_libraries(ds-panel-example PRIVATE
dde-shell-frame
)

ds_install_package(PACKAGE org.deepin.ds.example TARGET ds-panel-example)
27 changes: 27 additions & 0 deletions example/panel-example/examplepanel.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include "examplepanel.h"

#include "pluginfactory.h"


ExamplePanel::ExamplePanel(QObject *parent)
: DPanel(parent)
{
}

void ExamplePanel::load()
{
DPanel::load();
}

void ExamplePanel::init()
{
DPanel::init();
}

D_APPLET_CLASS(ExamplePanel)

#include "examplepanel.moc"
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

#pragma once

#include "corona.h"
#include "panel.h"

DS_USE_NAMESPACE

class ExampleCorona : public DCorona
class ExamplePanel : public DPanel
{
Q_OBJECT
public:
explicit ExampleCorona(QObject *parent = nullptr);
explicit ExamplePanel(QObject *parent = nullptr);

void load() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later

#include "panelview.h"
#include "examplecorona.h"
#include "examplepanel.h"
#include "pluginloader.h"

#include <QGuiApplication>
Expand All @@ -17,10 +17,10 @@ int main(int argc, char *argv[])

DPluginLoader::instance()->addPackageDir("/home/repo/dde-shell/example");

ExampleCorona corona;
corona.load();
ExamplePanel panel;
panel.load();

auto view = corona.view();
auto view = panel.view();
view->resize(600, 400);
view->show();

Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions frame/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ set(PUBLIC_HEADERS
pluginfactory.h
applet.h
containment.h
corona.h
panel.h
qmlengine.h
layershell/dlayershellwindow.h
)
add_library(dde-shell-frame SHARED
${PUBLIC_HEADERS}
private/applet_p.h
private/containment_p.h
private/corona_p.h
private/panel_p.h
private/appletitem_p.h
appletitem.h
containmentitem.h
Expand All @@ -27,7 +27,7 @@ add_library(dde-shell-frame SHARED
pluginfactory.cpp
applet.cpp
containment.cpp
corona.cpp
panel.cpp
appletitem.cpp
containmentitem.cpp
qmlengine.cpp
Expand Down
26 changes: 13 additions & 13 deletions frame/corona.cpp → frame/panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include "corona.h"
#include "private/corona_p.h"
#include "panel.h"
#include "private/panel_p.h"

#include "qmlengine.h"

Expand All @@ -16,31 +16,31 @@ DS_BEGIN_NAMESPACE

Q_DECLARE_LOGGING_CATEGORY(dsLog)

DCorona::DCorona(QObject *parent)
: DContainment(*new DCoronaPrivate(this), parent)
DPanel::DPanel(QObject *parent)
: DContainment(*new DPanelPrivate(this), parent)
{
}

DCorona::~DCorona()
DPanel::~DPanel()
{

}

QQuickWindow *DCorona::window() const
QQuickWindow *DPanel::window() const
{
D_DC(DCorona);
D_DC(DPanel);
return d->m_window;
}

void DCorona::load()
void DPanel::load()
{
D_D(DCorona);
D_D(DPanel);
DContainment::load();
}

void DCorona::init()
void DPanel::init()
{
D_D(DCorona);
D_D(DPanel);
d->initDciSearchPaths();

auto applet = this;
Expand All @@ -60,9 +60,9 @@ void DCorona::init()
engine->completeCreate();
}

void DCoronaPrivate::initDciSearchPaths()
void DPanelPrivate::initDciSearchPaths()
{
D_Q(DCorona);
D_Q(DPanel);
DGUI_USE_NAMESPACE;
auto dciPaths = DIconTheme::dciThemeSearchPaths();
QList<DApplet *> list = m_applets;
Expand Down
10 changes: 5 additions & 5 deletions frame/corona.h → frame/panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ DS_BEGIN_NAMESPACE
/**
* @brief 插件集
*/
class DCoronaPrivate;
class DS_SHARE DCorona : public DContainment
class DPanelPrivate;
class DS_SHARE DPanel : public DContainment
{
Q_OBJECT
D_DECLARE_PRIVATE(DCorona)
D_DECLARE_PRIVATE(DPanel)
public:
explicit DCorona(QObject *parent = nullptr);
virtual ~DCorona() override;
explicit DPanel(QObject *parent = nullptr);
virtual ~DPanel() override;

QQuickWindow *window() const;

Expand Down
8 changes: 4 additions & 4 deletions frame/private/corona_p.h → frame/private/panel_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include "containment_p.h"
#include "corona.h"
#include "panel.h"

#include <dobject_p.h>
#include <QVariant>
Expand All @@ -14,10 +14,10 @@ DS_BEGIN_NAMESPACE
/**
* @brief 插件项
*/
class DCoronaPrivate : public DContainmentPrivate
class DPanelPrivate : public DContainmentPrivate
{
public:
explicit DCoronaPrivate(DCorona *qq)
explicit DPanelPrivate(DPanel *qq)
: DContainmentPrivate(qq)
{

Expand All @@ -27,7 +27,7 @@ class DCoronaPrivate : public DContainmentPrivate

QQuickWindow *m_window = nullptr;

D_DECLARE_PUBLIC(DCorona)
D_DECLARE_PUBLIC(DPanel)
};

DS_END_NAMESPACE
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions coronas/osd/CMakeLists.txt → panels/osd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

add_library(osdcorona SHARED
osdcorona.cpp
osdcorona.h
add_library(osdpanel SHARED
osdpanel.cpp
osdpanel.h
test.sh
)

target_link_libraries(osdcorona PRIVATE
target_link_libraries(osdpanel PRIVATE
dde-shell-frame
Qt${QT_MAJOR_VERSION}::DBus
)

ds_install_package(PACKAGE org.deepin.ds.osd TARGET osdcorona)
ds_install_package(PACKAGE org.deepin.ds.osd TARGET osdpanel)

add_subdirectory(default)
add_subdirectory(audio)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 40691da

Please sign in to comment.