Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 24, 2025

When users manually create a new tab by clicking the "+" button in TTD Memory or TTD Calls query widgets, the new tab now inherits the query parameters from the current tab instead of starting with empty/default values.

Changes Made

TTD Memory Widget

  • New tabs now duplicate start address, end address, and access type checkboxes (Read/Write/Execute)
  • Added getter methods: getStartAddress(), getEndAddress(), getCurrentAccessType()
  • Added setParameters() methods for setting parameters without executing queries

TTD Calls Widget

  • New tabs now duplicate symbols, start address, and end address
  • Added getter methods: getSymbols(), getStartAddress(), getEndAddress()
  • Added setParameters() methods for setting parameters without executing queries

Implementation Details

The solution modifies the createNewTab() methods in both TTDMemoryWidget and TTDCallsWidget to:

  1. Extract parameters from the current tab (if one exists)
  2. Create the new tab as before
  3. Populate the new tab with the extracted parameters using the new setParameters() methods

The setParameters() methods are variants of the existing setParametersAndQuery() methods but without triggering the query execution, making them perfect for parameter duplication.

User Experience

This enhancement significantly improves debugging workflows by eliminating repetitive parameter entry. Users can now:

  • Set up complex query parameters once
  • Create new tabs that inherit those parameters
  • Make minor adjustments for similar queries
  • Avoid re-entering the same addresses, symbols, or access types repeatedly

All existing functionality remains unchanged, ensuring backward compatibility.

Fixes #857.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: xusheng6 <94503187+xusheng6@users.noreply.github.com>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Duplicate the last tab's query parameters when a new tab is manually created in TTD memory/calls query widget Duplicate query parameters when creating new tabs in TTD memory/calls widgets Sep 24, 2025
Copilot AI requested a review from xusheng6 September 24, 2025 10:30
@xusheng6 xusheng6 marked this pull request as ready for review September 25, 2025 06:14
@xusheng6 xusheng6 merged commit 62773d8 into dev Sep 25, 2025
1 check was pending
@xusheng6 xusheng6 deleted the copilot/fix-857 branch September 25, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate the last tab's query parameters when a new tab is manually created in TTD memory/calls query widget

3 participants