Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: New clock plugin #408

Closed
wants to merge 10 commits into from
Closed
8 changes: 0 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,6 @@ if(VOLUME_PLUGIN)
add_subdirectory(plugin-volume)
endif()

setByDefault(WORLDCLOCK_PLUGIN Yes)
if(WORLDCLOCK_PLUGIN)
list(APPEND STATIC_PLUGINS "worldclock")
add_definitions(-DWITH_WORLDCLOCK_PLUGIN)
list(APPEND ENABLED_PLUGINS "World Clock")
add_subdirectory(plugin-worldclock)
endif(WORLDCLOCK_PLUGIN)

setByDefault(SPACER_PLUGIN Yes)
if(SPACER_PLUGIN)
list(APPEND STATIC_PLUGINS "spacer")
Expand Down
7 changes: 1 addition & 6 deletions panel/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ extern void * loadPluginTranslation_statusnotifier_helper;
extern void * loadPluginTranslation_taskbar_helper;
#include "../plugin-tray/lxqttrayplugin.h" // tray
extern void * loadPluginTranslation_tray_helper;
#include "../plugin-worldclock/lxqtworldclock.h" // worldclock
extern void * loadPluginTranslation_worldclock_helper;

QColor Plugin::mMoveMarkerColor= QColor(255, 0, 0, 255);

Expand Down Expand Up @@ -195,7 +193,7 @@ namespace
// to be not stripped (as unused/unreferenced) in static linking time
static plugin_tuple_t const static_plugins[] = {
#if defined(WITH_CLOCK_PLUGIN)
std::make_tuple(QLatin1String("clock"), plugin_ptr_t{new LXQtClockPluginLibrary}, loadPluginTranslation_clock_helper),// clock
std::make_tuple(QLatin1String("clock"), plugin_ptr_t{new LXQtClockLibrary}, loadPluginTranslation_clock_helper),// clock
#endif
#if defined(WITH_DESKTOPSWITCH_PLUGIN)
std::make_tuple(QLatin1String("desktopswitch"), plugin_ptr_t{new DesktopSwitchPluginLibrary}, loadPluginTranslation_desktopswitch_helper),// desktopswitch
Expand All @@ -220,9 +218,6 @@ namespace
#endif
#if defined(WITH_TRAY_PLUGIN)
std::make_tuple(QLatin1String("tray"), plugin_ptr_t{new LXQtTrayPluginLibrary}, loadPluginTranslation_tray_helper),// tray
#endif
#if defined(WITH_WORLDCLOCK_PLUGIN)
std::make_tuple(QLatin1String("worldclock"), plugin_ptr_t{new LXQtWorldClockLibrary}, loadPluginTranslation_worldclock_helper),// worldclock
#endif
};
static constexpr plugin_tuple_t const * const plugins_begin = static_plugins;
Expand Down
8 changes: 6 additions & 2 deletions plugin-clock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ set(PLUGIN "clock")
set(HEADERS
lxqtclock.h
lxqtclockconfiguration.h
calendarpopup.h
lxqtclockconfigurationtimezones.h
lxqtclockconfigurationmanualformat.h
)

set(SOURCES
lxqtclock.cpp
lxqtclockconfiguration.cpp
calendarpopup.cpp
lxqtclockconfigurationtimezones.cpp
lxqtclockconfigurationmanualformat.cpp
)

set(UIS
lxqtclockconfiguration.ui
lxqtclockconfigurationtimezones.ui
lxqtclockconfigurationmanualformat.ui
)

BUILD_LXQT_PLUGIN(${PLUGIN})
57 changes: 0 additions & 57 deletions plugin-clock/calendarpopup.cpp

This file was deleted.

49 changes: 0 additions & 49 deletions plugin-clock/calendarpopup.h

This file was deleted.

Loading