Shared "code tree module" #1418
Salomon-Mazatlan
started this conversation in
Ideas
Replies: 3 comments 1 reply
|
Yes, I agree that this needs to be done. As the repeated code is silly. How about - first, complete the other module changes that you have planned. (code_pdf, code_av and manage_memos) Then look at this bigger but important change. code_tree.py - sounds good to me This could be one of the last big changes for 4.0 |
1 reply
|
ok. have a look also i updated code_text and code_image with the key presses (F2 .. F6)
add that in also
…________________________________
From: Salomon-Mazatlan ***@***.***>
Sent: Thursday, 23 July 2026 12:44 PM
To: ccbogel/QualCoder ***@***.***>
Cc: QualCoder Developer ***@***.***>; Comment ***@***.***>
Subject: Re: [ccbogel/QualCoder] Shared "code tree module" (Discussion #1418)
Yes, I'll work on this first, so I can implement it in the code_av and code_pdf proposals.
—
Reply to this email directly, view it on GitHub<#1418?email_source=notifications&email_token=ABMQPDVABRCQEP3EGX4KVID5GF3YBA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZXGQZTCOJZUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-17743199>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABMQPDUFUP3HSIA42UUICHD5GF3YBAVCNFSNUABIKJSXA33TNF2G64TZHMYTMNJXHA4DMMBVHNCGS43DOVZXG2LPNY5TCMBUG44DSNBXUF3AE>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/ABMQPDSHRJAZABL4RQ6KF3L5GF3YDA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZXGQZTCOJZUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSVGM33PORSXEX3JN5ZQ> and Android<https://github.com/notifications/mobile/android/ABMQPDRM2QX3FTD4EQBR4QT5GF3YDA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZXGQZTCOJZUZZGKYLTN5XKOY3PNVWWK3TUUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>. Download it today!
You are receiving this because you commented.Message ID: ***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The code tree and its context menu are currently duplicated across code_text.py, code_image.py, code_av.py, code_pdf.py.
Every change has to be replicated by hand in each of them: the delete branch option is the current example, and the keyboard shortcuts and the sub-codes logic have the same problem.
Proposal: a new module, "code_tree.py" or "code_tree_controller.py", with a CodeTreeController that receives the treeWidget each dialog already has.
No .ui file needs to be changed or recompiled. It would hold the tree loading (including supercid sub-codes), the common menu (add, rename, memo, color, delete, delete branch...), drag and drop reparenting, filtering, and delete_category_branch as a single transaction.
The controller emits menu_requested with the menu and the item before showing it, so each dialog adds its own entries, and codes_changed tells the modules to reload.
All reactions