diff options
Diffstat (limited to 'kommander/editor/mainwindow.cpp')
-rw-r--r-- | kommander/editor/mainwindow.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kommander/editor/mainwindow.cpp b/kommander/editor/mainwindow.cpp index 7a47b852..8a30d812 100644 --- a/kommander/editor/mainwindow.cpp +++ b/kommander/editor/mainwindow.cpp @@ -143,9 +143,9 @@ MainWindow::MainWindow(bool asClient) setupMDI(); setupFileActions(); setupEditActions(); - tqlayoutToolBar = new KToolBar(this, "Layout"); - ((KToolBar *) tqlayoutToolBar)->setFullSize(false); - addToolBar(tqlayoutToolBar, i18n("Layout")); + layoutToolBar = new KToolBar(this, "Layout"); + ((KToolBar *) layoutToolBar)->setFullSize(false); + addToolBar(layoutToolBar, i18n("Layout")); setupToolActions(); setupLayoutActions(); setupWorkspace(); @@ -171,8 +171,8 @@ MainWindow::MainWindow(bool asClient) connect(kapp->clipboard(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clipboardChanged())); clipboardChanged(); - tqlayoutChilds = false; - tqlayoutSelected = false; + layoutChilds = false; + layoutSelected = false; breakLayout = false; backPix = true; @@ -274,7 +274,7 @@ void MainWindow::setupHierarchyView() "<p>The Object Explorer provides an overview of the relationships " "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 " - "in forms that have complex tqlayouts.</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 second tab shows all the form's slots, class variables, includes, etc.</p>")); } @@ -596,7 +596,7 @@ bool MainWindow::eventFilter(TQObject *o, TQEvent *e) while (w) { if (w->inherits("PropertyList")) break; - w = w->tqparentWidget(true); + w = w->parentWidget(true); } if (w) { propertyEditor->propertyList()->showCurrentWhatsThis(); @@ -634,8 +634,8 @@ bool MainWindow::eventFilter(TQObject *o, TQEvent *e) o->tqparent() && o->tqparent()->inherits("QDesignerToolBar"))) { TQWidget *w = (TQWidget*)o; if (w->inherits(TQTOOLBUTTON_OBJECT_NAME_STRING) || w->inherits(TQCOMBOBOX_OBJECT_NAME_STRING) || w->inherits("QDesignerToolBarSeparator")) - w = w->tqparentWidget(); - TQWidget *pw = w->tqparentWidget(); + w = w->parentWidget(); + TQWidget *pw = w->parentWidget(); while (pw) { if (pw->inherits("FormWindow")) { ((FormWindow*)pw)->emitShowProperties(TQT_TQOBJECT(w)); @@ -643,7 +643,7 @@ bool MainWindow::eventFilter(TQObject *o, TQEvent *e) return !o->inherits(TQTOOLBUTTON_OBJECT_NAME_STRING) && !o->inherits(TQMENUBAR_OBJECT_NAME_STRING) && !o->inherits(TQCOMBOBOX_OBJECT_NAME_STRING) && !o->inherits("QDesignerToolBarSeparator"); } - pw = pw->tqparentWidget(); + pw = pw->parentWidget(); } } if (o && (o->inherits("QDesignerToolBar") || o->inherits(TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING)) @@ -752,7 +752,7 @@ bool MainWindow::eventFilter(TQObject *o, TQEvent *e) case TQEvent::Move: if (!(w = isAFormWindowChild(o)) || o->inherits("SizeHandle") || o->inherits("OrderIndicator")) break; - if (WidgetFactory::tqlayoutType((TQWidget*)o->tqparent()) != WidgetFactory::NoLayout) { + if (WidgetFactory::layoutType((TQWidget*)o->tqparent()) != WidgetFactory::NoLayout) { ((FormWindow*)w)->updateSelection((TQWidget*)o); if (e->type() != TQEvent::Resize) ((FormWindow*)w)->updateChildSelections((TQWidget*)o); @@ -1320,8 +1320,8 @@ void MainWindow::clipboardChanged() void MainWindow::selectionChanged() { - tqlayoutChilds = false; - tqlayoutSelected = false; + layoutChilds = false; + layoutSelected = false; breakLayout = false; if (!formWindow()) { actionEditCut->setEnabled(false); @@ -1358,7 +1358,7 @@ void MainWindow::selectionChanged() int unlaidout = 0; int laidout = 0; for (TQWidget *w = widgets.first(); w; w = widgets.next()) { - if (!w->tqparentWidget() || WidgetFactory::tqlayoutType(w->tqparentWidget()) == WidgetFactory::NoLayout) + if (!w->parentWidget() || WidgetFactory::layoutType(w->parentWidget()) == WidgetFactory::NoLayout) unlaidout++; else laidout++; @@ -1370,27 +1370,27 @@ void MainWindow::selectionChanged() actionEditGridLayout->setEnabled(unlaidout > 1); actionEditBreakLayout->setEnabled(laidout > 0); actionEditAdjustSize->setEnabled(laidout > 0); - tqlayoutSelected = unlaidout > 1; + layoutSelected = unlaidout > 1; breakLayout = laidout > 0; } else if (selectedWidgets == 1) { TQWidget *w = widgets.first(); bool isContainer = WidgetDatabase::isContainer(WidgetDatabase::idFromClassName(WidgetFactory::classNameOf(TQT_TQOBJECT(w)))) || w == formWindow()->mainContainer(); - actionEditAdjustSize->setEnabled(!w->tqparentWidget() || - WidgetFactory::tqlayoutType(w->tqparentWidget()) == WidgetFactory::NoLayout); + actionEditAdjustSize->setEnabled(!w->parentWidget() || + WidgetFactory::layoutType(w->parentWidget()) == WidgetFactory::NoLayout); if (!isContainer) { actionEditHLayout->setEnabled(false); actionEditVLayout->setEnabled(false); actionEditGridLayout->setEnabled(false); - if (w->tqparentWidget() && WidgetFactory::tqlayoutType(w->tqparentWidget()) != WidgetFactory::NoLayout) { + if (w->parentWidget() && WidgetFactory::layoutType(w->parentWidget()) != WidgetFactory::NoLayout) { actionEditBreakLayout->setEnabled(!isAToolBarChild(TQT_TQOBJECT(w))); breakLayout = true; } else { actionEditBreakLayout->setEnabled(false); } } else { - if (WidgetFactory::tqlayoutType(w) == WidgetFactory::NoLayout) { + if (WidgetFactory::layoutType(w) == WidgetFactory::NoLayout) { if (!formWindow()->hasInsertedChildren(w)) { actionEditHLayout->setEnabled(false); actionEditVLayout->setEnabled(false); @@ -1401,9 +1401,9 @@ void MainWindow::selectionChanged() actionEditVLayout->setEnabled(true); actionEditGridLayout->setEnabled(true); actionEditBreakLayout->setEnabled(false); - tqlayoutChilds = true; + layoutChilds = true; } - if (w->tqparentWidget() && WidgetFactory::tqlayoutType(w->tqparentWidget()) != WidgetFactory::NoLayout) { + if (w->parentWidget() && WidgetFactory::layoutType(w->parentWidget()) != WidgetFactory::NoLayout) { actionEditBreakLayout->setEnabled(!isAToolBarChild(TQT_TQOBJECT(w))); breakLayout = true; } @@ -1418,7 +1418,7 @@ void MainWindow::selectionChanged() } else if (selectedWidgets == 0 && formWindow()) { actionEditAdjustSize->setEnabled(true); TQWidget *w = formWindow()->mainContainer(); - if (WidgetFactory::tqlayoutType(w) == WidgetFactory::NoLayout) { + if (WidgetFactory::layoutType(w) == WidgetFactory::NoLayout) { if (!formWindow()->hasInsertedChildren(w)) { actionEditHLayout->setEnabled(false); actionEditVLayout->setEnabled(false); @@ -1429,7 +1429,7 @@ void MainWindow::selectionChanged() actionEditVLayout->setEnabled(true); actionEditGridLayout->setEnabled(true); actionEditBreakLayout->setEnabled(false); - tqlayoutChilds = true; + layoutChilds = true; } } else { actionEditHLayout->setEnabled(false); @@ -1836,13 +1836,13 @@ void MainWindow::setModified(bool b, TQWidget *window) ((FormWindow *) w)->modificationChanged(b); return; } - w = w->tqparentWidget(true); + w = w->parentWidget(true); if (w->inherits("FormWindow")) { ((FormWindow *) w)->modificationChanged(b); return; } - w = w->tqparentWidget(true); + w = w->parentWidget(true); } } @@ -1869,14 +1869,14 @@ void MainWindow::formNameChanged(FormWindow*) int MainWindow::currentLayoutDefaultSpacing() const { if (((MainWindow*)this)->formWindow()) - return ((MainWindow*)this)->formWindow()->tqlayoutDefaultSpacing(); + return ((MainWindow*)this)->formWindow()->layoutDefaultSpacing(); return BOXLAYOUT_DEFAULT_SPACING; } int MainWindow::currentLayoutDefaultMargin() const { if (((MainWindow*)this)->formWindow()) - return ((MainWindow*)this)->formWindow()->tqlayoutDefaultMargin(); + return ((MainWindow*)this)->formWindow()->layoutDefaultMargin(); return BOXLAYOUT_DEFAULT_MARGIN; } |