TmpESRExperiment::TmpESRExperiment(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::TmpESRExperiment)
{
    ui->setupUi(this);
    wf=0;
    hposciloscope=0;
    timer = new QTimer(this);
   connect(ProjectManager::instance(),SIGNAL(projectChanged()),this,SLOT(onProjectChanged()));
   connect(timer,SIGNAL(timeout()),this,SLOT(on_timer()));
}
DesktopMainWindow::DesktopMainWindow(GodziApp* app, const std::string& configPath, const std::string& defaultMap)
: _app(app), _configPath(configPath), _defaultMap(defaultMap)
{
	initUi();
	_app->actionManager()->addAfterActionCallback(this);

	connect(_app, SIGNAL(projectChanged(osg::ref_ptr<Godzi::Project>, osg::ref_ptr<Godzi::Project>)), this, SLOT(onProjectChanged(osg::ref_ptr<Godzi::Project>, osg::ref_ptr<Godzi::Project>)));
}