mirror of https://github.com/KLayout/klayout.git
Some cleanup
This commit is contained in:
parent
553d973b69
commit
a0cbc2355a
|
|
@ -264,7 +264,7 @@ static std::string
|
|||
log_event_to_text (const gtf::LogEventBase *e)
|
||||
{
|
||||
std::string t = e->name ();
|
||||
/* @@@ too much:
|
||||
/* too much:
|
||||
std::vector< std::pair<std::string, std::string> > attrs;
|
||||
e->attributes (attrs);
|
||||
for (std::vector< std::pair<std::string, std::string> >::const_iterator a = attrs.begin (); a != attrs.end (); ++a) {
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@
|
|||
</property>
|
||||
<item>
|
||||
<widget class="QToolButton" name="rerun_button">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Execute script again</string>
|
||||
</property>
|
||||
|
|
|
|||
|
|
@ -68,9 +68,8 @@ D25View::D25View (lay::Dispatcher *root, lay::LayoutView *view)
|
|||
connect (mp_ui->show_all_action, SIGNAL (triggered()), this, SLOT (show_all_triggered()));
|
||||
connect (mp_ui->show_selected_action, SIGNAL (triggered()), this, SLOT (show_selected_triggered()));
|
||||
|
||||
mp_ui->rerun_button->setEnabled (false);
|
||||
|
||||
mp_ui->gl_stack->setCurrentIndex (2);
|
||||
mp_ui->rerun_button->setEnabled (false);
|
||||
|
||||
lay::activate_help_links (mp_ui->doc_label);
|
||||
lay::activate_help_links (mp_ui->empty_label);
|
||||
|
|
@ -193,7 +192,6 @@ D25View::begin (const std::string &generator)
|
|||
|
||||
if (! mp_ui->d25_view->has_error ()) {
|
||||
m_generator = generator;
|
||||
mp_ui->rerun_button->setEnabled (true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -293,6 +291,7 @@ D25View::finish ()
|
|||
// NOTE: needs to be delayed to allow the geometry to be updated before (initial call)
|
||||
dm_fit ();
|
||||
|
||||
mp_ui->rerun_button->setEnabled (true);
|
||||
mp_ui->gl_stack->setCurrentIndex (0);
|
||||
|
||||
}
|
||||
|
|
@ -314,6 +313,7 @@ D25View::init_failed ()
|
|||
{
|
||||
mp_ui->error_text->setPlainText (tl::to_qstring (mp_ui->d25_view->error ()));
|
||||
mp_ui->gl_stack->setCurrentIndex (1);
|
||||
mp_ui->rerun_button->setEnabled (false);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -517,7 +517,6 @@ void
|
|||
D25ViewWidget::clear ()
|
||||
{
|
||||
m_layers.clear ();
|
||||
m_layer_to_info.clear ();
|
||||
m_vertex_chunks.clear ();
|
||||
m_line_chunks.clear ();
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,6 @@ public:
|
|||
void mouseMoveEvent (QMouseEvent *event);
|
||||
|
||||
void attach_view(lay::LayoutView *view);
|
||||
// @@@ void refresh_view ();
|
||||
|
||||
QVector3D hit_point_with_scene(const QVector3D &line_dir);
|
||||
void refresh ();
|
||||
|
|
@ -198,7 +197,6 @@ private:
|
|||
std::list<line_chunks_type> m_line_chunks;
|
||||
|
||||
std::vector<LayerInfo> m_layers;
|
||||
std::multimap<std::pair<size_t, size_t>, size_t> m_layer_to_info; // @@@
|
||||
|
||||
void initializeGL ();
|
||||
void paintGL ();
|
||||
|
|
|
|||
Loading…
Reference in New Issue