File tree Expand file tree Collapse file tree 5 files changed +25
-0
lines changed
Expand file tree Collapse file tree 5 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -774,6 +774,7 @@ class Gui
774774 int height_px = 0 );
775775
776776 void showWorstTimingPath (bool setup);
777+ void clearTimingPath ();
777778
778779 // modify display controls
779780 void setDisplayControlsVisible (const std::string& name, bool value);
Original file line number Diff line number Diff line change @@ -872,6 +872,14 @@ void Gui::showWorstTimingPath(bool setup)
872872 main_window->getTimingWidget ()->showWorstTimingPath (setup);
873873}
874874
875+ void Gui::clearTimingPath ()
876+ {
877+ if (!enabled ()) {
878+ return ;
879+ }
880+ main_window->getTimingWidget ()->clearSelection ();
881+ }
882+
875883void Gui::selectClockviewerClock (const std::string& clock_name,
876884 std::optional<int > depth)
877885{
Original file line number Diff line number Diff line change @@ -341,6 +341,15 @@ void show_worst_path(bool setup = true)
341341 gui->showWorstTimingPath (setup);
342342}
343343
344+ void clear_timing_path ()
345+ {
346+ if (!check_gui (" clear_timing_path" )) {
347+ return ;
348+ }
349+ auto gui = gui::Gui::get ();
350+ gui->clearTimingPath ();
351+ }
352+
344353void clear_rulers ()
345354{
346355 if (!check_gui (" clear_rulers" )) {
Original file line number Diff line number Diff line change @@ -814,6 +814,12 @@ void TimingWidget::showWorstTimingPath(bool setup)
814814 }
815815}
816816
817+ void TimingWidget::clearSelection ()
818+ {
819+ setup_timing_table_view_->clearSelection ();
820+ hold_timing_table_view_->clearSelection ();
821+ }
822+
817823void TimingWidget::modelWasReset ()
818824{
819825 setup_timing_table_view_->resizeColumnsToContents ();
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ class TimingWidget : public QDockWidget
7272 void reportSlackHistogramPaths (const std::set<const sta::Pin*>& report_pins,
7373 const std::string& path_group_name);
7474 void showWorstTimingPath (bool setup);
75+ void clearSelection ();
7576
7677 signals:
7778 void highlightTimingPath (TimingPath* timing_path);
You can’t perform that action at this time.
0 commit comments