Rename to Orianne
14
.github/workflows/build.yaml
vendored
@@ -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
@@ -3,9 +3,9 @@
|
||||
# qt
|
||||
.qt/
|
||||
.rcc/
|
||||
testtaker_autogen/
|
||||
orianne_autogen/
|
||||
build/
|
||||
testtaker
|
||||
orianne
|
||||
|
||||
### C++ ###
|
||||
# Prerequisites
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 345 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 559 B After Width: | Height: | Size: 559 B |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -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();
|
||||
|
||||