diff options
Diffstat (limited to 'kiosktool/componentPage.cpp')
-rw-r--r-- | kiosktool/componentPage.cpp | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/kiosktool/componentPage.cpp b/kiosktool/componentPage.cpp index 4793db4..3f7e3a7 100644 --- a/kiosktool/componentPage.cpp +++ b/kiosktool/componentPage.cpp @@ -19,12 +19,12 @@ #include "componentPage.h" -#include <qcursor.h> -#include <qfileinfo.h> -#include <qlabel.h> -#include <qstylesheet.h> -#include <qtextedit.h> -#include <qpushbutton.h> +#include <tqcursor.h> +#include <tqfileinfo.h> +#include <tqlabel.h> +#include <tqstylesheet.h> +#include <tqtextedit.h> +#include <tqpushbutton.h> #include <dcopref.h> @@ -40,15 +40,15 @@ #include "kioskdata.h" #include "kioskrun.h" -ComponentPage::ComponentPage( ComponentData *data, Component *component, QWidget* parent, const char* name, WFlags fl ) +ComponentPage::ComponentPage( ComponentData *data, Component *component, TQWidget* parent, const char* name, WFlags fl ) : ComponentPageUI(parent, name, fl), PageWidget(this), m_data(data), m_component(component) { m_process = 0; - connect(pbSetup, SIGNAL(clicked()), this, SLOT(slotSetup())); - connect(pbPreview, SIGNAL(clicked()), this, SLOT(slotPreview())); + connect(pbSetup, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetup())); + connect(pbPreview, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPreview())); - pbSetup->setText(i18n("&Setup %1").arg(m_data->caption)); - pbPreview->setText(i18n("&Preview %1").arg(m_data->caption)); + pbSetup->setText(i18n("&Setup %1").tqarg(m_data->caption)); + pbPreview->setText(i18n("&Preview %1").tqarg(m_data->caption)); if (m_data->preview.exec.isEmpty()) pbPreview->hide(); @@ -63,14 +63,14 @@ ComponentPage::ComponentPage( ComponentData *data, Component *component, QWidget if (firstTime) { firstTime = false; - QTimer::singleShot(0, this, SLOT(slotShowNotice())); + TQTimer::singleShot(0, this, TQT_SLOT(slotShowNotice())); } } fillActionList(listComponentConfig, m_data); - connect(listComponentConfig, SIGNAL(currentChanged(QListViewItem *)), - this, SLOT(slotShowAction(QListViewItem *))); + connect(listComponentConfig, TQT_SIGNAL(currentChanged(TQListViewItem *)), + this, TQT_SLOT(slotShowAction(TQListViewItem *))); slotShowAction(listComponentConfig->currentItem()); } @@ -101,9 +101,9 @@ void ComponentPage::setFocus() listComponentConfig->setFocus(); } -QString ComponentPage::subCaption() +TQString ComponentPage::subCaption() { - return i18n("Setup %1").arg(m_data->caption); + return i18n("Setup %1").tqarg(m_data->caption); } void ComponentPage::slotSetup() @@ -113,15 +113,15 @@ void ComponentPage::slotSetup() m_process->kill(); delete m_process; } - QCString dcopApp = m_data->setup.dcop.utf8(); - QCString dcopObj = "qt/" + dcopApp; + TQCString dcopApp = m_data->setup.dcop.utf8(); + TQCString dcopObj = "qt/" + dcopApp; if (!dcopApp.isEmpty() && m_data->setup.hasOption("restart")) DCOPRef(dcopApp, dcopObj).call("quit"); - QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) ); + TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) ); if (!KioskRun::self()->prepare()) { - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); KMessageBox::sorry(this, i18n("<qt>There was an unexpected problem with the runtime environment.</qt>")); return; @@ -129,22 +129,22 @@ void ComponentPage::slotSetup() KioskRun::self()->makeMutable(true); if (!save()) { - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); return; } if (m_component) m_component->slotSetupPrepare(); KioskRun::self()->updateSycoca(); - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); if (!dcopApp.isEmpty()) { KioskRun::self()->dcopClient()->setNotifications(true); - connect(KioskRun::self()->dcopClient(), SIGNAL(applicationRegistered( const QCString& )), - this, SLOT(slotSetupAppRegistered( const QCString& ))); + connect(KioskRun::self()->dcopClient(), TQT_SIGNAL(applicationRegistered( const TQCString& )), + this, TQT_SLOT(slotSetupAppRegistered( const TQCString& ))); } - QStringList args; + TQStringList args; if (m_data->setup.hasOption("nofork")) args << "--nofork"; @@ -154,7 +154,7 @@ void ComponentPage::slotSetup() int result = KMessageBox::questionYesNo(this, i18n("<qt>You can now configure %1. " "When you are finished click <b>Save</b> to make the new configuration permanent.") - .arg(m_data->caption), i18n("%1 Setup").arg(m_data->caption), + .tqarg(m_data->caption), i18n("%1 Setup").tqarg(m_data->caption), KStdGuiItem::save(), KStdGuiItem::discard()); m_saveSettings = (result == KMessageBox::Yes); if (!dcopApp.isEmpty()) @@ -162,7 +162,7 @@ void ComponentPage::slotSetup() if (m_process->isRunning()) { - connect(m_process, SIGNAL(processExited(KProcess *)), this, SLOT(slotPreviewDone())); + connect(m_process, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotPreviewDone())); } else { @@ -176,8 +176,8 @@ void ComponentPage::slotSetupDone() m_process = 0; KioskRun::self()->dcopClient()->setNotifications(false); - disconnect(KioskRun::self()->dcopClient(), SIGNAL(applicationRegistered( const QCString& )), - this, SLOT(slotSetupAppRegistered( const QCString& ))); + disconnect(KioskRun::self()->dcopClient(), TQT_SIGNAL(applicationRegistered( const TQCString& )), + this, TQT_SLOT(slotSetupAppRegistered( const TQCString& ))); KioskRun::self()->makeMutable(false); if (m_saveSettings) @@ -189,8 +189,8 @@ void ComponentPage::slotSetupDone() if (!result) return; // Find new config files. - QStringList newFiles = KioskRun::self()->newConfigFiles(); - for(QStringList::ConstIterator it = newFiles.begin(); + TQStringList newFiles = KioskRun::self()->newConfigFiles(); + for(TQStringList::ConstIterator it = newFiles.begin(); it != newFiles.end(); ++it) { if (m_data->ignoreFiles.contains(*it)) @@ -207,9 +207,9 @@ void ComponentPage::slotSetupDone() KApplication::kdeinitExec(m_data->setup.exec); } -void ComponentPage::slotSetupAppRegistered( const QCString &appid) +void ComponentPage::slotSetupAppRegistered( const TQCString &appid) { - QCString dcopApp = m_data->setup.dcop.utf8(); + TQCString dcopApp = m_data->setup.dcop.utf8(); if (dcopApp == appid) { kdDebug() << appid << " is up and running" << endl; @@ -225,25 +225,25 @@ void ComponentPage::slotPreview() m_process->kill(); delete m_process; } - QCString dcopApp = m_data->preview.dcop.utf8(); - QCString dcopObj = "qt/" + dcopApp; + TQCString dcopApp = m_data->preview.dcop.utf8(); + TQCString dcopObj = "qt/" + dcopApp; if (!dcopApp.isEmpty() && m_data->preview.hasOption("restart")) DCOPRef(dcopApp, dcopObj).call("quit"); - QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) ); + TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) ); KioskRun::self()->prepare(); save(); KioskRun::self()->updateSycoca(); - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); if (!dcopApp.isEmpty()) { KioskRun::self()->dcopClient()->setNotifications(true); - connect(KioskRun::self()->dcopClient(), SIGNAL(applicationRegistered( const QCString& )), - this, SLOT(slotPreviewAppRegistered( const QCString& ))); + connect(KioskRun::self()->dcopClient(), TQT_SIGNAL(applicationRegistered( const TQCString& )), + this, TQT_SLOT(slotPreviewAppRegistered( const TQCString& ))); } - QStringList args; + TQStringList args; if (m_data->preview.hasOption("nofork")) args << "--nofork"; @@ -254,13 +254,13 @@ void ComponentPage::slotPreview() i18n("<qt>This is how %1 will behave and look with the new settings. " "Any changes you now make to the settings will not be saved.<p>" "Click <b>Ok</b> to return to your own personal %2 configuration.") - .arg(m_data->caption, m_data->caption), i18n("%1 Preview").arg(m_data->caption)); + .tqarg(m_data->caption, m_data->caption), i18n("%1 Preview").tqarg(m_data->caption)); if (!dcopApp.isEmpty()) KioskRun::self()->dcopRef(dcopApp, dcopObj).call("quit"); if (m_process->isRunning()) { - connect(m_process, SIGNAL(processExited(KProcess *)), this, SLOT(slotPreviewDone())); + connect(m_process, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotPreviewDone())); } else { @@ -268,9 +268,9 @@ void ComponentPage::slotPreview() } } -void ComponentPage::slotPreviewAppRegistered( const QCString &appid) +void ComponentPage::slotPreviewAppRegistered( const TQCString &appid) { - QCString dcopApp = m_data->preview.dcop.utf8(); + TQCString dcopApp = m_data->preview.dcop.utf8(); if (dcopApp == appid) { kdDebug() << appid << " is up and running" << endl; @@ -282,8 +282,8 @@ void ComponentPage::slotPreviewAppRegistered( const QCString &appid) void ComponentPage::slotPreviewDone() { KioskRun::self()->dcopClient()->setNotifications(false); - disconnect(KioskRun::self()->dcopClient(), SIGNAL(applicationRegistered( const QCString& )), - this, SLOT(slotPreviewAppRegistered( const QCString& ))); + disconnect(KioskRun::self()->dcopClient(), TQT_SIGNAL(applicationRegistered( const TQCString& )), + this, TQT_SLOT(slotPreviewAppRegistered( const TQCString& ))); delete m_process; m_process = 0; @@ -291,13 +291,13 @@ void ComponentPage::slotPreviewDone() KApplication::kdeinitExec(m_data->preview.exec); } -void ComponentPage::slotShowAction(QListViewItem *item) +void ComponentPage::slotShowAction(TQListViewItem *item) { ComponentActionItem *actionItem = dynamic_cast<ComponentActionItem*>(item); - QString description; + TQString description; if (actionItem) { - description = "<h2>"+QStyleSheet::escape(actionItem->action()->caption)+"</h2>\n"; + description = "<h2>"+TQStyleSheet::escape(actionItem->action()->caption)+"</h2>\n"; description += actionItem->action()->description; } componentDescription->setText(description); |