summaryrefslogtreecommitdiffstats
path: root/kpf/src/PropertiesDialogPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpf/src/PropertiesDialogPlugin.cpp')
-rw-r--r--kpf/src/PropertiesDialogPlugin.cpp200
1 files changed, 100 insertions, 100 deletions
diff --git a/kpf/src/PropertiesDialogPlugin.cpp b/kpf/src/PropertiesDialogPlugin.cpp
index e86743e3..b53422ba 100644
--- a/kpf/src/PropertiesDialogPlugin.cpp
+++ b/kpf/src/PropertiesDialogPlugin.cpp
@@ -21,17 +21,17 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qwhatsthis.h>
-#include <qpushbutton.h>
-#include <qwidgetstack.h>
-#include <qtimer.h>
-#include <qdir.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqwhatsthis.h>
+#include <tqpushbutton.h>
+#include <tqwidgetstack.h>
+#include <tqtimer.h>
+#include <tqdir.h>
+#include <tqlineedit.h>
#include <kapplication.h>
#include <kglobal.h>
@@ -106,7 +106,7 @@ namespace KPF
uint listenPort;
uint bandwidthLimit;
// uint connectionLimit;
- QString serverName;
+ TQString serverName;
bool followSymlinks;
};
@@ -132,25 +132,25 @@ namespace KPF
{
}
- QLabel * l_listenPort;
- QLabel * l_bandwidthLimit;
-// QLabel * l_connectionLimit;
- QLabel * l_serverName;
- QLabel * l_kpfStatus;
+ TQLabel * l_listenPort;
+ TQLabel * l_bandwidthLimit;
+// TQLabel * l_connectionLimit;
+ TQLabel * l_serverName;
+ TQLabel * l_kpfStatus;
- QSpinBox * sb_listenPort;
- QSpinBox * sb_bandwidthLimit;
-// QSpinBox * sb_connectionLimit;
- QLineEdit * le_serverName;
+ TQSpinBox * sb_listenPort;
+ TQSpinBox * sb_bandwidthLimit;
+// TQSpinBox * sb_connectionLimit;
+ TQLineEdit * le_serverName;
- QCheckBox * cb_followSymlinks;
- QCheckBox * cb_share;
+ TQCheckBox * cb_followSymlinks;
+ TQCheckBox * cb_share;
- QPushButton * pb_startKPF;
+ TQPushButton * pb_startKPF;
- QWidgetStack * stack;
- QWidget * initWidget;
- QWidget * configWidget;
+ TQWidgetStack * stack;
+ TQWidget * initWidget;
+ TQWidget * configWidget;
WebServerManager_stub * webServerManagerInterface;
@@ -164,7 +164,7 @@ namespace KPF
PropertiesDialogPlugin::PropertiesDialogPlugin(KPropertiesDialog * dialog,
const char *,
- const QStringList &)
+ const TQStringList &)
: KPropsDlgPlugin(dialog)
{
d = new Private;
@@ -175,19 +175,19 @@ namespace KPF
d->url = dialog->kurl();
if (
- d->url == QDir::homeDirPath()
- || d->url == "file:" + QDir::homeDirPath()
+ d->url == TQDir::homeDirPath()
+ || d->url == "file:" + TQDir::homeDirPath()
)
{
// Don't even show ourselves if it's the home dir
return;
}
- QWidget * widget = dialog->addPage(i18n("&Sharing"));
+ TQWidget * widget = dialog->addPage(i18n("&Sharing"));
- d->stack = new QWidgetStack(widget);
+ d->stack = new TQWidgetStack(widget);
- QVBoxLayout * stackLayout = new QVBoxLayout(widget);
+ TQVBoxLayout * stackLayout = new TQVBoxLayout(widget);
stackLayout->addWidget(d->stack);
d->initWidget = createInitWidget(d->stack);
@@ -201,15 +201,15 @@ namespace KPF
connect
(
kapp->dcopClient(),
- SIGNAL(applicationRegistered(const QCString &)),
- SLOT(slotApplicationRegistered(const QCString &))
+ TQT_SIGNAL(applicationRegistered(const TQCString &)),
+ TQT_SLOT(slotApplicationRegistered(const TQCString &))
);
connect
(
kapp->dcopClient(),
- SIGNAL(applicationRemoved(const QCString &)),
- SLOT(slotApplicationUnregistered(const QCString &))
+ TQT_SIGNAL(applicationRemoved(const TQCString &)),
+ TQT_SLOT(slotApplicationUnregistered(const TQCString &))
);
d->kpfRunning = kapp->dcopClient()->isApplicationRegistered("kpf");
@@ -272,12 +272,12 @@ namespace KPF
d->cb_followSymlinks ->setEnabled(b);
}
- QWidget *
- PropertiesDialogPlugin::createInitWidget(QWidget * parent)
+ TQWidget *
+ PropertiesDialogPlugin::createInitWidget(TQWidget * parent)
{
- QWidget * w = new QWidget(parent);
+ TQWidget * w = new TQWidget(parent);
- QLabel * about =
+ TQLabel * about =
new QLabel
(
i18n
@@ -292,52 +292,52 @@ namespace KPF
);
d->pb_startKPF
- = new QPushButton(i18n("Start Applet"), w);
+ = new TQPushButton(i18n("Start Applet"), w);
- QVBoxLayout * l = new QVBoxLayout(w);
+ TQVBoxLayout * l = new TQVBoxLayout(w);
l->addWidget(about);
d->l_kpfStatus =
- new QLabel(i18n("Applet status: <strong>not running</strong>"), w);
+ new TQLabel(i18n("Applet status: <strong>not running</strong>"), w);
l->addWidget(d->l_kpfStatus);
- QHBoxLayout * l2 = new QHBoxLayout(l);
+ TQHBoxLayout * l2 = new TQHBoxLayout(l);
l2->addStretch(1);
l2->addWidget(d->pb_startKPF);
l->addStretch(1);
- connect(d->pb_startKPF, SIGNAL(clicked()), SLOT(slotStartKPF()));
+ connect(d->pb_startKPF, TQT_SIGNAL(clicked()), TQT_SLOT(slotStartKPF()));
return w;
}
- QWidget *
- PropertiesDialogPlugin::createConfigWidget(QWidget * parent)
+ TQWidget *
+ PropertiesDialogPlugin::createConfigWidget(TQWidget * parent)
{
- QWidget * w = new QWidget(parent);
+ TQWidget * w = new TQWidget(parent);
d->cb_share =
- new QCheckBox(i18n("Share this directory on the &Web"), w);
+ new TQCheckBox(i18n("Share this directory on the &Web"), w);
- d->l_listenPort = new QLabel(i18n("&Listen port:"), w);
- d->l_bandwidthLimit = new QLabel(i18n("&Bandwidth limit:"), w);
-// d->l_connectionLimit = new QLabel(i18n("Connection &limit"), w);
- d->l_serverName = new QLabel(i18n("&Server name:"), w);
+ d->l_listenPort = new TQLabel(i18n("&Listen port:"), w);
+ d->l_bandwidthLimit = new TQLabel(i18n("&Bandwidth limit:"), w);
+// d->l_connectionLimit = new TQLabel(i18n("Connection &limit"), w);
+ d->l_serverName = new TQLabel(i18n("&Server name:"), w);
bool canPublish = DNSSD::ServiceBrowser::isAvailable() == DNSSD::ServiceBrowser::Working;
d->l_serverName->setEnabled(canPublish);
- d->sb_listenPort = new QSpinBox(1000, 999999, 1, w);
- d->sb_bandwidthLimit = new QSpinBox(1, 999999, 1, w);
-// d->sb_connectionLimit = new QSpinBox(1, 9999, 1, w);
- d->le_serverName = new QLineEdit( w);
+ d->sb_listenPort = new TQSpinBox(1000, 999999, 1, w);
+ d->sb_bandwidthLimit = new TQSpinBox(1, 999999, 1, w);
+// d->sb_connectionLimit = new TQSpinBox(1, 9999, 1, w);
+ d->le_serverName = new TQLineEdit( w);
d->le_serverName->setEnabled(canPublish);
d->cb_followSymlinks =
- new QCheckBox(i18n("&Follow symbolic links"), w);
+ new TQCheckBox(i18n("&Follow symbolic links"), w);
d->l_listenPort ->setBuddy(d->sb_listenPort);
d->l_serverName ->setBuddy(d->le_serverName);
@@ -350,14 +350,14 @@ namespace KPF
// d->sb_connectionLimit ->setValue(Config::DefaultConnectionLimit);
d->cb_followSymlinks ->setChecked(Config::DefaultFollowSymlinks);
- QVBoxLayout * l0 =
- new QVBoxLayout(w, KDialog::marginHint(), KDialog::spacingHint());
+ TQVBoxLayout * l0 =
+ new TQVBoxLayout(w, KDialog::marginHint(), KDialog::spacingHint());
l0->addWidget(d->cb_share);
- l0->addWidget(new KSeparator(QFrame::HLine, w));
+ l0->addWidget(new KSeparator(TQFrame::HLine, w));
- QGridLayout * l2 = new QGridLayout(l0);
+ TQGridLayout * l2 = new TQGridLayout(l0);
l2->addWidget(d->l_listenPort, 0, 0);
l2->addWidget(d->sb_listenPort, 0, 1);
@@ -372,7 +372,7 @@ namespace KPF
l0->addStretch(1);
- QString shareHelp =
+ TQString shareHelp =
i18n
(
"<p>"
@@ -395,9 +395,9 @@ namespace KPF
" (%1)"
"</p>"
)
- .arg(QDir::homeDirPath());
+ .arg(TQDir::homeDirPath());
- QString listenPortHelp =
+ TQString listenPortHelp =
i18n
(
"<p>"
@@ -406,7 +406,7 @@ namespace KPF
"</p>"
);
- QString bandwidthLimitHelp =
+ TQString bandwidthLimitHelp =
i18n
(
"<p>"
@@ -419,7 +419,7 @@ namespace KPF
"</p>"
);
- QString connectionLimitHelp =
+ TQString connectionLimitHelp =
i18n
(
"<p>"
@@ -428,7 +428,7 @@ namespace KPF
"</p>"
);
- QString followSymlinksHelp =
+ TQString followSymlinksHelp =
i18n
(
"<p>"
@@ -441,64 +441,64 @@ namespace KPF
" risk. Use only if you understand the issues involved."
"</p>"
);
- QString serverNameHelp = KPF::HelpText::getServerNameHelp();
+ TQString serverNameHelp = KPF::HelpText::getServerNameHelp();
- QWhatsThis::add(d->cb_share, shareHelp);
- QWhatsThis::add(d->l_listenPort, listenPortHelp);
- QWhatsThis::add(d->sb_listenPort, listenPortHelp);
- QWhatsThis::add(d->l_bandwidthLimit, bandwidthLimitHelp);
- QWhatsThis::add(d->sb_bandwidthLimit, bandwidthLimitHelp);
-// QWhatsThis::add(d->l_connectionLimit, connectionLimitHelp);
-// QWhatsThis::add(d->sb_connectionLimit, connectionLimitHelp);
- QWhatsThis::add(d->l_serverName, serverNameHelp);
- QWhatsThis::add(d->le_serverName, serverNameHelp);
- QWhatsThis::add(d->cb_followSymlinks, followSymlinksHelp);
+ TQWhatsThis::add(d->cb_share, shareHelp);
+ TQWhatsThis::add(d->l_listenPort, listenPortHelp);
+ TQWhatsThis::add(d->sb_listenPort, listenPortHelp);
+ TQWhatsThis::add(d->l_bandwidthLimit, bandwidthLimitHelp);
+ TQWhatsThis::add(d->sb_bandwidthLimit, bandwidthLimitHelp);
+// TQWhatsThis::add(d->l_connectionLimit, connectionLimitHelp);
+// TQWhatsThis::add(d->sb_connectionLimit, connectionLimitHelp);
+ TQWhatsThis::add(d->l_serverName, serverNameHelp);
+ TQWhatsThis::add(d->le_serverName, serverNameHelp);
+ TQWhatsThis::add(d->cb_followSymlinks, followSymlinksHelp);
- connect(d->cb_share, SIGNAL(toggled(bool)), SLOT(slotSharingToggled(bool)));
+ connect(d->cb_share, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotSharingToggled(bool)));
slotSharingToggled(false);
connect
(
d->cb_share,
- SIGNAL(toggled(bool)),
- SLOT(slotChanged())
+ TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotChanged())
);
connect
(
d->sb_listenPort,
- SIGNAL(valueChanged(int)),
- SLOT(slotChanged())
+ TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotChanged())
);
connect
(
d->sb_bandwidthLimit,
- SIGNAL(valueChanged(int)),
- SLOT(slotChanged())
+ TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotChanged())
);
#if 0
connect
(
d->sb_connectionLimit,
- SIGNAL(valueChanged(int)),
- SLOT(slotChanged())
+ TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotChanged())
);
#endif
connect
(
d->le_serverName,
- SIGNAL(textChanged(const QString&)),
- SLOT(slotChanged())
+ TQT_SIGNAL(textChanged(const TQString&)),
+ TQT_SLOT(slotChanged())
);
connect
(
d->cb_followSymlinks,
- SIGNAL(toggled(bool)),
- SLOT(slotChanged())
+ TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotChanged())
);
return w;
@@ -511,9 +511,9 @@ namespace KPF
->setText(i18n("Applet status: <strong>starting...</strong>"));
kapp->dcopClient()
- ->send("kicker", "default", "addApplet(QString)", "kpfapplet.desktop");
+ ->send("kicker", "default", "addApplet(TQString)", "kpfapplet.desktop");
- QTimer::singleShot(4 * 1000, this, SLOT(slotStartKPFFailed()));
+ TQTimer::singleShot(4 * 1000, this, TQT_SLOT(slotStartKPFFailed()));
}
void
@@ -526,7 +526,7 @@ namespace KPF
}
void
- PropertiesDialogPlugin::slotApplicationRegistered(const QCString & s)
+ PropertiesDialogPlugin::slotApplicationRegistered(const TQCString & s)
{
if ("kpf" == s)
{
@@ -544,7 +544,7 @@ namespace KPF
}
void
- PropertiesDialogPlugin::slotApplicationUnregistered(const QCString & s)
+ PropertiesDialogPlugin::slotApplicationUnregistered(const TQCString & s)
{
if ("kpf" == s)
{
@@ -629,7 +629,7 @@ namespace KPF
void
PropertiesDialogPlugin::getServerRef()
{
- QValueList<DCOPRef> serverRefList =
+ TQValueList<DCOPRef> serverRefList =
d->webServerManagerInterface->serverList();
if (DCOPStub::CallFailed == d->webServerManagerInterface->status())
@@ -641,7 +641,7 @@ namespace KPF
d->webServerRef.clear();
- QValueList<DCOPRef>::ConstIterator it(serverRefList.begin());
+ TQValueList<DCOPRef>::ConstIterator it(serverRefList.begin());
for (; it != serverRefList.end(); ++it)
{
@@ -660,7 +660,7 @@ namespace KPF
bool
PropertiesDialogPlugin::userAcceptsWarning() const
{
- QString noWarningKey("DoNotWarnAboutSharingDirectoriesViaHTTP");
+ TQString noWarningKey("DoNotWarnAboutSharingDirectoriesViaHTTP");
KConfig * config(KGlobal::config());