mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-08 04:08:14 +02:00
Properly re-attaching events to PCell parameters page, so it does not become inactive.
This commit is contained in:
@@ -901,7 +901,6 @@ EditorOptionsInstPCellParam::update_pcell_parameters (const std::vector <tl::Var
|
||||
this->layout ()->addWidget (mp_pcell_parameters->page_widget ());
|
||||
|
||||
mp_pcell_parameters->set_state (pcp_state);
|
||||
mp_pcell_parameters->edited.add (this, &EditorOptionsInstPCellParam::parameters_page_edited);
|
||||
|
||||
} else {
|
||||
|
||||
@@ -913,6 +912,16 @@ EditorOptionsInstPCellParam::update_pcell_parameters (const std::vector <tl::Var
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
EditorOptionsInstPCellParam::attach_events ()
|
||||
{
|
||||
lay::EditorOptionsPageWidget::attach_events ();
|
||||
|
||||
if (mp_pcell_parameters.get ()) {
|
||||
mp_pcell_parameters->edited.add (this, &EditorOptionsInstPCellParam::parameters_page_edited);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
EditorOptionsInstPCellParam::parameters_page_edited ()
|
||||
{
|
||||
|
||||
@@ -183,6 +183,9 @@ public:
|
||||
private slots:
|
||||
void update_pcell_parameters ();
|
||||
|
||||
protected:
|
||||
virtual void attach_events ();
|
||||
|
||||
private:
|
||||
Ui::EditorOptionsInstPCellParam *mp_ui;
|
||||
std::unique_ptr<edt::PCellParametersPageBase> mp_pcell_parameters;
|
||||
|
||||
@@ -304,6 +304,7 @@ protected:
|
||||
virtual void technology_changed (const std::string & /*tech*/) { }
|
||||
virtual void activated () { }
|
||||
virtual void deactivated () { }
|
||||
virtual void attach_events ();
|
||||
|
||||
private:
|
||||
EditorOptionsPageCollection *mp_owner;
|
||||
@@ -316,7 +317,6 @@ private:
|
||||
|
||||
void on_active_cellview_changed ();
|
||||
void on_technology_changed ();
|
||||
void attach_events ();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user