diff options
Diffstat (limited to 'clients/tde/src/app/remotemdi.cpp')
-rw-r--r-- | clients/tde/src/app/remotemdi.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/clients/tde/src/app/remotemdi.cpp b/clients/tde/src/app/remotemdi.cpp index adcbab2..d14d0cc 100644 --- a/clients/tde/src/app/remotemdi.cpp +++ b/clients/tde/src/app/remotemdi.cpp @@ -41,19 +41,19 @@ RemoteMDI::RemoteMDI() setIcon(SmallIcon("remote_laboratory_client")); masterPollTimer = new TQTimer(); - connect(masterPollTimer, SIGNAL(timeout()), this, SLOT(masterPoll())); + connect(masterPollTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(masterPoll())); // Create some actions - KStdAction::close(this, SLOT(closeCurrent()), actionCollection()); - KStdAction::quit(this, SLOT(close()), actionCollection()); + KStdAction::close(this, TQ_SLOT(closeCurrent()), actionCollection()); + KStdAction::quit(this, TQ_SLOT(close()), actionCollection()); TDEActionCollection *const ac = actionCollection(); setStandardToolBarMenuEnabled(true); - KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), ac); - KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configToolbars()), ac); - KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(configKeys()), ac); - connect_action = new TDEAction(i18n("Connect to Server"), "connect_creating", TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(connectToServer()), ac, "connect_server"); - disconnect_action = new TDEAction(i18n("Disconnect from Server"), "connect_no", TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(disconnectFromServer()), ac, "disconnect_server"); + KStdAction::quit(this, TQ_SLOT(close()), ac); + KStdAction::configureToolbars(this, TQ_SLOT(configToolbars()), ac); + KStdAction::keyBindings(this, TQ_SLOT(configKeys()), ac); + connect_action = new TDEAction(i18n("Connect to Server"), "connect_creating", TDEShortcut(), this, TQ_SLOT(connectToServer()), ac, "connect_server"); + disconnect_action = new TDEAction(i18n("Disconnect from Server"), "connect_no", TDEShortcut(), this, TQ_SLOT(disconnectFromServer()), ac, "disconnect_server"); setMenuForSDIModeSysButtons(menuBar()); @@ -67,11 +67,11 @@ RemoteMDI::RemoteMDI() hideViewTaskBar(); // When we change view, change the status bar text - connect(this, SIGNAL(viewActivated(KMdiChildView*)), this, SLOT(currentChanged(KMdiChildView*))); + connect(this, TQ_SIGNAL(viewActivated(KMdiChildView*)), this, TQ_SLOT(currentChanged(KMdiChildView*))); ac->setHighlightingEnabled(true); - connect(ac, TQT_SIGNAL(actionStatusText(const TQString&)), this, TQT_SLOT(updateStatusBarMainMessage(const TQString&) )); - connect(ac, TQT_SIGNAL(clearStatusText()), statusBar(), TQT_SLOT(clear())); + connect(ac, TQ_SIGNAL(actionStatusText(const TQString&)), this, TQ_SLOT(updateStatusBarMainMessage(const TQString&) )); + connect(ac, TQ_SIGNAL(clearStatusText()), statusBar(), TQ_SLOT(clear())); // Create the status bar updateStatusBarMainMessage(i18n("No active instruments")); @@ -109,7 +109,7 @@ RemoteMDI::~RemoteMDI() void RemoteMDI::updateStatusBarMessage() { TQString windowStatusBarMessage; if (m_pCurrentWindow) { - windowStatusBarMessage = m_windowStatusBarMapping[TQT_TQOBJECT(m_pCurrentWindow)]; + windowStatusBarMessage = m_windowStatusBarMapping[m_pCurrentWindow]; } KStatusBar* sb = statusBar(); @@ -149,7 +149,7 @@ void RemoteMDI::processActions() { ServiceType st; for (ServiceList::Iterator it(m_activeStation.services.begin()); it != m_activeStation.services.end(); ++it) { st = *it; - action = new TDEAction(i18n("Launch")+" "+st.name, st.clientLibrary, TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT(startModule()), ac, st.clientLibrary.ascii()); + action = new TDEAction(i18n("Launch")+" "+st.name, st.clientLibrary, TDEShortcut(), this, TQ_SLOT(startModule()), ac, st.clientLibrary.ascii()); m_instrumentActionList.append(action); } plugActionList("instrumentMenu_actionlist", m_instrumentActionList); @@ -176,7 +176,7 @@ void RemoteMDI::startModule() { RemoteLab::InstrumentView* view = new RemoteLab::InstrumentView(st.clientLibrary, st.name, (mdiMode() == KMdi::ToplevelMode) ? 0 : this); view->setName(st.clientLibrary.ascii()); - connect(view, SIGNAL(statusMessageSet(const TQString&)), this, SLOT(updateStatusBarWindowMessage(const TQString&))); + connect(view, TQ_SIGNAL(statusMessageSet(const TQString&)), this, TQ_SLOT(updateStatusBarWindowMessage(const TQString&))); if (st.singleInstance) { const_cast<TDEAction*>(sendingAction)->setEnabled(false); } @@ -274,7 +274,7 @@ void RemoteMDI::finishConnectingToServer() { // Try to get a valid ticket if (getNewTicket() == 0) { // Retry connection if no obvious errors were detected - TQTimer::singleShot(0, this, SLOT(connectToServer())); + TQTimer::singleShot(0, this, TQ_SLOT(connectToServer())); return; } else { @@ -283,7 +283,7 @@ void RemoteMDI::finishConnectingToServer() { } } else { - connect(m_rsvSvrSocket, SIGNAL(readyRead()), m_rsvSvrSocket, SLOT(processPendingData())); + connect(m_rsvSvrSocket, TQ_SIGNAL(readyRead()), m_rsvSvrSocket, TQ_SLOT(processPendingData())); m_rsvSvrSocket->processPendingData(); connToServerState = 2; } @@ -341,7 +341,7 @@ void RemoteMDI::finishConnectingToServer() { break; } - TQTimer::singleShot(0, this, SLOT(finishConnectingToServer())); + TQTimer::singleShot(0, this, TQ_SLOT(finishConnectingToServer())); } } @@ -420,8 +420,8 @@ void RemoteMDI::connectToServer() { // Connect to the central reservation/control server if (!m_rsvSvrSocket) { m_rsvSvrSocket = new TDEKerberosClientSocket(this); - connect(m_rsvSvrSocket, SIGNAL(connectionClosed()), this, SLOT(connectionClosedHandler())); - connect(m_rsvSvrSocket, TQT_SIGNAL(statusMessageUpdated(const TQString&)), this, TQT_SLOT(updateStatusBarMainMessage(const TQString&) )); + connect(m_rsvSvrSocket, TQ_SIGNAL(connectionClosed()), this, TQ_SLOT(connectionClosedHandler())); + connect(m_rsvSvrSocket, TQ_SIGNAL(statusMessageUpdated(const TQString&)), this, TQ_SLOT(updateStatusBarMainMessage(const TQString&) )); } m_rsvSvrSocket->setServiceName("ulab"); TQStringList disallowedMechList; @@ -434,7 +434,7 @@ void RemoteMDI::connectToServer() { // Finish connecting when appropriate connToServerState = 0; connToServerConnecting = true; - TQTimer::singleShot(0, this, SLOT(finishConnectingToServer())); + TQTimer::singleShot(0, this, TQ_SLOT(finishConnectingToServer())); } } @@ -587,7 +587,7 @@ void RemoteMDI::openNewWindow(KMdiChildView *view) { currentChanged(view); // Handle termination - connect(view, SIGNAL(childWindowCloseRequest(KMdiChildView*)), this, SLOT(childClosed(KMdiChildView*))); + connect(view, TQ_SIGNAL(childWindowCloseRequest(KMdiChildView*)), this, TQ_SLOT(childClosed(KMdiChildView*))); } void RemoteMDI::childWindowCloseRequest(KMdiChildView *pWnd) { @@ -624,7 +624,7 @@ void RemoteMDI::closeCurrent() { void RemoteMDI::closeSpecifiedWindow(KMdiChildView *window) { if (window) { // Notify the status bar of the removal of the window - updateStatusBarWindowMessage(TQString::null, TQT_TQOBJECT(window)); + updateStatusBarWindowMessage(TQString::null, window); updateStatusBarMainMessage(i18n("Instrument %1 removed").arg(window->tabCaption())); // Unplug menus @@ -652,7 +652,7 @@ void RemoteMDI::childClosed(KMdiChildView * w) { unplugActionList("selectedInstrument_actionlist"); // Notify the status bar of the removal of the window - updateStatusBarWindowMessage(TQString::null, TQT_TQOBJECT(w)); + updateStatusBarWindowMessage(TQString::null, w); updateStatusBarMainMessage(i18n("Instrument %1 removed").arg(w->tabCaption())); // Re-enable associated action @@ -667,7 +667,7 @@ void RemoteMDI::childClosed(KMdiChildView * w) { } // Remove status bar text - m_windowStatusBarMapping.remove(TQT_TQOBJECT(w)); + m_windowStatusBarMapping.remove(w); // Remove the view from MDI, BUT DO NOT DELETE IT! It is automatically deleted by TQt since it was closed. removeWindowFromMdi(w); |