-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,943 additions
and
872 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"desktop-id": "com.vicr123.theheartbeat", | ||
"theme-colors": ["#006400", "#00c800"] | ||
} |
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,12 @@ | ||
cmake_minimum_required(VERSION 3.21.0) | ||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15) | ||
|
||
project(theheartbeat VERSION 1.0.0 LANGUAGES CXX) | ||
|
||
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||
link_directories(/usr/local/lib) | ||
ENDIF() | ||
|
||
find_package(QT REQUIRED NAMES Qt6) | ||
|
||
add_subdirectory(heartbeat) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
cmake_minimum_required(VERSION 3.21.0) | ||
|
||
project(theheartbeat VERSION 1.0.0 LANGUAGES CXX) | ||
|
||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets DBus Sql Concurrent) | ||
find_package(libcontemporary REQUIRED) | ||
|
||
set(SOURCES | ||
main.cpp | ||
mainwindow.cpp | ||
processes/process.cpp | ||
processes/processmanager.cpp | ||
processes/processmodel.cpp | ||
system/systemmanager.cpp | ||
panes/percentagepane.cpp | ||
panes/minmaxpane.cpp | ||
processaction.cpp | ||
panes/minipercentagepane.cpp | ||
panes/sidepane.cpp | ||
panes/numberpane.cpp | ||
panes/mininumberpane.cpp | ||
|
||
mainwindow.ui | ||
panes/percentagepane.ui | ||
panes/minmaxpane.ui | ||
processaction.ui | ||
panes/minipercentagepane.ui | ||
panes/numberpane.ui | ||
panes/mininumberpane.ui | ||
|
||
resources.qrc | ||
) | ||
|
||
set(HEADERS | ||
mainwindow.h | ||
processes/process.h | ||
processes/processmanager.h | ||
processes/processmodel.h | ||
system/systemmanager.h | ||
panes/percentagepane.h | ||
panes/minmaxpane.h | ||
processaction.h | ||
panes/minipercentagepane.h | ||
panes/sidepane.h | ||
panes/numberpane.h | ||
panes/mininumberpane.h | ||
|
||
) | ||
|
||
add_executable(theheartbeat ${SOURCES} ${HEADERS}) | ||
|
||
set_target_properties(theheartbeat PROPERTIES | ||
MACOSX_BUNDLE TRUE | ||
# MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in | ||
MACOSX_BUNDLE_GUI_IDENTIFIER com.vicr123.theheartbeat | ||
WIN32_EXECUTABLE TRUE | ||
CNTP_DATA_SUBDIR theheartbeat) | ||
|
||
cntp_init(theheartbeat 20) | ||
cntp_translate(theheartbeat) | ||
cntp_target_name(theheartbeat "theHeartbeat") | ||
cntp_app_icon(theheartbeat | ||
BASEICON icons/baseicon.svg | ||
# BASEICON_MAC icons/baseicon-mac.svg | ||
) | ||
cntp_target_desktop_file(theheartbeat | ||
DESKTOP_FILE com.vicr123.theheartbeat.desktop | ||
BLUEPRINT_DESKTOP_FILE com.vicr123.theheartbeat_blueprint.desktop) | ||
cntp_defaults_file(theheartbeat | ||
DEFAULTS_FILE theheartbeat.conf) | ||
|
||
target_link_libraries(theheartbeat Qt::Widgets Qt::DBus Qt::Concurrent libcontemporary) | ||
|
||
install(TARGETS theheartbeat | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
BUNDLE DESTINATION /Applications) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.