|
|
|
@ -643,7 +643,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(mainContainer());
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
}
|
|
|
|
|
currRect = TQRect( 0, 0, -1, -1 );
|
|
|
|
|
startRectDraw( mapFromGlobal( e->globalPos() ), e->globalPos(), this, Rubber );
|
|
|
|
@ -1189,7 +1189,7 @@ void FormWindow::selectWidget( TQObject *o, bool select )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(mainContainer());
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
emitShowProperties( propertyWidget );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1198,7 +1198,7 @@ void FormWindow::selectWidget( TQObject *o, bool select )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(mainContainer());
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
emitShowProperties( propertyWidget );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1210,7 +1210,7 @@ void FormWindow::selectWidget( TQObject *o, bool select )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(w);
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
if ( !isPropertyShowingBlocked() )
|
|
|
|
|
emitShowProperties( propertyWidget );
|
|
|
|
|
WidgetSelection *s = usedSelections.tqfind( w );
|
|
|
|
@ -1242,7 +1242,7 @@ void FormWindow::selectWidget( TQObject *o, bool select )
|
|
|
|
|
else
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(mainContainer());
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
if ( !isPropertyShowingBlocked() )
|
|
|
|
|
emitShowProperties( propertyWidget );
|
|
|
|
|
emitSelectionChanged();
|
|
|
|
@ -1272,7 +1272,7 @@ void FormWindow::raiseSelection( TQWidget *w )
|
|
|
|
|
s->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FormWindow::tqrepaintSelection( TQWidget *w )
|
|
|
|
|
void FormWindow::repaintSelection( TQWidget *w )
|
|
|
|
|
{
|
|
|
|
|
WidgetSelection *s = usedSelections.tqfind( w );
|
|
|
|
|
if ( s )
|
|
|
|
@ -1290,7 +1290,7 @@ void FormWindow::clearSelection( bool changePropertyDisplay )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(mainContainer());
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
emitShowProperties( propertyWidget );
|
|
|
|
|
}
|
|
|
|
|
emitSelectionChanged();
|
|
|
|
@ -1593,7 +1593,7 @@ void FormWindow::focusOutEvent( TQFocusEvent * )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(mainContainer());
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1643,7 +1643,7 @@ void FormWindow::emitShowProperties( TQObject *w )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = w;
|
|
|
|
|
if ( opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
}
|
|
|
|
|
showPropertiesTimer->stop();
|
|
|
|
|
// showPropertiesTimer->start( 0, TRUE );
|
|
|
|
@ -2588,7 +2588,7 @@ void FormWindow::setMainContainer( TQWidget *w )
|
|
|
|
|
TQObject *opw = propertyWidget;
|
|
|
|
|
propertyWidget = TQT_TQOBJECT(mContainer);
|
|
|
|
|
if ( opw && opw->isWidgetType() )
|
|
|
|
|
tqrepaintSelection( (TQWidget*)opw );
|
|
|
|
|
repaintSelection( (TQWidget*)opw );
|
|
|
|
|
}
|
|
|
|
|
if ( project() ) {
|
|
|
|
|
LanguageInterface *iface = MetaDataBase::languageInterface( project()->language() );
|
|
|
|
|