From 1bd52b58410bc30e609feed0aacf14d1ddfdd6f4 Mon Sep 17 00:00:00 2001 From: NorbertHofbauer <95526692+NorbertHofbauer@users.noreply.github.com> Date: Sat, 14 Dec 2024 10:20:22 +0100 Subject: [PATCH] small fixes --- changelog.txt | 2 ++ checklist_keyword_implementation.txt | 28 ++++++++++++++++++++++++++++ src/GUI/Highlight.cpp | 3 +++ src/GUI/JobsMonitorDAT.cpp | 2 +- 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 checklist_keyword_implementation.txt diff --git a/changelog.txt b/changelog.txt index 5ad9eab6..17ff0d85 100644 --- a/changelog.txt +++ b/changelog.txt @@ -108,3 +108,5 @@ 2024-12-09 working on trajectory bugs, amplidudes core speed up for trajectory preparation 2024-12-12 fixing history bug on windows need to wait for new dev release 2024-12-13 working on physical constants, damping, film, radiation +2024-12-14 writing check list. try to fix history bug on windows + diff --git a/checklist_keyword_implementation.txt b/checklist_keyword_implementation.txt new file mode 100644 index 00000000..3f84a734 --- /dev/null +++ b/checklist_keyword_implementation.txt @@ -0,0 +1,28 @@ +this is an unfinished list as to where changes must happen when a new keyword gets included. + +• core object +• new commands +• register in command plugin +• in calculixcore: + - implement object new coreobject + - init + - update + - reset + - print + - read and save cub5 + - autocleanup + - highlight + - parser + - export data for inp + - export data for gui +• add to custom line -> core, command +• add to step if necessary -> core, command +• add to draw if necessary -> core, command +• include in export command +• create gui + - tree + - right click menu + - highlight + - navigation + - panel widgets + diff --git a/src/GUI/Highlight.cpp b/src/GUI/Highlight.cpp index 001bda2c..b221238c 100644 --- a/src/GUI/Highlight.cpp +++ b/src/GUI/Highlight.cpp @@ -224,6 +224,9 @@ void Highlight::ModelTreeItemClicked(QTreeWidgetItem* item, int column) } else if (StepsLoadsGravityTreeItem = dynamic_cast(item->parent())) { entities = ccx_iface->get_entities("loadsgravity",std::stoi(item->text(1).toStdString())); + } else if (StepsLoadsCentrifugalTreeItem = dynamic_cast(item->parent())) + { + entities = ccx_iface->get_entities("loadscentrifugal",std::stoi(item->text(1).toStdString())); } else if (StepsLoadsTrajectoryTreeItem = dynamic_cast(item->parent())) { entities = ccx_iface->get_entities("loadstrajectory",std::stoi(item->text(1).toStdString())); diff --git a/src/GUI/JobsMonitorDAT.cpp b/src/GUI/JobsMonitorDAT.cpp index dfe72c01..4d3e0a86 100644 --- a/src/GUI/JobsMonitorDAT.cpp +++ b/src/GUI/JobsMonitorDAT.cpp @@ -422,7 +422,7 @@ void JobsMonitorDAT::update_result() std::sort(elements.begin(),elements.end()); elements.erase(std::unique(elements.begin(), elements.end()), elements.end()); std::vector tmp_element = ccx_iface->dat_get_element_values_for_component(current_job_id,elements[0],times[0],str_current_result_block,str_current_result_set,components[0]); - ipc = tmp_element.size(); // number of integration points + ipc = int(tmp_element.size()); // number of integration points start = this->current_page * items_per_page; end = start + this->items_per_page - 1;