@ -454,7 +454,7 @@ void FormWindow::insertWidget()
pos - = r . topLeft ( ) ;
pos - = r . topLeft ( ) ;
np . append ( pos ) ;
np . append ( pos ) ;
}
}
MoveCommand * mv = new MoveCommand ( i18n ( " Reparent Widgets " ) , this ,
MoveCommand * mv = new MoveCommand ( i18n ( " Reparent Widgets " ) , this ,
lst , op , np , insertParent , pw ) ;
lst , op , np , insertParent , pw ) ;
@ -462,13 +462,13 @@ void FormWindow::insertWidget()
mainwindow - > resetTool ( ) ;
mainwindow - > resetTool ( ) ;
else
else
setCursorToAll ( CrossCursor , w ) ;
setCursorToAll ( CrossCursor , w ) ;
InsertCommand * cmd = new InsertCommand ( i18n ( " Insert %1 " ) . arg ( w - > name ( ) ) , this , w , r ) ;
InsertCommand * cmd = new InsertCommand ( i18n ( " Insert %1 " ) . arg ( w - > name ( ) ) , this , w , r ) ;
TQPtrList < Command > commands ;
TQPtrList < Command > commands ;
commands . append ( mv ) ;
commands . append ( mv ) ;
commands . append ( cmd ) ;
commands . append ( cmd ) ;
MacroCommand * mc = new MacroCommand ( i18n ( " Insert %1 " ) . arg ( w - > name ( ) ) , this , commands ) ;
MacroCommand * mc = new MacroCommand ( i18n ( " Insert %1 " ) . arg ( w - > name ( ) ) , this , commands ) ;
commandHistory ( ) - > addCommand ( mc ) ;
commandHistory ( ) - > addCommand ( mc ) ;
mc - > execute ( ) ;
mc - > execute ( ) ;
@ -1999,7 +1999,7 @@ void FormWindow::selectAll()
void FormWindow : : layoutHorizontal ( )
void FormWindow : : layoutHorizontal ( )
{
{
TQWidgetList widgets ( selectedWidgets ( ) ) ;
TQWidgetList widgets ( selectedWidgets ( ) ) ;
LayoutHorizontalCommand * cmd = new LayoutHorizontalCommand ( i18n ( " Lay Out Qt:: Horizontally" ) ,
LayoutHorizontalCommand * cmd = new LayoutHorizontalCommand ( i18n ( " Lay Out Horizontally" ) ,
this , mainContainer ( ) , 0 , widgets ) ;
this , mainContainer ( ) , 0 , widgets ) ;
clearSelection ( FALSE ) ;
clearSelection ( FALSE ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
@ -2009,7 +2009,7 @@ void FormWindow::layoutHorizontal()
void FormWindow : : layoutVertical ( )
void FormWindow : : layoutVertical ( )
{
{
TQWidgetList widgets ( selectedWidgets ( ) ) ;
TQWidgetList widgets ( selectedWidgets ( ) ) ;
LayoutVerticalCommand * cmd = new LayoutVerticalCommand ( i18n ( " Lay Out Qt:: Vertically" ) ,
LayoutVerticalCommand * cmd = new LayoutVerticalCommand ( i18n ( " Lay Out Vertically" ) ,
this , mainContainer ( ) , 0 , widgets ) ;
this , mainContainer ( ) , 0 , widgets ) ;
clearSelection ( FALSE ) ;
clearSelection ( FALSE ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
@ -2019,7 +2019,7 @@ void FormWindow::layoutVertical()
void FormWindow : : layoutHorizontalSplit ( )
void FormWindow : : layoutHorizontalSplit ( )
{
{
TQWidgetList widgets ( selectedWidgets ( ) ) ;
TQWidgetList widgets ( selectedWidgets ( ) ) ;
LayoutHorizontalSplitCommand * cmd = new LayoutHorizontalSplitCommand ( i18n ( " Lay Out Qt:: Horizontally (in splitter)" ) ,
LayoutHorizontalSplitCommand * cmd = new LayoutHorizontalSplitCommand ( i18n ( " Lay Out Horizontally (in splitter)" ) ,
this , mainContainer ( ) , 0 , widgets ) ;
this , mainContainer ( ) , 0 , widgets ) ;
clearSelection ( FALSE ) ;
clearSelection ( FALSE ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
@ -2029,7 +2029,7 @@ void FormWindow::layoutHorizontalSplit()
void FormWindow : : layoutVerticalSplit ( )
void FormWindow : : layoutVerticalSplit ( )
{
{
TQWidgetList widgets ( selectedWidgets ( ) ) ;
TQWidgetList widgets ( selectedWidgets ( ) ) ;
LayoutVerticalSplitCommand * cmd = new LayoutVerticalSplitCommand ( i18n ( " Lay Out Qt:: Vertically (in splitter)" ) ,
LayoutVerticalSplitCommand * cmd = new LayoutVerticalSplitCommand ( i18n ( " Lay Out Vertically (in splitter)" ) ,
this , mainContainer ( ) , 0 , widgets ) ;
this , mainContainer ( ) , 0 , widgets ) ;
clearSelection ( FALSE ) ;
clearSelection ( FALSE ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
@ -2063,7 +2063,7 @@ void FormWindow::layoutHorizontalContainer( TQWidget *w )
insertedWidgets . find ( ( TQWidget * ) o ) )
insertedWidgets . find ( ( TQWidget * ) o ) )
widgets . append ( ( TQWidget * ) o ) ;
widgets . append ( ( TQWidget * ) o ) ;
}
}
LayoutHorizontalCommand * cmd = new LayoutHorizontalCommand ( i18n ( " Lay Out Children Qt:: Horizontally" ) ,
LayoutHorizontalCommand * cmd = new LayoutHorizontalCommand ( i18n ( " Lay Out Children Horizontally" ) ,
this , mainContainer ( ) , w , widgets ) ;
this , mainContainer ( ) , w , widgets ) ;
clearSelection ( FALSE ) ;
clearSelection ( FALSE ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
@ -2084,7 +2084,7 @@ void FormWindow::layoutVerticalContainer( TQWidget *w )
insertedWidgets . find ( ( TQWidget * ) o ) )
insertedWidgets . find ( ( TQWidget * ) o ) )
widgets . append ( ( TQWidget * ) o ) ;
widgets . append ( ( TQWidget * ) o ) ;
}
}
LayoutVerticalCommand * cmd = new LayoutVerticalCommand ( i18n ( " Lay Out Children Qt:: Vertically" ) ,
LayoutVerticalCommand * cmd = new LayoutVerticalCommand ( i18n ( " Lay Out Children Vertically" ) ,
this , mainContainer ( ) , w , widgets ) ;
this , mainContainer ( ) , w , widgets ) ;
clearSelection ( FALSE ) ;
clearSelection ( FALSE ) ;
commandHistory ( ) - > addCommand ( cmd ) ;
commandHistory ( ) - > addCommand ( cmd ) ;