diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
commit | fb401a891f1b426e9419c0cb16403df407138611 (patch) | |
tree | 045b51949b3140039e37d898d8b0513016a86bea /src/workspace/qworkspace.cpp | |
parent | a9d178f1000475ba1727ffe123a2c54585488c01 (diff) | |
download | tqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/workspace/qworkspace.cpp')
-rw-r--r-- | src/workspace/qworkspace.cpp | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/src/workspace/qworkspace.cpp b/src/workspace/qworkspace.cpp index 7df816511..2ce255c3d 100644 --- a/src/workspace/qworkspace.cpp +++ b/src/workspace/qworkspace.cpp @@ -313,8 +313,8 @@ TQWorkspace::init() d->menuId = -1; d->controlId = -1; - connect( d->popup, SIGNAL( aboutToShow() ), this, SLOT(operationMenuAboutToShow() )); - connect( d->popup, SIGNAL( activated(int) ), this, SLOT( operationMenuActivated(int) ) ); + connect( d->popup, TQ_SIGNAL( aboutToShow() ), this, TQ_SLOT(operationMenuAboutToShow() )); + connect( d->popup, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( operationMenuActivated(int) ) ); d->popup->insertItem(TQIconSet(style().stylePixmap(TQStyle::SP_TitleBarNormalButton)), tr("&Restore"), 1); d->popup->insertItem(tr("&Move"), 2); d->popup->insertItem(tr("&Size"), 3); @@ -326,10 +326,10 @@ TQWorkspace::init() #ifndef TQT_NO_ACCEL +"\t"+TQAccel::keyToString(CTRL+Key_F4) #endif - , this, SLOT( closeActiveWindow() ) ); + , this, TQ_SLOT( closeActiveWindow() ) ); - connect( d->toolPopup, SIGNAL( aboutToShow() ), this, SLOT(toolMenuAboutToShow() )); - connect( d->toolPopup, SIGNAL( activated(int) ), this, SLOT( operationMenuActivated(int) ) ); + connect( d->toolPopup, TQ_SIGNAL( aboutToShow() ), this, TQ_SLOT(toolMenuAboutToShow() )); + connect( d->toolPopup, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( operationMenuActivated(int) ) ); d->toolPopup->insertItem(tr("&Move"), 2); d->toolPopup->insertItem(tr("&Size"), 3); d->toolPopup->insertItem(tr("Stay on &Top"), 7); @@ -342,29 +342,29 @@ TQWorkspace::init() #ifndef TQT_NO_ACCEL +"\t"+TQAccel::keyToString( CTRL+Key_F4) #endif - , this, SLOT( closeActiveWindow() ) ); + , this, TQ_SLOT( closeActiveWindow() ) ); #ifndef TQT_NO_ACCEL TQAccel* a = new TQAccel( this ); a->connectItem( a->insertItem( ALT + Key_Minus), - this, SLOT( showOperationMenu() ) ); + this, TQ_SLOT( showOperationMenu() ) ); a->connectItem( a->insertItem( CTRL + Key_F6), - this, SLOT( activateNextWindow() ) ); + this, TQ_SLOT( activateNextWindow() ) ); a->connectItem( a->insertItem( CTRL + Key_Tab), - this, SLOT( activateNextWindow() ) ); + this, TQ_SLOT( activateNextWindow() ) ); a->connectItem( a->insertItem( Key_Forward ), - this, SLOT( activateNextWindow() ) ); + this, TQ_SLOT( activateNextWindow() ) ); a->connectItem( a->insertItem( CTRL + SHIFT + Key_F6), - this, SLOT( activatePreviousWindow() ) ); + this, TQ_SLOT( activatePreviousWindow() ) ); a->connectItem( a->insertItem( CTRL + SHIFT + Key_Tab), - this, SLOT( activatePreviousWindow() ) ); + this, TQ_SLOT( activatePreviousWindow() ) ); a->connectItem( a->insertItem( Key_Back ), - this, SLOT( activatePreviousWindow() ) ); + this, TQ_SLOT( activatePreviousWindow() ) ); a->connectItem( a->insertItem( CTRL + Key_F4 ), - this, SLOT( closeActiveWindow() ) ); + this, TQ_SLOT( closeActiveWindow() ) ); #endif setBackgroundMode( PaletteDark ); @@ -434,10 +434,10 @@ void TQWorkspace::childEvent( TQChildEvent * e) TQWorkspaceChild* child = new TQWorkspaceChild( w, this, "qt_workspacechild" ); child->installEventFilter( this ); - connect( child, SIGNAL( popupOperationMenu(const TQPoint&) ), - this, SLOT( popupOperationMenu(const TQPoint&) ) ); - connect( child, SIGNAL( showOperationMenu() ), - this, SLOT( showOperationMenu() ) ); + connect( child, TQ_SIGNAL( popupOperationMenu(const TQPoint&) ), + this, TQ_SLOT( popupOperationMenu(const TQPoint&) ) ); + connect( child, TQ_SIGNAL( showOperationMenu() ), + this, TQ_SLOT( showOperationMenu() ) ); d->windows.append( child ); if ( child->isVisibleTo( this ) ) d->focus.append( child ); @@ -857,7 +857,7 @@ void TQWorkspace::handleUndock(TQDockWindow *w) while(d->dockwindows.remove(o)); d->newdocks.append(o); if(d->newdocks.count() == 1) - TQTimer::singleShot(0, this, SLOT(dockWindowsShow())); + TQTimer::singleShot(0, this, TQ_SLOT(dockWindowsShow())); break; } @@ -1027,7 +1027,7 @@ void TQWorkspace::showEvent( TQShowEvent *e ) TQWidget *w = new TQWidget(NULL, "TQDoesNotExist", WType_Dialog | WStyle_Customize | WStyle_NoBorder); // if(tqApp->mainWidget() == o) -// TQObject::connect(tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit())); +// TQObject::connect(tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit())); TQDesktopWidget *dw = TQApplication::desktop(); w->setGeometry(dw->availableGeometry(dw->screenNumber(o))); o->reparent(w, TQPoint(0, 0), TRUE); @@ -1326,7 +1326,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e) else d->newdocks.append(w); if(d->newdocks.count() == 1) - TQTimer::singleShot(0, this, SLOT(dockWindowsShow())); + TQTimer::singleShot(0, this, TQ_SLOT(dockWindowsShow())); } } else if(e->type() == TQEvent::Hide && !e->spontaneous() && !tqstrncmp(o->name(), "TQMagicDock_", 11)) { // d->mainwindow->close(); @@ -1508,8 +1508,8 @@ void TQWorkspace::showMaximizeControls() iconB->setFocusPolicy( NoFocus ); iconB->setIconSet(style().stylePixmap(TQStyle::SP_TitleBarMinButton)); iconB->setFixedSize(BUTTON_WIDTH, BUTTON_HEIGHT); - connect( iconB, SIGNAL( clicked() ), - this, SLOT( minimizeActiveWindow() ) ); + connect( iconB, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( minimizeActiveWindow() ) ); } TQToolButton* restoreB = new TQToolButton( d->maxcontrols, "restore" ); @@ -1520,8 +1520,8 @@ void TQWorkspace::showMaximizeControls() restoreB->setFocusPolicy( NoFocus ); restoreB->setIconSet( style().stylePixmap(TQStyle::SP_TitleBarNormalButton)); restoreB->setFixedSize(BUTTON_WIDTH, BUTTON_HEIGHT); - connect( restoreB, SIGNAL( clicked() ), - this, SLOT( normalizeActiveWindow() ) ); + connect( restoreB, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( normalizeActiveWindow() ) ); l->addSpacing( 2 ); TQToolButton* closeB = new TQToolButton( d->maxcontrols, "close" ); @@ -1532,8 +1532,8 @@ void TQWorkspace::showMaximizeControls() closeB->setFocusPolicy( NoFocus ); closeB->setIconSet( style().stylePixmap(TQStyle::SP_TitleBarCloseButton) ); closeB->setFixedSize(BUTTON_WIDTH, BUTTON_HEIGHT); - connect( closeB, SIGNAL( clicked() ), - this, SLOT( closeActiveWindow() ) ); + connect( closeB, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( closeActiveWindow() ) ); d->maxcontrols->setFixedSize( d->maxcontrols->minimumSizeHint() ); } @@ -2050,24 +2050,24 @@ TQWorkspaceChild::TQWorkspaceChild( TQWidget* window, TQWorkspace *parent, if ( window && window->testWFlags( WStyle_Title ) && parent->windowMode() != TQWorkspace::TopLevel ) { titlebar = new TQTitleBar( window, this, "qt_ws_titlebar" ); - connect( titlebar, SIGNAL( doActivate() ), - this, SLOT( activate() ) ); - connect( titlebar, SIGNAL( doClose() ), - window, SLOT( close() ) ); - connect( titlebar, SIGNAL( doMinimize() ), - this, SLOT( showMinimized() ) ); - connect( titlebar, SIGNAL( doNormal() ), - this, SLOT( showNormal() ) ); - connect( titlebar, SIGNAL( doMaximize() ), - this, SLOT( showMaximized() ) ); - connect( titlebar, SIGNAL( popupOperationMenu(const TQPoint&) ), - this, SIGNAL( popupOperationMenu(const TQPoint&) ) ); - connect( titlebar, SIGNAL( showOperationMenu() ), - this, SIGNAL( showOperationMenu() ) ); - connect( titlebar, SIGNAL( doShade() ), - this, SLOT( showShaded() ) ); - connect( titlebar, SIGNAL( doubleClicked() ), - this, SLOT( titleBarDoubleClicked() ) ); + connect( titlebar, TQ_SIGNAL( doActivate() ), + this, TQ_SLOT( activate() ) ); + connect( titlebar, TQ_SIGNAL( doClose() ), + window, TQ_SLOT( close() ) ); + connect( titlebar, TQ_SIGNAL( doMinimize() ), + this, TQ_SLOT( showMinimized() ) ); + connect( titlebar, TQ_SIGNAL( doNormal() ), + this, TQ_SLOT( showNormal() ) ); + connect( titlebar, TQ_SIGNAL( doMaximize() ), + this, TQ_SLOT( showMaximized() ) ); + connect( titlebar, TQ_SIGNAL( popupOperationMenu(const TQPoint&) ), + this, TQ_SIGNAL( popupOperationMenu(const TQPoint&) ) ); + connect( titlebar, TQ_SIGNAL( showOperationMenu() ), + this, TQ_SIGNAL( showOperationMenu() ) ); + connect( titlebar, TQ_SIGNAL( doShade() ), + this, TQ_SLOT( showShaded() ) ); + connect( titlebar, TQ_SIGNAL( doubleClicked() ), + this, TQ_SLOT( titleBarDoubleClicked() ) ); } setFrameStyle( TQFrame::StyledPanel | TQFrame::Raised ); @@ -2129,8 +2129,8 @@ TQWorkspaceChild::TQWorkspaceChild( TQWidget* window, TQWorkspace *parent, widgetResizeHandler = new TQWidgetResizeHandler( this, window ); widgetResizeHandler->setSizeProtection( !parent->scrollBarsEnabled() ); - connect( widgetResizeHandler, SIGNAL( activate() ), - this, SLOT( activate() ) ); + connect( widgetResizeHandler, TQ_SIGNAL( activate() ), + this, TQ_SLOT( activate() ) ); if ( !style().styleHint( TQStyle::SH_TitleBar_NoBorder, titlebar ) ) widgetResizeHandler->setExtraHeight( th + contentsRect().y() - 2*frameWidth() ); else @@ -2630,20 +2630,20 @@ TQWidget* TQWorkspaceChild::iconWidget() const that->iconw = tb; iconw->setActive( isActive() ); - connect( iconw, SIGNAL( doActivate() ), - this, SLOT( activate() ) ); - connect( iconw, SIGNAL( doClose() ), - windowWidget(), SLOT( close() ) ); - connect( iconw, SIGNAL( doNormal() ), - this, SLOT( showNormal() ) ); - connect( iconw, SIGNAL( doMaximize() ), - this, SLOT( showMaximized() ) ); - connect( iconw, SIGNAL( popupOperationMenu(const TQPoint&) ), - this, SIGNAL( popupOperationMenu(const TQPoint&) ) ); - connect( iconw, SIGNAL( showOperationMenu() ), - this, SIGNAL( showOperationMenu() ) ); - connect( iconw, SIGNAL( doubleClicked() ), - this, SLOT( titleBarDoubleClicked() ) ); + connect( iconw, TQ_SIGNAL( doActivate() ), + this, TQ_SLOT( activate() ) ); + connect( iconw, TQ_SIGNAL( doClose() ), + windowWidget(), TQ_SLOT( close() ) ); + connect( iconw, TQ_SIGNAL( doNormal() ), + this, TQ_SLOT( showNormal() ) ); + connect( iconw, TQ_SIGNAL( doMaximize() ), + this, TQ_SLOT( showMaximized() ) ); + connect( iconw, TQ_SIGNAL( popupOperationMenu(const TQPoint&) ), + this, TQ_SIGNAL( popupOperationMenu(const TQPoint&) ) ); + connect( iconw, TQ_SIGNAL( showOperationMenu() ), + this, TQ_SIGNAL( showOperationMenu() ) ); + connect( iconw, TQ_SIGNAL( doubleClicked() ), + this, TQ_SLOT( titleBarDoubleClicked() ) ); } #ifndef TQT_NO_WIDGET_TOPEXTRA if ( windowWidget() ) { @@ -2832,9 +2832,9 @@ void TQWorkspace::setScrollBarsEnabled( bool enable ) d->xoffset = d->yoffset = 0; if ( enable ) { d->vbar = new TQScrollBar( Vertical, this, "vertical scrollbar" ); - connect( d->vbar, SIGNAL( valueChanged(int) ), this, SLOT( scrollBarChanged() ) ); + connect( d->vbar, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( scrollBarChanged() ) ); d->hbar = new TQScrollBar( Horizontal, this, "horizontal scrollbar" ); - connect( d->hbar, SIGNAL( valueChanged(int) ), this, SLOT( scrollBarChanged() ) ); + connect( d->hbar, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( scrollBarChanged() ) ); d->corner = new TQWidget( this, "qt_corner" ); updateWorkspace(); } else { |