58 class ClockTreeGraphicsView;
60 struct ClockTreeColors;
156 static std::size_t
highlightGates(
const std::vector<u32> &gateIds );
165 return mHighlightedGates;
173 void handleExtractClicked();
178 void handleFileAboutToClose();
183 void handleFitClicked()
const;
188 void handleSavePictureClicked();
193 void handleZoomToHighlightClicked();
198 void handleSelectionChanged();
206 void handleCoordinatesChanged(
double x,
double y );
211 void handleStyleChanged();
221 void scheduleRecolor();
230 const std::optional<std::string> &x_key,
231 const std::optional<std::string> &y_key );
236 void applyThemeColors()
const;
248 bool showError(
const QString &message );
253 void showWarning(
const QString &message )
const;
258 void updateActions()
const;
263 void highlightFromSelection();
270 std::size_t applyHighlight(
const std::vector<u32> &gateIds );
283 [[nodiscard]]
QColor gateColor(
u32 gateId,
const QColor &fallback )
const;
288 [[nodiscard]]
QColor backgroundColor()
const;
302 QAction *mZoomToHighlightAction;
324 bool mShowsError =
false;
ClockTreeViewer(QWidget *parent=nullptr)
~ClockTreeViewer() override
static std::size_t highlightGates(const std::vector< u32 > &gateIds)
static constexpr auto sPluginName
bool savePicture(const QString &filename)
const QSet< u32 > & highlightedGates() const
static ClockTreeViewer * instance()
void setupToolbar(Toolbar *toolbar) override
static bool setClockTree(const cte::ClockTree &tree, const ctv::StyleOverrides &overrides=ctv::StyleOverrides(), const std::optional< std::string > &x_key=ctv::DEFAULT_X_KEY, const std::optional< std::string > &y_key=ctv::DEFAULT_Y_KEY)
const std::string DEFAULT_Y_KEY
const std::string DEFAULT_X_KEY
QObject * parent() const const