コード例 #1
0
void ShutterToolMainWindow::makeConnections()
{
	connect( model(), SIGNAL(aodShutterControlConnected(bool)), this, SLOT(enableAutomaticShuttersOpenGUI(bool)) );
	connect( model(), SIGNAL(shuttersConnected(bool)), this, SLOT(enableShutterControlGUI(bool)) );
	connect( model(), SIGNAL(preInjectionControlsDisabled()), this, SLOT(onInjection()) );
	connect( model(), SIGNAL(postInjectionControlsEnabled()), this, SLOT(onPostInjection()) );

	connect( enableAutomaticShuttersOpenButton_, SIGNAL(clicked()), this, SLOT(onEnableButtonClicked()) );
	connect( disableAutomaticShuttersOpenButton_, SIGNAL(clicked()), this, SLOT(onDisableButtonClicked()) );

	connect( openShuttersButton_, SIGNAL(clicked()), this, SLOT(onOpenButtonClicked()) );
	connect( closeShuttersButton_, SIGNAL(clicked()), this, SLOT(onCloseButtonClicked()) );

	connect( model(), SIGNAL(shuttersOpen()), this, SLOT(onModelOpened()) );
	connect( model(), SIGNAL(shuttersClosed()), this, SLOT(onModelClosed()) );
	connect( model(), SIGNAL(shuttersBetween()), this, SLOT(onModelBetween()) );
}
コード例 #2
0
ファイル: ExternalPlugin.cpp プロジェクト: jbl5088/OpenStudio
void ExternalPlugin::modelClosed(const std::string& key)
{
    LOG(Trace, "modelClosed, key = " << key);

    onModelClosed(key);
}