#include <QApplication>
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
+
HYDROGUI_Operation::HYDROGUI_Operation( HYDROGUI_Module* theModule )
: LightApp_Operation(),
myModule( theModule ),
HYDROGUI_InputPanel* HYDROGUI_Operation::inputPanel() const
{
+ DEBTRACE("inputPanel");
if( !myPanel )
{
( ( HYDROGUI_Operation* )this )->myPanel = createInputPanel();
- connect( myPanel, SIGNAL( panelApplyAndClose() ), this, SLOT( onApplyAndClose() ) );
- connect( myPanel, SIGNAL( panelApply() ), this, SLOT( onApply() ) );
- connect( myPanel, SIGNAL( panelCancel() ), this, SLOT( onCancel() ) );
- connect( myPanel, SIGNAL( panelHelp() ), this, SLOT( onHelp() ) );
+ if (myPanel)
+ {
+ connect( myPanel, SIGNAL( panelApplyAndClose() ), this, SLOT( onApplyAndClose() ) );
+ connect( myPanel, SIGNAL( panelApply() ), this, SLOT( onApply() ) );
+ connect( myPanel, SIGNAL( panelCancel() ), this, SLOT( onCancel() ) );
+ connect( myPanel, SIGNAL( panelHelp() ), this, SLOT( onHelp() ) );
+ }
}
return myPanel;
}
this, SLOT( OnTransformation() ) );
connect( myMainView, SIGNAL(destroyed()), this, SLOT( onMainViewDestr() ) );
- connect( myViewPort, SIGNAL(destroyed()), this, SLOT( onViewPortDestr() ) );
if( !myViewPort )
{
{
myViewPort->setBackgroundColor( myMainView->getViewPort()->backgroundColor() );
+ connect( myViewPort, SIGNAL(destroyed()), this, SLOT( onViewPortDestr() ) );
connect( myViewPort, SIGNAL( vpMouseEvent( QMouseEvent* ) ),
this, SLOT( OnMouseEvent( QMouseEvent* ) ) );
connect( myViewPort, SIGNAL( vpResizeEvent( QResizeEvent* ) ),