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
run: |
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
echo "Version is: ${VERSION}"
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract-and-run appdir/usr/share/applications/*.desktop \
@@ -55,8 +55,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: TestTaker-linux-appimage
path: TestTaker*.AppImage
name: Orianne-linux-appimage
path: Orianne*.AppImage
windows:
runs-on: windows-latest
@@ -91,17 +91,17 @@ jobs:
shell: bash
run: |
VERSION=0.0.1-win
APPNAME=TestTaker-${VERSION}-win-x86_64.zip
APPNAME=Orianne-${VERSION}-win-x86_64.zip
echo "APPNAME=${APPNAME}" >> $GITHUB_ENV
mkdir 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} *
- uses: actions/upload-artifact@v3
with:
name: TestTaker-windows
name: Orianne-windows
path: packageDir/*

4
.gitignore vendored
View File

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

View File

@@ -1,38 +1,38 @@
cmake_minimum_required(VERSION 3.16)
project(TestTaker LANGUAGES CXX)
project(Orianne LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 REQUIRED COMPONENTS Core Gui UiTools Widgets)
file(GLOB testtaker_SRC
file(GLOB orianne_SRC
"src/*.h"
"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
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::Gui
Qt::UiTools
Qt::Widgets
)
qt6_add_resources(TestTaker "TestTaker"
qt6_add_resources(Orianne "Orianne"
PREFIX
"/forms"
FILES
"src/form.ui"
)
install(TARGETS TestTaker
install(TARGETS Orianne
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"

View File

@@ -1,10 +1,16 @@
# test-taker
# Orianne
A Qt6 application for administering tests. Highly experimental.
Feature Targets:
- Cross platform (Windows, Linux, Mac)
- 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

View File

@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
Name=TestTaker
Name=Orianne
Comment=Hello, World!
Exec=TestTaker
Icon=testtaker
Exec=Oriannes
Icon=orianne
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)
return nullptr;
//! [2]
auto *inputSpinBox1 = formWidget->findChild<QSpinBox *>(u"inputSpinBox1"_s);
auto *inputSpinBox2 = formWidget->findChild<QSpinBox *>(u"inputSpinBox2"_s);
auto *outputWidget = formWidget->findChild<QLabel *>(u"outputWidget"_s);
//! [2]
//! [3]
auto updateResult = [inputSpinBox1, inputSpinBox2, outputWidget]()
{
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(inputSpinBox2, &QSpinBox::valueChanged, formWidget, updateResult);
//! [3]
return formWidget;
}
@@ -65,8 +61,8 @@ int main(int argc, char *argv[])
flowLayout->addWidget(new QPushButton(QPushButton::tr("Even longer button text")));
widget.setLayout(flowLayout);
widget.setWindowTitle(QCoreApplication::translate("CalculatorForm",
"Calculator Builder"));
widget.setWindowTitle(QCoreApplication::translate("Orianne",
"Orianne Test"));
//! [4]
widget.show();
return app.exec();