https://github.com/lszl84/wx_basic_undo_tutorial
Undo stack with wxWidgets
https://github.com/lszl84/wx_basic_undo_tutorial
cpp wxwidgets
Last synced: about 7 hours ago
JSON representation
Undo stack with wxWidgets
- Host: GitHub
- URL: https://github.com/lszl84/wx_basic_undo_tutorial
- Owner: lszl84
- License: mit
- Created: 2023-09-21T12:32:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-18T14:43:03.000Z (about 1 year ago)
- Last Synced: 2025-05-18T15:36:07.606Z (about 1 year ago)
- Topics: cpp, wxwidgets
- Language: C++
- Homepage: https://www.lukesdevtutorials.com
- Size: 313 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A basic wxWidgets application with the undo/redo functionality implemented using `wxCommandProcessor`.
[](https://www.youtube.com/watch?v=LmPQA3UGxc4)
Full Tutorial: https://www.youtube.com/watch?v=LmPQA3UGxc4
### How this works
This template searches for the wxWidgets library using `FindPackage`. If not found, it downloads the library source from GitHub, compiles it, and links it with the main project.
The super build pattern with `ExternalProject_Add` is used to achieve this.
### Requirements
This works on Windows, Mac, and Linux. You'll need `cmake` and a C++ compiler (tested on `clang`, `gcc`, and MSVC).
Linux builds require the GTK3 library and headers installed in the system.
### Building
To build the project, use:
```bash
cmake -S. -Bbuild
cmake --build build
```
This will create a directory named `build` and create all build artifacts there. The main executable can be found in the `build/subprojects/Build/wx_basic_undo_tutorial_core` folder.
---
Check out the blog for more! [www.onlyfastcode.com](https://www.onlyfastcode.com)
---