@ -219,9 +219,9 @@ MainWindow::MainWindow( KDevDesignerPart *part, bool asClient, bool single, cons
setupEditActions ( ) ;
setupEditActions ( ) ;
setupProjectActions ( ) ;
setupProjectActions ( ) ;
setupSearchActions ( ) ;
setupSearchActions ( ) ;
tq layoutToolBar = new TQToolBar ( this , " Layout " ) ;
layoutToolBar = new TQToolBar ( this , " Layout " ) ;
tq layoutToolBar- > setCloseMode ( TQDockWindow : : Undocked ) ;
layoutToolBar- > setCloseMode ( TQDockWindow : : Undocked ) ;
addToolBar ( tq layoutToolBar, i18n ( " Layout " ) ) ;
addToolBar ( layoutToolBar, i18n ( " Layout " ) ) ;
interpreterPluginManager = 0 ;
interpreterPluginManager = 0 ;
setupToolActions ( ) ;
setupToolActions ( ) ;
setupLayoutActions ( ) ;
setupLayoutActions ( ) ;
@ -255,8 +255,8 @@ MainWindow::MainWindow( KDevDesignerPart *part, bool asClient, bool single, cons
connect ( tqApp - > clipboard ( ) , TQT_SIGNAL ( dataChanged ( ) ) ,
connect ( tqApp - > clipboard ( ) , TQT_SIGNAL ( dataChanged ( ) ) ,
this , TQT_SLOT ( clipboardChanged ( ) ) ) ;
this , TQT_SLOT ( clipboardChanged ( ) ) ) ;
clipboardChanged ( ) ;
clipboardChanged ( ) ;
tq layoutChilds = FALSE ;
layoutChilds = FALSE ;
tq layoutSelected = FALSE ;
layoutSelected = FALSE ;
breakLayout = FALSE ;
breakLayout = FALSE ;
backPix = TRUE ;
backPix = TRUE ;
@ -273,8 +273,8 @@ MainWindow::MainWindow( KDevDesignerPart *part, bool asClient, bool single, cons
delete w ;
delete w ;
w = WidgetFactory : : create ( WidgetDatabase : : idFromClassName ( TQFRAME_OBJECT_NAME_STRING ) , this , 0 , FALSE ) ;
w = WidgetFactory : : create ( WidgetDatabase : : idFromClassName ( TQFRAME_OBJECT_NAME_STRING ) , this , 0 , FALSE ) ;
delete w ;
delete w ;
setAppropriate ( ( TQDockWindow * ) actionEditor - > tq parentWidget( ) , FALSE ) ;
setAppropriate ( ( TQDockWindow * ) actionEditor - > parentWidget( ) , FALSE ) ;
actionEditor - > tq parentWidget( ) - > hide ( ) ;
actionEditor - > parentWidget( ) - > hide ( ) ;
assistant = new TQAssistantClient ( assistantPath ( ) , TQT_TQOBJECT ( this ) ) ;
assistant = new TQAssistantClient ( assistantPath ( ) , TQT_TQOBJECT ( this ) ) ;
@ -408,7 +408,7 @@ void MainWindow::setupHierarchyView()
" <p>The Object Explorer provides an overview of the relationships "
" <p>The Object Explorer provides an overview of the relationships "
" between the widgets in a form. You can use the clipboard functions using "
" between the widgets in a form. You can use the clipboard functions using "
" a context menu for each item in the view. It is also useful for selecting widgets "
" a context menu for each item in the view. It is also useful for selecting widgets "
" in forms that have complex tq layouts.</p>"
" in forms that have complex layouts.</p>"
" <p>The columns can be resized by dragging the separator in the list's header.</p> "
" <p>The columns can be resized by dragging the separator in the list's header.</p> "
" <p>The second tab shows all the form's slots, class variables, includes, etc.</p> " ) ) ;
" <p>The second tab shows all the form's slots, class variables, includes, etc.</p> " ) ) ;
dw - > show ( ) ;
dw - > show ( ) ;
@ -742,7 +742,7 @@ void MainWindow::helpContents()
showClassDocu = FALSE ;
showClassDocu = FALSE ;
break ;
break ;
}
}
tqfocusWidget = tqfocusWidget - > tq parentWidget( ) ;
tqfocusWidget = tqfocusWidget - > parentWidget( ) ;
}
}
TQString source = " designer-manual.html " ;
TQString source = " designer-manual.html " ;
@ -770,9 +770,9 @@ void MainWindow::helpContents()
TQMetaObject * mo = propertyEditor - > tqmetaObjectOfCurrentProperty ( ) ;
TQMetaObject * mo = propertyEditor - > tqmetaObjectOfCurrentProperty ( ) ;
TQString s ;
TQString s ;
TQString cp = propertyEditor - > currentProperty ( ) ;
TQString cp = propertyEditor - > currentProperty ( ) ;
if ( cp = = " tq layoutMargin" ) {
if ( cp = = " layoutMargin" ) {
source = propertyDocumentation [ " TQLayout/margin " ] ;
source = propertyDocumentation [ " TQLayout/margin " ] ;
} else if ( cp = = " tq layoutSpacing" ) {
} else if ( cp = = " layoutSpacing" ) {
source = propertyDocumentation [ " TQLayout/spacing " ] ;
source = propertyDocumentation [ " TQLayout/spacing " ] ;
} else if ( cp = = " toolTip " ) {
} else if ( cp = = " toolTip " ) {
source = " tqtooltip.html#details " ;
source = " tqtooltip.html#details " ;
@ -964,7 +964,7 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e )
while ( w ) {
while ( w ) {
if ( : : tqqt_cast < PropertyList * > ( w ) )
if ( : : tqqt_cast < PropertyList * > ( w ) )
break ;
break ;
w = w - > tq parentWidget( TRUE ) ;
w = w - > parentWidget( TRUE ) ;
}
}
if ( w ) {
if ( w ) {
propertyEditor - > propertyList ( ) - > showCurrentWhatsThis ( ) ;
propertyEditor - > propertyList ( ) - > showCurrentWhatsThis ( ) ;
@ -1001,8 +1001,8 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e )
: : tqqt_cast < TQComboBox * > ( w ) | |
: : tqqt_cast < TQComboBox * > ( w ) | |
: : tqqt_cast < PopupMenuEditor * > ( w ) | |
: : tqqt_cast < PopupMenuEditor * > ( w ) | |
: : tqqt_cast < QDesignerToolBarSeparator * > ( w ) )
: : tqqt_cast < QDesignerToolBarSeparator * > ( w ) )
w = w - > tq parentWidget( ) ;
w = w - > parentWidget( ) ;
TQWidget * pw = w - > tq parentWidget( ) ;
TQWidget * pw = w - > parentWidget( ) ;
while ( pw ) {
while ( pw ) {
if ( : : tqqt_cast < FormWindow * > ( pw ) ) {
if ( : : tqqt_cast < FormWindow * > ( pw ) ) {
( ( FormWindow * ) pw ) - > emitShowProperties ( TQT_TQOBJECT ( w ) ) ;
( ( FormWindow * ) pw ) - > emitShowProperties ( TQT_TQOBJECT ( w ) ) ;
@ -1012,7 +1012,7 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e )
! : : tqqt_cast < TQComboBox * > ( o ) & &
! : : tqqt_cast < TQComboBox * > ( o ) & &
! : : tqqt_cast < QDesignerToolBarSeparator * > ( o ) ) ;
! : : tqqt_cast < QDesignerToolBarSeparator * > ( o ) ) ;
}
}
pw = pw - > tq parentWidget( ) ;
pw = pw - > parentWidget( ) ;
}
}
}
}
if ( o & & ( : : tqqt_cast < QDesignerToolBar * > ( o ) | | o - > inherits ( TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING ) )
if ( o & & ( : : tqqt_cast < QDesignerToolBar * > ( o ) | | o - > inherits ( TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING ) )
@ -1151,7 +1151,7 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e )
: : tqqt_cast < SizeHandle * > ( o ) | |
: : tqqt_cast < SizeHandle * > ( o ) | |
: : tqqt_cast < OrderIndicator * > ( o ) )
: : tqqt_cast < OrderIndicator * > ( o ) )
break ;
break ;
if ( WidgetFactory : : tq layoutType( ( TQWidget * ) o - > tqparent ( ) ) ! = WidgetFactory : : NoLayout ) {
if ( WidgetFactory : : layoutType( ( TQWidget * ) o - > tqparent ( ) ) ! = WidgetFactory : : NoLayout ) {
( ( FormWindow * ) w ) - > updateSelection ( ( TQWidget * ) o ) ;
( ( FormWindow * ) w ) - > updateSelection ( ( TQWidget * ) o ) ;
if ( e - > type ( ) ! = TQEvent : : Resize )
if ( e - > type ( ) ! = TQEvent : : Resize )
( ( FormWindow * ) w ) - > updateChildSelections ( ( TQWidget * ) o ) ;
( ( FormWindow * ) w ) - > updateChildSelections ( ( TQWidget * ) o ) ;
@ -1210,7 +1210,7 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e )
while ( w ) {
while ( w ) {
if ( : : tqqt_cast < SourceEditor * > ( w ) )
if ( : : tqqt_cast < SourceEditor * > ( w ) )
break ;
break ;
w = w - > tq parentWidget( TRUE ) ;
w = w - > parentWidget( TRUE ) ;
}
}
if ( : : tqqt_cast < SourceEditor * > ( w ) )
if ( : : tqqt_cast < SourceEditor * > ( w ) )
( ( SourceEditor * ) w ) - > checkTimeStamp ( ) ;
( ( SourceEditor * ) w ) - > checkTimeStamp ( ) ;
@ -1362,7 +1362,7 @@ bool MainWindow::unregisterClient( FormWindow *w )
if ( actionEditor - > form ( ) = = w ) {
if ( actionEditor - > form ( ) = = w ) {
actionEditor - > setFormWindow ( 0 ) ;
actionEditor - > setFormWindow ( 0 ) ;
actionEditor - > tq parentWidget( ) - > hide ( ) ;
actionEditor - > parentWidget( ) - > hide ( ) ;
}
}
return TRUE ;
return TRUE ;
@ -1384,16 +1384,16 @@ void MainWindow::activeWindowChanged( TQWidget *w )
formWindow ( ) - > clearSelection ( ) ;
formWindow ( ) - > clearSelection ( ) ;
}
}
workspace ( ) - > activeFormChanged ( fw ) ;
workspace ( ) - > activeFormChanged ( fw ) ;
setAppropriate ( ( TQDockWindow * ) actionEditor - > tq parentWidget( ) ,
setAppropriate ( ( TQDockWindow * ) actionEditor - > parentWidget( ) ,
: : tqqt_cast < TQMainWindow * > ( lastActiveFormWindow - > mainContainer ( ) ) ) ;
: : tqqt_cast < TQMainWindow * > ( lastActiveFormWindow - > mainContainer ( ) ) ) ;
if ( appropriate ( ( TQDockWindow * ) actionEditor - > tq parentWidget( ) ) ) {
if ( appropriate ( ( TQDockWindow * ) actionEditor - > parentWidget( ) ) ) {
if ( actionEditor - > wantToBeShown ( ) )
if ( actionEditor - > wantToBeShown ( ) )
actionEditor - > tq parentWidget( ) - > show ( ) ;
actionEditor - > parentWidget( ) - > show ( ) ;
} else {
} else {
TQWidget * mc = 0 ;
TQWidget * mc = 0 ;
if ( ofw & & ( mc = ofw - > mainContainer ( ) ) & & : : tqqt_cast < TQMainWindow * > ( mc ) )
if ( ofw & & ( mc = ofw - > mainContainer ( ) ) & & : : tqqt_cast < TQMainWindow * > ( mc ) )
actionEditor - > setWantToBeShown ( ! actionEditor - > tq parentWidget( ) - > isHidden ( ) ) ;
actionEditor - > setWantToBeShown ( ! actionEditor - > parentWidget( ) - > isHidden ( ) ) ;
actionEditor - > tq parentWidget( ) - > hide ( ) ;
actionEditor - > parentWidget( ) - > hide ( ) ;
}
}
actionEditor - > setFormWindow ( lastActiveFormWindow ) ;
actionEditor - > setFormWindow ( lastActiveFormWindow ) ;
@ -2003,8 +2003,8 @@ void MainWindow::clipboardChanged()
void MainWindow : : selectionChanged ( )
void MainWindow : : selectionChanged ( )
{
{
tq layoutChilds = FALSE ;
layoutChilds = FALSE ;
tq layoutSelected = FALSE ;
layoutSelected = FALSE ;
breakLayout = FALSE ;
breakLayout = FALSE ;
if ( ! formWindow ( ) ) {
if ( ! formWindow ( ) ) {
actionEditCut - > setEnabled ( FALSE ) ;
actionEditCut - > setEnabled ( FALSE ) ;
@ -2041,7 +2041,7 @@ void MainWindow::selectionChanged()
int unlaidout = 0 ;
int unlaidout = 0 ;
int laidout = 0 ;
int laidout = 0 ;
for ( TQWidget * w = widgets . first ( ) ; w ; w = widgets . next ( ) ) {
for ( TQWidget * w = widgets . first ( ) ; w ; w = widgets . next ( ) ) {
if ( ! w - > tq parentWidget( ) | | WidgetFactory : : tq layoutType( w - > tq parentWidget( ) ) = = WidgetFactory : : NoLayout )
if ( ! w - > parentWidget( ) | | WidgetFactory : : layoutType( w - > parentWidget( ) ) = = WidgetFactory : : NoLayout )
unlaidout + + ;
unlaidout + + ;
else
else
laidout + + ;
laidout + + ;
@ -2053,27 +2053,27 @@ void MainWindow::selectionChanged()
actionEditGridLayout - > setEnabled ( unlaidout > 1 ) ;
actionEditGridLayout - > setEnabled ( unlaidout > 1 ) ;
actionEditBreakLayout - > setEnabled ( laidout > 0 ) ;
actionEditBreakLayout - > setEnabled ( laidout > 0 ) ;
actionEditAdjustSize - > setEnabled ( laidout > 0 ) ;
actionEditAdjustSize - > setEnabled ( laidout > 0 ) ;
tq layoutSelected = unlaidout > 1 ;
layoutSelected = unlaidout > 1 ;
breakLayout = laidout > 0 ;
breakLayout = laidout > 0 ;
} else if ( selectedWidgets = = 1 ) {
} else if ( selectedWidgets = = 1 ) {
TQWidget * w = widgets . first ( ) ;
TQWidget * w = widgets . first ( ) ;
bool isContainer = WidgetDatabase : : isContainer ( WidgetDatabase : : idFromClassName ( WidgetFactory : : classNameOf ( TQT_TQOBJECT ( w ) ) ) ) | |
bool isContainer = WidgetDatabase : : isContainer ( WidgetDatabase : : idFromClassName ( WidgetFactory : : classNameOf ( TQT_TQOBJECT ( w ) ) ) ) | |
w = = formWindow ( ) - > mainContainer ( ) ;
w = = formWindow ( ) - > mainContainer ( ) ;
actionEditAdjustSize - > setEnabled ( ! w - > tq parentWidget( ) | |
actionEditAdjustSize - > setEnabled ( ! w - > parentWidget( ) | |
WidgetFactory : : tq layoutType( w - > tq parentWidget( ) ) = = WidgetFactory : : NoLayout ) ;
WidgetFactory : : layoutType( w - > parentWidget( ) ) = = WidgetFactory : : NoLayout ) ;
if ( ! isContainer ) {
if ( ! isContainer ) {
actionEditHLayout - > setEnabled ( FALSE ) ;
actionEditHLayout - > setEnabled ( FALSE ) ;
actionEditVLayout - > setEnabled ( FALSE ) ;
actionEditVLayout - > setEnabled ( FALSE ) ;
actionEditGridLayout - > setEnabled ( FALSE ) ;
actionEditGridLayout - > setEnabled ( FALSE ) ;
if ( w - > tq parentWidget( ) & & WidgetFactory : : tq layoutType( w - > tq parentWidget( ) ) ! = WidgetFactory : : NoLayout ) {
if ( w - > parentWidget( ) & & WidgetFactory : : layoutType( w - > parentWidget( ) ) ! = WidgetFactory : : NoLayout ) {
actionEditBreakLayout - > setEnabled ( ! isAToolBarChild ( TQT_TQOBJECT ( w ) ) ) ;
actionEditBreakLayout - > setEnabled ( ! isAToolBarChild ( TQT_TQOBJECT ( w ) ) ) ;
breakLayout = TRUE ;
breakLayout = TRUE ;
} else {
} else {
actionEditBreakLayout - > setEnabled ( FALSE ) ;
actionEditBreakLayout - > setEnabled ( FALSE ) ;
}
}
} else {
} else {
if ( WidgetFactory : : tq layoutType( w ) = = WidgetFactory : : NoLayout ) {
if ( WidgetFactory : : layoutType( w ) = = WidgetFactory : : NoLayout ) {
if ( ! formWindow ( ) - > hasInsertedChildren ( w ) ) {
if ( ! formWindow ( ) - > hasInsertedChildren ( w ) ) {
actionEditHLayout - > setEnabled ( FALSE ) ;
actionEditHLayout - > setEnabled ( FALSE ) ;
actionEditVLayout - > setEnabled ( FALSE ) ;
actionEditVLayout - > setEnabled ( FALSE ) ;
@ -2084,9 +2084,9 @@ void MainWindow::selectionChanged()
actionEditVLayout - > setEnabled ( TRUE ) ;
actionEditVLayout - > setEnabled ( TRUE ) ;
actionEditGridLayout - > setEnabled ( TRUE ) ;
actionEditGridLayout - > setEnabled ( TRUE ) ;
actionEditBreakLayout - > setEnabled ( FALSE ) ;
actionEditBreakLayout - > setEnabled ( FALSE ) ;
tq layoutChilds = TRUE ;
layoutChilds = TRUE ;
}
}
if ( w - > tq parentWidget( ) & & WidgetFactory : : tq layoutType( w - > tq parentWidget( ) ) ! = WidgetFactory : : NoLayout ) {
if ( w - > parentWidget( ) & & WidgetFactory : : layoutType( w - > parentWidget( ) ) ! = WidgetFactory : : NoLayout ) {
actionEditBreakLayout - > setEnabled ( ! isAToolBarChild ( TQT_TQOBJECT ( w ) ) ) ;
actionEditBreakLayout - > setEnabled ( ! isAToolBarChild ( TQT_TQOBJECT ( w ) ) ) ;
breakLayout = TRUE ;
breakLayout = TRUE ;
}
}
@ -2101,7 +2101,7 @@ void MainWindow::selectionChanged()
} else if ( selectedWidgets = = 0 ) {
} else if ( selectedWidgets = = 0 ) {
actionEditAdjustSize - > setEnabled ( TRUE ) ;
actionEditAdjustSize - > setEnabled ( TRUE ) ;
TQWidget * w = formWindow ( ) - > mainContainer ( ) ;
TQWidget * w = formWindow ( ) - > mainContainer ( ) ;
if ( WidgetFactory : : tq layoutType( w ) = = WidgetFactory : : NoLayout ) {
if ( WidgetFactory : : layoutType( w ) = = WidgetFactory : : NoLayout ) {
if ( ! formWindow ( ) - > hasInsertedChildren ( w ) ) {
if ( ! formWindow ( ) - > hasInsertedChildren ( w ) ) {
actionEditHLayout - > setEnabled ( FALSE ) ;
actionEditHLayout - > setEnabled ( FALSE ) ;
actionEditVLayout - > setEnabled ( FALSE ) ;
actionEditVLayout - > setEnabled ( FALSE ) ;
@ -2112,7 +2112,7 @@ void MainWindow::selectionChanged()
actionEditVLayout - > setEnabled ( TRUE ) ;
actionEditVLayout - > setEnabled ( TRUE ) ;
actionEditGridLayout - > setEnabled ( TRUE ) ;
actionEditGridLayout - > setEnabled ( TRUE ) ;
actionEditBreakLayout - > setEnabled ( FALSE ) ;
actionEditBreakLayout - > setEnabled ( FALSE ) ;
tq layoutChilds = TRUE ;
layoutChilds = TRUE ;
}
}
} else {
} else {
actionEditHLayout - > setEnabled ( FALSE ) ;
actionEditHLayout - > setEnabled ( FALSE ) ;
@ -2177,18 +2177,18 @@ void MainWindow::writeConfig()
config . writeEntry ( keybase + " Geometries/MainwindowWidth " , width ( ) ) ;
config . writeEntry ( keybase + " Geometries/MainwindowWidth " , width ( ) ) ;
config . writeEntry ( keybase + " Geometries/MainwindowHeight " , height ( ) ) ;
config . writeEntry ( keybase + " Geometries/MainwindowHeight " , height ( ) ) ;
config . writeEntry ( keybase + " Geometries/MainwindowMaximized " , isMaximized ( ) ) ;
config . writeEntry ( keybase + " Geometries/MainwindowMaximized " , isMaximized ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorX " , propertyEditor - > tq parentWidget( ) - > x ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorX " , propertyEditor - > parentWidget( ) - > x ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorY " , propertyEditor - > tq parentWidget( ) - > y ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorY " , propertyEditor - > parentWidget( ) - > y ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorWidth " , propertyEditor - > tq parentWidget( ) - > width ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorWidth " , propertyEditor - > parentWidget( ) - > width ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorHeight " , propertyEditor - > tq parentWidget( ) - > height ( ) ) ;
config . writeEntry ( keybase + " Geometries/PropertyEditorHeight " , propertyEditor - > parentWidget( ) - > height ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewX " , hierarchyView - > tq parentWidget( ) - > x ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewX " , hierarchyView - > parentWidget( ) - > x ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewY " , hierarchyView - > tq parentWidget( ) - > y ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewY " , hierarchyView - > parentWidget( ) - > y ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewWidth " , hierarchyView - > tq parentWidget( ) - > width ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewWidth " , hierarchyView - > parentWidget( ) - > width ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewHeight " , hierarchyView - > tq parentWidget( ) - > height ( ) ) ;
config . writeEntry ( keybase + " Geometries/HierarchyViewHeight " , hierarchyView - > parentWidget( ) - > height ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceX " , wspace - > tq parentWidget( ) - > x ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceX " , wspace - > parentWidget( ) - > x ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceY " , wspace - > tq parentWidget( ) - > y ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceY " , wspace - > parentWidget( ) - > y ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceWidth " , wspace - > tq parentWidget( ) - > width ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceWidth " , wspace - > parentWidget( ) - > width ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceHeight " , wspace - > tq parentWidget( ) - > height ( ) ) ;
config . writeEntry ( keybase + " Geometries/WorkspaceHeight " , wspace - > parentWidget( ) - > height ( ) ) ;
config . writeEntry ( keybase + " View/TextLabels " , usesTextLabel ( ) ) ;
config . writeEntry ( keybase + " View/TextLabels " , usesTextLabel ( ) ) ;
config . writeEntry ( keybase + " View/BigIcons " , usesBigPixmaps ( ) ) ;
config . writeEntry ( keybase + " View/BigIcons " , usesBigPixmaps ( ) ) ;
@ -3204,7 +3204,7 @@ void MainWindow::setModified( bool b, TQWidget *window )
}
}
return ;
return ;
}
}
w = w - > tq parentWidget( TRUE ) ;
w = w - > parentWidget( TRUE ) ;
}
}
}
}
@ -3300,9 +3300,9 @@ void MainWindow::enableAll( bool enable )
menuBar ( ) - > setEnabled ( enable ) ;
menuBar ( ) - > setEnabled ( enable ) ;
TQObjectList * l = queryList ( TQDOCKWINDOW_OBJECT_NAME_STRING ) ;
TQObjectList * l = queryList ( TQDOCKWINDOW_OBJECT_NAME_STRING ) ;
for ( TQObject * o = l - > first ( ) ; o ; o = l - > next ( ) ) {
for ( TQObject * o = l - > first ( ) ; o ; o = l - > next ( ) ) {
if ( TQT_BASE_OBJECT ( o ) = = wspace - > tq parentWidget( ) | |
if ( TQT_BASE_OBJECT ( o ) = = wspace - > parentWidget( ) | |
TQT_BASE_OBJECT ( o ) = = oWindow - > tq parentWidget( ) | |
TQT_BASE_OBJECT ( o ) = = oWindow - > parentWidget( ) | |
TQT_BASE_OBJECT ( o ) = = hierarchyView - > tq parentWidget( ) )
TQT_BASE_OBJECT ( o ) = = hierarchyView - > parentWidget( ) )
continue ;
continue ;
( ( TQWidget * ) o ) - > setEnabled ( enable ) ;
( ( TQWidget * ) o ) - > setEnabled ( enable ) ;
}
}
@ -3520,14 +3520,14 @@ void MainWindow::breakPointsChanged()
int MainWindow : : currentLayoutDefaultSpacing ( ) const
int MainWindow : : currentLayoutDefaultSpacing ( ) const
{
{
if ( ( ( MainWindow * ) this ) - > formWindow ( ) )
if ( ( ( MainWindow * ) this ) - > formWindow ( ) )
return ( ( MainWindow * ) this ) - > formWindow ( ) - > tq layoutDefaultSpacing( ) ;
return ( ( MainWindow * ) this ) - > formWindow ( ) - > layoutDefaultSpacing( ) ;
return BOXLAYOUT_DEFAULT_SPACING ;
return BOXLAYOUT_DEFAULT_SPACING ;
}
}
int MainWindow : : currentLayoutDefaultMargin ( ) const
int MainWindow : : currentLayoutDefaultMargin ( ) const
{
{
if ( ( ( MainWindow * ) this ) - > formWindow ( ) )
if ( ( ( MainWindow * ) this ) - > formWindow ( ) )
return ( ( MainWindow * ) this ) - > formWindow ( ) - > tq layoutDefaultMargin( ) ;
return ( ( MainWindow * ) this ) - > formWindow ( ) - > layoutDefaultMargin( ) ;
return BOXLAYOUT_DEFAULT_MARGIN ;
return BOXLAYOUT_DEFAULT_MARGIN ;
}
}
@ -3682,15 +3682,15 @@ void MainWindow::showGUIStuff( bool b )
return ;
return ;
guiStuffVisible = b ;
guiStuffVisible = b ;
if ( ! b ) {
if ( ! b ) {
setAppropriate ( ( TQDockWindow * ) toolBox - > tq parentWidget( ) , FALSE ) ;
setAppropriate ( ( TQDockWindow * ) toolBox - > parentWidget( ) , FALSE ) ;
toolBox - > tq parentWidget( ) - > hide ( ) ;
toolBox - > parentWidget( ) - > hide ( ) ;
for ( TQToolBar * tb = widgetToolBars . first ( ) ; tb ; tb = widgetToolBars . next ( ) ) {
for ( TQToolBar * tb = widgetToolBars . first ( ) ; tb ; tb = widgetToolBars . next ( ) ) {
tb - > hide ( ) ;
tb - > hide ( ) ;
setAppropriate ( tb , FALSE ) ;
setAppropriate ( tb , FALSE ) ;
}
}
propertyEditor - > setPropertyEditorEnabled ( FALSE ) ;
propertyEditor - > setPropertyEditorEnabled ( FALSE ) ;
setAppropriate ( tq layoutToolBar, FALSE ) ;
setAppropriate ( layoutToolBar, FALSE ) ;
tq layoutToolBar- > hide ( ) ;
layoutToolBar- > hide ( ) ;
setAppropriate ( toolsToolBar , FALSE ) ;
setAppropriate ( toolsToolBar , FALSE ) ;
toolsToolBar - > hide ( ) ;
toolsToolBar - > hide ( ) ;
menubar - > removeItem ( toolsMenuId ) ;
menubar - > removeItem ( toolsMenuId ) ;
@ -3706,7 +3706,7 @@ void MainWindow::showGUIStuff( bool b )
actionEditConnections - > setEnabled ( FALSE ) ;
actionEditConnections - > setEnabled ( FALSE ) ;
actionEditFunctions - > setEnabled ( FALSE ) ;
actionEditFunctions - > setEnabled ( FALSE ) ;
actionEditAccels - > setEnabled ( FALSE ) ;
actionEditAccels - > setEnabled ( FALSE ) ;
( ( TQDockWindow * ) propertyEditor - > tq parentWidget( ) ) - >
( ( TQDockWindow * ) propertyEditor - > parentWidget( ) ) - >
setCaption ( i18n ( " Signal Handlers " ) ) ;
setCaption ( i18n ( " Signal Handlers " ) ) ;
actionGroupNew - > removeFrom ( fileMenu ) ;
actionGroupNew - > removeFrom ( fileMenu ) ;
actionGroupNew - > removeFrom ( projectToolBar ) ;
actionGroupNew - > removeFrom ( projectToolBar ) ;
@ -3719,19 +3719,19 @@ void MainWindow::showGUIStuff( bool b )
actionFileSave - > addTo ( projectToolBar ) ;
actionFileSave - > addTo ( projectToolBar ) ;
actionFileExit - > addTo ( fileMenu ) ;
actionFileExit - > addTo ( fileMenu ) ;
} else {
} else {
setAppropriate ( ( TQDockWindow * ) toolBox - > tq parentWidget( ) , TRUE ) ;
setAppropriate ( ( TQDockWindow * ) toolBox - > parentWidget( ) , TRUE ) ;
toolBox - > tq parentWidget( ) - > show ( ) ;
toolBox - > parentWidget( ) - > show ( ) ;
for ( TQToolBar * tb = widgetToolBars . first ( ) ; tb ; tb = widgetToolBars . next ( ) ) {
for ( TQToolBar * tb = widgetToolBars . first ( ) ; tb ; tb = widgetToolBars . next ( ) ) {
setAppropriate ( tb , TRUE ) ;
setAppropriate ( tb , TRUE ) ;
tb - > hide ( ) ;
tb - > hide ( ) ;
}
}
propertyEditor - > setPropertyEditorEnabled ( TRUE ) ;
propertyEditor - > setPropertyEditorEnabled ( TRUE ) ;
setAppropriate ( tq layoutToolBar, TRUE ) ;
setAppropriate ( layoutToolBar, TRUE ) ;
tq layoutToolBar- > show ( ) ;
layoutToolBar- > show ( ) ;
setAppropriate ( toolsToolBar , TRUE ) ;
setAppropriate ( toolsToolBar , TRUE ) ;
toolsToolBar - > show ( ) ;
toolsToolBar - > show ( ) ;
menubar - > insertItem ( i18n ( " &Tools " ) , toolsMenu , toolsMenuId , toolsMenuIndex ) ;
menubar - > insertItem ( i18n ( " &Tools " ) , toolsMenu , toolsMenuId , toolsMenuIndex ) ;
menubar - > insertItem ( i18n ( " &Layout " ) , tq layoutMenu, toolsMenuId + 1 , toolsMenuIndex + 1 ) ;
menubar - > insertItem ( i18n ( " &Layout " ) , layoutMenu, toolsMenuId + 1 , toolsMenuIndex + 1 ) ;
menubar - > insertItem ( i18n ( " &Preview " ) , previewMenu , toolsMenuId + 2 , toolsMenuIndex + 2 ) ;
menubar - > insertItem ( i18n ( " &Preview " ) , previewMenu , toolsMenuId + 2 , toolsMenuIndex + 2 ) ;
connect ( this , TQT_SIGNAL ( hasActiveForm ( bool ) ) , actionEditAccels , TQT_SLOT ( setEnabled ( bool ) ) ) ;
connect ( this , TQT_SIGNAL ( hasActiveForm ( bool ) ) , actionEditAccels , TQT_SLOT ( setEnabled ( bool ) ) ) ;
connect ( this , TQT_SIGNAL ( hasActiveForm ( bool ) ) , actionEditFunctions , TQT_SLOT ( setEnabled ( bool ) ) ) ;
connect ( this , TQT_SIGNAL ( hasActiveForm ( bool ) ) , actionEditFunctions , TQT_SLOT ( setEnabled ( bool ) ) ) ;
@ -3743,7 +3743,7 @@ void MainWindow::showGUIStuff( bool b )
actionEditConnections - > setEnabled ( TRUE ) ;
actionEditConnections - > setEnabled ( TRUE ) ;
actionEditFunctions - > setEnabled ( TRUE ) ;
actionEditFunctions - > setEnabled ( TRUE ) ;
actionEditAccels - > setEnabled ( TRUE ) ;
actionEditAccels - > setEnabled ( TRUE ) ;
( ( TQDockWindow * ) propertyEditor - > tq parentWidget( ) ) - >
( ( TQDockWindow * ) propertyEditor - > parentWidget( ) ) - >
setCaption ( i18n ( " Property Editor/Signal Handlers " ) ) ;
setCaption ( i18n ( " Property Editor/Signal Handlers " ) ) ;
actionFileSave - > removeFrom ( fileMenu ) ;
actionFileSave - > removeFrom ( fileMenu ) ;
actionFileSave - > removeFrom ( projectToolBar ) ;
actionFileSave - > removeFrom ( projectToolBar ) ;