void tcpCock::run()
{
tcpCockGui *myPluginGui=new tcpCockGui(mQGisApp, QgisGui::ModalDialogFlags);
//listen for when the layer has been made so we can draw it
connect(myPluginGui,
SIGNAL(drawRasterLayer
(QString)),
this,
SLOT(drawRasterLayer
(QString)));
connect(myPluginGui,SIGNAL(isCheckBoxClicked(bool)),this,SLOT(settingServer(bool)));
connect(this,SIGNAL(startRender()),this,SLOT(render()));
myPluginGui->show();
}
// Unload the plugin by cleaning up the GUI
void tcpCock::unload()
{
// remove the GUI
mQGisIface->removePluginMenu("&tcpCock",mQActionPointer);
mQGisIface->removeToolBarIcon(mQActionPointer);
delete mQActionPointer;
}
void tcpCock::run()
{
tcpCockGui *myPluginGui=new tcpCockGui(mQGisApp, QgisGui::ModalDialogFlags);
//listen for when the layer has been made so we can draw it
connect(myPluginGui, SIGNAL(drawRasterLayer(QString)), this, SLOT(drawRasterLayer(QString)));
connect(myPluginGui, SIGNAL(drawVectorLayer(QString,QString,QString)), this, SLOT(drawVectorLayer(QString,QString,QString)));
connect(myPluginGui,SIGNAL(isCheckBoxClicked(bool)),this,SLOT(settingServer(bool)));
connect(this,SIGNAL(startRender()),this,SLOT(render()));
myPluginGui->show();
}
// Unload the plugin by cleaning up the GUI
void tcpCock::unload()
{
// remove the GUI
mQGisIface->removePluginMenu("&tcpCock",mQActionPointer);
mQGisIface->removeToolBarIcon(mQActionPointer);
delete mQActionPointer;
}
To copy to clipboard, switch view to plain text mode
This code is also part of same file, but no problem are reported for connect in this slot.
Bookmarks