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
Hierarchical LABELS View under Structure #1258
Comments
txs uses the model/view mechanism for displaying the structure. The insertElementWitchSignal is necessary as the viewer element needs to be informed when the structure is changed. All similar signals serve the same purpose. The tricky part is that failure to do so correctly results in crashes. |
Thank you very much! Also, how can I run the |
It is run automatically with debug builds (first run or option --execute-tests) |
Is there a way to only run a specific test instead of the entire suite? |
no, unless you change the code in testmanager.cpp |
Hi, I would like to develop an enhancement to the structure panel, but it's my first time so I need some help. I want to split labels according to some character (probably ":" by default), and then show the labels in the Structure panel in a hierarchical way. I.e., if we have the following labels in a document:
fig:a,thm:a,fig:b,thm:b
instead of showing them in flat view as:it will be shown using two inner-trees for
fig
andthm
:I found the
src/tests/structureview_t.cpp
test which seems related, and theinsertElementWithSignal
method insrc/latexdocument.cpp
that also seems relevant, but I'm not sure how to run the test (after I modify it to test my expected behaviour), and in general how to continue from here. I'd be very glad for a little guidance, I'm sure I could take it away by myself afterwards.The end goal is to make all of this configurable, and also work for other parts of the Structure panel (like todo), but for now I just want to see how to do it for labels (which are most often separated to different types according to different prefixes).
The text was updated successfully, but these errors were encountered: