mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
add skel for #32
This commit is contained in:
parent
c6fa1f2a79
commit
171d545562
2
sources/3rdparty/tasks
vendored
2
sources/3rdparty/tasks
vendored
@ -1 +1 @@
|
||||
Subproject commit 230bdecd2c18ee2ec5350d94778a51158565c119
|
||||
Subproject commit d4e154aa948b82cee2d41b145763ffd9d9ec3ca7
|
@ -6,13 +6,20 @@ cmake_policy (SET CMP0011 NEW)
|
||||
cmake_policy (SET CMP0015 NEW)
|
||||
|
||||
project (awesome-widgets)
|
||||
set (PROJECT_AUTHOR "Evgeniy Alekseev")
|
||||
set (PROJECT_CONTACT "esalexeev@gmail.com")
|
||||
set (PROJECT_LICENSE "GPLv3")
|
||||
set (PROJECT_VERSION_MAJOR 2)
|
||||
set (PROJECT_VERSION_MINOR 0)
|
||||
set (PROJECT_VERSION_PATCH 5)
|
||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||
set (PROJECT_TRDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty)
|
||||
|
||||
string (TIMESTAMP CURRENT_DATE "%Y-%m-%d %H:%M" UTC)
|
||||
string (TIMESTAMP CURRENT_YEAR "%Y")
|
||||
|
||||
message (STATUS "Project: ${PROJECT_NAME}")
|
||||
message (STATUS "Version: ${PROJECT_VERSION}")
|
||||
message (STATUS "Build date: ${CURRENT_DATE}")
|
||||
|
||||
# flags
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
@ -23,6 +30,9 @@ else ()
|
||||
message (STATUS "Unknown compiler")
|
||||
endif ()
|
||||
|
||||
configure_file (${CMAKE_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
||||
set (PROJECT_TRDPARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty)
|
||||
|
||||
add_subdirectory (awesome-widget)
|
||||
add_subdirectory (ext-sysmon)
|
||||
add_subdirectory (desktop-panel)
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "customlabel.h"
|
||||
#include <pdebug/pdebug.h>
|
||||
#include <task/taskadds.h>
|
||||
#include "version.h"
|
||||
|
||||
|
||||
AwesomeWidget::AwesomeWidget(QObject *parent, const QVariantList &args)
|
||||
@ -62,6 +63,16 @@ AwesomeWidget::~AwesomeWidget()
|
||||
}
|
||||
|
||||
|
||||
bool AwesomeWidget::checkUpdates()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
bool needUpdate = false;
|
||||
|
||||
return needUpdate;
|
||||
}
|
||||
|
||||
|
||||
QList<QAction *> AwesomeWidget::contextualActions()
|
||||
{
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
@ -70,6 +70,7 @@ public slots:
|
||||
void updateTooltip();
|
||||
|
||||
private slots:
|
||||
bool checkUpdates();
|
||||
void reinit();
|
||||
// configuration interface
|
||||
void addNewCustomCommand(QTableWidgetItem *item);
|
||||
|
29
sources/version.h.in
Normal file
29
sources/version.h.in
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef VERSION_H
|
||||
#define VERSION_H
|
||||
|
||||
// information
|
||||
#define NAME "Awesome Widgets"
|
||||
#define VERSION "@PROJECT_VERSION@"
|
||||
#define AUTHOR "@PROJECT_AUTHOR@"
|
||||
#define TRANSLATORS "Ernesto Avilés Vzqz (Spanish),Mermouy (French),underr (Brazillian Portuguese),Виктор Слободян (Ukrainian),Lemueler (Chinese)"
|
||||
#define EMAIL "@PROJECT_CONTACT@"
|
||||
#define LICENSE "@PROJECT_LICENSE@"
|
||||
#define TRDPARTY_LICENSE "tasks,BSD,https://github.com/mhogomchungu/tasks"
|
||||
|
||||
// links
|
||||
#define HOMEPAGE "http://arcanis.name/projects/awesome-widgets/"
|
||||
#define REPOSITORY "https://github.com/arcan1s/awesome-widgets"
|
||||
#define VERSION_API "https://api.github.com/repos/arcan1s/awesome-widgets/releases"
|
||||
#define BUGTRACKER "https://github.com/arcan1s/awesome-widgets/issues"
|
||||
#define TRANSLATION "https://github.com/arcan1s/awesome-widgets/issues/14"
|
||||
#define AUR_PACKAGES "https://aur.archlinux.org/packages/kdeplasma-applets-awesome-widgets/"
|
||||
|
||||
// build information
|
||||
#define BUILD_DATE "@CURRENT_DATE@"
|
||||
#define DATE "2014-@CURRENT_YEAR@"
|
||||
|
||||
// cmake properties
|
||||
#define CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
|
||||
#define CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
|
||||
|
||||
#endif /* VERSION_H */
|
Loading…
Reference in New Issue
Block a user