Raw TQt conversion of kiosktool

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kiosktool@1258970 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 281b2113b2
commit 586a5f786f

@ -19,8 +19,8 @@
#include "component.h"
Component::Component( QObject *parent)
: QObject(parent)
Component::Component( TQObject *parent)
: TQObject(parent)
{
}

@ -19,13 +19,14 @@
#ifndef _COMPONENT_H_
#define _COMPONENT_H_
#include <qobject.h>
#include <tqobject.h>
class Component : public QObject
class Component : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
Component( QObject *parent);
Component( TQObject *parent);
virtual ~Component();
virtual bool setupFinished();

@ -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);

@ -29,8 +29,9 @@ class ComponentData;
class ComponentPage : public ComponentPageUI, public PageWidget
{
Q_OBJECT
TQ_OBJECT
public:
ComponentPage( ComponentData *data, Component *component, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
ComponentPage( ComponentData *data, Component *component, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~ComponentPage();
virtual void load();
@ -38,7 +39,7 @@ public:
virtual void setFocus();
virtual QString subCaption();
virtual TQString subCaption();
public slots:
void slotSetup();
@ -48,9 +49,9 @@ protected slots:
void slotShowNotice();
void slotSetupDone();
void slotPreviewDone();
void slotShowAction(QListViewItem *item);
void slotSetupAppRegistered( const QCString &appid);
void slotPreviewAppRegistered( const QCString &appid);
void slotShowAction(TQListViewItem *item);
void slotSetupAppRegistered( const TQCString &appid);
void slotPreviewAppRegistered( const TQCString &appid);
protected:
void prepareMutableFiles();

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ComponentPageUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>ComponentPageUI</cstring>
</property>
@ -19,17 +19,17 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="3" column="0" rowspan="1" colspan="4">
<widget class="TQLabel" row="3" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>componentDescription</cstring>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>140</height>
</size>
</property>
<property name="maximumSize">
<property name="tqmaximumSize">
<size>
<width>32767</width>
<height>140</height>
@ -41,7 +41,7 @@
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="alignment">
<property name="tqalignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -55,22 +55,22 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget" row="1" column="3">
<widget class="TQLayoutWidget" row="1" column="3">
<property name="name">
<cstring>layout1</cstring>
<cstring>tqlayout1</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>pbSetup</cstring>
</property>
@ -88,14 +88,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>pbPreview</cstring>
</property>
@ -113,7 +113,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>21</width>
<height>171</height>
@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@ -162,7 +162,7 @@
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>300</width>
<height>150</height>
@ -178,7 +178,7 @@
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>

@ -19,7 +19,7 @@
#include "componentSelectionPage.h"
#include <qpushbutton.h>
#include <tqpushbutton.h>
#include <kapplication.h>
#include <kconfig.h>
@ -29,29 +29,29 @@
#include "kioskdata.h"
class ComponentViewItem : public QIconViewItem
class ComponentViewItem : public TQIconViewItem
{
public:
ComponentViewItem( QIconView * parent, const QString & text, const QPixmap & icon, const QString & _id )
: QIconViewItem( parent, text, icon), id(_id)
ComponentViewItem( TQIconView * parent, const TQString & text, const TQPixmap & icon, const TQString & _id )
: TQIconViewItem( parent, text, icon), id(_id)
{
}
QString id;
TQString id;
};
ComponentSelectionPage::ComponentSelectionPage( KioskData *data, QWidget* parent, const char* name, WFlags fl )
ComponentSelectionPage::ComponentSelectionPage( KioskData *data, TQWidget* parent, const char* name, WFlags fl )
: ComponentSelectionPageUI(parent, name, fl), PageWidget(this), m_data(data)
{
listComponent->setSelectionMode(QIconView::Single);
listComponent->setSelectionMode(TQIconView::Single);
listComponent->setItemsMovable(false);
listComponent->setSpacing(20);
listComponent->setGridX(110);
listComponent->setGridY(75);
loadComponentList();
connect(listComponent, SIGNAL(clicked(QIconViewItem *)), this, SLOT(slotComponentActivated(QIconViewItem *)));
connect(listComponent, SIGNAL(returnPressed (QIconViewItem *)), this, SLOT(slotComponentActivated(QIconViewItem *)));
connect(pbSetup, SIGNAL(clicked()), this, SLOT(slotComponentActivated()));
connect(listComponent, TQT_SIGNAL(clicked(TQIconViewItem *)), this, TQT_SLOT(slotComponentActivated(TQIconViewItem *)));
connect(listComponent, TQT_SIGNAL(returnPressed (TQIconViewItem *)), this, TQT_SLOT(slotComponentActivated(TQIconViewItem *)));
connect(pbSetup, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotComponentActivated()));
}
ComponentSelectionPage::~ComponentSelectionPage()
@ -75,21 +75,21 @@ void ComponentSelectionPage::setFocus()
{
}
QString ComponentSelectionPage::subCaption()
TQString ComponentSelectionPage::subCaption()
{
return QString::null;
return TQString();
}
void ComponentSelectionPage::loadComponentList()
{
listComponent->clear();
for(QStringList::ConstIterator it = m_data->m_componentList.begin();
for(TQStringList::ConstIterator it = m_data->m_componentList.begin();
it != m_data->m_componentList.end(); ++it)
{
ComponentData *data = m_data->m_componentData.find(*it);
Q_ASSERT(data);
if (!data) continue;
QPixmap icon = DesktopIcon( data->icon, KIcon::SizeMedium );
TQPixmap icon = DesktopIcon( data->icon, KIcon::SizeMedium );
new ComponentViewItem(listComponent, data->caption, icon, data->id);
}
}
@ -99,7 +99,7 @@ bool ComponentSelectionPage::hasSelection()
return !currentComponent().isEmpty();
}
QString ComponentSelectionPage::currentComponent()
TQString ComponentSelectionPage::currentComponent()
{
ComponentViewItem *item = static_cast<ComponentViewItem *>(listComponent->firstItem());
while(item)
@ -109,10 +109,10 @@ QString ComponentSelectionPage::currentComponent()
item = static_cast<ComponentViewItem *>(item->nextItem());
}
return QString::null;
return TQString();
}
void ComponentSelectionPage::setCurrentComponent(const QString &id)
void ComponentSelectionPage::setCurrentComponent(const TQString &id)
{
ComponentViewItem *item = static_cast<ComponentViewItem *>(listComponent->firstItem());
while(item)
@ -128,7 +128,7 @@ void ComponentSelectionPage::setCurrentComponent(const QString &id)
listComponent->setSelected(listComponent->firstItem(), true);
}
void ComponentSelectionPage::slotComponentActivated(QIconViewItem *item)
void ComponentSelectionPage::slotComponentActivated(TQIconViewItem *item)
{
if (item)
emit componentActivated();

@ -27,8 +27,9 @@ class KioskData;
class ComponentSelectionPage : public ComponentSelectionPageUI, public PageWidget
{
Q_OBJECT
TQ_OBJECT
public:
ComponentSelectionPage( KioskData *data, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
ComponentSelectionPage( KioskData *data, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~ComponentSelectionPage();
virtual void load();
@ -36,10 +37,10 @@ public:
virtual void setFocus();
virtual QString subCaption();
virtual TQString subCaption();
void setCurrentComponent(const QString &);
QString currentComponent();
void setCurrentComponent(const TQString &);
TQString currentComponent();
signals:
void componentActivated();
@ -49,7 +50,7 @@ protected:
bool hasSelection();
protected slots:
void slotComponentActivated(QIconViewItem *item);
void slotComponentActivated(TQIconViewItem *item);
void slotComponentActivated();
private:

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ComponentSelectionPageUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>ComponentSelectionPageUI</cstring>
</property>
@ -29,7 +29,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@ -46,22 +46,22 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget" row="1" column="3">
<widget class="TQLayoutWidget" row="1" column="3">
<property name="name">
<cstring>layout1</cstring>
<cstring>tqlayout1</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>pbSetup</cstring>
</property>
@ -79,7 +79,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>211</height>
@ -88,7 +88,7 @@
</spacer>
</vbox>
</widget>
<widget class="QIconView" row="1" column="0" rowspan="1" colspan="2">
<widget class="TQIconView" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>listComponent</cstring>
</property>
@ -100,14 +100,14 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>400</width>
<height>200</height>
</size>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>

@ -19,8 +19,8 @@
#include "desktopComponent.h"
#include <qdir.h>
#include <qfileinfo.h>
#include <tqdir.h>
#include <tqfileinfo.h>
#include <kdebug.h>
#include <kmimetype.h>
@ -32,7 +32,7 @@
#include "kioskrun.h"
DesktopComponent::DesktopComponent( QObject *parent)
DesktopComponent::DesktopComponent( TQObject *parent)
: Component(parent)
{
}
@ -45,19 +45,19 @@ void
DesktopComponent::slotSetupPrepare()
{
m_iconPositionsFile = KioskRun::self()->locateLocal("data", "kdesktop/IconPositions");
::unlink(QFile::encodeName(m_iconPositionsFile));
connect(&m_timer, SIGNAL(timeout()), this, SLOT(slotSetupStarted()));
::unlink(TQFile::encodeName(m_iconPositionsFile));
connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSetupStarted()));
}
void
DesktopComponent::slotSetupStarted()
{
QString desktop = KioskRun::self()->desktopPath();
QFileInfo info(desktop);
TQString desktop = KioskRun::self()->desktopPath();
TQFileInfo info(desktop);
if (info.exists())
{
disconnect(&m_timer, SIGNAL(timeout()), this, SLOT(slotSetupStarted()));
connect(&m_timer, SIGNAL(timeout()), this, SLOT(slotSetupReady()));
disconnect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSetupStarted()));
connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSetupReady()));
m_timer.start(1000, true);
}
else
@ -66,13 +66,13 @@ DesktopComponent::slotSetupStarted()
}
}
void filterFileList(const QString &path, QStringList *files, QStringList *oldFiles)
void filterFileList(const TQString &path, TQStringList *files, TQStringList *oldFiles)
{
files->remove(".");
files->remove("..");
QStringList::Iterator next;
for(QStringList::Iterator it = files->begin();
TQStringList::Iterator next;
for(TQStringList::Iterator it = files->begin();
it != files->end(); it = next)
{
next = it;
@ -100,10 +100,10 @@ void filterFileList(const QString &path, QStringList *files, QStringList *oldFil
void
DesktopComponent::slotSetupReady()
{
QString desktop = KioskRun::self()->desktopPath();
TQString desktop = KioskRun::self()->desktopPath();
QDir dir(desktop);
m_origDesktopFiles = dir.entryList(QDir::All, QDir::Unsorted);
TQDir dir(desktop);
m_origDesktopFiles = dir.entryList(TQDir::All, TQDir::Unsorted);
filterFileList(desktop, &m_origDesktopFiles, 0);
}
@ -113,16 +113,16 @@ DesktopComponent::setupFinished()
{
bool result = true;
disconnect(&m_timer, SIGNAL(timeout()), this, SLOT(slotSetupStarted()));
disconnect(&m_timer, SIGNAL(timeout()), this, SLOT(slotSetupReady()));
disconnect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSetupStarted()));
disconnect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSetupReady()));
m_timer.stop();
KSimpleConfig newCfg(m_iconPositionsFile, true);
QString desktop = KioskRun::self()->desktopPath();
TQString desktop = KioskRun::self()->desktopPath();
QDir dir(desktop);
QStringList newDesktopFiles = dir.entryList(QDir::All, QDir::Unsorted);
TQDir dir(desktop);
TQStringList newDesktopFiles = dir.entryList(TQDir::All, TQDir::Unsorted);
filterFileList(desktop, &newDesktopFiles, &m_origDesktopFiles);
KTempFile positionsFile;
@ -130,12 +130,12 @@ DesktopComponent::setupFinished()
KSimpleConfig positions(positionsFile.name());
QStringList newGroups = newCfg.groupList();
TQStringList newGroups = newCfg.groupList();
QString prefix = "IconPosition::";
TQString prefix = "IconPosition::";
// Save icon positions
for(QStringList::Iterator it = newGroups.begin();
for(TQStringList::Iterator it = newGroups.begin();
it != newGroups.end(); ++it)
{
if (!(*it).startsWith(prefix))
@ -151,8 +151,8 @@ DesktopComponent::setupFinished()
}
// Remove old icons from new list
QStringList::Iterator next;
for(QStringList::Iterator it = m_origDesktopFiles.begin();
TQStringList::Iterator next;
for(TQStringList::Iterator it = m_origDesktopFiles.begin();
it != m_origDesktopFiles.end(); it = next)
{
next = it;
@ -166,17 +166,17 @@ DesktopComponent::setupFinished()
}
QString installPath = KioskRun::self()->locateSave("data", "kdesktop/Desktop/");
QString installPath2 = KioskRun::self()->locateSave("data", "kdesktop/DesktopLinks/");
TQString installPath = KioskRun::self()->locateSave("data", "kdesktop/Desktop/");
TQString installPath2 = KioskRun::self()->locateSave("data", "kdesktop/DesktopLinks/");
// Remove all icons that are no longer
for(QStringList::Iterator it = m_origDesktopFiles.begin();
for(TQStringList::Iterator it = m_origDesktopFiles.begin();
it != m_origDesktopFiles.end(); ++it)
{
QString file;
if (QFile::exists(installPath + *it))
TQString file;
if (TQFile::exists(installPath + *it))
file = installPath + *it;
else if (QFile::exists(installPath2 + *it))
else if (TQFile::exists(installPath2 + *it))
file = installPath2 + *it;
if (!file.isEmpty())
@ -187,7 +187,7 @@ DesktopComponent::setupFinished()
}
else
{
QString installFile = installPath + *it;
TQString installFile = installPath + *it;
file = KioskRun::self()->locate("data", "kdesktop/Desktop/" + *it);
if (file.isEmpty())
{
@ -219,11 +219,11 @@ DesktopComponent::setupFinished()
if (!result) return false;
// Add all icons that have been added
for(QStringList::Iterator it = newDesktopFiles.begin();
for(TQStringList::Iterator it = newDesktopFiles.begin();
it != newDesktopFiles.end(); ++it)
{
QString file = KioskRun::self()->desktopPath() + *it;
if (QFile::exists(file))
TQString file = KioskRun::self()->desktopPath() + *it;
if (TQFile::exists(file))
{
result = KioskRun::self()->install(file, installPath + *it);
if (!result) return false;

@ -21,14 +21,15 @@
#include "component.h"
#include <qstringlist.h>
#include <qtimer.h>
#include <tqstringlist.h>
#include <tqtimer.h>
class DesktopComponent: public Component
{
Q_OBJECT
TQ_OBJECT
public:
DesktopComponent( QObject *parent = 0);
DesktopComponent( TQObject *parent = 0);
virtual ~DesktopComponent();
virtual bool setupFinished();
@ -42,9 +43,9 @@ protected slots:
void slotSetupReady();
private:
QTimer m_timer;
QString m_iconPositionsFile;
QStringList m_origDesktopFiles;
TQTimer m_timer;
TQString m_iconPositionsFile;
TQStringList m_origDesktopFiles;
};
#endif

@ -19,9 +19,9 @@
#include "filetypeeditComponent.h"
#include <qdir.h>
#include <qdom.h>
#include <qfileinfo.h>
#include <tqdir.h>
#include <tqdom.h>
#include <tqfileinfo.h>
#include <kapplication.h>
#include <kdebug.h>
@ -35,7 +35,7 @@
#include "kioskrun.h"
#include "kiosksync.h"
FileTypeEditComponent::FileTypeEditComponent( QObject *parent)
FileTypeEditComponent::FileTypeEditComponent( TQObject *parent)
: Component(parent)
{
}
@ -61,15 +61,15 @@ FileTypeEditComponent::setupFinished()
// Install mimetype files
{
QString mimetypeFiles = KioskRun::self()->locateLocal("mime", QString::null);
QString mimetypeSaveFiles = KioskRun::self()->locateSave("mime", QString::null);
TQString mimetypeFiles = KioskRun::self()->locateLocal("mime", TQString());
TQString mimetypeSaveFiles = KioskRun::self()->locateSave("mime", TQString());
KioskSync mimeDir(kapp->mainWidget());
mimeDir.addDir(mimetypeFiles, KURL());
QStringList newMimetypeFiles = mimeDir.listFiles();
TQStringList newMimetypeFiles = mimeDir.listFiles();
for(QStringList::ConstIterator it = newMimetypeFiles.begin();
for(TQStringList::ConstIterator it = newMimetypeFiles.begin();
it != newMimetypeFiles.end(); ++it)
{
if ((*it).endsWith(".desktop"))
@ -83,15 +83,15 @@ FileTypeEditComponent::setupFinished()
// Install legacy .desktop files
{
QString legacyApplications = KioskRun::self()->locateLocal("apps", QString::null);
QString legacySaveApplications = KioskRun::self()->locateSave("apps", QString::null);
TQString legacyApplications = KioskRun::self()->locateLocal("apps", TQString());
TQString legacySaveApplications = KioskRun::self()->locateSave("apps", TQString());
KioskSync legacyDir(kapp->mainWidget());
legacyDir.addDir(legacyApplications, KURL());
QStringList newLegacyApplications = legacyDir.listFiles();
TQStringList newLegacyApplications = legacyDir.listFiles();
for(QStringList::ConstIterator it = newLegacyApplications.begin();
for(TQStringList::ConstIterator it = newLegacyApplications.begin();
it != newLegacyApplications.end(); ++it)
{
if ((*it).endsWith(".desktop") || (*it).endsWith(".kdelnk") || (*it).endsWith(".directory"))
@ -105,15 +105,15 @@ FileTypeEditComponent::setupFinished()
// Install .desktop files
{
QString xdgApplications = KioskRun::self()->locateLocal("xdgdata-apps", QString::null);
QString xdgSaveApplications = KioskRun::self()->locateSave("xdgdata-apps", QString::null);
TQString xdgApplications = KioskRun::self()->locateLocal("xdgdata-apps", TQString());
TQString xdgSaveApplications = KioskRun::self()->locateSave("xdgdata-apps", TQString());
QDir dir(xdgApplications);
QStringList newXdgApplications = dir.entryList(QDir::All, QDir::Unsorted);
TQDir dir(xdgApplications);
TQStringList newXdgApplications = dir.entryList(TQDir::All, TQDir::Unsorted);
newXdgApplications.remove(".");
newXdgApplications.remove("..");
for(QStringList::ConstIterator it = newXdgApplications.begin();
for(TQStringList::ConstIterator it = newXdgApplications.begin();
it != newXdgApplications.end(); ++it)
{
if ((*it).endsWith(".desktop") || (*it).endsWith(".kdelnk"))

@ -21,14 +21,15 @@
#include "component.h"
#include <qstringlist.h>
#include <qtimer.h>
#include <tqstringlist.h>
#include <tqtimer.h>
class FileTypeEditComponent: public Component
{
Q_OBJECT
TQ_OBJECT
public:
FileTypeEditComponent( QObject *parent = 0);
FileTypeEditComponent( TQObject *parent = 0);
virtual ~FileTypeEditComponent();
virtual bool setupFinished();

@ -18,13 +18,13 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <qlayout.h>
#include <qwhatsthis.h>
#include <qvgroupbox.h>
#include <qpushbutton.h>
#include <qheader.h>
#include <qtimer.h>
#include <qfileinfo.h>
#include <tqlayout.h>
#include <tqwhatsthis.h>
#include <tqvgroupbox.h>
#include <tqpushbutton.h>
#include <tqheader.h>
#include <tqtimer.h>
#include <tqfileinfo.h>
#include <kaboutdata.h>
#include <kapplication.h>
@ -44,10 +44,10 @@ Boston, MA 02111-1307, USA.
#include "kcmautostart.h"
#include "kcmautostart.moc"
typedef KGenericFactory<AutoStartConfig, QWidget> AutoStartFactory;
typedef KGenericFactory<AutoStartConfig, TQWidget> AutoStartFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_autostart, AutoStartFactory( "kcmautostart" ) )
AutoStartConfig::AutoStartConfig(QWidget* parent, const char* name, const QStringList &) :
AutoStartConfig::AutoStartConfig(TQWidget* parent, const char* name, const TQStringList &) :
KCModule( AutoStartFactory::instance(), parent, name )
{
KGlobal::dirs()->addResourceType("autostart", "share/autostart");
@ -60,10 +60,10 @@ AutoStartConfig::AutoStartConfig(QWidget* parent, const char* name, const QStrin
setAboutData( about );
#endif
QVBoxLayout *lay = new QVBoxLayout( this, 0, KDialog::spacingHint() );
TQVBoxLayout *lay = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
QGroupBox *gb = new QVGroupBox( i18n( "Startup Services" ), this );
QWhatsThis::add(gb, i18n("This shows all KDE services that can be loaded "
TQGroupBox *gb = new TQVGroupBox( i18n( "Startup Services" ), this );
TQWhatsThis::add(gb, i18n("This shows all KDE services that can be loaded "
"on KDE startup. Checked services will be invoked on next startup. "
"Be careful with deactivation of unknown services."));
lay->addWidget( gb );
@ -78,9 +78,9 @@ AutoStartConfig::AutoStartConfig(QWidget* parent, const char* name, const QStrin
load();
}
void setModuleGroup(KConfig *config, const QString &filename)
void setModuleGroup(KConfig *config, const TQString &filename)
{
QString module = filename;
TQString module = filename;
int i = module.findRev('/');
if (i != -1)
module = module.mid(i+1);
@ -88,16 +88,16 @@ void setModuleGroup(KConfig *config, const QString &filename)
if (i != -1)
module = module.left(i);
config->setGroup(QString("Module-%1").arg(module));
config->setGroup(TQString("Module-%1").tqarg(module));
}
bool AutoStartConfig::autoloadEnabled(KConfig *config, const QString &filename)
bool AutoStartConfig::autoloadEnabled(KConfig *config, const TQString &filename)
{
setModuleGroup(config, filename);
return config->readBoolEntry("autoload", true);
}
void AutoStartConfig::setAutoloadEnabled(KConfig *config, const QString &filename, bool b)
void AutoStartConfig::setAutoloadEnabled(KConfig *config, const TQString &filename, bool b)
{
setModuleGroup(config, filename);
return config->writeEntry("autoload", b);
@ -106,18 +106,18 @@ void AutoStartConfig::setAutoloadEnabled(KConfig *config, const QString &filenam
void AutoStartConfig::load() {
_lvStartup->clear();
QStringList files = KGlobal::dirs()->findAllResources( "autostart", QString::fromLatin1( "*.desktop" ), false, true );
TQStringList files = KGlobal::dirs()->findAllResources( "autostart", TQString::tqfromLatin1( "*.desktop" ), false, true );
for ( QStringList::ConstIterator it = files.begin(); it != files.end(); it++ )
for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); it++ )
{
if ( KDesktopFile::isDesktopFile( QFileInfo( *it ).fileName() ) )
if ( KDesktopFile::isDesktopFile( TQFileInfo( *it ).fileName() ) )
{
KDesktopFile file( QFileInfo( *it ).fileName(), true, "autostart" );
QString name = file.readName();
KDesktopFile file( TQFileInfo( *it ).fileName(), true, "autostart" );
TQString name = file.readName();
if ( !name.isEmpty() )
{
CheckListItem *clitem = new CheckListItem( _lvStartup, QString::null );
connect( clitem, SIGNAL( changed( QCheckListItem * ) ), SLOT( slotItemChecked( QCheckListItem * ) ) );
CheckListItem *clitem = new CheckListItem( _lvStartup, TQString() );
connect( clitem, TQT_SIGNAL( changed( TQCheckListItem * ) ), TQT_SLOT( slotItemChecked( TQCheckListItem * ) ) );
clitem->setText( 1, name );
clitem->setText( 2, file.readComment() );
clitem->setText( 3, *it );
@ -129,19 +129,19 @@ void AutoStartConfig::load() {
void AutoStartConfig::save()
{
QListViewItemIterator it( _lvStartup );
TQListViewItemIterator it( _lvStartup );
while ( it.current() )
{
if ( KDesktopFile::isDesktopFile( it.current()->text( 3 ) ) )
{
// Determine whether we need to change the file on a readonly desktop file
// by giving a full path first
QString path = it.current()->text( 3 );
TQString path = it.current()->text( 3 );
KDesktopFile file( path, true, "services" );
bool shouldBeHidden = !( static_cast<QCheckListItem *>( it.current() )->isOn() );
bool shouldBeHidden = !( static_cast<TQCheckListItem *>( it.current() )->isOn() );
if ( file.readBoolEntry( "Hidden", false ) != shouldBeHidden )
{
KDesktopFile outFile( QFileInfo( path ).fileName(), false, "autostart" );
KDesktopFile outFile( TQFileInfo( path ).fileName(), false, "autostart" );
kdDebug() << "************** Writing out " << path << endl;
outFile.writeEntry( "Hidden", shouldBeHidden );
outFile.sync();
@ -150,15 +150,15 @@ void AutoStartConfig::save()
++it;
}
//QTimer::singleShot(0, this, SLOT(slotServiceRunningToggled()));
//TQTimer::singleShot(0, this, TQT_SLOT(slotServiceRunningToggled()));
}
void AutoStartConfig::defaults()
{
QListViewItemIterator it( _lvStartup);
TQListViewItemIterator it( _lvStartup);
while ( it.current() != 0 ) {
if (it.current()->rtti()==1) {
QCheckListItem *item = static_cast<QCheckListItem *>(it.current());
TQCheckListItem *item = static_cast<TQCheckListItem *>(it.current());
item->setOn(false);
}
++it;
@ -167,19 +167,19 @@ void AutoStartConfig::defaults()
void AutoStartConfig::slotReload()
{
QString current = _lvStartup->currentItem()->text(4);
TQString current = _lvStartup->currentItem()->text(4);
load();
QListViewItem *item = _lvStartup->findItem(current, 4);
TQListViewItem *item = _lvStartup->findItem(current, 4);
if (item)
_lvStartup->setCurrentItem(item);
}
void AutoStartConfig::slotItemChecked(QCheckListItem*)
void AutoStartConfig::slotItemChecked(TQCheckListItem*)
{
emit changed(true);
}
QString AutoStartConfig::quickHelp() const
TQString AutoStartConfig::quickHelp() const
{
return i18n("<h1>Service Manager</h1><p>This module allows you to have an overview of all plugins of the "
"KDE Daemon, also referred to as KDE Services. Generally, there are two types of service:</p>"
@ -190,13 +190,13 @@ QString AutoStartConfig::quickHelp() const
" do not know what you are doing.</b></p>");
}
CheckListItem::CheckListItem(QListView *parent, const QString &text)
: QObject(parent),
QCheckListItem(parent, text, CheckBox)
CheckListItem::CheckListItem(TQListView *parent, const TQString &text)
: TQObject(parent),
TQCheckListItem(parent, text, CheckBox)
{ }
void CheckListItem::stateChange(bool on)
{
QCheckListItem::stateChange(on);
TQCheckListItem::stateChange(on);
emit changed(this);
}

@ -19,45 +19,47 @@
#ifndef KCMAUTOSTART_H
#define KCMAUTOSTART_H
#include <qlistview.h>
#include <tqlistview.h>
#include <kcmodule.h>
class KListView;
class QStringList;
class QPushButton;
class TQStringList;
class TQPushButton;
class AutoStartConfig : public KCModule
{
Q_OBJECT
TQ_OBJECT
public:
AutoStartConfig(QWidget* parent, const char* name= 0L, const QStringList& foo = QStringList());
AutoStartConfig(TQWidget* parent, const char* name= 0L, const TQStringList& foo = TQStringList());
~AutoStartConfig() {};
void load();
void save();
void defaults();
QString quickHelp() const;
TQString quickHelp() const;
protected slots:
void slotReload();
void slotItemChecked(QCheckListItem *item);
void slotItemChecked(TQCheckListItem *item);
bool autoloadEnabled(KConfig *config, const QString &filename);
void setAutoloadEnabled(KConfig *config, const QString &filename, bool b);
bool autoloadEnabled(KConfig *config, const TQString &filename);
void setAutoloadEnabled(KConfig *config, const TQString &filename, bool b);
private:
KListView *_lvStartup;
};
class CheckListItem : public QObject, public QCheckListItem
class CheckListItem : public TQObject, public TQCheckListItem
{
Q_OBJECT
TQ_OBJECT
public:
CheckListItem(QListView* parent, const QString &text);
CheckListItem(TQListView* parent, const TQString &text);
~CheckListItem() { }
signals:
void changed(QCheckListItem*);
void changed(TQCheckListItem*);
protected:
virtual void stateChange(bool);
};

@ -19,8 +19,8 @@
#include "kioskConfigDialog.h"
#include <qcheckbox.h>
#include <qtextedit.h>
#include <tqcheckbox.h>
#include <tqtextedit.h>
#include <kapplication.h>
#include <kconfig.h>
@ -34,7 +34,7 @@
#include "kioskConfigDialog_ui.h"
KioskConfigDialog::KioskConfigDialog(QWidget *parent)
KioskConfigDialog::KioskConfigDialog(TQWidget *parent)
: KDialogBase(parent, "KioskConfigDialog", true, i18n("Configure Kiosk Admin Tool"),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true )
{
@ -45,9 +45,9 @@ KioskConfigDialog::KioskConfigDialog(QWidget *parent)
setMainWidget(w);
init();
connect(w->lineProfilePrefix, SIGNAL(textChanged( const QString& )), SLOT(updateExample()));
connect(w->lineUpload, SIGNAL(textChanged( const QString& )), SLOT(updateExample()));
connect(w->lineUploadPrefix, SIGNAL(textChanged( const QString& )), SLOT(updateExample()));
connect(w->lineProfilePrefix, TQT_SIGNAL(textChanged( const TQString& )), TQT_SLOT(updateExample()));
connect(w->lineUpload, TQT_SIGNAL(textChanged( const TQString& )), TQT_SLOT(updateExample()));
connect(w->lineUploadPrefix, TQT_SIGNAL(textChanged( const TQString& )), TQT_SLOT(updateExample()));
}
KioskConfigDialog::~KioskConfigDialog()
@ -56,7 +56,7 @@ KioskConfigDialog::~KioskConfigDialog()
void KioskConfigDialog::init()
{
QString prefix = KioskRun::self()->getProfilePrefix();
TQString prefix = KioskRun::self()->getProfilePrefix();
if (prefix.isEmpty())
{
@ -72,7 +72,7 @@ void KioskConfigDialog::init()
KConfig *config = kapp->config();
config->setGroup("General");
QString uploadURL = config->readEntry("uploadURL");
TQString uploadURL = config->readEntry("uploadURL");
if (uploadURL.isEmpty())
{
w->checkUpload->setChecked(false);
@ -102,27 +102,27 @@ void KioskConfigDialog::init()
void KioskConfigDialog::updateExample()
{
QString uploadPrefix = w->lineUploadPrefix->text();
QString file1 = w->lineProfilePrefix->url()+"default";
QString file2 = file1;
TQString uploadPrefix = w->lineUploadPrefix->text();
TQString file1 = w->lineProfilePrefix->url()+"default";
TQString file2 = file1;
if (file2.startsWith(uploadPrefix))
file2 = file2.mid(uploadPrefix.length());
if (file2.startsWith("/"))
file2 = file2.mid(1);
QString url = w->lineUpload->url();
TQString url = w->lineUpload->url();
if (!url.endsWith("/"))
url += "/";
url += file2;
QString example = QString("<qt><center><b>%1</b><br>--><br><b>%2</b></center>").arg(file1, url);
TQString example = TQString("<qt><center><b>%1</b><br>--><br><b>%2</b></center>").tqarg(file1, url);
w->lblUploadExample->setText(example);
w->lblUploadExample->setFixedSize(QSize(500,fontMetrics().lineSpacing()*3 + 6));
w->lblUploadExample->setFixedSize(TQSize(500,fontMetrics().lineSpacing()*3 + 6));
}
bool KioskConfigDialog::save()
{
QString uploadURL;
QString uploadPrefix;
QString prefix;
TQString uploadURL;
TQString uploadPrefix;
TQString prefix;
int minUID = 0;
uploadPrefix = w->lineUploadPrefix->text();

@ -26,8 +26,9 @@ class KioskConfigDialogUI;
class KioskConfigDialog : public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
KioskConfigDialog(QWidget *parent);
KioskConfigDialog(TQWidget *parent);
~KioskConfigDialog();
bool save();

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KioskConfigDialogUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>KioskConfigDialogUI</cstring>
</property>
@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>checkProfilePrefix</cstring>
</property>
@ -24,9 +24,9 @@
<string>Store all &amp;profiles under the same base directory</string>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
<cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@ -42,22 +42,22 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
<cstring>tqlayout2</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@ -80,7 +80,7 @@
</widget>
</hbox>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>checkUpload</cstring>
</property>
@ -88,9 +88,9 @@
<string>On exit, &amp;upload profiles to remote server</string>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout8</cstring>
<cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
@ -106,22 +106,22 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout7</cstring>
<cstring>tqlayout7</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@ -140,7 +140,7 @@
<bool>false</bool>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@ -156,7 +156,7 @@
<bool>false</bool>
</property>
</widget>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@ -164,7 +164,7 @@
<string>Example:</string>
</property>
</widget>
<widget class="QTextEdit">
<widget class="TQTextEdit">
<property name="name">
<cstring>lblUploadExample</cstring>
</property>
@ -179,7 +179,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>500</width>
<height>10</height>
@ -202,7 +202,7 @@
</widget>
</hbox>
</widget>
<widget class="QCheckBox">
<widget class="TQCheckBox">
<property name="name">
<cstring>checkUID</cstring>
</property>
@ -213,9 +213,9 @@
<string></string>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout6</cstring>
<cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@ -231,7 +231,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@ -259,7 +259,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>60</width>
<height>20</height>
@ -278,7 +278,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>

@ -19,8 +19,8 @@
#include "kioskdata.h"
#include <qdom.h>
#include <qfile.h>
#include <tqdom.h>
#include <tqfile.h>
#include <kaction.h>
#include <kdebug.h>
@ -28,7 +28,7 @@
#include <kstandarddirs.h>
#include <kstdaction.h>
QDict<QString> *ComponentAction::s_stdActionCaptions = 0;
TQDict<TQString> *ComponentAction::s_stdActionCaptions = 0;
ComponentAction::ComponentAction()
{
@ -38,9 +38,9 @@ ComponentAction::~ComponentAction()
{
}
static QDict<QString> *readStdActionCaptions()
static TQDict<TQString> *readStdActionCaptions()
{
QDict<QString> *captions = new QDict<QString>;
TQDict<TQString> *captions = new TQDict<TQString>;
for(int i = KStdAction::ActionNone; true;)
{
i++;
@ -48,28 +48,28 @@ static QDict<QString> *readStdActionCaptions()
if (!action)
break;
QString caption = action->text();
TQString caption = action->text();
caption.replace("&","");
captions->insert(QString::fromLatin1(action->name()), new QString(caption));
captions->insert(TQString::tqfromLatin1(action->name()), new TQString(caption));
}
return captions;
}
QString
ComponentAction::expand(const QString &s)
TQString
ComponentAction::expand(const TQString &s)
{
if (s.contains("%action"))
{
if (!s_stdActionCaptions)
s_stdActionCaptions= readStdActionCaptions();
QString action = key;
TQString action = key;
action.replace("action/", "");
QString *caption = s_stdActionCaptions->find(action);
TQString *caption = s_stdActionCaptions->find(action);
if (caption)
{
QString result = s;
TQString result = s;
result.replace("%action", *caption);
return result;
}
@ -78,9 +78,9 @@ ComponentAction::expand(const QString &s)
}
bool
ComponentAction::load(const QDomElement &docElem)
ComponentAction::load(const TQDomElement &docElem)
{
QString _type = docElem.attribute("type");
TQString _type = docElem.attribute("type");
if (_type == "immutable")
type = ActImmutable;
else if (_type == "action restriction")
@ -109,10 +109,10 @@ ComponentAction::load(const QDomElement &docElem)
key = docElem.attribute("key");
defaultValue = (docElem.attribute("default").lower() == "true");
QDomNode n = docElem.firstChild();
TQDomNode n = docElem.firstChild();
while( !n.isNull() )
{
QDomElement e = n.toElement(); // try to convert the node to an element.
TQDomElement e = n.toElement(); // try to convert the node to an element.
if (e.tagName() == "caption")
caption = expand(i18n(e.text().simplifyWhiteSpace().utf8()));
@ -147,12 +147,12 @@ ComponentData::~ComponentData()
{
}
bool ComponentData::loadActions(const QDomElement &docElem)
bool ComponentData::loadActions(const TQDomElement &docElem)
{
QDomNode n = docElem.firstChild();
TQDomNode n = docElem.firstChild();
while( !n.isNull() )
{
QDomElement e = n.toElement(); // try to convert the node to an element.
TQDomElement e = n.toElement(); // try to convert the node to an element.
if (e.tagName() != "action")
return false;
@ -172,31 +172,31 @@ bool ComponentData::loadActions(const QDomElement &docElem)
}
void
ComponentExecData::load(const QDomElement &e)
ComponentExecData::load(const TQDomElement &e)
{
exec = e.attribute("binary");
dcop = e.attribute("dcop");
options = QStringList::split(',', e.attribute("options"));
args = QStringList::split(',', e.attribute("args"));
options = TQStringList::split(',', e.attribute("options"));
args = TQStringList::split(',', e.attribute("args"));
}
void
ComponentData::loadSetup(const QDomElement &docElem)
ComponentData::loadSetup(const TQDomElement &docElem)
{
QDomNode n = docElem.firstChild();
TQDomNode n = docElem.firstChild();
while( !n.isNull() )
{
QDomElement e = n.toElement(); // try to convert the node to an element.
TQDomElement e = n.toElement(); // try to convert the node to an element.
if (e.tagName() == "mutable")
{
QString f = e.attribute("file");
TQString f = e.attribute("file");
if (!f.isEmpty())
mutableFiles.append(f);
}
else if (e.tagName() == "ignore")
{
QString f = e.attribute("file");
TQString f = e.attribute("file");
if (!f.isEmpty())
ignoreFiles.append(f);
}
@ -205,16 +205,16 @@ ComponentData::loadSetup(const QDomElement &docElem)
}
}
bool ComponentData::load(const QDomElement &docElem)
bool ComponentData::load(const TQDomElement &docElem)
{
id = docElem.attribute("name");
icon = docElem.attribute("icon");
if (id.isEmpty())
return false;
QDomNode n = docElem.firstChild();
TQDomNode n = docElem.firstChild();
while( !n.isNull() )
{
QDomElement e = n.toElement(); // try to convert the node to an element.
TQDomElement e = n.toElement(); // try to convert the node to an element.
if (e.tagName() == "caption")
{
@ -256,37 +256,37 @@ KioskData::~KioskData()
bool KioskData::load()
{
QString filename = locate("appdata", "kiosk_data.xml");
TQString filename = locate("appdata", "kiosk_data.xml");
if (filename.isEmpty())
{
m_errorMsg = i18n("<qt>Could not find <b>kiosk_data.xml</b></qt>");
return false;
}
QDomDocument doc;
QFile file( filename );
TQDomDocument doc;
TQFile file( filename );
if ( !file.open( IO_ReadOnly ) )
{
m_errorMsg = i18n("<qt>Could not open <b>%1</b></qt>").arg(filename);
m_errorMsg = i18n("<qt>Could not open <b>%1</b></qt>").tqarg(filename);
return false;
}
QString errorMsg;
TQString errorMsg;
int errorRow;
int errorCol;
if ( !doc.setContent( &file, &errorMsg, &errorRow, &errorCol ) )
{
m_errorMsg = i18n("<qt>Syntax error in <b>%1</b><br>Line %3, column %4: %2</qt>").arg(filename, errorMsg).arg(errorRow).arg(errorCol);
m_errorMsg = i18n("<qt>Syntax error in <b>%1</b><br>Line %3, column %4: %2</qt>").tqarg(filename, errorMsg).tqarg(errorRow).tqarg(errorCol);
file.close();
return false;
}
file.close();
QDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild();
TQDomElement docElem = doc.documentElement();
TQDomNode n = docElem.firstChild();
while( !n.isNull() )
{
QDomElement e = n.toElement(); // try to convert the node to an element.
TQDomElement e = n.toElement(); // try to convert the node to an element.
if (e.tagName() == "group")
{

@ -19,46 +19,46 @@
#ifndef _KIOSKDATA_H_
#define _KIOSKDATA_H_
#include <qdict.h>
#include <qptrlist.h>
#include <qstringlist.h>
#include <tqdict.h>
#include <tqptrlist.h>
#include <tqstringlist.h>
class QDomElement;
class TQDomElement;
class ComponentAction
{
public:
ComponentAction();
~ComponentAction();
bool load(const QDomElement &docElem);
bool load(const TQDomElement &docElem);
private:
QString expand(const QString &);
TQString expand(const TQString &);
public:
QString caption;
QString description;
TQString caption;
TQString description;
typedef enum {ActImmutable, ActRestrict, ActCustom, ActModule, ActConfig, ActResource } ActionType;
ActionType type;
QString file;
QString group;
QString key;
QPtrList<ComponentAction> subActions;
TQString file;
TQString group;
TQString key;
TQPtrList<ComponentAction> subActions;
bool defaultValue;
static QDict<QString> *s_stdActionCaptions;
static TQDict<TQString> *s_stdActionCaptions;
};
class ComponentExecData
{
public:
void load(const QDomElement &docElem);
bool hasOption(const QString &option) { return options.contains(option); }
void load(const TQDomElement &docElem);
bool hasOption(const TQString &option) { return options.contains(option); }
public:
QString exec;
QString dcop;
QStringList options;
QStringList args;
TQString exec;
TQString dcop;
TQStringList options;
TQStringList args;
};
class ComponentData
@ -66,20 +66,20 @@ class ComponentData
public:
ComponentData();
~ComponentData();
bool load(const QDomElement &docElem);
bool loadActions(const QDomElement &docElem);
bool load(const TQDomElement &docElem);
bool loadActions(const TQDomElement &docElem);
protected:
void loadSetup(const QDomElement &docElem);
void loadSetup(const TQDomElement &docElem);
public:
QString id;
QString caption;
// QString description;
QString icon;
QPtrList<ComponentAction> actions;
QStringList mutableFiles;
QStringList ignoreFiles;
TQString id;
TQString caption;
// TQString description;
TQString icon;
TQPtrList<ComponentAction> actions;
TQStringList mutableFiles;
TQStringList ignoreFiles;
ComponentExecData setup;
ComponentExecData preview;
};
@ -90,16 +90,16 @@ public:
KioskData();
~KioskData();
QString errorMsg() { return m_errorMsg; }
TQString errorMsg() { return m_errorMsg; }
bool load();
public:
QStringList m_componentList;
QDict<ComponentData> m_componentData;
TQStringList m_componentList;
TQDict<ComponentData> m_componentData;
protected:
QString m_errorMsg;
TQString m_errorMsg;
};
#endif

@ -18,11 +18,11 @@
*/
#include "kioskgui.h"
#include <qdir.h>
#include <qlineedit.h>
#include <qobjectlist.h>
#include <qwidgetstack.h>
#include <qpushbutton.h>
#include <tqdir.h>
#include <tqlineedit.h>
#include <tqobjectlist.h>
#include <tqwidgetstack.h>
#include <tqpushbutton.h>
#include <kapplication.h>
#include <kaction.h>
@ -88,8 +88,8 @@ KioskGui::KioskGui()
m_view->pbHelp->hide(); // TODO, write help :)
connect(m_view->pbDiscard, SIGNAL(clicked()), this, SLOT(discardPage()));
connect(m_view->pbFinished, SIGNAL(clicked()), this, SLOT(finishedPage()));
connect(m_view->pbDiscard, TQT_SIGNAL(clicked()), this, TQT_SLOT(discardPage()));
connect(m_view->pbFinished, TQT_SIGNAL(clicked()), this, TQT_SLOT(finishedPage()));
KConfig *config = kapp->config();
config->setGroup("General");
@ -98,7 +98,7 @@ KioskGui::KioskGui()
selectPage(PAGE_PROFILE_SELECTION, true);
QTimer::singleShot(0, this, SLOT(slotCheckEtcSkel()));
TQTimer::singleShot(0, this, TQT_SLOT(slotCheckEtcSkel()));
}
KioskGui::~KioskGui()
@ -109,10 +109,10 @@ KioskGui::~KioskGui()
void KioskGui::slotCheckEtcSkel()
{
QString etcSkel = "/etc/skel/.kde";
TQString etcSkel = "/etc/skel/.kde";
KioskSync skelDir;
skelDir.addDir(etcSkel, KURL());
QStringList skelFiles = skelDir.listFiles();
TQStringList skelFiles = skelDir.listFiles();
if (!skelFiles.isEmpty())
{
KMessageBox::informationList(this,
@ -126,49 +126,49 @@ void KioskGui::slotCheckEtcSkel()
"<b>If this is not the intended behavior, please remove the offending "
"files from the skeleton folder on all systems that you want to "
"administer with user profiles.</b><p>"
"The following files were found under <b>%2</b>:").arg(etcSkel).arg(etcSkel),
"The following files were found under <b>%2</b>:").tqarg(etcSkel).tqarg(etcSkel),
skelFiles,
QString::null,
TQString(),
"etc_skel_warning");
}
}
void KioskGui::setWidgetBackground(QWidget *w)
void KioskGui::setWidgetBackground(TQWidget *w)
{
QObjectList *l = w->queryList( "QWidget" );
QObjectListIt it( *l );
for(QWidget *wid=0; (wid = (QWidget*)it.current()); ++it)
TQObjectList *l = w->queryList( TQWIDGET_OBJECT_NAME_STRING );
TQObjectListIt it( *l );
for(TQWidget *wid=0; (wid = (TQWidget*)it.current()); ++it)
{
wid->setBackgroundOrigin(WindowOrigin);
if (::qt_cast<QPushButton*>(wid))
if (::tqqt_cast<TQPushButton*>(wid))
wid->setAutoMask(true);
}
w->setBackgroundOrigin(WindowOrigin);
delete l;
}
void KioskGui::setSubCaption(const QString &subCaption)
void KioskGui::setSubCaption(const TQString &subCaption)
{
m_view->subCaptionLabel->setText("<h1>"+subCaption+"</h1>");
}
void KioskGui::setupActions()
{
// KStdAction::open(this, SLOT(fileOpen()), actionCollection());
// KStdAction::save(this, SLOT(fileSave()), actionCollection());
// KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
KStdAction::quit(this, SLOT(close()), actionCollection());
// KStdAction::back(this, SLOT(previousPage()), actionCollection(), "previousPage");
// KStdAction::forward(this, SLOT(nextPage()), actionCollection(), "nextPage");
// KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
// KStdAction::save(this, TQT_SLOT(fileSave()), actionCollection());
// KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
KStdAction::quit(this, TQT_SLOT(close()), actionCollection());
// KStdAction::back(this, TQT_SLOT(previousPage()), actionCollection(), "previousPage");
// KStdAction::forward(this, TQT_SLOT(nextPage()), actionCollection(), "nextPage");
// createStandardStatusBarAction();
// setStandardToolBarMenuEnabled(true);
// KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
// KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
KStdAction::preferences(this, SLOT(slotConfig()), actionCollection());
m_uploadAction = new KAction(i18n("Upload &All Profiles"), QString::null, 0, this, SLOT(uploadAllProfiles()), actionCollection(), "upload_all");
m_backgroundAction = new KToggleAction(i18n("Background Graphics"), QString::null, 0, this, SLOT(slotUpdateBackground()), actionCollection(), "show_background");
// KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
// KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
KStdAction::preferences(this, TQT_SLOT(slotConfig()), actionCollection());
m_uploadAction = new KAction(i18n("Upload &All Profiles"), TQString(), 0, this, TQT_SLOT(uploadAllProfiles()), actionCollection(), "upload_all");
m_backgroundAction = new KToggleAction(i18n("Background Graphics"), TQString(), 0, this, TQT_SLOT(slotUpdateBackground()), actionCollection(), "show_background");
updateActions();
}
@ -223,7 +223,7 @@ void KioskGui::slotProfileSetup()
selectPage(PAGE_COMPONENT_SELECTION, true);
}
void KioskGui::slotDeleteProfile(QListViewItem *item)
void KioskGui::slotDeleteProfile(TQListViewItem *item)
{
if (!m_profileSelectionPage)
return;
@ -231,11 +231,11 @@ void KioskGui::slotDeleteProfile(QListViewItem *item)
item = m_profileSelectionPage->listProfile->selectedItem();
if (!item)
return;
QString profile = item->text(0);
TQString profile = item->text(0);
int result = KMessageBox::warningContinueCancel(this,
i18n("<qt>You are about to delete the profile <b>%1</b>.<p>"
"Are you sure you want to do this?").arg(profile),
QString::null, KGuiItem(i18n("Delete"),"editdelete"));
"Are you sure you want to do this?").tqarg(profile),
TQString(), KGuiItem(i18n("Delete"),"editdelete"));
if (result == KMessageBox::Continue)
{
if (KioskRun::self()->deleteProfile(profile))
@ -254,11 +254,11 @@ void KioskGui::slotManageUsers()
selectPage(PAGE_PROFILE_ASSIGN, true);
}
void KioskGui::slotProfileContextMenu(QListViewItem *item, const QPoint &p)
void KioskGui::slotProfileContextMenu(TQListViewItem *item, const TQPoint &p)
{
if (!item) return; // No item selected
QPopupMenu menu(this);
TQPopupMenu menu(this);
menu.insertItem(i18n("&Delete Profile"), 1);
int result = menu.exec( p );
@ -277,21 +277,21 @@ void KioskGui::selectPage(int page, bool save)
setWidgetBackground(m_profileSelectionPage);
connect(m_profileSelectionPage->listProfile,
SIGNAL(contextMenuRequested(QListViewItem *, const QPoint &, int)),
this, SLOT(slotProfileContextMenu(QListViewItem *, const QPoint &)));
TQT_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),
this, TQT_SLOT(slotProfileContextMenu(TQListViewItem *, const TQPoint &)));
connect(m_profileSelectionPage->listProfile,
SIGNAL(doubleClicked (QListViewItem *, const QPoint &, int )),
this, SLOT(nextPage()));
connect(m_profileSelectionPage->buttonDelete, SIGNAL(clicked()),
this, SLOT(slotDeleteProfile()));
connect(m_profileSelectionPage->buttonAdd, SIGNAL(clicked()),
this, SLOT(slotAddProfile()));
connect(m_profileSelectionPage->buttonProperty, SIGNAL(clicked()),
this, SLOT(slotProfileProperties()));
connect(m_profileSelectionPage->buttonSetup, SIGNAL(clicked()),
this, SLOT(slotProfileSetup()));
connect(m_profileSelectionPage->buttonUsers, SIGNAL(clicked()),
this, SLOT(slotManageUsers()));
TQT_SIGNAL(doubleClicked (TQListViewItem *, const TQPoint &, int )),
this, TQT_SLOT(nextPage()));
connect(m_profileSelectionPage->buttonDelete, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slotDeleteProfile()));
connect(m_profileSelectionPage->buttonAdd, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slotAddProfile()));
connect(m_profileSelectionPage->buttonProperty, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slotProfileProperties()));
connect(m_profileSelectionPage->buttonSetup, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slotProfileSetup()));
connect(m_profileSelectionPage->buttonUsers, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slotManageUsers()));
m_view->widgetStack->addWidget(m_profileSelectionPage, PAGE_PROFILE_SELECTION);
m_profileSelectionPage->listProfile->setFocus();
@ -305,7 +305,7 @@ void KioskGui::selectPage(int page, bool save)
}
m_componentSelectionPage = new ComponentSelectionPage(m_data, this);
connect(m_componentSelectionPage, SIGNAL(componentActivated()), this, SLOT(nextPage()));
connect(m_componentSelectionPage, TQT_SIGNAL(componentActivated()), this, TQT_SLOT(nextPage()));
m_componentSelectionPage->setCurrentComponent(m_component);
setWidgetBackground(m_componentSelectionPage);
@ -315,7 +315,7 @@ void KioskGui::selectPage(int page, bool save)
if (m_activePage == PAGE_PROFILE_NEW)
{
delete m_profilePropsPage;
m_profilePropsPage = new ProfilePropsPage(this, QString::null);
m_profilePropsPage = new ProfilePropsPage(this, TQString());
setWidgetBackground(m_profilePropsPage->widget());
m_view->widgetStack->addWidget(m_profilePropsPage->widget(), PAGE_PROFILE_NEW);
@ -376,7 +376,7 @@ void KioskGui::selectPage(int page, bool save)
setCaption(i18n("Profile Properties"));
break;
case PAGE_COMPONENT_SELECTION:
setSubCaption(i18n("Setup Profile \"%1\"").arg(m_profile));
setSubCaption(i18n("Setup Profile \"%1\"").tqarg(m_profile));
setCaption(m_profile);
break;
case PAGE_COMPONENT:
@ -456,19 +456,19 @@ void KioskGui::loadProfiles()
{
m_profileSelectionPage->listProfile->clear();
QStringList profiles = KioskRun::self()->allProfiles();
TQStringList profiles = KioskRun::self()->allProfiles();
for(QStringList::ConstIterator it = profiles.begin();
for(TQStringList::ConstIterator it = profiles.begin();
it != profiles.end(); ++it)
{
QString profile = *it;
QString description;
QString installUser;
QString installDir;
TQString profile = *it;
TQString description;
TQString installUser;
TQString installDir;
KioskRun::self()->getProfileInfo(profile, description, installDir, installUser);
QListViewItem *item = new QListViewItem(m_profileSelectionPage->listProfile, profile, description);
TQListViewItem *item = new TQListViewItem(m_profileSelectionPage->listProfile, profile, description);
if (m_profile == profile)
m_profileSelectionPage->listProfile->setSelected(item, true);
}
@ -519,20 +519,20 @@ bool KioskGui::savePage(int page)
case PAGE_PROFILE_SELECTION:
{
m_profile = m_profileSelectionPage->listProfile->selectedItem() ?
m_profileSelectionPage->listProfile->selectedItem()->text(0) : QString::null;
m_profileSelectionPage->listProfile->selectedItem()->text(0) : TQString();
KConfig *config = kapp->config();
config->setGroup("General");
config->writeEntry("CurrentProfile", m_profile);
config->sync();
QString description;
QString installDir;
QString installUser;
TQString description;
TQString installDir;
TQString installUser;
KioskRun::self()->getProfileInfo(m_profile, description, installDir, installUser);
QStringList kdeDirs;
TQStringList kdeDirs;
kdeDirs << installDir;
m_run->setKdeDirs(kdeDirs);
m_run->setUser(installUser);
@ -622,7 +622,7 @@ bool KioskGui::queryClose()
{
int result = KMessageBox::warningContinueCancel(this,
i18n("Your changes could not be saved, do you want to quit anyway?"),
QString::null,
TQString(),
KStdGuiItem::quit());
if (result == KMessageBox::Continue)
return true;
@ -635,7 +635,7 @@ bool KioskGui::queryClose()
KURL uploadUrl = config->readEntry("uploadURL");
int result = KMessageBox::questionYesNo(this,
i18n("<qt>Do you want to upload the profiles to <b>%1</b> ?</qt>").arg(uploadUrl.prettyURL()));
i18n("<qt>Do you want to upload the profiles to <b>%1</b> ?</qt>").tqarg(uploadUrl.prettyURL()));
if (result == KMessageBox::Yes)
{
uploadAllProfiles();
@ -649,26 +649,26 @@ void KioskGui::uploadAllProfiles()
{
KConfig *config = kapp->config();
config->setGroup("General");
QString uploadPrefix = config->readEntry("uploadPrefix");
QString uploadURL = config->readEntry("uploadURL");
TQString uploadPrefix = config->readEntry("uploadPrefix");
TQString uploadURL = config->readEntry("uploadURL");
KioskSync sync(this);
QStringList profiles = KioskRun::self()->allProfiles();
TQStringList profiles = KioskRun::self()->allProfiles();
for(QStringList::ConstIterator it = profiles.begin();
for(TQStringList::ConstIterator it = profiles.begin();
it != profiles.end(); ++it)
{
QString profile = *it;
QString description;
QString installUser;
QString installDir;
TQString profile = *it;
TQString description;
TQString installUser;
TQString installDir;
KioskRun::self()->getProfileInfo(profile, description, installDir, installUser);
// sync.addDir(installDir, KURL("ftp://localhost/kde/profiles"));
QString dir = installDir;
TQString dir = installDir;
if (dir.startsWith(uploadPrefix))
dir = dir.mid(uploadPrefix.length());
if (dir.startsWith("/"))
@ -681,7 +681,7 @@ void KioskGui::uploadAllProfiles()
if (sync.sync())
{
KMessageBox::information(this, i18n("<qt>All profiles have been successfully uploaded to <b>%1</b>").arg(uploadURL));
KMessageBox::information(this, i18n("<qt>All profiles have been successfully uploaded to <b>%1</b>").tqarg(uploadURL));
}
}
@ -704,21 +704,21 @@ void KioskGui::updateBackground()
{
m_view->setPaletteBackgroundPixmap(locate("appdata", "background.png"));
m_view->logoLabel->setPixmap(locate("appdata", "logo.png"));
m_view->logoLabel->setMinimumSize(QSize(160,170));
QString language = KGlobal::locale()->language();
QString caption = locate("appdata", "caption-"+language+".png");
m_view->logoLabel->setMinimumSize(TQSize(160,170));
TQString language = KGlobal::locale()->language();
TQString caption = locate("appdata", "caption-"+language+".png");
if (caption.isEmpty())
caption = locate("appdata", "caption.png");
QPixmap pm(caption);
TQPixmap pm(caption);
m_view->captionLabel->setPixmap(pm);
m_view->captionLabel->setMinimumHeight(pm.height());
}
else
{
m_view->unsetPalette();
m_view->logoLabel->setPixmap(QPixmap());
m_view->logoLabel->setPixmap(TQPixmap());
m_view->logoLabel->setMinimumSize(0,0);
m_view->captionLabel->setPixmap(QPixmap());
m_view->captionLabel->setPixmap(TQPixmap());
m_view->captionLabel->setMinimumHeight(0);
}
}

@ -19,7 +19,7 @@
#ifndef _KIOSKGUI_H_
#define _KIOSKGUI_H_
#include <qlistview.h>
#include <tqlistview.h>
#include <kconfig.h>
#include <kmainwindow.h>
@ -38,6 +38,7 @@ class KToggleAction;
class KioskGui : public KMainWindow
{
Q_OBJECT
TQ_OBJECT
public:
enum { PAGE_PROFILE_SELECTION = 1,
PAGE_COMPONENT_SELECTION = 2,
@ -65,12 +66,12 @@ public slots:
void finishedPage(bool save=true);
void discardPage();
void nextPage();
void slotDeleteProfile(QListViewItem *item=0);
void slotDeleteProfile(TQListViewItem *item=0);
void slotAddProfile();
void slotProfileProperties();
void slotProfileSetup();
void slotManageUsers();
void slotProfileContextMenu(QListViewItem *item, const QPoint &p);
void slotProfileContextMenu(TQListViewItem *item, const TQPoint &p);
void slotConfig();
void uploadAllProfiles();
@ -82,8 +83,8 @@ public slots:
protected:
void updateActions();
void updateBackground();
void setWidgetBackground(QWidget *w);
void setSubCaption(const QString &subCaption);
void setWidgetBackground(TQWidget *w);
void setSubCaption(const TQString &subCaption);
virtual bool queryClose();
@ -99,8 +100,8 @@ protected:
KioskRun *m_run;
int m_activePage;
QString m_profile;
QString m_component;
TQString m_profile;
TQString m_component;
ComponentData * m_componentData;
KAction *m_uploadAction;
KToggleAction *m_backgroundAction;

File diff suppressed because it is too large Load Diff

@ -19,47 +19,48 @@
#ifndef _KIOSKRUN_H_
#define _KIOSKRUN_H_
#include <qdict.h>
#include <qobject.h>
#include <qregexp.h>
#include <qstringlist.h>
#include <qtimer.h>
#include <tqdict.h>
#include <tqobject.h>
#include <tqregexp.h>
#include <tqstringlist.h>
#include <tqtimer.h>
#include <dcopclient.h>
#include <dcopref.h>
#include <kprogress.h>
class ImmutableStatus;
class ImmutabletqStatus;
class KConfig;
class KProcess;
class KSimpleConfig;
class KioskGui;
class KioskRun : public QObject
class KioskRun : public TQObject
{
friend class KioskGui;
Q_OBJECT
TQ_OBJECT
public:
static KioskRun* self() { return s_self; }
void setKdeDirs(const QStringList &dirs);
void setUser(const QString &user);
void setKdeDirs(const TQStringList &dirs);
void setUser(const TQString &user);
QString homeDir() { return m_homeDir; }
QStringList kdeDirs() { return m_kdeDirs; }
QString desktopPath() { return m_desktopPath; }
TQString homeDir() { return m_homeDir; }
TQStringList kdeDirs() { return m_kdeDirs; }
TQString desktopPath() { return m_desktopPath; }
// Locate existing anywhere
QString locate(const char *resource, const QString &filename=QString::null);
TQString locate(const char *resource, const TQString &filename=TQString());
// Locate for saving
QString locateSave(const char *resource, const QString &filename=QString::null);
TQString locateSave(const char *resource, const TQString &filename=TQString());
// Locate for reading saved changed
QString locateLocal(const char *resource, const QString &filename=QString::null);
TQString locateLocal(const char *resource, const TQString &filename=TQString());
// Prepare runtime environment for run()
bool prepare();
@ -74,57 +75,57 @@ public:
void forceSycocaUpdate();
// Run a program inside the runtime test environment
KProcess* run(const QString &cmd, const QStringList &args=QStringList());
KProcess* run(const TQString &cmd, const TQStringList &args=TQStringList());
// A DCOPRef to make dcop calls into the runtime test environment
DCOPRef dcopRef(const QCString &appId, const QCString &objId);
DCOPRef dcopRef(const TQCString &appId, const TQCString &objId);
// A DCOPClient to make dcop calls into the runtime test environment
DCOPClient *dcopClient() { return m_dcopClient; }
// Open config file in the install directory
KConfig *configFile(const QString &filename);
KConfig *configFile(const TQString &filename);
// Make config files temporary mutable.
void makeMutable(bool bMutable);
// Returns whether specific config group is immutable,
// or entire file if group is empty
bool isConfigImmutable(const QString &filename, const QString &group);
bool isConfigImmutable(const TQString &filename, const TQString &group);
// Make specific config group immutable,
// or entire file if group is empty
void setConfigImmutable(const QString &filename, const QString &group, bool bImmutable);
void setConfigImmutable(const TQString &filename, const TQString &group, bool bImmutable);
// Close all opened config files.
bool flushConfigCache();
// Return all config files created by the user
QStringList newConfigFiles();
TQStringList newConfigFiles();
// Merge new settings from the test directory into the installation directory
void mergeConfigFile(const QString &filename);
void mergeConfigFile(const TQString &filename);
// Lookup the setting for a custom action
bool lookupCustomAction(const QString &action);
bool lookupCustomAction(const TQString &action);
// Change the setting for a custom action
void setCustomAction(const QString &action, bool checked);
void setCustomAction(const TQString &action, bool checked);
// Create installation directory and its parent dirs
bool createDir(const QString &dir);
bool createDir(const TQString &dir);
// Install file
bool install(const QString &file, const QString &destination);
bool install(const TQString &file, const TQString &destination);
// Delete file
bool remove(const QString &destination);
bool remove(const TQString &destination);
// Move file or directory
bool move(const QString &source, const QString &destination, const QStringList &files);
bool move(const TQString &source, const TQString &destination, const TQStringList &files);
// Delete directory in test home dir
void deleteDir(const QString &);
void deleteDir(const TQString &);
// Open /etc/kderc for writing
KSimpleConfig *openKderc();
@ -133,34 +134,34 @@ public:
bool closeKderc();
// Read information of profile @p profile
void getProfileInfo(const QString &profile, QString &description, QString &installDir, QString &installUser);
void getProfileInfo(const TQString &profile, TQString &description, TQString &installDir, TQString &installUser);
// Store information for profile @p profile
bool setProfileInfo(const QString &profile, const QString &description, const QString &installDir, const QString &installUser, bool b=false, bool deleteFiles=true);
bool setProfileInfo(const TQString &profile, const TQString &description, const TQString &installDir, const TQString &installUser, bool b=false, bool deleteFiles=true);
// Get new, non-existing, profile name
QString newProfile();
TQString newProfile();
// Delete profile @p profile
bool deleteProfile(const QString &profile, bool deleteFiles = true);
bool deleteProfile(const TQString &profile, bool deleteFiles = true);
// Get list of all existing profiles
QStringList allProfiles();
TQStringList allProfiles();
// Maps a single group or user to a one or more profiles
typedef QMap<QString,QStringList> ProfileMapping;
typedef TQMap<TQString,TQStringList> ProfileMapping;
// Read mappings between groups/users and profiles
void getUserProfileMappings( ProfileMapping &groups, ProfileMapping &users, QStringList &groupOrder);
void getUserProfileMappings( ProfileMapping &groups, ProfileMapping &users, TQStringList &groupOrder);
// Store mappings between groups/users and profiles
bool setUserProfileMappings( const ProfileMapping &groups, const ProfileMapping &users, const QStringList &groupOrder);
bool setUserProfileMappings( const ProfileMapping &groups, const ProfileMapping &users, const TQStringList &groupOrder);
// Read profile prefix
QString getProfilePrefix();
TQString getProfilePrefix();
// Store profile prefix
bool setProfilePrefix(const QString &prefix);
bool setProfilePrefix(const TQString &prefix);
// Create upload directory
bool createRemoteDir(const KURL &dir);
@ -169,10 +170,10 @@ public:
bool createRemoteDirRecursive(const KURL &dir, bool ask);
// Upload file
bool uploadRemote(const QString &file, const KURL &dest);
bool uploadRemote(const TQString &file, const KURL &dest);
protected:
KioskRun( QObject* parent = 0, const char* name = 0);
KioskRun( TQObject* parent = 0, const char* name = 0);
~KioskRun();
bool setupRuntimeEnv();
@ -181,31 +182,31 @@ protected:
void shutdownConfigEnv();
void applyEnvironment(KProcess *p);
QString saveImmutableStatus(const QString &filename);
bool restoreImmutableStatus(const QString &filename, bool force);
TQString saveImmutabletqStatus(const TQString &filename);
bool restoreImmutabletqStatus(const TQString &filename, bool force);
void setCustomRestrictionFileBrowsing(bool restrict);
private:
static KioskRun* s_self;
QString m_homeDir;
QString m_configDir;
QString m_desktopPath;
QString m_user;
QStringList m_kdeDirs;
QStringList m_xdgDataDirs;
QStringList m_xdgConfigDirs;
TQString m_homeDir;
TQString m_configDir;
TQString m_desktopPath;
TQString m_user;
TQStringList m_kdeDirs;
TQStringList m_xdgDataDirs;
TQStringList m_xdgConfigDirs;
DCOPClient *m_dcopClient;
KInstance *m_instance;
KInstance *m_saveInstance;
QDict<KConfig> m_saveConfigCache;
QDict<ImmutableStatus> m_immutableStatusCache;
TQDict<KConfig> m_saveConfigCache;
TQDict<ImmutabletqStatus> m_immutableStatusCache;
bool m_noRestrictions;
bool m_forceSycocaUpdate;
bool m_isRoot;
QString m_kderc;
QString m_localKderc;
TQString m_kderc;
TQString m_localKderc;
KSimpleConfig *m_localKdercConfig;
};
@ -213,15 +214,16 @@ private:
class KioskRunProgressDialog : public KProgressDialog
{
Q_OBJECT
TQ_OBJECT
public:
KioskRunProgressDialog(QWidget *parent, const char *name,
const QString &caption, const QString &text);
KioskRunProgressDialog(TQWidget *parent, const char *name,
const TQString &caption, const TQString &text);
public slots:
void slotProgress();
void slotFinished();
private:
QTimer m_timer;
TQTimer m_timer;
int m_timeStep;
};

@ -19,16 +19,16 @@
#include "kiosksync.h"
#include <qdir.h>
#include <qwidget.h>
#include <tqdir.h>
#include <tqwidget.h>
#include <kdebug.h>
#include <klocale.h>
#include <ksimpleconfig.h>
#include <kstandarddirs.h>
KioskSync::KioskSync( QWidget* parent, const char* name)
: QObject(parent, name),
KioskSync::KioskSync( TQWidget* parent, const char* name)
: TQObject(parent, name),
m_parent(parent)
{
}
@ -38,9 +38,9 @@ KioskSync::~KioskSync()
}
void
KioskSync::addDir(const QString &_src, const KURL &dest)
KioskSync::addDir(const TQString &_src, const KURL &dest)
{
QString src = _src;
TQString src = _src;
if (!src.endsWith("/"))
src.append("/");
@ -69,9 +69,9 @@ KioskSync::sync(bool incremental)
break;
}
scanChangedFiles((*it).src, QString::null);
scanChangedFiles((*it).src, TQString());
for(QStringList::ConstIterator it2 = m_changedDirs.begin();
for(TQStringList::ConstIterator it2 = m_changedDirs.begin();
it2 != m_changedDirs.end(); ++it2)
{
KURL dest = (*it).dest;
@ -86,7 +86,7 @@ KioskSync::sync(bool incremental)
if (canceled)
break;
for(QStringList::ConstIterator it2 = m_changedFiles.begin();
for(TQStringList::ConstIterator it2 = m_changedFiles.begin();
it2 != m_changedFiles.end(); ++it2)
{
KURL dest = (*it).dest;
@ -107,7 +107,7 @@ KioskSync::sync(bool incremental)
return !canceled;
}
QStringList
TQStringList
KioskSync::listFiles()
{
m_changedFiles.clear();
@ -118,13 +118,13 @@ KioskSync::listFiles()
for(SyncDirList::ConstIterator it = m_syncDirs.begin();
it != m_syncDirs.end(); ++it)
{
scanChangedFiles((*it).src, QString::null);
scanChangedFiles((*it).src, TQString());
}
return m_changedFiles;
}
void
KioskSync::addChangedDir(const QString &dir)
KioskSync::addChangedDir(const TQString &dir)
{
if (dir.isEmpty())
return;
@ -135,7 +135,7 @@ KioskSync::addChangedDir(const QString &dir)
int i = dir.findRev('/', -2);
if (i != -1)
{
QString parentDir = dir.left(i+1);
TQString parentDir = dir.left(i+1);
addChangedDir(parentDir);
}
@ -144,39 +144,39 @@ KioskSync::addChangedDir(const QString &dir)
}
void
KioskSync::scanChangedFiles(const QString &_dir, const QString &prefix)
KioskSync::scanChangedFiles(const TQString &_dir, const TQString &prefix)
{
kdDebug() << "KioskSync: Scanning " << _dir << endl;
QDir dir(_dir);
TQDir dir(_dir);
if (!dir.exists())
{
emit warning(i18n("Directory <b>%1</b> does not exist.").arg(_dir));
emit warning(i18n("Directory <b>%1</b> does not exist.").tqarg(_dir));
return;
}
if (!dir.isReadable())
{
emit warning(i18n("Directory <b>%1</b> is not readable.").arg(_dir));
emit warning(i18n("Directory <b>%1</b> is not readable.").tqarg(_dir));
return;
}
QStringList subDirs;
const QFileInfoList *list = dir.entryInfoList(QDir::Dirs | QDir::Files | QDir::NoSymLinks);
TQStringList subDirs;
const TQFileInfoList *list = dir.entryInfoList(TQDir::Dirs | TQDir::Files | TQDir::NoSymLinks);
bool dirtyDir = false;
QFileInfoListIterator it( *list );
for ( QFileInfo *fi; (fi = it.current()) != 0; ++it)
TQFileInfoListIterator it( *list );
for ( TQFileInfo *fi; (fi = it.current()) != 0; ++it)
{
if (fi->isDir())
{
QString subDir = fi->fileName();
TQString subDir = fi->fileName();
if ((subDir != ".") && (subDir != ".."))
subDirs.append(subDir+"/");
continue;
}
// TODO: Check file
QString file = prefix + fi->fileName();
QDateTime lastModified = fi->lastModified();
TQString file = prefix + fi->fileName();
TQDateTime lastModified = fi->lastModified();
if (!m_incremental || !m_timestamps->hasKey(file) ||
(m_timestamps->readDateTimeEntry(file) != lastModified))
{
@ -187,23 +187,23 @@ KioskSync::scanChangedFiles(const QString &_dir, const QString &prefix)
if (dirtyDir)
addChangedDir(prefix);
for( QStringList::ConstIterator it = subDirs.begin();
for( TQStringList::ConstIterator it = subDirs.begin();
it != subDirs.end(); ++it)
{
QString subDir = *it;
TQString subDir = *it;
scanChangedFiles(_dir + subDir, prefix + subDir);
}
}
bool
KioskSync::syncFile(const QString &prefix, const QString &file, const KURL &dest)
KioskSync::syncFile(const TQString &prefix, const TQString &file, const KURL &dest)
{
kdDebug() << "KioskSync: Syncing [" << prefix << "]" << file << " --> " << dest.prettyURL() << endl;
if (!KioskRun::self()->uploadRemote(prefix+file, dest))
return false;
QFileInfo fi(prefix+file);
TQFileInfo fi(prefix+file);
m_timestamps->writeEntry(file, fi.lastModified());
return true;
}

@ -19,37 +19,38 @@
#ifndef _KIOSKSYNC_H_
#define _KIOSKSYNC_H_
#include <qobject.h>
#include <qstringlist.h>
#include <tqobject.h>
#include <tqstringlist.h>
#include <kurl.h>
#include "kioskrun.h"
class QWidget;
class TQWidget;
class KSimpleConfig;
class KioskSync : public QObject
class KioskSync : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
KioskSync( QWidget* parent = 0, const char* name = 0);
KioskSync( TQWidget* parent = 0, const char* name = 0);
~KioskSync();
void addDir(const QString &src, const KURL &dest);
void addDir(const TQString &src, const KURL &dest);
bool sync(bool incremental = false);
// Returns all files found in the directories
QStringList listFiles();
TQStringList listFiles();
signals:
void finished();
void status(const QString &);
void warning(const QString &);
void status(const TQString &);
void warning(const TQString &);
protected:
void scanChangedFiles(const QString &_dir, const QString &prefix);
bool syncFile(const QString &prefix, const QString &file, const KURL &dest);
void addChangedDir(const QString &dir);
void scanChangedFiles(const TQString &_dir, const TQString &prefix);
bool syncFile(const TQString &prefix, const TQString &file, const KURL &dest);
void addChangedDir(const TQString &dir);
private:
struct SyncDir
@ -57,23 +58,23 @@ private:
SyncDir()
{ }
SyncDir(const QString &_src, const KURL &_dest) : src(_src), dest(_dest)
SyncDir(const TQString &_src, const KURL &_dest) : src(_src), dest(_dest)
{ }
SyncDir(const SyncDir &dir) : src(dir.src), dest(dir.dest)
{ }
QString src;
TQString src;
KURL dest;
};
typedef QValueList<SyncDir> SyncDirList;
typedef TQValueList<SyncDir> SyncDirList;
SyncDirList m_syncDirs;
QWidget *m_parent;
TQWidget *m_parent;
KSimpleConfig *m_timestamps;
QStringList m_changedFiles;
QStringList m_changedDirs;
TQStringList m_changedFiles;
TQStringList m_changedDirs;
bool m_incremental;
};

@ -25,7 +25,7 @@
#include <pwd.h>
#include <grp.h>
#include <qfile.h>
#include <tqfile.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
@ -39,19 +39,19 @@
static const char *description = I18N_NOOP("A tool to set $KDEDIRS according to the current user profile.");
static QString readEnvPath(const char *env)
static TQString readEnvPath(const char *env)
{
QCString c_path = getenv(env);
TQCString c_path = getenv(env);
if (c_path.isEmpty())
return QString::null;
return QFile::decodeName(c_path);
return TQString();
return TQFile::decodeName(c_path);
}
static QStringList lookupProfiles(const QString &mapFile)
static TQStringList lookupProfiles(const TQString &mapFile)
{
QStringList profiles;
TQStringList profiles;
if (mapFile.isEmpty() || !QFile::exists(mapFile))
if (mapFile.isEmpty() || !TQFile::exists(mapFile))
{
profiles << "default";
return profiles;
@ -64,7 +64,7 @@ static QStringList lookupProfiles(const QString &mapFile)
return profiles; // Not good
}
QCString user = pw->pw_name;
TQCString user = pw->pw_name;
gid_t sup_gids[512];
int sup_gids_nr = getgroups(512, sup_gids);
@ -78,14 +78,14 @@ static QStringList lookupProfiles(const QString &mapFile)
}
mapCfg.setGroup("General");
QStringList groups = mapCfg.readListEntry("groups");
TQStringList groups = mapCfg.readListEntry("groups");
mapCfg.setGroup("Groups");
for( QStringList::ConstIterator it = groups.begin();
for( TQStringList::ConstIterator it = groups.begin();
it != groups.end(); ++it )
{
QCString grp = (*it).utf8();
TQCString grp = (*it).utf8();
// Check if user is in this group
struct group *grp_ent = getgrnam(grp);
if (!grp_ent) continue;
@ -132,22 +132,22 @@ int main(int argc, char **argv)
if (args->isSet("check"))
{
(void) KGlobal::config(); // Force config file processing
QString dirs = KGlobal::dirs()->kfsstnd_prefixes();
printf("%s\n", QFile::encodeName(dirs).data());
TQString dirs = KGlobal::dirs()->kfsstnd_prefixes();
printf("%s\n", TQFile::encodeName(dirs).data());
return 0;
}
QStringList kdedirList;
TQStringList kdedirList;
// begin KDEDIRS
QString kdedirs = readEnvPath("KDEDIRS");
TQString kdedirs = readEnvPath("KDEDIRS");
if (!kdedirs.isEmpty())
{
kdedirList = QStringList::split(":", kdedirs);
kdedirList = TQStringList::split(":", kdedirs);
}
else
{
QString kdedir = readEnvPath("KDEDIR");
TQString kdedir = readEnvPath("KDEDIR");
if (!kdedir.isEmpty())
{
kdedir = KShell::tildeExpand(kdedir);
@ -157,19 +157,19 @@ int main(int argc, char **argv)
KConfig *config = KGlobal::config();
config->setGroup("Directories");
QString userMapFile = config->readEntry("userProfileMapFile");
QString profileDirsPrefix = config->readEntry("profileDirsPrefix");
TQString userMapFile = config->readEntry("userProfileMapFile");
TQString profileDirsPrefix = config->readEntry("profileDirsPrefix");
if (!profileDirsPrefix.isEmpty() && !profileDirsPrefix.endsWith("/"))
profileDirsPrefix.append('/');
QStringList profiles = lookupProfiles(userMapFile);
TQStringList profiles = lookupProfiles(userMapFile);
while(!profiles.isEmpty())
{
QString profile = profiles.back();
config->setGroup(QString::fromLatin1("Directories-%1").arg(profile));
TQString profile = profiles.back();
config->setGroup(TQString::tqfromLatin1("Directories-%1").tqarg(profile));
profiles.pop_back();
QStringList list = config->readListEntry("prefixes");
for (QStringList::ConstIterator it = list.begin(); it != list.end(); it++)
TQStringList list = config->readListEntry("prefixes");
for (TQStringList::ConstIterator it = list.begin(); it != list.end(); it++)
{
kdedirList.prepend(*it);
}
@ -178,7 +178,7 @@ int main(int argc, char **argv)
kdedirList.prepend(profileDirsPrefix + profile);
}
}
printf("%s\n", QFile::encodeName(kdedirList.join(":")).data());
printf("%s\n", TQFile::encodeName(kdedirList.join(":")).data());
return 0;
}

@ -20,7 +20,7 @@
#include <dcopclient.h>
#include <qfile.h>
#include <tqfile.h>
#include <kaboutdata.h>
#include <kapplication.h>
@ -62,7 +62,7 @@ int main(int argc, char *argv[])
w->show();
bool versionOk;
if (QFile::exists("/etc/SuSE-release"))
if (TQFile::exists("/etc/SuSE-release"))
versionOk = KDE::version() >= KDE_MAKE_VERSION(3,2,1);
else
versionOk = KDE::version() >= KDE_MAKE_VERSION(3,2,2);

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>MainView</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>MainView</cstring>
</property>
@ -19,7 +19,7 @@
<property name="margin">
<number>0</number>
</property>
<widget class="QLabel" row="0" column="2" rowspan="1" colspan="3">
<widget class="TQLabel" row="0" column="2" rowspan="1" colspan="3">
<property name="name">
<cstring>captionLabel</cstring>
</property>
@ -31,7 +31,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>70</height>
@ -44,7 +44,7 @@
<enum>Plain</enum>
</property>
</widget>
<widget class="QLabel" row="0" column="0" rowspan="2" colspan="2">
<widget class="TQLabel" row="0" column="0" rowspan="2" colspan="2">
<property name="name">
<cstring>logoLabel</cstring>
</property>
@ -56,7 +56,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>160</width>
<height>170</height>
@ -66,7 +66,7 @@
<string></string>
</property>
</widget>
<widget class="QLabel" row="1" column="2">
<widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>subCaptionLabel</cstring>
</property>
@ -84,7 +84,7 @@
<property name="frameShadow">
<enum>Plain</enum>
</property>
<property name="alignment">
<property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
@ -98,7 +98,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>25</width>
<height>20</height>
@ -115,22 +115,22 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>25</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget" row="2" column="1" rowspan="1" colspan="3">
<widget class="TQLayoutWidget" row="2" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>layout4</cstring>
<cstring>tqlayout4</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QWidgetStack">
<widget class="TQWidgetStack">
<property name="name">
<cstring>widgetStack</cstring>
</property>
@ -142,7 +142,7 @@
<verstretch>1</verstretch>
</sizepolicy>
</property>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@ -151,7 +151,7 @@
</attribute>
</widget>
</widget>
<widget class="QFrame">
<widget class="TQFrame">
<property name="name">
<cstring>frame3</cstring>
</property>
@ -173,7 +173,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>pbHelp</cstring>
</property>
@ -191,14 +191,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>pbDiscard</cstring>
</property>
@ -216,14 +216,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>pbFinished</cstring>
</property>
@ -245,7 +245,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>160</width>
<height>20</height>

@ -19,9 +19,9 @@
#include "menueditComponent.h"
#include <qdir.h>
#include <qdom.h>
#include <qfileinfo.h>
#include <tqdir.h>
#include <tqdom.h>
#include <tqfileinfo.h>
#include <kapplication.h>
#include <kdebug.h>
@ -35,7 +35,7 @@
#include "kioskrun.h"
#include "kiosksync.h"
MenuEditComponent::MenuEditComponent( QObject *parent)
MenuEditComponent::MenuEditComponent( TQObject *parent)
: Component(parent)
{
}
@ -55,17 +55,17 @@ MenuEditComponent::slotSetupStarted()
{
}
static QDomDocument loadDoc(const QString &fileName)
static TQDomDocument loadDoc(const TQString &fileName)
{
QDomDocument doc;
TQDomDocument doc;
QFile file( fileName );
TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) )
{
kdWarning() << "Could not open " << fileName << endl;
return doc;
}
QString errorMsg;
TQString errorMsg;
int errorRow;
int errorCol;
if ( !doc.setContent( &file, &errorMsg, &errorRow, &errorCol ) ) {
@ -77,11 +77,11 @@ static QDomDocument loadDoc(const QString &fileName)
return doc;
}
static bool saveDoc(const QString &fileName, QDomDocument doc)
static bool saveDoc(const TQString &fileName, TQDomDocument doc)
{
KSaveFile saveFile(fileName);
QTextStream *stream = saveFile.textStream();
TQTextStream *stream = saveFile.textStream();
if (!stream)
{
kdWarning() << "Could not write " << fileName << endl;
@ -103,50 +103,50 @@ bool
MenuEditComponent::setupFinished()
{
bool result;
QString menuEditFile = KioskRun::self()->locateLocal("xdgconf-menu", "applications-kmenuedit.menu");
QString menuFile = KioskRun::self()->locate("xdgconf-menu", "applications.menu");
QString menuFileSave = KioskRun::self()->locateSave("xdgconf-menu", "applications.menu");
TQString menuEditFile = KioskRun::self()->locateLocal("xdgconf-menu", "applications-kmenuedit.menu");
TQString menuFile = KioskRun::self()->locate("xdgconf-menu", "applications.menu");
TQString menuFileSave = KioskRun::self()->locateSave("xdgconf-menu", "applications.menu");
kdDebug() << "MenuEditComponent: menuEditFile = " << menuEditFile << endl;
kdDebug() << "MenuEditComponent: menuFile = " << menuFile << endl;
kdDebug() << "MenuEditComponent: menuFileSave = " << menuFileSave << endl;
QDomDocument docChanges = loadDoc(menuEditFile);
TQDomDocument docChanges = loadDoc(menuEditFile);
if (docChanges.isNull())
{
kdDebug() << "No menu changes." << endl;
return true;
}
QDomDocument doc = loadDoc(menuFile);
TQDomDocument doc = loadDoc(menuFile);
if (doc.isNull())
{
kdWarning() << "Can't find menu file!" << endl;
return true;
}
QDomElement docElem = doc.documentElement();
QDomNode n = docElem.firstChild();
QDomNode next;
TQDomElement docElem = doc.documentElement();
TQDomNode n = docElem.firstChild();
TQDomNode next;
for(; !n.isNull(); n = next )
{
QDomElement e = n.toElement(); // try to convert the node to an element.
TQDomElement e = n.toElement(); // try to convert the node to an element.
next = n.nextSibling();
if ((e.tagName() == "MergeFile") && (e.text() == "applications-kmenuedit.menu"))
break;
}
QDomNode insertionPoint = n;
TQDomNode insertionPoint = n;
if (insertionPoint.isNull())
{
kdWarning() << "Application menu fails to include applications-kmenuedit.menu" << endl;
return false;
}
QDomElement docChangesElem = docChanges.documentElement();
TQDomElement docChangesElem = docChanges.documentElement();
n = docChangesElem.firstChild();
for(; !n.isNull(); n = next )
{
QDomElement e = n.toElement(); // try to convert the node to an element.
TQDomElement e = n.toElement(); // try to convert the node to an element.
next = n.nextSibling();
docElem.insertBefore(n, insertionPoint);
@ -162,15 +162,15 @@ MenuEditComponent::setupFinished()
// Install .desktop files
{
QString legacyApplications = KioskRun::self()->locateLocal("apps", QString::null);
QString legacySaveApplications = KioskRun::self()->locateSave("apps", QString::null);
TQString legacyApplications = KioskRun::self()->locateLocal("apps", TQString());
TQString legacySaveApplications = KioskRun::self()->locateSave("apps", TQString());
KioskSync legacyDir(kapp->mainWidget());
legacyDir.addDir(legacyApplications, KURL());
QStringList newLegacyApplications = legacyDir.listFiles();
TQStringList newLegacyApplications = legacyDir.listFiles();
for(QStringList::ConstIterator it = newLegacyApplications.begin();
for(TQStringList::ConstIterator it = newLegacyApplications.begin();
it != newLegacyApplications.end(); ++it)
{
if ((*it).endsWith(".desktop") || (*it).endsWith(".kdelnk") || (*it).endsWith(".directory"))
@ -184,15 +184,15 @@ MenuEditComponent::setupFinished()
// Install .desktop files
{
QString xdgApplications = KioskRun::self()->locateLocal("xdgdata-apps", QString::null);
QString xdgSaveApplications = KioskRun::self()->locateSave("xdgdata-apps", QString::null);
TQString xdgApplications = KioskRun::self()->locateLocal("xdgdata-apps", TQString());
TQString xdgSaveApplications = KioskRun::self()->locateSave("xdgdata-apps", TQString());
QDir dir(xdgApplications);
QStringList newXdgApplications = dir.entryList(QDir::All, QDir::Unsorted);
TQDir dir(xdgApplications);
TQStringList newXdgApplications = dir.entryList(TQDir::All, TQDir::Unsorted);
newXdgApplications.remove(".");
newXdgApplications.remove("..");
for(QStringList::ConstIterator it = newXdgApplications.begin();
for(TQStringList::ConstIterator it = newXdgApplications.begin();
it != newXdgApplications.end(); ++it)
{
if ((*it).endsWith(".desktop") || (*it).endsWith(".kdelnk"))
@ -206,15 +206,15 @@ MenuEditComponent::setupFinished()
// Install .directory files
{
QString xdgDirectories = KioskRun::self()->locateLocal("xdgdata-dirs", QString::null);
QString xdgSaveDirectories = KioskRun::self()->locateSave("xdgdata-dirs", QString::null);
TQString xdgDirectories = KioskRun::self()->locateLocal("xdgdata-dirs", TQString());
TQString xdgSaveDirectories = KioskRun::self()->locateSave("xdgdata-dirs", TQString());
QDir dir(xdgDirectories);
QStringList newXdgDirectories = dir.entryList(QDir::All, QDir::Unsorted);
TQDir dir(xdgDirectories);
TQStringList newXdgDirectories = dir.entryList(TQDir::All, TQDir::Unsorted);
newXdgDirectories.remove(".");
newXdgDirectories.remove("..");
for(QStringList::ConstIterator it = newXdgDirectories.begin();
for(TQStringList::ConstIterator it = newXdgDirectories.begin();
it != newXdgDirectories.end(); ++it)
{
if ((*it).endsWith(".directory"))

@ -21,14 +21,15 @@
#include "component.h"
#include <qstringlist.h>
#include <qtimer.h>
#include <tqstringlist.h>
#include <tqtimer.h>
class MenuEditComponent: public Component
{
Q_OBJECT
TQ_OBJECT
public:
MenuEditComponent( QObject *parent = 0);
MenuEditComponent( TQObject *parent = 0);
virtual ~MenuEditComponent();
virtual bool setupFinished();

@ -25,14 +25,14 @@
#include "kioskdata.h"
#include "kioskrun.h"
ComponentActionItem::ComponentActionItem( QListView * parent, ComponentAction *action, int index)
: QCheckListItem(parent, action->caption, QCheckListItem::CheckBox),
ComponentActionItem::ComponentActionItem( TQListView * parent, ComponentAction *action, int index)
: TQCheckListItem(parent, action->caption, TQCheckListItem::CheckBox),
m_action(action), m_index(index)
{
}
int ComponentActionItem::compare ( QListViewItem * i, int, bool ) const
int ComponentActionItem::compare ( TQListViewItem * i, int, bool ) const
{
ComponentActionItem *cai = static_cast<ComponentActionItem*>(i);
if (m_index == cai->m_index)
@ -42,7 +42,7 @@ int ComponentActionItem::compare ( QListViewItem * i, int, bool ) const
return 1;
}
PageWidget::PageWidget(QWidget *me)
PageWidget::PageWidget(TQWidget *me)
{
m_widget = me;
}
@ -63,7 +63,7 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData)
item->setSelected(true);
if (action->type == ComponentAction::ActRestrict)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);
@ -73,7 +73,7 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData)
}
else if (action->type == ComponentAction::ActResource)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);
@ -83,7 +83,7 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData)
}
else if (action->type == ComponentAction::ActModule)
{
QString file = "kdeglobals";
TQString file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);
cfg->setGroup("KDE Control Module Restrictions");
bool restricted = !cfg->readBoolEntry(action->key, true);
@ -91,10 +91,10 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData)
}
else if (action->type == ComponentAction::ActImmutable)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
QString group = action->group;
TQString group = action->group;
bool immutable = KioskRun::self()->isConfigImmutable(file, group);
qWarning("File = %s Group = %s Immutable = %s", file.latin1(), group.latin1(), immutable ? "true" : "false");
item->setOn(immutable);
@ -106,7 +106,7 @@ qWarning("File = %s Group = %s Immutable = %s", file.latin1(), group.latin1(), i
}
else if (action->type == ComponentAction::ActConfig)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);
@ -123,7 +123,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b)
{
if (action->type == ComponentAction::ActRestrict)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);
@ -138,7 +138,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b)
}
else if (action->type == ComponentAction::ActResource)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);
@ -153,7 +153,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b)
}
else if (action->type == ComponentAction::ActModule)
{
QString file = "kdeglobals";
TQString file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);
cfg->setGroup("KDE Control Module Restrictions");
@ -166,10 +166,10 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b)
}
else if (action->type == ComponentAction::ActImmutable)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
QString group = action->group;
TQString group = action->group;
KioskRun::self()->setConfigImmutable(file, group, b);
}
else if (action->type == ComponentAction::ActCustom)
@ -178,7 +178,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b)
}
else if (action->type == ComponentAction::ActConfig)
{
QString file = action->file;
TQString file = action->file;
if (file.isEmpty())
file = "kdeglobals";
KConfig *cfg = KioskRun::self()->configFile(file);

@ -24,14 +24,14 @@
class ComponentAction;
class ComponentData;
class ComponentActionItem : public QCheckListItem
class ComponentActionItem : public TQCheckListItem
{
public:
ComponentActionItem( QListView * parent, ComponentAction *action, int index);
ComponentActionItem( TQListView * parent, ComponentAction *action, int index);
ComponentAction *action() const { return m_action; }
virtual int compare ( QListViewItem * i, int col, bool ascending ) const;
virtual int compare ( TQListViewItem * i, int col, bool ascending ) const;
private:
ComponentAction *m_action;
@ -41,10 +41,10 @@ private:
class PageWidget
{
public:
PageWidget(QWidget *me);
PageWidget(TQWidget *me);
virtual ~PageWidget();
QWidget *widget() const { return m_widget; }
TQWidget *widget() const { return m_widget; }
void fillActionList(KListView *listView, ComponentData *componentData);
bool saveActionListChanges(KListView *listView);
@ -54,14 +54,14 @@ public:
virtual void setFocus() = 0;
virtual QString subCaption() = 0;
virtual TQString subCaption() = 0;
protected:
void saveActionListItem(ComponentAction *action, bool b);
private:
QWidget *m_widget;
TQWidget *m_widget;
};
#endif

@ -19,8 +19,8 @@
#include "panelComponent.h"
#include <qdir.h>
#include <qfileinfo.h>
#include <tqdir.h>
#include <tqfileinfo.h>
#include <kdebug.h>
#include <kmimetype.h>
@ -32,7 +32,7 @@
#include "kioskrun.h"
PanelComponent::PanelComponent( QObject *parent)
PanelComponent::PanelComponent( TQObject *parent)
: Component(parent)
{
}
@ -58,15 +58,15 @@ PanelComponent::setupFinished()
// Install .desktop files
{
QString kickerApplications = KioskRun::self()->locateLocal("data", "kicker/");
QString kickerSaveApplications = KioskRun::self()->locateSave("data", "kicker/");
TQString kickerApplications = KioskRun::self()->locateLocal("data", "kicker/");
TQString kickerSaveApplications = KioskRun::self()->locateSave("data", "kicker/");
QDir dir(kickerApplications);
QStringList newKickerApplications = dir.entryList(QDir::All, QDir::Unsorted);
TQDir dir(kickerApplications);
TQStringList newKickerApplications = dir.entryList(TQDir::All, TQDir::Unsorted);
newKickerApplications.remove(".");
newKickerApplications.remove("..");
for(QStringList::ConstIterator it = newKickerApplications.begin();
for(TQStringList::ConstIterator it = newKickerApplications.begin();
it != newKickerApplications.end(); ++it)
{
if ((*it).endsWith(".desktop"))

@ -21,14 +21,15 @@
#include "component.h"
#include <qstringlist.h>
#include <qtimer.h>
#include <tqstringlist.h>
#include <tqtimer.h>
class PanelComponent: public Component
{
Q_OBJECT
TQ_OBJECT
public:
PanelComponent( QObject *parent = 0);
PanelComponent( TQObject *parent = 0);
virtual ~PanelComponent();
virtual bool setupFinished();

@ -19,8 +19,8 @@
#include "profilePropsPage.h"
#include <qcombobox.h>
#include <qvalidator.h>
#include <tqcombobox.h>
#include <tqvalidator.h>
#include <kapplication.h>
#include <kconfig.h>
@ -33,10 +33,10 @@
#include "kioskrun.h"
#include "kiosksync.h"
static QStringList userList()
static TQStringList userList()
{
KUser thisUser;
QStringList result;
TQStringList result;
result << thisUser.loginName();
result << "root";
@ -46,8 +46,8 @@ static QStringList userList()
result.sort();
// Remove dupes
QStringList::Iterator nextIt = result.begin();
for(QStringList::Iterator it = result.begin();
TQStringList::Iterator nextIt = result.begin();
for(TQStringList::Iterator it = result.begin();
it != result.end(); it = nextIt)
{
nextIt = it;
@ -61,7 +61,7 @@ static QStringList userList()
}
ProfilePropsPage::ProfilePropsPage(QWidget *parent, const QString &profile)
ProfilePropsPage::ProfilePropsPage(TQWidget *parent, const TQString &profile)
: ProfilePropsPageUI(parent), PageWidget(this), m_profile(profile)
{
}
@ -72,11 +72,11 @@ ProfilePropsPage::~ProfilePropsPage()
void ProfilePropsPage::slotProfileNameChanged()
{
QString profile = editProfileName->text();
TQString profile = editProfileName->text();
if (m_fixedProfileDir)
{
QString profilePrefix = KioskRun::self()->getProfilePrefix();
QString installDir = profilePrefix+profile+"/";
TQString profilePrefix = KioskRun::self()->getProfilePrefix();
TQString installDir = profilePrefix+profile+"/";
labelInstallDir->setText(installDir);
}
// TODO: enableButtonOK(!profile.isEmpty());
@ -91,28 +91,28 @@ void ProfilePropsPage::load()
bNewProfile = true;
}
QString profilePrefix = KioskRun::self()->getProfilePrefix();
TQString profilePrefix = KioskRun::self()->getProfilePrefix();
m_fixedProfileDir = !profilePrefix.isEmpty();
connect(editProfileName, SIGNAL(textChanged(const QString&)),
this, SLOT(slotProfileNameChanged()));
connect(editProfileName, TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(slotProfileNameChanged()));
#if 0
connect(kurlInstallDir, SIGNAL(textChanged(const QString&)),
this, SLOT(updateButtons()));
connect(kurlInstallDir, TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(updateButtons()));
#endif
comboUser->setEditable(true);
comboUser->insertStringList(userList());
QRegExp rx( "[^/ :]*" );
QValidator* validator = new QRegExpValidator( rx, this );
TQRegExp rx( "[^/ :]*" );
TQValidator* validator = new TQRegExpValidator( rx, this );
editProfileName->setValidator(validator);
editProfileName->setFocus();
QString description;
QString installDir;
QString installUser;
TQString description;
TQString installDir;
TQString installUser;
KioskRun::self()->getProfileInfo(m_profile, description, installDir, installUser);
@ -145,19 +145,19 @@ void ProfilePropsPage::load()
bool ProfilePropsPage::save()
{
QString user = comboUser->currentText();
TQString user = comboUser->currentText();
KUser userInfo(user);
if (!userInfo.isValid())
{
KMessageBox::sorry(this,
i18n("<qt>The user <b>%1</b> is not an existing user.</qt>").arg(user));
i18n("<qt>The user <b>%1</b> is not an existing user.</qt>").tqarg(user));
comboUser->setFocus();
return false;
}
m_profile = editProfileName->text();
QString description = editDescription->text();
QString installDir;
TQString description = editDescription->text();
TQString installDir;
if (m_fixedProfileDir)
{
installDir = labelInstallDir->text();
@ -174,7 +174,7 @@ bool ProfilePropsPage::save()
{
KioskSync origInstallDir;
origInstallDir.addDir(m_origInstallDir, KURL());
QStringList fileList = origInstallDir.listFiles();
TQStringList fileList = origInstallDir.listFiles();
fileList.remove(".kdeprofile");
if (!fileList.isEmpty())
{
@ -182,7 +182,7 @@ bool ProfilePropsPage::save()
i18n("<qt>The directory for this profile has changed "
"from <b>%1</b> to <b>%2</b>.<p>"
"The following files under <b>%3</b> will be moved to <b>%4</b>")
.arg(m_origInstallDir, installDir, m_origInstallDir, installDir),
.tqarg(m_origInstallDir, installDir, m_origInstallDir, installDir),
fileList,
i18n("Profile Directory Changed"));
if (msgResult != KMessageBox::Continue)
@ -191,14 +191,14 @@ bool ProfilePropsPage::save()
KioskRun::self()->setUser(user);
if (!KioskRun::self()->move(m_origInstallDir, installDir, fileList))
return false;
if (QDir(m_origInstallDir).exists())
if (TQDir(m_origInstallDir).exists())
{
if (!KioskRun::self()->remove(m_origInstallDir))
return false;
}
}
QString installUser = user;
TQString installUser = user;
bool result = KioskRun::self()->setProfileInfo( m_profile, description, installDir, installUser);
@ -210,7 +210,7 @@ bool ProfilePropsPage::save()
// Store this user for easy access later
KConfig *config = kapp->config();
config->setGroup("General");
QStringList previousUsers= config->readListEntry("PreviousUsers");
TQStringList previousUsers= config->readListEntry("PreviousUsers");
if (!previousUsers.contains(user))
{
previousUsers << user;
@ -226,9 +226,9 @@ void ProfilePropsPage::setFocus()
editProfileName->setFocus();
}
QString ProfilePropsPage::subCaption()
TQString ProfilePropsPage::subCaption()
{
return QString::null;
return TQString();
}
#include "profilePropsPage.moc"

@ -25,8 +25,9 @@
class ProfilePropsPage : public ProfilePropsPageUI, public PageWidget
{
Q_OBJECT
TQ_OBJECT
public:
ProfilePropsPage(QWidget *parent, const QString &profile);
ProfilePropsPage(TQWidget *parent, const TQString &profile);
~ProfilePropsPage();
virtual void load();
@ -34,18 +35,18 @@ public:
virtual void setFocus();
virtual QString subCaption();
virtual TQString subCaption();
QString profile() { return m_profile; }
TQString profile() { return m_profile; }
protected slots:
void slotProfileNameChanged();
private:
QString m_profile;
TQString m_profile;
bool m_fixedProfileDir;
QString m_origProfile;
QString m_origInstallDir;
TQString m_origProfile;
TQString m_origInstallDir;
};
#endif

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>ProfilePropsPageUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>Page2</cstring>
</property>
@ -29,7 +29,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@ -46,14 +46,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>60</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QFrame" row="0" column="1">
<widget class="TQFrame" row="0" column="1">
<property name="name">
<cstring>frame3</cstring>
</property>
@ -70,7 +70,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@ -88,7 +88,7 @@
<property name="name">
<cstring>editProfileName</cstring>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>400</width>
<height>0</height>
@ -105,14 +105,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@ -130,7 +130,7 @@
<property name="name">
<cstring>editDescription</cstring>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>400</width>
<height>0</height>
@ -147,14 +147,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel4_2</cstring>
</property>
@ -168,7 +168,7 @@
<cstring>kurlInstallDir</cstring>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<property name="name">
<cstring>comboUser</cstring>
</property>
@ -183,14 +183,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@ -208,7 +208,7 @@
<property name="name">
<cstring>kurlInstallDir</cstring>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>400</width>
<height>0</height>
@ -235,7 +235,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>30</height>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ProfileSelectionPageUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>Page1</cstring>
</property>
@ -32,7 +32,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@ -73,7 +73,7 @@
<verstretch>1</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>300</width>
<height>220</height>
@ -99,22 +99,22 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget" row="2" column="3" rowspan="2" colspan="1">
<widget class="TQLayoutWidget" row="2" column="3" rowspan="2" colspan="1">
<property name="name">
<cstring>layout3</cstring>
<cstring>tqlayout3</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonAdd</cstring>
</property>
@ -132,14 +132,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonSetup</cstring>
</property>
@ -157,14 +157,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonUsers</cstring>
</property>
@ -182,14 +182,14 @@
<property name="sizeType">
<enum>MinimumExpanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonProperty</cstring>
</property>
@ -207,14 +207,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonDelete</cstring>
</property>

@ -21,11 +21,11 @@
#include "kioskrun.h"
ScreenSaverComponent::ScreenSaverComponent( QObject *parent)
ScreenSaverComponent::ScreenSaverComponent( TQObject *parent)
: Component(parent)
{
qWarning("ScreenSaverComponent::ScreenSaverComponent");
connect(&m_timer, SIGNAL(timeout()), this, SLOT(slotPreviewStarted()));
connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotPreviewStarted()));
}
ScreenSaverComponent::~ScreenSaverComponent()

@ -21,13 +21,14 @@
#include "component.h"
#include <qtimer.h>
#include <tqtimer.h>
class ScreenSaverComponent: public Component
{
Q_OBJECT
TQ_OBJECT
public:
ScreenSaverComponent( QObject *parent = 0);
ScreenSaverComponent( TQObject *parent = 0);
virtual ~ScreenSaverComponent();
public slots:
@ -35,7 +36,7 @@ public slots:
virtual void slotPreviewStarted();
private:
QTimer m_timer;
TQTimer m_timer;
};
#endif

@ -24,9 +24,9 @@
#include <pwd.h>
#include <sys/types.h>
#include <qcombobox.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <tqcombobox.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <kapplication.h>
#include <kconfig.h>
@ -42,7 +42,7 @@
#define AVAILABLE_SINCE "KDE 3.2.3"
UserManagementPage::UserManagementPage(QWidget* parent, const char* name, WFlags fl)
UserManagementPage::UserManagementPage(TQWidget* parent, const char* name, WFlags fl)
: UserManagementUI(parent, name, fl), PageWidget(this)
{
setCaption(i18n("Assign Profiles"));
@ -52,13 +52,13 @@ UserManagementPage::UserManagementPage(QWidget* parent, const char* name, WFlags
// actionButton(KDialogBase::Ok)->setFocus();
connect(buttonAddGroup, SIGNAL(clicked()), this, SLOT(slotAddGroup()));
connect(buttonDeleteGroup, SIGNAL(clicked()), this, SLOT(slotDeleteGroup()));
connect(buttonAddUser, SIGNAL(clicked()), this, SLOT(slotAddUser()));
connect(buttonDeleteUser, SIGNAL(clicked()), this, SLOT(slotDeleteUser()));
connect(buttonAddGroup, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddGroup()));
connect(buttonDeleteGroup, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeleteGroup()));
connect(buttonAddUser, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddUser()));
connect(buttonDeleteUser, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeleteUser()));
connect(listGroups, SIGNAL(selectionChanged()), this, SLOT(slotUpdateButtons()));
connect(listUsers, SIGNAL(selectionChanged()), this, SLOT(slotUpdateButtons()));
connect(listGroups, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotUpdateButtons()));
connect(listUsers, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotUpdateButtons()));
// init();
static bool firstTime = true;
@ -66,7 +66,7 @@ UserManagementPage::UserManagementPage(QWidget* parent, const char* name, WFlags
if (firstTime)
{
firstTime = false;
QTimer::singleShot(0, this, SLOT(slotShowNotice()));
TQTimer::singleShot(0, this, TQT_SLOT(slotShowNotice()));
}
}
@ -82,7 +82,7 @@ void UserManagementPage::slotShowNotice()
"If you want to use these profiles in combination with older versions you need "
"to manually set the $KDEDIRS environment variable from the <b>startkde</b> "
"script by adding the following line:<br><br>"
"<i>export KDEDIRS=$(kiosktool-kdedirs)</i><br><br>").arg(AVAILABLE_SINCE),
"<i>export KDEDIRS=$(kiosktool-kdedirs)</i><br><br>").tqarg(AVAILABLE_SINCE),
i18n("Attention"), "user-profiles");
}
@ -96,24 +96,24 @@ void UserManagementPage::load()
KioskRun::ProfileMapping groups;
KioskRun::ProfileMapping users;
QStringList groupOrder;
TQStringList groupOrder;
KioskRun::self()->getUserProfileMappings(groups, users, groupOrder);
for ( QStringList::ConstIterator it = groupOrder.begin();
for ( TQStringList::ConstIterator it = groupOrder.begin();
it != groupOrder.end(); ++it )
{
QString group = *it;
QString profile = groups[group].join(",");
new QListViewItem(listGroups, group, profile);
TQString group = *it;
TQString profile = groups[group].join(",");
new TQListViewItem(listGroups, group, profile);
}
for ( KioskRun::ProfileMapping::Iterator it = users.begin();
it != users.end(); ++it )
{
QString user = it.key();
QString profile = it.data().join(",");
new QListViewItem(listUsers, user, profile);
TQString user = it.key();
TQString profile = it.data().join(",");
new TQListViewItem(listUsers, user, profile);
}
slotUpdateButtons();
}
@ -128,13 +128,13 @@ bool UserManagementPage::save()
{
KioskRun::ProfileMapping groups;
KioskRun::ProfileMapping users;
QStringList groupOrder;
TQStringList groupOrder;
QListViewItem *item = listGroups->firstChild();
TQListViewItem *item = listGroups->firstChild();
for(; item; item = item->nextSibling())
{
QString group = item->text(0);
QStringList profiles = QStringList::split(",", item->text(1));
TQString group = item->text(0);
TQStringList profiles = TQStringList::split(",", item->text(1));
groups.insert(group, profiles);
groupOrder.prepend(group);
}
@ -142,8 +142,8 @@ bool UserManagementPage::save()
item = listUsers->firstChild();
for(; item; item = item->nextSibling())
{
QString user = item->text(0);
QStringList profiles = QStringList::split(",", item->text(1));
TQString user = item->text(0);
TQStringList profiles = TQStringList::split(",", item->text(1));
users.insert(user, profiles);
}
@ -154,13 +154,13 @@ void UserManagementPage::slotAddGroup()
{
KConfig *config = kapp->config();
config->setGroup("General");
QStringList groupBlacklist = config->readListEntry("GroupBlacklist");
TQStringList groupBlacklist = config->readListEntry("GroupBlacklist");
m_allGroups.clear();
setgrent();
for (struct group *grp; (grp = getgrent()); )
{
QString group = QString::fromUtf8(grp->gr_name);
TQString group = TQString::fromUtf8(grp->gr_name);
if (!groupBlacklist.contains(group))
m_allGroups.append(group);
}
@ -171,19 +171,19 @@ void UserManagementPage::slotAddGroup()
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true );
UserManagementGroupUI *wid = new UserManagementGroupUI(&dlg);
wid->labelCaption->setFixedSize(wid->labelCaption->sizeHint());
wid->labelCaption->setFixedSize(wid->labelCaption->tqsizeHint());
wid->comboGroup->insertStringList(m_allGroups);
wid->comboProfile->insertStringList(m_allProfiles);
wid->setFixedSize(wid->sizeHint());
wid->setFixedSize(wid->tqsizeHint());
dlg.setMainWidget(wid);
dlg.setFixedSize(dlg.sizeHint());
dlg.setFixedSize(dlg.tqsizeHint());
while (dlg.exec() == KDialogBase::Accepted)
{
QString group = wid->comboGroup->currentText();
QString profile = wid->comboProfile->currentText();
TQString group = wid->comboGroup->currentText();
TQString profile = wid->comboProfile->currentText();
// Check for dupes
QListViewItem *item = listGroups->firstChild();
TQListViewItem *item = listGroups->firstChild();
for( ;item; item = item->nextSibling())
{
if (item->text(0) == group)
@ -193,7 +193,7 @@ void UserManagementPage::slotAddGroup()
{
int result = KMessageBox::warningContinueCancel(this,
i18n("<qt>You already have a profile defined for group <b>%1</b>. "
"Do you want to replace it?</qt>").arg(group),
"Do you want to replace it?</qt>").tqarg(group),
i18n("Duplicate Warning"),
i18n("&Replace"));
if (result != KMessageBox::Continue)
@ -201,7 +201,7 @@ void UserManagementPage::slotAddGroup()
delete item;
}
item = new QListViewItem(listGroups, group, profile);
item = new TQListViewItem(listGroups, group, profile);
listGroups->setSelected(item, true);
slotUpdateButtons();
return;
@ -210,7 +210,7 @@ void UserManagementPage::slotAddGroup()
void UserManagementPage::slotDeleteGroup()
{
QListViewItem *item = listGroups->selectedItem();
TQListViewItem *item = listGroups->selectedItem();
if (!item)
return;
@ -233,7 +233,7 @@ void UserManagementPage::slotAddUser()
for (struct passwd *user; (user = getpwent()); )
{
if ((user->pw_uid >= (uid_t) minUID) || (user->pw_uid == 0))
m_allUsers.append(QString::fromUtf8(user->pw_name));
m_allUsers.append(TQString::fromUtf8(user->pw_name));
}
endpwent();
m_allUsers.sort();
@ -242,19 +242,19 @@ void UserManagementPage::slotAddUser()
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true );
UserManagementUserUI *wid = new UserManagementUserUI(&dlg);
wid->labelCaption->setFixedSize(wid->labelCaption->sizeHint());
wid->labelCaption->setFixedSize(wid->labelCaption->tqsizeHint());
wid->comboUser->insertStringList(m_allUsers);
wid->comboProfile->insertStringList(m_allProfiles);
wid->setFixedSize(wid->sizeHint());
wid->setFixedSize(wid->tqsizeHint());
dlg.setMainWidget(wid);
dlg.setFixedSize(dlg.sizeHint());
dlg.setFixedSize(dlg.tqsizeHint());
while (dlg.exec() == KDialogBase::Accepted)
{
QString user = wid->comboUser->currentText();
QString profile = wid->comboProfile->currentText();
TQString user = wid->comboUser->currentText();
TQString profile = wid->comboProfile->currentText();
// Check for dupes
QListViewItem *item = listUsers->firstChild();
TQListViewItem *item = listUsers->firstChild();
for( ;item; item = item->nextSibling())
{
if (item->text(0) == user)
@ -264,7 +264,7 @@ void UserManagementPage::slotAddUser()
{
int result = KMessageBox::warningContinueCancel(this,
i18n("<qt>You already have a profile defined for user <b>%1</b>. "
"Do you want to replace it?</<qt>").arg(user),
"Do you want to replace it?</<qt>").tqarg(user),
i18n("Duplicate Warning"),
i18n("&Replace"));
if (result != KMessageBox::Continue)
@ -272,7 +272,7 @@ void UserManagementPage::slotAddUser()
delete item;
}
item = new QListViewItem(listUsers, user, profile);
item = new TQListViewItem(listUsers, user, profile);
listUsers->setSelected(item, true);
slotUpdateButtons();
return;
@ -281,7 +281,7 @@ void UserManagementPage::slotAddUser()
void UserManagementPage::slotDeleteUser()
{
QListViewItem *item = listUsers->selectedItem();
TQListViewItem *item = listUsers->selectedItem();
if (!item)
return;
@ -298,7 +298,7 @@ void UserManagementPage::setFocus()
// TODO
}
QString UserManagementPage::subCaption()
TQString UserManagementPage::subCaption()
{
return i18n("Assign Profiles");
}

@ -27,8 +27,9 @@ class UserManagementUI;
class UserManagementPage : public UserManagementUI, public PageWidget
{
Q_OBJECT
TQ_OBJECT
public:
UserManagementPage(QWidget* parent, const char* name = 0, WFlags fl = 0);
UserManagementPage(TQWidget* parent, const char* name = 0, WFlags fl = 0);
~UserManagementPage();
virtual void load();
@ -36,7 +37,7 @@ public:
virtual void setFocus();
virtual QString subCaption();
virtual TQString subCaption();
protected:
void init();
@ -52,9 +53,9 @@ private slots:
private:
UserManagementUI *w;
QStringList m_allUsers;
QStringList m_allGroups;
QStringList m_allProfiles;
TQStringList m_allUsers;
TQStringList m_allGroups;
TQStringList m_allProfiles;
};
#endif

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>UserManagementGroupUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>UserManagementGroupUI</cstring>
</property>
@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelCaption</cstring>
</property>
@ -34,22 +34,22 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
<cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelGroup</cstring>
</property>
@ -57,7 +57,7 @@
<string>Group:</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<property name="name">
<cstring>comboGroup</cstring>
</property>
@ -72,14 +72,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelProfile</cstring>
</property>
@ -87,7 +87,7 @@
<string>Profile:</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<property name="name">
<cstring>comboProfile</cstring>
</property>
@ -102,7 +102,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>51</width>
<height>20</height>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>UserManagementUserUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>UserManagementUserUI</cstring>
</property>
@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelCaption</cstring>
</property>
@ -34,22 +34,22 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
<cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelUser</cstring>
</property>
@ -57,7 +57,7 @@
<string>User:</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<property name="name">
<cstring>comboUser</cstring>
</property>
@ -72,14 +72,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>labelProfile</cstring>
</property>
@ -87,7 +87,7 @@
<string>Profile:</string>
</property>
</widget>
<widget class="QComboBox">
<widget class="TQComboBox">
<property name="name">
<cstring>comboProfile</cstring>
</property>
@ -102,7 +102,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>51</width>
<height>20</height>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>UserManagementUI</class>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<cstring>UserManagementUI</cstring>
</property>
@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@ -27,11 +27,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@ -54,7 +54,7 @@
</widget>
</vbox>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@ -91,7 +91,7 @@
<property name="name">
<cstring>listGroups</cstring>
</property>
<property name="minimumSize">
<property name="tqminimumSize">
<size>
<width>350</width>
<height>0</height>
@ -104,15 +104,15 @@
<bool>true</bool>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
<cstring>tqlayout1</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonAddGroup</cstring>
</property>
@ -130,14 +130,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonDeleteGroup</cstring>
</property>
@ -155,7 +155,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>31</height>
@ -166,7 +166,7 @@
</widget>
</hbox>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@ -210,15 +210,15 @@
<bool>true</bool>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1_2</cstring>
<cstring>tqlayout1_2</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonAddUser</cstring>
</property>
@ -236,14 +236,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<widget class="TQPushButton">
<property name="name">
<cstring>buttonDeleteUser</cstring>
</property>
@ -261,7 +261,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<property name="tqsizeHint">
<size>
<width>20</width>
<height>31</height>

Loading…
Cancel
Save