Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize resources #571

Merged
merged 7 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions fmusim-gui/AbstractModelVariablesModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ QVariant AbstractModelVariablesModel::columnData(const FMIModelVariable *variabl
case FMIParameter:
case FMIStructuralParameter:
case FMICalculatedParameter:
return QIcon(":/variables/dark/float-parameter.svg");
return QIcon(":/variables/float-parameter.svg");
case FMIInput:
return QIcon(":/variables/dark/float-input.svg");
return QIcon(":/variables/float-input.svg");
case FMIOutput:
return QIcon(":/variables/dark/float-output.svg");
return QIcon(":/variables/float-output.svg");
default:
return QIcon(":/variables/dark/float-variable.svg");
return QIcon(":/variables/float-variable.svg");
}
default:
return QVariant();
Expand Down
14 changes: 7 additions & 7 deletions fmusim-gui/BuildPlatformBinaryThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ void BuildPlatformBinaryThread::run() {

buildDirectory.setAutoRemove(removeBuilDirectory);

QFile::copy(":/resources/CMakeLists.txt", buildDirectory.filePath("CMakeLists.txt"));
QFile::copy(":/build/CMakeLists.txt", buildDirectory.filePath("CMakeLists.txt"));

if (modelDescription->fmiMajorVersion == 2) {
QFile::copy(":/resources/fmi2Functions.h", buildDirectory.filePath("fmi2Functions.h"));
QFile::copy(":/resources/fmi2FunctionTypes.h", buildDirectory.filePath("fmi2FunctionTypes.h"));
QFile::copy(":/resources/fmi2TypesPlatform.h", buildDirectory.filePath("fmi2TypesPlatform.h"));
QFile::copy(":/build/fmi2Functions.h", buildDirectory.filePath("fmi2Functions.h"));
QFile::copy(":/build/fmi2FunctionTypes.h", buildDirectory.filePath("fmi2FunctionTypes.h"));
QFile::copy(":/build/fmi2TypesPlatform.h", buildDirectory.filePath("fmi2TypesPlatform.h"));
} else {
QFile::copy(":/resources/fmi3Functions.h", buildDirectory.filePath("fmi3Functions.h"));
QFile::copy(":/resources/fmi3FunctionTypes.h", buildDirectory.filePath("fmi3FunctionTypes.h"));
QFile::copy(":/resources/fmi3PlatformTypes.h", buildDirectory.filePath("fmi3PlatformTypes.h"));
QFile::copy(":/build/fmi3Functions.h", buildDirectory.filePath("fmi3Functions.h"));
QFile::copy(":/build/fmi3FunctionTypes.h", buildDirectory.filePath("fmi3FunctionTypes.h"));
QFile::copy(":/build/fmi3PlatformTypes.h", buildDirectory.filePath("fmi3PlatformTypes.h"));
}

size_t nSourceFiles;
Expand Down
17 changes: 11 additions & 6 deletions fmusim-gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
${PROJECT_SOURCES}
ModelVariablesTableModel.h
ModelVariablesTableModel.cpp
plot.html
../src/FMI1.c
../src/FMI2.c
../include/FMI1.h
Expand Down Expand Up @@ -88,20 +87,26 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
../fmusim/FMICVode.h
../fmusim/FMICVode.c

buttons.qrc
plot.qrc
icons/variables/variables.qrc
resources/buttons/buttons.qrc
resources/tools/tools.qrc

resources/plot/plot.html
resources/plot/plot.qrc

resources/variables/variables.qrc

VariablesFilterModel.h VariablesFilterModel.cpp
SimulationThread.h SimulationThread.cpp
resources.qrc
BuildPlatformBinaryDialog.h BuildPlatformBinaryDialog.cpp BuildPlatformBinaryDialog.ui
BuildPlatformBinaryThread.h BuildPlatformBinaryThread.cpp

ModelVariablesTreeModel.h ModelVariablesTreeModel.cpp
AbstractModelVariablesModel.h AbstractModelVariablesModel.cpp
PlotUtil.h PlotUtil.cpp

resources/app-icon.rc
resources/icon/icon.qrc
resources/icon/icon.rc
resources/build/build.qrc
)

target_include_directories(fmusim-gui PRIVATE
Expand Down
Loading