QtFRED Mission Events Editor#6961
Merged
wookieejedi merged 24 commits intoAug 29, 2025
Merged
Conversation
This was referenced Aug 22, 2025
080aeeb to
ebbed68
Compare
7432a71 to
1652b94
Compare
JohnAFernandez
approved these changes
Aug 28, 2025
| } | ||
|
|
||
| // rename all sexp references to old events | ||
| for (int i = 0; i < (int)m_events.size(); i++) { |
Contributor
There was a problem hiding this comment.
Suggested change
| for (int i = 0; i < (int)m_events.size(); i++) { | |
| for (int i = 0; i < static_cast<int>(m_events.size()); i++) { |
| free(Messages[i].wave_info.name); | ||
| } | ||
|
|
||
| Num_messages = (int)m_messages.size() + Num_builtin_messages; |
Contributor
There was a problem hiding this comment.
Suggested change
| Num_messages = (int)m_messages.size() + Num_builtin_messages; | |
| Num_messages = static_cast<int>(m_messages.size()) + Num_builtin_messages; |
|
|
||
| Num_messages = (int)m_messages.size() + Num_builtin_messages; | ||
| Messages.resize(Num_messages); | ||
| for (int i = 0; i < (int)m_messages.size(); i++) |
Contributor
There was a problem hiding this comment.
Suggested change
| for (int i = 0; i < (int)m_messages.size(); i++) | |
| for (int i = 0; i < static_cast<int>(m_messages.size()); i++) |
| m_events.clear(); | ||
| m_sig.clear(); | ||
| m_cur_event = -1; | ||
| for (auto i = 0; i < (int)Mission_events.size(); i++) { |
Contributor
There was a problem hiding this comment.
Suggested change
| for (auto i = 0; i < (int)Mission_events.size(); i++) { | |
| for (auto i = 0; i < static_cast<int>(Mission_events.size()); i++) { |
|
|
||
| int MissionEventsDialogModel::findFormulaByOriginalEventIndex(int orig) const | ||
| { | ||
| for (int cur = 0; cur < (int)m_sig.size(); ++cur) |
Contributor
There was a problem hiding this comment.
Suggested change
| for (int cur = 0; cur < (int)m_sig.size(); ++cur) | |
| for (int cur = 0; cur < static_cast<int>(m_sig.size()); ++cur) |
| QStringList sexp_tree::validOperatorsForNode(int nodeIndex) | ||
| { | ||
| QStringList out; | ||
| if (nodeIndex < 0 || nodeIndex >= (int)tree_nodes.size()) |
Contributor
There was a problem hiding this comment.
Suggested change
| if (nodeIndex < 0 || nodeIndex >= (int)tree_nodes.size()) | |
| if (nodeIndex < 0 || nodeIndex >= static_cast<int>(tree_nodes.size())) |
| int nodeIdx = -1; | ||
| for (uint i = 0; i < tree_nodes.size(); ++i) { | ||
| if (tree_nodes[i].handle == item) { | ||
| nodeIdx = (int)i; |
Contributor
There was a problem hiding this comment.
Suggested change
| nodeIdx = (int)i; | |
| nodeIdx = static_cast<int>(i); |
| _opNodeIndex = -1; | ||
|
|
||
| // Commit operator if we resolved one | ||
| if (confirm && !chosenOp.isEmpty() && node >= 0 && node < (int)tree_nodes.size()) { |
Contributor
There was a problem hiding this comment.
Suggested change
| if (confirm && !chosenOp.isEmpty() && node >= 0 && node < (int)tree_nodes.size()) { | |
| if (confirm && !chosenOp.isEmpty() && node >= 0 && node < static_cast<int>(tree_nodes.size())) { |
JohnAFernandez
requested changes
Aug 28, 2025
JohnAFernandez
left a comment
Contributor
There was a problem hiding this comment.
Whoops, misclicked. PLEASE ADDRESS THESE CHANGES, I PROMISE I AM NOT DOING CODE REVIEWS UNDER THE INFLUENCE!
JohnAFernandez
approved these changes
Aug 28, 2025
JohnAFernandez
left a comment
Contributor
There was a problem hiding this comment.
I guess that's done then.
5778885 to
172ae32
Compare
Member
|
Will plan to merge tomorrow |
Goober5000
added a commit
to Goober5000/fs2open.github.com
that referenced
this pull request
Sep 8, 2025
The double quote conversions added in scp-fs2open#7008 were removed in scp-fs2open#6961, probably inadvertently due to the branch merge. This adds them back.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cleans up and finishes the Mission Events editor. Adds missing features like annotations support, type to search for operators, message notes, etc. Also adds some new features like easy reorganizing of messages.
Sexp_tree is still kind of a mess as that file owns both the widget ui and the sexp tree data code. To get around this limitation the dialog passes an object to the events editor data model that allows the needed cross talk between the tree and the events data structures.
Fixes #3653