https://github.com/makerbot/morepork-ui
The shiny new UI for sombrero
https://github.com/makerbot/morepork-ui
Last synced: 5 months ago
JSON representation
The shiny new UI for sombrero
- Host: GitHub
- URL: https://github.com/makerbot/morepork-ui
- Owner: makerbot
- License: gpl-3.0
- Created: 2016-11-18T20:47:07.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2025-05-23T16:19:02.000Z (about 1 year ago)
- Last Synced: 2025-05-23T17:51:57.894Z (about 1 year ago)
- Language: QML
- Size: 30.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
## Morepork UI
The brand new GUI for method printers (codenamed morepork/sombrero)!
This GUI application may be used, modified and redistributed only under the terms of
the GNU General Public License, found in the file COPYING in this
distribution, or at [the Free Software Foundation][https://www.fsf.org/licenses/gpl.html].
Note that the build scripts here are really only set up to build the GUI application
for use in the firmware when building via https://github.com/makerbot/Toolchain-Release.
See https://github.com/makerbot/Toolchain-Release/blob/develop/morepork-ui.md for examples
of how to build modified versions of this application and install them on method printers.
### Developing with Qt Creator
This repo contains the Qt interface for sombrero. The root CMakeLists.txt file detects whether the repo is being built from within the morepork toolchain or stand alone from QtCreator. If using QtCreator, just open the root CMakeLists.txt file.
New QML files are automatically handled by the CMakeLists.txt, but new C++ files should be manually added to src/CMakeLists.txt. In addition to just using a normal git client, you can branch, commit and push from Qt creator (see Tools->Git).
### Instructions
(1) Open QtCreator
(2) In QtCreator, click File > Open File or Project...
(3) Select the file morepork-ui/morepork-ui-artifactory/morepork-ui-artifactory.pro
(4) On the left side, QtCreator should be on the Projects tab. On the right side, click the Configure Project button.
(5) QtCreator now goes to the Edit tab. Finally, click Build > Run
(6) A Terminal window then should open up to download the artifacts. Click Return on the resulting Terminal window to close it.
(7) Verify that artifacts for these dependencied are present under morepork-ui/morepork-ui-artifactory/artifacts:
json-cpp
libtinything
MBCoreUtils
(See https://github.com/makerbot/Toolchain-Release for information on building these artifacts)
(8) Once the artifacts have been downloaded, click File > Close All Projects and Editors
(9) Now, click File > Open File or Project... and select the morepork-ui/CMakeLists.txt project
(10) Click Build > Build All to build the project
### Update translations on the UI.
The translation files and the scripts to generate them are located in /src//translations
1.) Run 'update_ts_files.sh' in /src/translations. This will generate/update the .ts files in the translations directory. One file per language will be generated. The .ts file is just a template file containing all the strings on the UI. It also has other metadata like the filename, line # for the strings.
2.) Hand over the .ts files to the translators who will add the actual translations to them and send back the updated files.
3.) Replace the old .ts files with the received files
See https://doc.qt.io/qt-5/qtlinguist-index.html