Rename to Orianne

This commit is contained in:
2023-09-25 14:50:49 -05:00
parent 2127ca5c1b
commit 25ba74de09
10 changed files with 28 additions and 26 deletions

View File

@@ -46,7 +46,7 @@ jobs:
- name: Package artifacts with linuxdeployqt - name: Package artifacts with linuxdeployqt
run: | run: |
mkdir -p appdir/usr/bin/ mkdir -p appdir/usr/bin/
mv ./build/TestTaker appdir/usr/bin/ mv ./build/Orianne appdir/usr/bin/
export VERSION=0.0.1-linux # linuxdeployqt uses this for naming the package export VERSION=0.0.1-linux # linuxdeployqt uses this for naming the package
echo "Version is: ${VERSION}" echo "Version is: ${VERSION}"
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract-and-run appdir/usr/share/applications/*.desktop \ ./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract-and-run appdir/usr/share/applications/*.desktop \
@@ -55,8 +55,8 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: TestTaker-linux-appimage name: Orianne-linux-appimage
path: TestTaker*.AppImage path: Orianne*.AppImage
windows: windows:
runs-on: windows-latest runs-on: windows-latest
@@ -91,17 +91,17 @@ jobs:
shell: bash shell: bash
run: | run: |
VERSION=0.0.1-win VERSION=0.0.1-win
APPNAME=TestTaker-${VERSION}-win-x86_64.zip APPNAME=Orianne-${VERSION}-win-x86_64.zip
echo "APPNAME=${APPNAME}" >> $GITHUB_ENV echo "APPNAME=${APPNAME}" >> $GITHUB_ENV
mkdir packageDir mkdir packageDir
pushd packageDir pushd packageDir
mv '${{github.workspace}}'/build/TestTaker.exe . mv '${{github.workspace}}'/build/Orianne.exe .
windeployqt.exe -svg --release --no-compiler-runtime --no-opengl-sw --no-translations TestTaker.exe windeployqt.exe -svg --release --no-compiler-runtime --no-opengl-sw --no-translations Orianne.exe
# 7z a -r ../${APPNAME} * # 7z a -r ../${APPNAME} *
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: TestTaker-windows name: Orianne-windows
path: packageDir/* path: packageDir/*

4
.gitignore vendored
View File

@@ -3,9 +3,9 @@
# qt # qt
.qt/ .qt/
.rcc/ .rcc/
testtaker_autogen/ orianne_autogen/
build/ build/
testtaker orianne
### C++ ### ### C++ ###
# Prerequisites # Prerequisites

View File

@@ -1,38 +1,38 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(TestTaker LANGUAGES CXX) project(Orianne LANGUAGES CXX)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
find_package(Qt6 REQUIRED COMPONENTS Core Gui UiTools Widgets) find_package(Qt6 REQUIRED COMPONENTS Core Gui UiTools Widgets)
file(GLOB testtaker_SRC file(GLOB orianne_SRC
"src/*.h" "src/*.h"
"src/*.cpp" "src/*.cpp"
) )
qt_add_executable(TestTaker ${testtaker_SRC}) qt_add_executable(Orianne ${orianne_SRC})
set_target_properties(TestTaker PROPERTIES set_target_properties(Orianne PROPERTIES
WIN32_EXECUTABLE TRUE # Required for GUI executables WIN32_EXECUTABLE TRUE # Required for GUI executables
MACOSX_BUNDLE TRUE # Required for GUI executables to be launchable from Finder MACOSX_BUNDLE TRUE # Required for GUI executables to be launchable from Finder
) )
target_link_libraries(TestTaker PUBLIC target_link_libraries(Orianne PUBLIC
Qt::Core Qt::Core
Qt::Gui Qt::Gui
Qt::UiTools Qt::UiTools
Qt::Widgets Qt::Widgets
) )
qt6_add_resources(TestTaker "TestTaker" qt6_add_resources(Orianne "Orianne"
PREFIX PREFIX
"/forms" "/forms"
FILES FILES
"src/form.ui" "src/form.ui"
) )
install(TARGETS TestTaker install(TARGETS Orianne
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"

View File

@@ -1,10 +1,16 @@
# test-taker # Orianne
A Qt6 application for administering tests. Highly experimental. A Qt6 application for administering tests. Highly experimental.
Feature Targets: Feature Targets:
- Cross platform (Windows, Linux, Mac) - Cross platform (Windows, Linux, Mac)
- Automatic build scripts with Workflows - Automatic build scripts with Workflows
- Multilingual support (English, Spanish)
- UI support would be straightforward, but the test content could not be translated easily.
- Commandline Options
- `--test <test_file>`: Open a test file on startup
- `--lang <language>`: Set the language on startup
- Profile
## Concerns ## Concerns

View File

@@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Name=TestTaker Name=Orianne
Comment=Hello, World! Comment=Hello, World!
Exec=TestTaker Exec=Oriannes
Icon=testtaker Icon=orianne
Categories=Education;Utility; Categories=Education;Utility;

View File

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -26,13 +26,10 @@ static QWidget *loadCalculatorForm(QWidget *parent = nullptr)
if (formWidget == nullptr) if (formWidget == nullptr)
return nullptr; return nullptr;
//! [2]
auto *inputSpinBox1 = formWidget->findChild<QSpinBox *>(u"inputSpinBox1"_s); auto *inputSpinBox1 = formWidget->findChild<QSpinBox *>(u"inputSpinBox1"_s);
auto *inputSpinBox2 = formWidget->findChild<QSpinBox *>(u"inputSpinBox2"_s); auto *inputSpinBox2 = formWidget->findChild<QSpinBox *>(u"inputSpinBox2"_s);
auto *outputWidget = formWidget->findChild<QLabel *>(u"outputWidget"_s); auto *outputWidget = formWidget->findChild<QLabel *>(u"outputWidget"_s);
//! [2]
//! [3]
auto updateResult = [inputSpinBox1, inputSpinBox2, outputWidget]() auto updateResult = [inputSpinBox1, inputSpinBox2, outputWidget]()
{ {
const int sum = inputSpinBox1->value() + inputSpinBox2->value(); const int sum = inputSpinBox1->value() + inputSpinBox2->value();
@@ -40,7 +37,6 @@ static QWidget *loadCalculatorForm(QWidget *parent = nullptr)
}; };
QObject::connect(inputSpinBox1, &QSpinBox::valueChanged, formWidget, updateResult); QObject::connect(inputSpinBox1, &QSpinBox::valueChanged, formWidget, updateResult);
QObject::connect(inputSpinBox2, &QSpinBox::valueChanged, formWidget, updateResult); QObject::connect(inputSpinBox2, &QSpinBox::valueChanged, formWidget, updateResult);
//! [3]
return formWidget; return formWidget;
} }
@@ -65,8 +61,8 @@ int main(int argc, char *argv[])
flowLayout->addWidget(new QPushButton(QPushButton::tr("Even longer button text"))); flowLayout->addWidget(new QPushButton(QPushButton::tr("Even longer button text")));
widget.setLayout(flowLayout); widget.setLayout(flowLayout);
widget.setWindowTitle(QCoreApplication::translate("CalculatorForm", widget.setWindowTitle(QCoreApplication::translate("Orianne",
"Calculator Builder")); "Orianne Test"));
//! [4] //! [4]
widget.show(); widget.show();
return app.exec(); return app.exec();