diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 9858ef2..f9b7ef2 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,5 +1,5 @@ -name-template: 'Eyes_Protection_Reminder_v$NEXT_MINOR_VERSION 👀' -tag-template: v$NEXT_MINOR_VERSION +name-template: 'Eyes_Protection_Reminder_v$NEXT_PATCH_VERSION 👀' +tag-template: v$NEXT_PATCH_VERSION categories: - title: '🚀 Features' labels: @@ -18,7 +18,7 @@ template: | $CHANGES - **Full Changelog**: [`$PREVIOUS_TAG...v$NEXT_MINOR_VERSION`](https://github.com/hardingadonis/Eyes_Protection_Reminder/compare/$PREVIOUS_TAG...v$NEXT_MINOR_VERSION) + **Full Changelog**: [`$PREVIOUS_TAG...v$NEXT_PATCH_VERSION`](https://github.com/hardingadonis/Eyes_Protection_Reminder/compare/$PREVIOUS_TAG...v$NEXT_PATCH_VERSION) ## Contributors diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a484fbd..c635c6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,8 +63,8 @@ jobs: uses: TheDoctor0/zip-release@0.6.2 with: type: zip - filename: Eyes_Protection_Reminder_v4.1.0.Windows.${{ matrix.architecture }}.zip - path: ${{ github.workspace }}\build\source\Eyes_Protection_Reminder_v4.1.0.Windows.${{ matrix.architecture }}.exe + filename: Eyes_Protection_Reminder_v4.1.1.Windows.${{ matrix.architecture }}.zip + path: ${{ github.workspace }}\build\source\Eyes_Protection_Reminder_v4.1.1.Windows.${{ matrix.architecture }}.exe - name: Upload built executable file uses: tanyagray/action-upload-release-asset@v1.1.3 @@ -72,8 +72,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.update_release_draft.outputs.upload_url }} - asset_path: ${{ github.workspace }}\Eyes_Protection_Reminder_v4.1.0.Windows.${{ matrix.architecture }}.zip - asset_name: Eyes_Protection_Reminder_v4.1.0.Windows.${{ matrix.architecture }}.zip + asset_path: ${{ github.workspace }}\Eyes_Protection_Reminder_v4.1.1.Windows.${{ matrix.architecture }}.zip + asset_name: Eyes_Protection_Reminder_v4.1.1.Windows.${{ matrix.architecture }}.zip asset_content_type: application/zip publish_release: diff --git a/CMakeLists.txt b/CMakeLists.txt index 85b3db9..261073d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.10.2) -project(Eyes_Protection_Reminder VERSION 4.1.0) +project(Eyes_Protection_Reminder VERSION 4.1.1) add_subdirectory(libs/wxWidgets) add_subdirectory(source) \ No newline at end of file diff --git a/README.md b/README.md index a47b113..50e9da4 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ![Languages](https://img.shields.io/github/languages/top/hardingadonis/Eyes_Protection_Reminder?style=flat) ![Repo Size](https://img.shields.io/github/repo-size/hardingadonis/Eyes_Protection_Reminder?style=flat) ![License](https://img.shields.io/github/license/hardingadonis/Eyes_Protection_Reminder?style=flat) -[![Download](https://img.shields.io/github/downloads/hardingadonis/Eyes_Protection_Reminder/v4.1.0/total?style=flat)](https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.0) +[![Download](https://img.shields.io/github/downloads/hardingadonis/Eyes_Protection_Reminder/v4.1.1/total?style=flat)](https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1) ![EPR_banner](https://github.com/hardingadonis/Eyes_Protection_Reminder/blob/main/imgs/EPR_banner.png) @@ -60,10 +60,16 @@ cmake --build . --target EPR ``` - Run project - - Find an application that named `Eyes_Protection_Reminder_v4.1.0.Windows.x86.exe` or `Eyes_Protection_Reminder_v4.1.0.Windows.x64.exe` + - Find an application that named `Eyes_Protection_Reminder_v4.1.1.Windows.x86.exe` or `Eyes_Protection_Reminder_v4.1.1.Windows.x64.exe` - Now, run it!!! -- Or, you can download the binary in [here](https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.0) +- Or, you can download the binary in [here](https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1) + +## Usage + +You do not know how to use this tool? + +Don't worry, click here to know usage: [Usage](https://github.com/hardingadonis/Eyes_Protection_Reminder/blob/main/docs/Usage.md) or [Usage (for Vietnamese)](https://github.com/hardingadonis/Eyes_Protection_Reminder/blob/main/docs/Usage_vi_VN.md) ## License diff --git a/docs/Usage.md b/docs/Usage.md new file mode 100644 index 0000000..588fdcd --- /dev/null +++ b/docs/Usage.md @@ -0,0 +1,52 @@ +# Eyes Protection Reminder - Usage + +## Requirements + +- Windows OS such as: + - Windows XP + - Windows 7 + - Windows 8/8.1 + - Windows 10 + - Windows 11 + +## Usage + +### Download Eyes Protection Reminder + +You can download the binary in [here](https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1). + +Choose one of two: + +- *.Windows.x86 for Windows 32 bit. +- *.Windows.x64 for Windows 64 bit. + +
+ +
+ +### Extract and open Eyes Protection Reminder + +After downloading **Eyes Protection Reminder**, we will extract and run it. + +This is the main interface of **Eyes Protection Reminder**. + ++ +
+ +### Main functions + +- **Start** button to begin the timer. +- **Stop** button to stop the timer. +- When the timer is over, **Eyes Protection Reminder** will send a notification for you like this: + ++ +
+ +## Hotkey + +- **F1**: to open **About Dialog**. +- **F2**: to hide **Eyes Protection Reminder**. +- **F3**: to open **Settings Dialog**. +- **Alt+F4**: to exit **Eyes Protection Reminder**. \ No newline at end of file diff --git a/docs/Usage_vi_VN.md b/docs/Usage_vi_VN.md new file mode 100644 index 0000000..4172354 --- /dev/null +++ b/docs/Usage_vi_VN.md @@ -0,0 +1,52 @@ +# Eyes Protection Reminder - Cách sử dụng + +## Yêu cầu + +- Hệ điều hành Windows: + - Windows XP + - Windows 7 + - Windows 8/8.1 + - Windows 10 + - Windows 11 + +## Cách sử dụng + +### Tải Eyes Protection Reminder + +Bạn có thể tải **Eyes Protection Reminder** [tại đây](https://github.com/hardingadonis/Eyes_Protection_Reminder/releases/tag/v4.1.1). + +Chọn một trong hai: + +- *.Windows.x86 for Windows 32 bit. +- *.Windows.x64 for Windows 64 bit. + ++ +
+ +### Giải nén và chạy Eyes Protection Reminder + +Sau khi tải xuống **Eyes Protection Reminder**, chúng ta sẽ giải nén và chạy cái tool này. + +Đây là giao diện chính của **Eyes Protection Reminder**. + ++ +
+ +### Chức năng chính + +- Nút **Start** để bắt đầu tính giờ. +- Nút **Stop** để dừng việc tính giờ lại. +- Khi thời gian kết thúc, **Eyes Protection Reminder** gửi cho chúng ta một cái thông báo như sau: + ++ +
+ +## Phím tắt + +- **F1**: để mở **About Dialog**. +- **F2**: để ẩn **Eyes Protection Reminder**. +- **F3**: để mở **Settings Dialog**. +- **Alt+F4**: để thoát **Eyes Protection Reminder**. \ No newline at end of file diff --git a/docs/imgs/EPR_docs_image_1.png b/docs/imgs/EPR_docs_image_1.png new file mode 100644 index 0000000..47c28ff Binary files /dev/null and b/docs/imgs/EPR_docs_image_1.png differ diff --git a/docs/imgs/EPR_docs_image_2.png b/docs/imgs/EPR_docs_image_2.png new file mode 100644 index 0000000..773cd0d Binary files /dev/null and b/docs/imgs/EPR_docs_image_2.png differ diff --git a/docs/imgs/EPR_docs_image_3.png b/docs/imgs/EPR_docs_image_3.png new file mode 100644 index 0000000..13707fa Binary files /dev/null and b/docs/imgs/EPR_docs_image_3.png differ diff --git a/imgs/EPR_showcase.png b/imgs/EPR_showcase.png index 7ea2986..af9b39f 100644 Binary files a/imgs/EPR_showcase.png and b/imgs/EPR_showcase.png differ diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index ddc474f..dee5d20 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.10.2) -project(EPR VERSION 4.1.0) +project(EPR VERSION 4.1.1) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -34,4 +34,4 @@ set(EPR_ICON ${CMAKE_SOURCE_DIR}/assets/EPR_icon.rc) add_executable(${PROJECT_NAME} WIN32 ${EPR_SOURCES} ${EPR_ICON}) target_link_libraries(${PROJECT_NAME} PUBLIC wx::core wx::base) target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) -set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME Eyes_Protection_Reminder_v4.1.0.Windows.${EPR_ARCH}) \ No newline at end of file +set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME Eyes_Protection_Reminder_v4.1.1.Windows.${EPR_ARCH}) \ No newline at end of file diff --git a/source/include/UI/MainPanel.hpp b/source/include/UI/MainPanel.hpp index 8a6a6ee..163382d 100644 --- a/source/include/UI/MainPanel.hpp +++ b/source/include/UI/MainPanel.hpp @@ -42,11 +42,11 @@ namespace EPR void OnTimerElapsed(wxTimerEvent& _event); void OnRestedElapsed(wxTimerEvent& _event); + void ResetTimer(); + private: void CreateControls(); - void ResetTimer(); - private: wxStaticText* m_timerValue; wxStaticText* m_restedValue; diff --git a/source/include/UI/SettingsDialog.hpp b/source/include/UI/SettingsDialog.hpp index cdfe286..f46b7cc 100644 --- a/source/include/UI/SettingsDialog.hpp +++ b/source/include/UI/SettingsDialog.hpp @@ -29,12 +29,14 @@ #include