Skip to content

Commit

Permalink
Merge pull request #6302 from The-OpenROAD-Project-staging/gui-update…
Browse files Browse the repository at this point in the history
…-timing-report

Gui update timing report
  • Loading branch information
maliberty authored Dec 4, 2024
2 parents 56ef523 + 8b46df0 commit 2e6a06f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,13 @@ gui::select_chart
| ---- | ---- |
| `name` | of the chart. For example, "Endpoint Slack". |

### Update timing report

Update the paths in the Timing Report widget:

```tcl
gui::update_timing_report
```

## License

Expand Down
1 change: 1 addition & 0 deletions src/gui/include/gui/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ class Gui

void selectHelp(const std::string& item);
void selectChart(const std::string& name);
void updateTimingReport();

// accessors for to add and remove commands needed to restore the state of the
// gui
Expand Down
6 changes: 6 additions & 0 deletions src/gui/src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include "ruler.h"
#include "scriptWidget.h"
#include "sta/StaMain.hh"
#include "timingWidget.h"
#include "utl/Logger.h"
#include "utl/exception.h"

Expand Down Expand Up @@ -1318,6 +1319,11 @@ void Gui::selectChart(const std::string& name)
#endif
}

void Gui::updateTimingReport()
{
main_window->getTimingWidget()->populatePaths();
}

class SafeApplication : public QApplication
{
public:
Expand Down
9 changes: 9 additions & 0 deletions src/gui/src/gui.i
Original file line number Diff line number Diff line change
Expand Up @@ -758,4 +758,13 @@ void select_chart(const std::string& name)
auto gui = gui::Gui::get();
gui->selectChart(name);
}

void update_timing_report()
{
if (!check_gui("update_timing_report")) {
return;
}
auto gui = gui::Gui::get();
gui->updateTimingReport();
}
%} // inline
1 change: 1 addition & 0 deletions src/gui/src/mainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class MainWindow : public QMainWindow, public ord::OpenRoadObserver
Inspector* getInspector() const { return inspector_; }
HelpWidget* getHelpViewer() const { return help_widget_; }
ChartsWidget* getChartsWidget() const { return charts_widget_; }
TimingWidget* getTimingWidget() const { return timing_widget_; }

std::vector<std::string> getRestoreTclCommands();

Expand Down

0 comments on commit 2e6a06f

Please sign in to comment.