1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 19:23:56 +00:00
openmw/apps/opencs/view/world
elsid e892c62b10
Fix loading, inserting and moving topic info records
Topic info records need to have specific order defined via mNext and mPrev
fields (next and previous records). When loading multiple files a record may be
inserted into middle of the topic but neighborhood records may not be aware of
it. Having the order it's possible to move the records within one topic.

Sort the record once after loading all content files but preserve the order for
all other operations. Use std::map to group info ids by topic to make sure the
topics order is stable. Keep order within a topic for info ids on loading new
records. Use this order later for sorting the records.
2023-03-13 21:57:38 +01:00
..
bodypartcreator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
bodypartcreator.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
cellcreator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
cellcreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
colordelegate.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
colordelegate.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
creator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
creator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
datadisplaydelegate.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
datadisplaydelegate.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
dialoguecreator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
dialoguecreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
dialoguespinbox.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
dialoguespinbox.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
dialoguesubview.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
dialoguesubview.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
dragdroputils.cpp clang-format 2023-01-14 21:42:33 +02:00
dragdroputils.hpp Dragging Topics to TopicInfo window opens create TopicInfo BottomBox with the correct id 2023-01-14 20:36:49 +02:00
dragrecordtable.cpp cleanup and style (const ref instead of value, consistent ifndef naming) 2023-01-29 21:42:01 +02:00
dragrecordtable.hpp cleanup and style (const ref instead of value, consistent ifndef naming) 2023-01-29 21:42:01 +02:00
enumdelegate.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
enumdelegate.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
extendedcommandconfigurator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
extendedcommandconfigurator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
genericcreator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
genericcreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
globalcreator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
globalcreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
idcompletiondelegate.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
idcompletiondelegate.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
idtypedelegate.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
idtypedelegate.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
idvalidator.cpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
idvalidator.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
infocreator.cpp Fix loading, inserting and moving topic info records 2023-03-13 21:57:38 +01:00
infocreator.hpp Issue command passing through QLineInput 2023-01-14 21:30:25 +02:00
landcreator.cpp Use ESM::RefId as index key in collections 2023-02-17 11:08:46 +01:00
landcreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
landtexturecreator.cpp Use ESM::RefId as index key in collections 2023-02-17 11:08:46 +01:00
landtexturecreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
nestedtable.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
nestedtable.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
pathgridcreator.cpp Use ESM::RefId as index key in collections 2023-02-17 11:08:46 +01:00
pathgridcreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
previewsubview.cpp Use ESM::RefId as index key in collections 2023-02-17 11:08:46 +01:00
previewsubview.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
recordbuttonbar.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
recordbuttonbar.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
recordstatusdelegate.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
recordstatusdelegate.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
referenceablecreator.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
referenceablecreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
referencecreator.cpp Use ESM::RefId as index key in collections 2023-02-17 11:08:46 +01:00
referencecreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
regionmap.cpp First draft of getting the exact drag start location 2023-01-16 23:47:32 +02:00
regionmap.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
regionmapsubview.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
regionmapsubview.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
scenesubview.cpp Reverts Cell name to a string 2023-01-21 18:39:42 +01:00
scenesubview.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
scriptedit.cpp Simplify a regex and fix a typo 2023-01-12 22:49:23 +01:00
scriptedit.hpp Simplify a regex and fix a typo 2023-01-12 22:49:23 +01:00
scripterrortable.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
scripterrortable.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
scripthighlighter.cpp create a specific esm reader function for RefID to avoid allocation for string and then again for RefId 2022-12-27 19:15:57 +01:00
scripthighlighter.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
scriptsubview.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
scriptsubview.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
startscriptcreator.cpp Use ESM::RefId as index key in collections 2023-02-17 11:08:46 +01:00
startscriptcreator.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
subviews.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
subviews.hpp Apply clang-format to code base 2022-09-22 21:35:26 +03:00
table.cpp Use ESM::RefId as index key in collections 2023-02-17 11:08:46 +01:00
table.hpp Dragging Topics to TopicInfo window opens create TopicInfo BottomBox with the correct id 2023-01-14 20:36:49 +02:00
tablebottombox.cpp clang-format 2023-01-14 21:42:33 +02:00
tablebottombox.hpp Dragging Topics to TopicInfo window opens create TopicInfo BottomBox with the correct id 2023-01-14 20:36:49 +02:00
tableeditidaction.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
tableeditidaction.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
tableheadermouseeventhandler.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
tableheadermouseeventhandler.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
tablesubview.cpp cleanup and style (const ref instead of value, consistent ifndef naming) 2023-01-29 21:42:01 +02:00
tablesubview.hpp cleanup and style (const ref instead of value, consistent ifndef naming) 2023-01-29 21:42:01 +02:00
util.cpp Init QVariant in Qt6-compatible way 2023-01-15 20:23:07 +04:00
util.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
vartypedelegate.cpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00
vartypedelegate.hpp Run IWYU on the opencs 2022-10-31 21:04:01 +01:00