mirror of https://github.com/KLayout/klayout.git
WIP: first debugging
This commit is contained in:
parent
a737b80b65
commit
7fe0e95eee
|
|
@ -173,6 +173,7 @@ LayoutView::init_ui ()
|
||||||
QVBoxLayout *vbl = new QVBoxLayout (this);
|
QVBoxLayout *vbl = new QVBoxLayout (this);
|
||||||
vbl->setContentsMargins (0, 0, 0, 0);
|
vbl->setContentsMargins (0, 0, 0, 0);
|
||||||
vbl->setSpacing (0);
|
vbl->setSpacing (0);
|
||||||
|
vbl->addWidget (view_object_widget ());
|
||||||
|
|
||||||
if ((options () & LV_NoHierarchyPanel) == 0 && (options () & LV_Naked) == 0) {
|
if ((options () & LV_NoHierarchyPanel) == 0 && (options () & LV_Naked) == 0) {
|
||||||
|
|
||||||
|
|
@ -283,6 +284,8 @@ LayoutView::init_ui ()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config_setup ();
|
||||||
|
|
||||||
mp_timer = new QTimer (this);
|
mp_timer = new QTimer (this);
|
||||||
connect (mp_timer, SIGNAL (timeout ()), this, SLOT (timer ()));
|
connect (mp_timer, SIGNAL (timeout ()), this, SLOT (timer ()));
|
||||||
mp_timer->start (timer_interval);
|
mp_timer->start (timer_interval);
|
||||||
|
|
@ -1119,13 +1122,13 @@ namespace lay
|
||||||
LayoutView::LayoutView (db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options)
|
LayoutView::LayoutView (db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options)
|
||||||
: LayoutViewBase (this, mgr, editable, plugin_parent, options)
|
: LayoutViewBase (this, mgr, editable, plugin_parent, options)
|
||||||
{
|
{
|
||||||
// .. nothing yet ..
|
config_setup ();
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutView::LayoutView (lay::LayoutView *source, db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options)
|
LayoutView::LayoutView (lay::LayoutView *source, db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options)
|
||||||
: LayoutViewBase (this, source, mgr, editable, plugin_parent, options)
|
: LayoutViewBase (this, source, mgr, editable, plugin_parent, options)
|
||||||
{
|
{
|
||||||
// .. nothing yet ..
|
config_setup ();
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: this methods needs to be called "frequently"
|
// NOTE: this methods needs to be called "frequently"
|
||||||
|
|
|
||||||
|
|
@ -421,8 +421,6 @@ LayoutViewBase::init (db::Manager *mgr)
|
||||||
}
|
}
|
||||||
|
|
||||||
create_plugins ();
|
create_plugins ();
|
||||||
|
|
||||||
config_setup ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutViewBase::~LayoutViewBase ()
|
LayoutViewBase::~LayoutViewBase ()
|
||||||
|
|
|
||||||
|
|
@ -882,7 +882,7 @@ void
|
||||||
ViewObjectWidget::leaveEvent (QEvent * /*event*/)
|
ViewObjectWidget::leaveEvent (QEvent * /*event*/)
|
||||||
{
|
{
|
||||||
BEGIN_PROTECTED
|
BEGIN_PROTECTED
|
||||||
begin_mouse_event ();
|
send_leave_event ();
|
||||||
END_PROTECTED
|
END_PROTECTED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -938,7 +938,7 @@ BEGIN_PROTECTED
|
||||||
p = db::DPoint (e->position ().x (), e->position ().y ());
|
p = db::DPoint (e->position ().x (), e->position ().y ());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
send_mouse_press_event (p, qt_to_buttons (e->buttons (), e->modifiers ()));
|
send_mouse_release_event (p, qt_to_buttons (e->buttons (), e->modifiers ()));
|
||||||
|
|
||||||
END_PROTECTED
|
END_PROTECTED
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue