Skip to content
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

Add sync group number to the timeline title bar and/or window browser tree #11

Open
mjbsc opened this issue Jul 12, 2023 · 1 comment
Open

Comments

@mjbsc
Copy link

mjbsc commented Jul 12, 2023

It would be useful to see the sync group of a window without having to right click and hover over the Synchronize menu item, like having it in the timeline window title bar and/or in the window browser. I did a PoC for the title bar (see below) and seems to work fine, but I'm not sure which place would be better.

At src/gtimeline.cpp:1623

   string composedName = myWindow->getName() + " @ " +
                         myWindow->getTrace()->getTraceNameNumbered();
 
+  if (myWindow->isSync()) {
+    composedName = to_string(myWindow->getSyncGroup() + 1) + " - " + composedName;
+  }
+
   this->SetTitle( wxString::FromUTF8( composedName.c_str() ) );
@executre
Copy link
Collaborator

Thanks for the suggestion!
We will try to integrate your code in a new function that could be used from main window in order to show the same name in the window browser.

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

No branches or pull requests

2 participants