ZColorMapWidgetWithEditorWindow::ZColorMapWidgetWithEditorWindow(ZColorMapParameter *cm, QMainWindow *minWin, QWidget *parent) : ZClickableColorMapLabel(cm, parent), m_colorMap(cm), m_mainWin(minWin), m_editorWindow(NULL) { if (!m_mainWin) { LWARN() << "If Main Window is empty, this widget will show nothing when clicked."; } else { connect(m_mainWin, SIGNAL(destroyed()), this, SLOT(mainWindowDestroyed())); } // if (m_mainWin) { // connect(m_mainWin, SIGNAL(closed()), this, SLOT(mainWindowClosed())); // } }
Z3DTransferFunctionWidgetWithEditorWindow::Z3DTransferFunctionWidgetWithEditorWindow(Z3DTransferFunctionParameter *tf, QMainWindow *minWin, QWidget *parent) : ZClickableTransferFunctionLabel(tf, parent) , m_transferFunction(tf) , m_mainWin(minWin) , m_editorWindow(NULL) { if (!m_mainWin) { LWARN() << "If Main Window is empty, this widget will show nothing when clicked."; } else { connect(m_mainWin, SIGNAL(destroyed()), this, SLOT(mainWindowDestroyed())); } // if (m_mainWin) { // connect(m_mainWin, SIGNAL(closed()), this, SLOT(mainWindowClosed())); // } }