summaryrefslogtreecommitdiffstats
path: root/lilo-config
diff options
context:
space:
mode:
Diffstat (limited to 'lilo-config')
-rw-r--r--lilo-config/common/String.h2
-rw-r--r--lilo-config/kde-qt-common/EditWidget.cpp24
-rw-r--r--lilo-config/kde-qt-common/EditWidget.h38
-rw-r--r--lilo-config/kde-qt-common/expert.cpp12
-rw-r--r--lilo-config/kde-qt-common/expert.h8
-rw-r--r--lilo-config/kde-qt-common/general.cpp100
-rw-r--r--lilo-config/kde-qt-common/general.h10
-rw-r--r--lilo-config/kde-qt-common/images.cpp114
-rw-r--r--lilo-config/kde-qt-common/images.h16
-rw-r--r--lilo-config/kde-qt-common/mainwidget.cpp16
-rw-r--r--lilo-config/kde-qt-common/mainwidget.h16
-rw-r--r--lilo-config/kde-qt-common/ui.h16
-rw-r--r--lilo-config/kde/Details.cpp62
-rw-r--r--lilo-config/kde/Details.h12
-rw-r--r--lilo-config/kde/InputBox.cpp12
-rw-r--r--lilo-config/kde/InputBox.h10
-rw-r--r--lilo-config/kde/kcontrol.cpp10
-rw-r--r--lilo-config/kde/kcontrol.h6
-rw-r--r--lilo-config/qt/Details.cpp68
-rw-r--r--lilo-config/qt/Details.h16
-rw-r--r--lilo-config/qt/InputBox.cpp24
-rw-r--r--lilo-config/qt/InputBox.h18
-rw-r--r--lilo-config/qt/standalone.cpp68
-rw-r--r--lilo-config/qt/standalone.h28
24 files changed, 353 insertions, 353 deletions
diff --git a/lilo-config/common/String.h b/lilo-config/common/String.h
index 7b12af5..354c427 100644
--- a/lilo-config/common/String.h
+++ b/lilo-config/common/String.h
@@ -27,7 +27,7 @@
** Bug reports and questions can be sent to kde-devel@kde.org
*/
/* Somewhat more sane string handling functions... *
- * Should be portable, therefore we aren't simply using QString. */
+ * Should be portable, therefore we aren't simply using TQString. */
#ifndef _STRING_H_
#define _STRING_H_ 1
diff --git a/lilo-config/kde-qt-common/EditWidget.cpp b/lilo-config/kde-qt-common/EditWidget.cpp
index fad957a..292e016 100644
--- a/lilo-config/kde-qt-common/EditWidget.cpp
+++ b/lilo-config/kde-qt-common/EditWidget.cpp
@@ -28,20 +28,20 @@
*/
#include "EditWidget.moc"
#include "ui.h"
-EditWidget::EditWidget(QString const label, QString const text, bool isFile, QWidget *parent, const char *name, WFlags f, bool allowLines):QHBox(allowLines, parent, name, f)
+EditWidget::EditWidget(TQString const label, TQString const text, bool isFile, TQWidget *parent, const char *name, WFlags f, bool allowLines):TQHBox(allowLines, parent, name, f)
{
setMargin(SPACE_MARGIN);
setSpacing(SPACE_INSIDE);
- lbl=new QLabel(label, this);
+ lbl=new TQLabel(label, this);
setStretchFactor(lbl, 0);
- line=new QLineEdit(text, this);
+ line=new TQLineEdit(text, this);
setStretchFactor(line, 1);
- connect(line, SIGNAL(textChanged(const QString &)), SIGNAL(textChanged(const QString &)));
- connect(line, SIGNAL(returnPressed()), SIGNAL(returnPressed()));
+ connect(line, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(textChanged(const TQString &)));
+ connect(line, TQT_SIGNAL(returnPressed()), TQT_SIGNAL(returnPressed()));
lbl->setBuddy(line);
if(isFile) {
- select=new QPushButton(_("Select..."), this);
- connect(select, SIGNAL(clicked()), SLOT(selectFileClicked()));
+ select=new TQPushButton(_("Select..."), this);
+ connect(select, TQT_SIGNAL(clicked()), TQT_SLOT(selectFileClicked()));
select->resize(select->minimumSizeHint());
setStretchFactor(select, 0);
} else
@@ -49,11 +49,11 @@ EditWidget::EditWidget(QString const label, QString const text, bool isFile, QWi
}
void EditWidget::selectFileClicked()
{
- QString filename=FileDlg::getOpenFileName(QString::null, QString::null, this);
+ TQString filename=FileDlg::getOpenFileName(TQString::null, TQString::null, this);
if(!filename.isEmpty())
line->setText(filename);
}
-QSize EditWidget::sizeHint() const
+TQSize EditWidget::sizeHint() const
{
int w=2*SPACE_MARGIN+lbl->sizeHint().width()+SPACE_INSIDE+line->sizeHint().width();
int h=lbl->sizeHint().height();
@@ -64,9 +64,9 @@ QSize EditWidget::sizeHint() const
if(h<select->sizeHint().height())
h=select->sizeHint().height();
}
- return QSize(w, h);
+ return TQSize(w, h);
}
-QSize EditWidget::minimumSizeHint() const
+TQSize EditWidget::minimumSizeHint() const
{
int w=2*SPACE_MARGIN+lbl->minimumSizeHint().width()+SPACE_INSIDE+line->minimumSizeHint().width();
int h=lbl->minimumSizeHint().height();
@@ -77,5 +77,5 @@ QSize EditWidget::minimumSizeHint() const
if(h<select->minimumSizeHint().height())
h=select->minimumSizeHint().height();
}
- return QSize(w, h);
+ return TQSize(w, h);
}
diff --git a/lilo-config/kde-qt-common/EditWidget.h b/lilo-config/kde-qt-common/EditWidget.h
index 515c65e..0a64750 100644
--- a/lilo-config/kde-qt-common/EditWidget.h
+++ b/lilo-config/kde-qt-common/EditWidget.h
@@ -28,32 +28,32 @@
*/
#ifndef _EDITWIDGET_H_
#define _EDITWIDGET_H_ 1
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
class EditWidget:public QHBox
{
Q_OBJECT
public:
- EditWidget(QString const label="", QString const text="", bool isFile=false, QWidget *parent=0, const char *name=0, WFlags f=0, bool allowLines=true);
- void setLabel(QString const &label) { lbl->setText(label); };
- QString text() const { return line->text(); };
- QString displayText() const { return line->displayText(); };
+ EditWidget(TQString const label="", TQString const text="", bool isFile=false, TQWidget *parent=0, const char *name=0, WFlags f=0, bool allowLines=true);
+ void setLabel(TQString const &label) { lbl->setText(label); };
+ TQString text() const { return line->text(); };
+ TQString displayText() const { return line->displayText(); };
int maxLength() const { return line->maxLength(); };
virtual void setMaxLength(int l) { line->setMaxLength(l); };
virtual void setFrame(bool b) { line->setFrame(b); };
bool frame() const { return line->frame(); };
- virtual void setEchoMode(QLineEdit::EchoMode e) { line->setEchoMode(e); };
- QLineEdit::EchoMode echoMode() const { return line->echoMode(); };
+ virtual void setEchoMode(TQLineEdit::EchoMode e) { line->setEchoMode(e); };
+ TQLineEdit::EchoMode echoMode() const { return line->echoMode(); };
void setReadOnly(bool b) const { line->setReadOnly(b); };
bool isReadOnly() const { return line->isReadOnly(); };
- virtual void setValidator(const QValidator *v) { line->setValidator(v); };
- const QValidator *validator() const { return line->validator(); };
+ virtual void setValidator(const TQValidator *v) { line->setValidator(v); };
+ const TQValidator *validator() const { return line->validator(); };
virtual void setSelection(int s, int e) { line->setSelection(s, e); };
virtual void setCursorPosition(int p) { line->setCursorPosition(p); };
int cursorPosition() const { return line->cursorPosition(); };
- bool validateAndSet(const QString &s, int a, int b, int c) { return line->validateAndSet(s, a, b, c); };
+ bool validateAndSet(const TQString &s, int a, int b, int c) { return line->validateAndSet(s, a, b, c); };
void cut() { line->cut(); };
void copy() const { line->copy(); };
void paste() { line->paste(); };
@@ -70,19 +70,19 @@ public:
void setEdited(bool e) { line->setEdited(e); };
bool edited() const { return line->edited(); };
bool hasMarkedText() const { return line->hasMarkedText(); };
- QString markedText() const { return line->markedText(); };
- virtual QSize sizeHint() const;
- virtual QSize minimumSizeHint() const;
+ TQString markedText() const { return line->markedText(); };
+ virtual TQSize sizeHint() const;
+ virtual TQSize minimumSizeHint() const;
public slots:
- virtual void setText(const QString &text) { line->setText(text); };
+ virtual void setText(const TQString &text) { line->setText(text); };
void selectAll() { line->selectAll(); };
void deselect() { line->deselect(); };
void clearValidator() { line->clearValidator(); };
- void insert(const QString &s) { line->insert(s); };
+ void insert(const TQString &s) { line->insert(s); };
void clear() { line->clear(); };
void selectFileClicked();
signals:
- void textChanged(const QString &);
+ void textChanged(const TQString &);
void returnPressed();
private:
QLabel *lbl;
diff --git a/lilo-config/kde-qt-common/expert.cpp b/lilo-config/kde-qt-common/expert.cpp
index dea58e9..d74b6b6 100644
--- a/lilo-config/kde-qt-common/expert.cpp
+++ b/lilo-config/kde-qt-common/expert.cpp
@@ -28,17 +28,17 @@
*/
#include "expert.moc"
#include <ui.h>
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
#include <String.h>
#include <strstream>
-Expert::Expert(liloconf *l, QWidget *parent, const char *name):QWidget(parent, name)
+Expert::Expert(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent, name)
{
lilo=l;
- layout=new QHBoxLayout(this);
- edit=new QMultiLineEdit(this);
+ layout=new TQHBoxLayout(this);
+ edit=new TQMultiLineEdit(this);
layout->addWidget(edit);
- connect(edit, SIGNAL(textChanged()), SIGNAL(configChanged()));
- QWhatsThis::add(edit, _("You can edit the lilo.conf file directly here. All changes you make here are automatically transferred to the graphical interface."));
+ connect(edit, TQT_SIGNAL(textChanged()), TQT_SIGNAL(configChanged()));
+ TQWhatsThis::add(edit, _("You can edit the lilo.conf file directly here. All changes you make here are automatically transferred to the graphical interface."));
update();
}
Expert::~Expert()
diff --git a/lilo-config/kde-qt-common/expert.h b/lilo-config/kde-qt-common/expert.h
index d9d6afb..e2fec97 100644
--- a/lilo-config/kde-qt-common/expert.h
+++ b/lilo-config/kde-qt-common/expert.h
@@ -29,14 +29,14 @@
#ifndef _EXPERT_H_
#define _EXPERT_H_ 1
#include <lilo.h>
-#include <qwidget.h>
-#include <qmultilineedit.h>
-#include <qlayout.h>
+#include <tqwidget.h>
+#include <tqmultilineedit.h>
+#include <tqlayout.h>
class Expert:public QWidget
{
Q_OBJECT
public:
- Expert(liloconf *l=0, QWidget *parent=0, const char *name=0);
+ Expert(liloconf *l=0, TQWidget *parent=0, const char *name=0);
~Expert();
void setCfg(liloconf *l) { lilo=l; };
void makeReadOnly();
diff --git a/lilo-config/kde-qt-common/general.cpp b/lilo-config/kde-qt-common/general.cpp
index 7944409..2040025 100644
--- a/lilo-config/kde-qt-common/general.cpp
+++ b/lilo-config/kde-qt-common/general.cpp
@@ -29,75 +29,75 @@
#include "general.moc"
#include "EditWidget.h"
#include <Disks.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <ui.h>
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
#include <stdlib.h>
-General::General(liloconf *l, QWidget *parent, const char *name):QWidget(parent, name)
+General::General(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent, name)
{
lilo=l;
- QVBoxLayout *layout=new QVBoxLayout(this);
+ TQVBoxLayout *layout=new TQVBoxLayout(this);
layout->setMargin(SPACE_MARGIN);
layout->setSpacing(SPACE_INSIDE);
- QHBox *drv=new QHBox(this);
- QLabel *drive_lbl=new QLabel(_("Install &boot record to drive/partition:"), drv);
- drive=new QComboBox(false, drv);
+ TQHBox *drv=new TQHBox(this);
+ TQLabel *drive_lbl=new TQLabel(_("Install &boot record to drive/partition:"), drv);
+ drive=new TQComboBox(false, drv);
drive_lbl->setBuddy(drive);
StringList p=ptable::disklist();
p+=ptable::partlist();
p.sort();
for(StringList::const_iterator it=p.begin(); it!=p.end(); it++)
drive->insertItem((*it).cstr());
- connect(drive, SIGNAL(activated(int)), SIGNAL(configChanged()));
+ connect(drive, TQT_SIGNAL(activated(int)), TQT_SIGNAL(configChanged()));
layout->addWidget(drv);
- QWhatsThis::add(drv, _("Select the drive or partition you want to install the LILO boot loader to here. Unless you intend to use other boot managers in addition to LILO, this should be the MBR (master boot record) of your boot drive.<br>In this case, you should probably select <i>/dev/hda</i> if your boot drive is an IDE drive or <i>/dev/sda</i> if your boot drive is SCSI."));
+ TQWhatsThis::add(drv, _("Select the drive or partition you want to install the LILO boot loader to here. Unless you intend to use other boot managers in addition to LILO, this should be the MBR (master boot record) of your boot drive.<br>In this case, you should probably select <i>/dev/hda</i> if your boot drive is an IDE drive or <i>/dev/sda</i> if your boot drive is SCSI."));
- QHBox *to=new QHBox(this);
- QLabel *to_lbl=new QLabel(_("Boot the default kernel/OS &after:"), to);
- timeout=new QSpinBox(0, 1000000, 1, to);
+ TQHBox *to=new TQHBox(this);
+ TQLabel *to_lbl=new TQLabel(_("Boot the default kernel/OS &after:"), to);
+ timeout=new TQSpinBox(0, 1000000, 1, to);
timeout->setSuffix(_("/10 seconds"));
- connect(timeout, SIGNAL(valueChanged(int)), SIGNAL(configChanged()));
+ connect(timeout, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(configChanged()));
to_lbl->setBuddy(timeout);
layout->addWidget(to);
- QWhatsThis::add(to, _("LILO will wait the amount of time specified here before booting the kernel (or OS) marked as <i>default</i> in the <b>Images</b> tab."));
+ TQWhatsThis::add(to, _("LILO will wait the amount of time specified here before booting the kernel (or OS) marked as <i>default</i> in the <b>Images</b> tab."));
- QHBox *modes=new QHBox(this);
- linear=new QCheckBox(_("Use &linear mode"), modes);
- connect(linear, SIGNAL(clicked()), SIGNAL(configChanged()));
- QWhatsThis::add(linear, _("Check this box if you want to use the linear mode.<br>Linear mode tells the boot loader the location of kernels in linear addressing rather than sector/head/cylinder.<br>linear mode is required for some SCSI drives, and shouldn't hurt unless you're planning to create a boot disk to be used with a different computer.<br>See the lilo.conf man page for details."));
- compact=new QCheckBox(_("Use &compact mode"), modes);
- connect(compact, SIGNAL(clicked()), SIGNAL(configChanged()));
- QWhatsThis::add(compact, _("Check this box if you want to use the compact mode.<br>The compact mode tries to merge read requests for adjacent sectors into a single read request. This reduces load time and keeps the boot map smaller, but will not work on all systems."));
+ TQHBox *modes=new TQHBox(this);
+ linear=new TQCheckBox(_("Use &linear mode"), modes);
+ connect(linear, TQT_SIGNAL(clicked()), TQT_SIGNAL(configChanged()));
+ TQWhatsThis::add(linear, _("Check this box if you want to use the linear mode.<br>Linear mode tells the boot loader the location of kernels in linear addressing rather than sector/head/cylinder.<br>linear mode is required for some SCSI drives, and shouldn't hurt unless you're planning to create a boot disk to be used with a different computer.<br>See the lilo.conf man page for details."));
+ compact=new TQCheckBox(_("Use &compact mode"), modes);
+ connect(compact, TQT_SIGNAL(clicked()), TQT_SIGNAL(configChanged()));
+ TQWhatsThis::add(compact, _("Check this box if you want to use the compact mode.<br>The compact mode tries to merge read requests for adjacent sectors into a single read request. This reduces load time and keeps the boot map smaller, but will not work on all systems."));
layout->addWidget(modes);
- QHBox *opts=new QHBox(this);
- lock=new QCheckBox(_("&Record boot command lines for defaults"), opts);
- connect(lock, SIGNAL(clicked()), SIGNAL(configChanged()));
- QWhatsThis::add(lock, "<qt>"+_("Checking this box enables automatic recording of boot command lines as the defaults for the following boots. This way, lilo \"locks\" on a choice until it is manually overridden.\nThis sets the <b>lock</b> option in lilo.conf."));
- restricted=new QCheckBox(_("R&estrict parameters"), opts);
- connect(restricted, SIGNAL(clicked()), SIGNAL(configChanged()));
- connect(restricted, SIGNAL(clicked()), SLOT(check_pw()));
- QWhatsThis::add(restricted, _("If this box is checked, a password (entered below) is required only if any parameters are changed (i.e. the user can boot <i>linux</i>, but not <i>linux single</i> or <i>linux init=/bin/sh</i>).\nThis sets the <b>restricted</b> option in lilo.conf.<br>This sets a default for all Linux kernels you want to boot. If you need a per-kernel setting, go to the <i>Operating systems</i> tab and select <i>Details</i>."));
+ TQHBox *opts=new TQHBox(this);
+ lock=new TQCheckBox(_("&Record boot command lines for defaults"), opts);
+ connect(lock, TQT_SIGNAL(clicked()), TQT_SIGNAL(configChanged()));
+ TQWhatsThis::add(lock, "<qt>"+_("Checking this box enables automatic recording of boot command lines as the defaults for the following boots. This way, lilo \"locks\" on a choice until it is manually overridden.\nThis sets the <b>lock</b> option in lilo.conf."));
+ restricted=new TQCheckBox(_("R&estrict parameters"), opts);
+ connect(restricted, TQT_SIGNAL(clicked()), TQT_SIGNAL(configChanged()));
+ connect(restricted, TQT_SIGNAL(clicked()), TQT_SLOT(check_pw()));
+ TQWhatsThis::add(restricted, _("If this box is checked, a password (entered below) is required only if any parameters are changed (i.e. the user can boot <i>linux</i>, but not <i>linux single</i> or <i>linux init=/bin/sh</i>).\nThis sets the <b>restricted</b> option in lilo.conf.<br>This sets a default for all Linux kernels you want to boot. If you need a per-kernel setting, go to the <i>Operating systems</i> tab and select <i>Details</i>."));
layout->addWidget(opts);
- QHBox *pw=new QHBox(this);
- use_password=new QCheckBox(_("Require &password:"), pw);
- connect(use_password, SIGNAL(clicked()), SIGNAL(configChanged()));
- connect(use_password, SIGNAL(clicked()), SLOT(check_pw()));
- password=new QLineEdit(pw);
+ TQHBox *pw=new TQHBox(this);
+ use_password=new TQCheckBox(_("Require &password:"), pw);
+ connect(use_password, TQT_SIGNAL(clicked()), TQT_SIGNAL(configChanged()));
+ connect(use_password, TQT_SIGNAL(clicked()), TQT_SLOT(check_pw()));
+ password=new TQLineEdit(pw);
password->setMaxLength(15);
- password->setEchoMode(QLineEdit::Password);
- connect(password, SIGNAL(textChanged(const QString &)), SIGNAL(configChanged()));
- QWhatsThis::add(pw, _("Enter the password required for bootup (if any) here. If <i>restricted</i> above is checked, the password is required for additional parameters only.<br><b>WARNING:</b> The password is stored in clear text in /etc/lilo.conf. You'll want to make sure nobody untrusted can read this file. Also, you probably don't want to use your normal/root password here.<br>This sets a default for all Linux kernels you want to boot. If you need a per-kernel setting, go to the <i>Operating systems</i> tab and select <i>Details</i>."));
+ password->setEchoMode(TQLineEdit::Password);
+ connect(password, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(configChanged()));
+ TQWhatsThis::add(pw, _("Enter the password required for bootup (if any) here. If <i>restricted</i> above is checked, the password is required for additional parameters only.<br><b>WARNING:</b> The password is stored in clear text in /etc/lilo.conf. You'll want to make sure nobody untrusted can read this file. Also, you probably don't want to use your normal/root password here.<br>This sets a default for all Linux kernels you want to boot. If you need a per-kernel setting, go to the <i>Operating systems</i> tab and select <i>Details</i>."));
layout->addWidget(pw);
- QHBox *vgab=new QHBox(this);
- QLabel *vlbl=new QLabel(_("&Default graphics mode on text console:"), vgab);
- vga=new QComboBox(false, vgab);
+ TQHBox *vgab=new TQHBox(this);
+ TQLabel *vlbl=new TQLabel(_("&Default graphics mode on text console:"), vgab);
+ vga=new TQComboBox(false, vgab);
vlbl->setBuddy(vga);
- QWhatsThis::add(vgab, _("You can select the default graphics mode here.<br>If you intend to use a VGA graphics mode, you must compile the kernel with support for framebuffer devices. The <i>ask</i> setting brings up a prompt at boot time.<br>This sets a default for all Linux kernels you want to boot. If you need a per-kernel setting, go to the <i>Operating systems</i> tab and select <i>Details</i>."));
+ TQWhatsThis::add(vgab, _("You can select the default graphics mode here.<br>If you intend to use a VGA graphics mode, you must compile the kernel with support for framebuffer devices. The <i>ask</i> setting brings up a prompt at boot time.<br>This sets a default for all Linux kernels you want to boot. If you need a per-kernel setting, go to the <i>Operating systems</i> tab and select <i>Details</i>."));
vga->insertItem(_("default"));
vga->insertItem(_("ask"));
vga->insertItem(_("text 80x25 (0)"));
@@ -124,12 +124,12 @@ General::General(liloconf *l, QWidget *parent, const char *name):QWidget(parent,
vga->insertItem(_("VGA 1280x1024, 32767 colors (793)"));
vga->insertItem(_("VGA 1280x1024, 65536 colors (794)"));
vga->insertItem(_("VGA 1280x1024, 16.7M colors (795)"));
- connect( vga, SIGNAL(activated ( int )), SIGNAL(configChanged()));
+ connect( vga, TQT_SIGNAL(activated ( int )), TQT_SIGNAL(configChanged()));
layout->addWidget(vgab);
- prompt=new QCheckBox(_("Enter LILO &prompt automatically"), this);
- QWhatsThis::add(prompt, _("If this box is checked, LILO goes to the LILO prompt whether or not a key is pressed. If it is turned off, LILO boots the default operating system unless shift is pressed (in that case, it goes to the LILO prompt).<br>This sets the <i>prompt</i> option in lilo.conf."));
- connect(prompt, SIGNAL(clicked()), SIGNAL(configChanged()));
+ prompt=new TQCheckBox(_("Enter LILO &prompt automatically"), this);
+ TQWhatsThis::add(prompt, _("If this box is checked, LILO goes to the LILO prompt whether or not a key is pressed. If it is turned off, LILO boots the default operating system unless shift is pressed (in that case, it goes to the LILO prompt).<br>This sets the <i>prompt</i> option in lilo.conf."));
+ connect(prompt, TQT_SIGNAL(clicked()), TQT_SIGNAL(configChanged()));
layout->addWidget(prompt);
@@ -137,9 +137,9 @@ General::General(liloconf *l, QWidget *parent, const char *name):QWidget(parent,
}
void General::saveChanges()
{
- QString to;
+ TQString to;
to.sprintf("%u", timeout->value());
- QString boot = drive->currentText();
+ TQString boot = drive->currentText();
lilo->defaults.set("boot", boot.isEmpty() ? "" : boot.latin1());
lilo->defaults.set("timeout", to.latin1());
if(compact->isChecked() && lilo->defaults.grep("^[ \t]*compact[ \t]*$").empty())
@@ -166,7 +166,7 @@ void General::saveChanges()
if(!lilo->defaults.grep("[ \t]*vga[ \t]*=").empty())
lilo->defaults.remove(lilo->defaults.grep("[ \t]*vga[ \t]*="));
} else {
- QString mode=vga->currentText();
+ TQString mode=vga->currentText();
if(mode!="ask") {
mode=mode.mid(mode.find('(')+1);
mode=mode.left(mode.length()-1);
@@ -180,7 +180,7 @@ void General::saveChanges()
}
void General::update()
{
- QString boot=lilo->defaults.get("boot").cstr();
+ TQString boot=lilo->defaults.get("boot").cstr();
for(int i=0; i<drive->count(); i++)
if(drive->text(i)==boot)
drive->setCurrentItem(i);
@@ -194,7 +194,7 @@ void General::update()
if(!pw.empty())
password->setText(lilo->defaults.get("password").cstr());
check_pw();
- QString mode=lilo->defaults.get("vga", "").cstr();
+ TQString mode=lilo->defaults.get("vga", "").cstr();
if(mode.isEmpty())
vga->setCurrentItem(0);
else if(mode=="ask")
diff --git a/lilo-config/kde-qt-common/general.h b/lilo-config/kde-qt-common/general.h
index 7e88a90..d925ad1 100644
--- a/lilo-config/kde-qt-common/general.h
+++ b/lilo-config/kde-qt-common/general.h
@@ -29,15 +29,15 @@
#ifndef _GENERAL_H_
#define _GENERAL_H_ 1
#include <lilo.h>
-#include <qwidget.h>
-#include <qcombobox.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
+#include <tqwidget.h>
+#include <tqcombobox.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
class General:public QWidget
{
Q_OBJECT
public:
- General(liloconf *l=0, QWidget *parent=0, const char *name=0);
+ General(liloconf *l=0, TQWidget *parent=0, const char *name=0);
void makeReadOnly();
signals:
void configChanged();
diff --git a/lilo-config/kde-qt-common/images.cpp b/lilo-config/kde-qt-common/images.cpp
index 98dd1cb..9159d97 100644
--- a/lilo-config/kde-qt-common/images.cpp
+++ b/lilo-config/kde-qt-common/images.cpp
@@ -28,9 +28,9 @@
*/
#include "images.moc"
#include <ui.h>
-#include <qwhatsthis.h>
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqwhatsthis.h>
+#include <tqregexp.h>
+#include <tqstring.h>
#ifdef USE_KDE
#include "kde/InputBox.h"
@@ -40,63 +40,63 @@
#include "qt/Details.h"
#endif
-Images::Images(liloconf *l, QWidget *parent, const char *name):QWidget(parent, name)
+Images::Images(liloconf *l, TQWidget *parent, const char *name):TQWidget(parent, name)
{
- current=""; previous=""; // Using QString::null gives problems!
+ current=""; previous=""; // Using TQString::null gives problems!
lilo=l;
- layout=new QHBoxLayout(this);
+ layout=new TQHBoxLayout(this);
layout->setMargin(SPACE_MARGIN);
layout->setSpacing(SPACE_INSIDE);
- images=new QListBox(this);
+ images=new TQListBox(this);
layout->addWidget(images, 1);
- connect(images, SIGNAL(highlighted(const QString &)), SLOT(imageSelected(const QString &)));
- QWhatsThis::add(images, _("This is the list of kernels and operating systems you can currently boot. Select which one you want to edit here."));
+ connect(images, TQT_SIGNAL(highlighted(const TQString &)), TQT_SLOT(imageSelected(const TQString &)));
+ TQWhatsThis::add(images, _("This is the list of kernels and operating systems you can currently boot. Select which one you want to edit here."));
- parameters=new QVBox(this);
+ parameters=new TQVBox(this);
parameters->setMargin(SPACE_MARGIN);
parameters->setSpacing(SPACE_INSIDE);
layout->addWidget(parameters, 2);
image=new EditWidget(_("&Kernel:"), "", true, parameters);
- QWhatsThis::add(image, _("Enter the filename of the kernel you want to boot here."));
- connect(image, SIGNAL(textChanged(const QString &)), this, SIGNAL(configChanged()));
+ TQWhatsThis::add(image, _("Enter the filename of the kernel you want to boot here."));
+ connect(image, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SIGNAL(configChanged()));
label=new EditWidget(_("&Label:"), "", false, parameters);
- QWhatsThis::add(label, _("Enter the label (name) of the kernel you want to boot here."));
- connect(label, SIGNAL(textChanged(const QString &)), this, SIGNAL(configChanged()));
+ TQWhatsThis::add(label, _("Enter the label (name) of the kernel you want to boot here."));
+ connect(label, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SIGNAL(configChanged()));
root=new EditWidget(_("&Root filesystem:"), "", true, parameters);
- QWhatsThis::add(root, _("Enter the root filesystem (i.e. the partition that will be mounted as / at boot time) for the kernel you want to boot here."));
- connect(root, SIGNAL(textChanged(const QString &)), this, SIGNAL(configChanged()));
+ TQWhatsThis::add(root, _("Enter the root filesystem (i.e. the partition that will be mounted as / at boot time) for the kernel you want to boot here."));
+ connect(root, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SIGNAL(configChanged()));
initrd=new EditWidget(_("&Initial ramdisk:"), "", true, parameters);
- QWhatsThis::add(initrd, _("If you want to use an initial ramdisk (initrd) for this kernel, enter its filename here. Leave this field blank if you don't intend to use an initial ramdisk for this kernel."));
- connect(initrd, SIGNAL(textChanged(const QString &)), this, SIGNAL(configChanged()));
+ TQWhatsThis::add(initrd, _("If you want to use an initial ramdisk (initrd) for this kernel, enter its filename here. Leave this field blank if you don't intend to use an initial ramdisk for this kernel."));
+ connect(initrd, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SIGNAL(configChanged()));
append=new EditWidget(_("E&xtra parameters:"), "", false, parameters);
- QWhatsThis::add(append, _("Enter any extra parameters you wish to pass to the kernel here. Usually, this can be left blank.<br>This sets the <i>append</i> option in lilo.conf."));
- connect(append, SIGNAL(textChanged(const QString &)), this, SIGNAL(configChanged()));
+ TQWhatsThis::add(append, _("Enter any extra parameters you wish to pass to the kernel here. Usually, this can be left blank.<br>This sets the <i>append</i> option in lilo.conf."));
+ connect(append, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SIGNAL(configChanged()));
- actions=new QVBox(this);
+ actions=new TQVBox(this);
actions->setMargin(SPACE_MARGIN);
actions->setSpacing(SPACE_INSIDE);
layout->addWidget(actions);
- dflt=new QPushButton(_("Set &Default"), actions);
- QWhatsThis::add(dflt, _("Boot this kernel/OS if the user doesn't make a different choice"));
- connect(dflt, SIGNAL(clicked()), SLOT(dfltClicked()));
- details=new QPushButton(_("De&tails"), actions);
- QWhatsThis::add(details, _("This button brings up a dialog box with further, less commonly used, options."));
- connect(details, SIGNAL(clicked()), SLOT(detailsClicked()));
- probe=new QPushButton(_("&Probe"), actions);
- connect(probe, SIGNAL(clicked()), SLOT(probeClicked()));
- QWhatsThis::add(probe, _("Automatically generate a (hopefully) reasonable lilo.conf for your system"));
- check=new QPushButton(_("&Check Configuration"), actions);
- connect(check, SIGNAL(clicked()), SLOT(checkClicked()));
- QWhatsThis::add(check, _("Run LILO in test mode to see if the configuration is ok"));
- addKrnl=new QPushButton(_("Add &Kernel..."), actions);
- connect(addKrnl, SIGNAL(clicked()), SLOT(addKrnlClicked()));
- QWhatsThis::add(addKrnl, _("Add a new Linux kernel to the boot menu"));
- addOS=new QPushButton(_("Add Other &OS..."), actions);
- connect(addOS, SIGNAL(clicked()), SLOT(addOSClicked()));
- QWhatsThis::add(addOS, _("Add a non-Linux OS to the boot menu"));
- remove=new QPushButton(_("&Remove Entry"), actions);
- connect(remove, SIGNAL(clicked()), SLOT(removeClicked()));
- QWhatsThis::add(remove, _("Remove entry from the boot menu"));
+ dflt=new TQPushButton(_("Set &Default"), actions);
+ TQWhatsThis::add(dflt, _("Boot this kernel/OS if the user doesn't make a different choice"));
+ connect(dflt, TQT_SIGNAL(clicked()), TQT_SLOT(dfltClicked()));
+ details=new TQPushButton(_("De&tails"), actions);
+ TQWhatsThis::add(details, _("This button brings up a dialog box with further, less commonly used, options."));
+ connect(details, TQT_SIGNAL(clicked()), TQT_SLOT(detailsClicked()));
+ probe=new TQPushButton(_("&Probe"), actions);
+ connect(probe, TQT_SIGNAL(clicked()), TQT_SLOT(probeClicked()));
+ TQWhatsThis::add(probe, _("Automatically generate a (hopefully) reasonable lilo.conf for your system"));
+ check=new TQPushButton(_("&Check Configuration"), actions);
+ connect(check, TQT_SIGNAL(clicked()), TQT_SLOT(checkClicked()));
+ TQWhatsThis::add(check, _("Run LILO in test mode to see if the configuration is ok"));
+ addKrnl=new TQPushButton(_("Add &Kernel..."), actions);
+ connect(addKrnl, TQT_SIGNAL(clicked()), TQT_SLOT(addKrnlClicked()));
+ TQWhatsThis::add(addKrnl, _("Add a new Linux kernel to the boot menu"));
+ addOS=new TQPushButton(_("Add Other &OS..."), actions);
+ connect(addOS, TQT_SIGNAL(clicked()), TQT_SLOT(addOSClicked()));
+ TQWhatsThis::add(addOS, _("Add a non-Linux OS to the boot menu"));
+ remove=new TQPushButton(_("&Remove Entry"), actions);
+ connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removeClicked()));
+ TQWhatsThis::add(remove, _("Remove entry from the boot menu"));
update();
}
Images::~Images()
@@ -131,7 +131,7 @@ void Images::probeClicked() // SLOT
void Images::dfltClicked() // SLOT
{
if (images->currentItem() < 0) return;
- lilo->setDefault(images->currentText().replace(QRegExp(" (default)", true, true), "").latin1());
+ lilo->setDefault(images->currentText().replace(TQRegExp(" (default)", true, true), "").latin1());
update();
emit configChanged();
}
@@ -139,7 +139,7 @@ void Images::detailsClicked() // SLOT
{
liloimage *l=lilo->images[current.latin1()];
Details *d = new Details(l, this);
- if(d->exec()==QDialog::Accepted) {
+ if(d->exec()==TQDialog::Accepted) {
String tmp;
tmp=l->grep("^[ \t]*read-only[ \t]*");
if(d->isReadOnly() && tmp.empty())
@@ -172,7 +172,7 @@ void Images::detailsClicked() // SLOT
}
void Images::checkClicked() // SLOT
{
- QString LiloOut=lilo->liloOut().cstr();
+ TQString LiloOut=lilo->liloOut().cstr();
if(lilo->isOk()) {
LiloOut=_("Configuration ok. LILO said:\n")+LiloOut;
InformationOK(this, LiloOut, _("Configuration OK"), "lilo-config.confOK");
@@ -193,9 +193,9 @@ void Images::addKrnlClicked() // SLOT
e.insert(e.end(), l2);
e.insert(e.end(), l3);
InputBox *label=new InputBox(e, this);
- if(label->exec()==QDialog::Accepted) {
- QStringList s=label->text();
- QStringList::Iterator it=s.begin();
+ if(label->exec()==TQDialog::Accepted) {
+ TQStringList s=label->text();
+ TQStringList::Iterator it=s.begin();
String kernel=(*it).latin1();
it++;
String label=(*it).latin1();
@@ -217,9 +217,9 @@ void Images::addOSClicked() // SLOT
e.insert(e.end(), l0);
e.insert(e.end(), l1);
InputBox *label=new InputBox(e, this);
- if(label->exec()==QDialog::Accepted) {
- QStringList s=label->text();
- QStringList::Iterator it=s.begin();
+ if(label->exec()==TQDialog::Accepted) {
+ TQStringList s=label->text();
+ TQStringList::Iterator it=s.begin();
String disk=(*it).latin1();
it++;
String label=(*it).latin1();
@@ -233,7 +233,7 @@ void Images::removeClicked() // SLOT
{
if(images->currentItem()==-1)
return;
- QString s=images->currentText();
+ TQString s=images->currentText();
if(s.right(10)==" (default)")
s=s.left(s.length()-10);
if (s.isNull())
@@ -244,9 +244,9 @@ void Images::removeClicked() // SLOT
emit configChanged();
}
-QString value(QString const &s)
+TQString value(TQString const &s)
{
- QString r=s.mid(s.find('=')+1).simplifyWhiteSpace();
+ TQString r=s.mid(s.find('=')+1).simplifyWhiteSpace();
if(r.left(1)=="\"")
r=r.mid(1);
if(r.right(1)=="\"")
@@ -256,11 +256,11 @@ QString value(QString const &s)
return r;
}
-void Images::imageSelected(const QString &i) // SLOT
+void Images::imageSelected(const TQString &i) // SLOT
{
bool blocked = signalsBlocked();
blockSignals(true);
- QString s=i;
+ TQString s=i;
if(s.right(10)==" (default)")
s=s.left(s.length()-10);
if(previous!=s && !previous.isEmpty()) {
@@ -274,7 +274,7 @@ void Images::imageSelected(const QString &i) // SLOT
current=s;
liloimage *l=lilo->images[s.latin1()];
if(l) {
- QString img=value(l->grep("^[ \t]*(image|other)[ \t]*=").cstr());
+ TQString img=value(l->grep("^[ \t]*(image|other)[ \t]*=").cstr());
image->setText(img);
label->setText(s);
if(l->isLinux()) {
diff --git a/lilo-config/kde-qt-common/images.h b/lilo-config/kde-qt-common/images.h
index 62c6124..6a089f4 100644
--- a/lilo-config/kde-qt-common/images.h
+++ b/lilo-config/kde-qt-common/images.h
@@ -29,18 +29,18 @@
#ifndef _IMAGES_H_
#define _IMAGES_H_ 1
#include <lilo.h>
-#include <qwidget.h>
-#include <qmultilineedit.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qlistbox.h>
-#include <qvbox.h>
+#include <tqwidget.h>
+#include <tqmultilineedit.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
+#include <tqvbox.h>
#include "EditWidget.h"
class Images:public QWidget
{
Q_OBJECT
public:
- Images(liloconf *l=0, QWidget *parent=0, const char *name=0);
+ Images(liloconf *l=0, TQWidget *parent=0, const char *name=0);
~Images();
void setCfg(liloconf *l) { lilo=l; };
void makeReadOnly();
@@ -55,7 +55,7 @@ private slots:
void addKrnlClicked();
void addOSClicked();
void removeClicked();
- void imageSelected(const QString &i);
+ void imageSelected(const TQString &i);
signals:
void configChanged();
private:
diff --git a/lilo-config/kde-qt-common/mainwidget.cpp b/lilo-config/kde-qt-common/mainwidget.cpp
index 6d76dc5..bb966f2 100644
--- a/lilo-config/kde-qt-common/mainwidget.cpp
+++ b/lilo-config/kde-qt-common/mainwidget.cpp
@@ -29,21 +29,21 @@
#include "mainwidget.moc"
#include "ui.h"
-MainWidget::MainWidget(QWidget *parent, const char *name)
- : QTabWidget(parent, name)
+MainWidget::MainWidget(TQWidget *parent, const char *name)
+ : TQTabWidget(parent, name)
{
l=new liloconf();
general=new General(l, this);
- connect(general, SIGNAL(configChanged()), SIGNAL(configChanged()));
+ connect(general, TQT_SIGNAL(configChanged()), TQT_SIGNAL(configChanged()));
images=new Images(l, this);
- connect(images, SIGNAL(configChanged()), SIGNAL(configChanged()));
+ connect(images, TQT_SIGNAL(configChanged()), TQT_SIGNAL(configChanged()));
expert=new Expert(l, this);
- connect(expert, SIGNAL(configChanged()), SIGNAL(configChanged()));
- connect(expert, SIGNAL(configChanged()), images, SLOT(update()));
+ connect(expert, TQT_SIGNAL(configChanged()), TQT_SIGNAL(configChanged()));
+ connect(expert, TQT_SIGNAL(configChanged()), images, TQT_SLOT(update()));
addTab(general, _("&General Options"));
addTab(images, _("&Operating Systems"));
addTab(expert, _("&Expert"));
- connect(this, SIGNAL(selected(const QString &)), SLOT(tabChanged(const QString &)));
+ connect(this, TQT_SIGNAL(selected(const TQString &)), TQT_SLOT(tabChanged(const TQString &)));
load();
arrangeWidgets();
}
@@ -89,7 +89,7 @@ void MainWidget::reset()
void MainWidget::arrangeWidgets()
{
}
-void MainWidget::tabChanged(QString const &lbl) // SLOT
+void MainWidget::tabChanged(TQString const &lbl) // SLOT
{
if(previous==_("&Expert"))
expert->saveChanges();
diff --git a/lilo-config/kde-qt-common/mainwidget.h b/lilo-config/kde-qt-common/mainwidget.h
index 46696e8..716931d 100644
--- a/lilo-config/kde-qt-common/mainwidget.h
+++ b/lilo-config/kde-qt-common/mainwidget.h
@@ -28,18 +28,18 @@
*/
#ifndef _MAINWIDGET_H_
#define _MAINWIDGET_H_ 1
-#include <qwidget.h>
-#include <qlistbox.h>
-#include <qtabwidget.h>
-#include <qevent.h>
+#include <tqwidget.h>
+#include <tqlistbox.h>
+#include <tqtabwidget.h>
+#include <tqevent.h>
#include "general.h"
#include "images.h"
#include "expert.h"
-class MainWidget: public QTabWidget {
+class MainWidget: public TQTabWidget {
Q_OBJECT
public:
- MainWidget(QWidget *parent, const char *name=0);
+ MainWidget(TQWidget *parent, const char *name=0);
void arrangeWidgets();
void makeReadOnly();
public slots:
@@ -47,11 +47,11 @@ public slots:
void save();
void reset();
void defaults();
- void tabChanged(const QString &lbl);
+ void tabChanged(const TQString &lbl);
signals:
void configChanged();
private:
- QString previous;
+ TQString previous;
General *general;
Images *images;
Expert *expert;
diff --git a/lilo-config/kde-qt-common/ui.h b/lilo-config/kde-qt-common/ui.h
index e672847..4454bde 100644
--- a/lilo-config/kde-qt-common/ui.h
+++ b/lilo-config/kde-qt-common/ui.h
@@ -52,19 +52,19 @@
#define SPACE_MARGIN KDialog::marginHint()
#define SPACE_INSIDE KDialog::spacingHint()
#else
-#include <qmessagebox.h>
-#include <qtabwidget.h>
-#include <qdialog.h>
-#include <qfiledialog.h>
+#include <tqmessagebox.h>
+#include <tqtabwidget.h>
+#include <tqdialog.h>
+#include <tqfiledialog.h>
#define _(x) tr(x)
#define WarningYesNo(parent, caption, text) \
- QMessageBox::warning(parent, caption, text, QMessageBox::Yes, QMessageBox::No)
+ TQMessageBox::warning(parent, caption, text, TQMessageBox::Yes, TQMessageBox::No)
#define ErrorOK(parent, caption, text) \
- QMessageBox::information(parent, caption, text)
+ TQMessageBox::information(parent, caption, text)
#define InformationOK(parent, text, caption, dontShowAgainName) \
- QMessageBox::information(parent, caption, text)
+ TQMessageBox::information(parent, caption, text)
#define CriticalErrorOK(parent, text, caption) \
- QMessageBox::critical(parent, caption, text)
+ TQMessageBox::critical(parent, caption, text)
#define TabBar QTabWidget
#define FileDlg QFileDialog
#define SPACE_MARGIN 5
diff --git a/lilo-config/kde/Details.cpp b/lilo-config/kde/Details.cpp
index 4e19b14..0775e8d 100644
--- a/lilo-config/kde/Details.cpp
+++ b/lilo-config/kde/Details.cpp
@@ -26,25 +26,25 @@
*/
#include "Details.moc"
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
+#include <tqlabel.h>
#include <ui.h>
-Details::Details(liloimage *lilo, QWidget *parent, const char *name, WFlags /* f */)
- : KDialogBase(parent, name, true, QString::null, Ok|Cancel, Ok, true)
+Details::Details(liloimage *lilo, TQWidget *parent, const char *name, WFlags /* f */)
+ : KDialogBase(parent, name, true, TQString::null, Ok|Cancel, Ok, true)
{
l=lilo;
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
- QHBox *vgab=new QHBox(page);
- QLabel *vlbl=new QLabel(_("&Graphics mode on text console:"), vgab);
- vga=new QComboBox(false, vgab);
+ TQHBox *vgab=new TQHBox(page);
+ TQLabel *vlbl=new TQLabel(_("&Graphics mode on text console:"), vgab);
+ vga=new TQComboBox(false, vgab);
vlbl->setBuddy(vga);
- QWhatsThis::add(vgab, _("You can select the graphics mode for this kernel here.<br>If you intend to use a VGA graphics mode, you must compile the kernel with support for framebuffer devices. The <i>ask</i> setting brings up a prompt at boot time."));
+ TQWhatsThis::add(vgab, _("You can select the graphics mode for this kernel here.<br>If you intend to use a VGA graphics mode, you must compile the kernel with support for framebuffer devices. The <i>ask</i> setting brings up a prompt at boot time."));
vga->insertItem(_("default"));
vga->insertItem(_("ask"));
vga->insertItem(_("text 80x25 (0)"));
@@ -72,29 +72,29 @@ Details::Details(liloimage *lilo, QWidget *parent, const char *name, WFlags /* f
vga->insertItem(_("VGA 1280x1024, 65536 colors (794)"));
vga->insertItem(_("VGA 1280x1024, 16.7M colors (795)"));
- readonly=new QCheckBox(_("Mount root filesystem &read-only"), page);
- QWhatsThis::add(readonly, _("Mount the root filesystem for this kernel read-only. Since the init scripts normally take care of remounting the root filesystem in read-write mode after running some checks, this should always be turned on.<br>Don't turn this off unless you know what you're doing."));
+ readonly=new TQCheckBox(_("Mount root filesystem &read-only"), page);
+ TQWhatsThis::add(readonly, _("Mount the root filesystem for this kernel read-only. Since the init scripts normally take care of remounting the root filesystem in read-write mode after running some checks, this should always be turned on.<br>Don't turn this off unless you know what you're doing."));
- unsafe=new QCheckBox(_("Do not check &partition table"), page);
- QWhatsThis::add(unsafe, _("This turns off some sanity checks while writing the configuration. This should not be used under \"normal\" circumstances, but it can be useful, for example, by providing the capability of booting from a floppy disk, without having a floppy in the drive every time you run lilo.<br>This sets the <i>unsafe</i> keyword in lilo.conf."));
+ unsafe=new TQCheckBox(_("Do not check &partition table"), page);
+ TQWhatsThis::add(unsafe, _("This turns off some sanity checks while writing the configuration. This should not be used under \"normal\" circumstances, but it can be useful, for example, by providing the capability of booting from a floppy disk, without having a floppy in the drive every time you run lilo.<br>This sets the <i>unsafe</i> keyword in lilo.conf."));
- QHBox *opts=new QHBox(page);
- lock=new QCheckBox(_("&Record boot command lines for defaults"), opts);
- QWhatsThis::add(lock, "<qt>" + _("Checking this box enables automatic recording of boot command lines as the default for the following bootups. This way, lilo \"locks\" on a choice until it is manually overridden.<br>This sets the <b>lock</b> option in lilo.conf"));
- restricted=new QCheckBox(_("R&estrict parameters"), opts);
- connect(restricted, SIGNAL(clicked()), SLOT(check_pw()));
- QWhatsThis::add(restricted, _("If this box is checked, a password (entered below) is required only if any parameters are changed (i.e. the user can boot <i>linux</i>, but not <i>linux single</i> or <i>linux init=/bin/sh</i>).\nThis sets the <b>restricted</b> option in lilo.conf."));
+ TQHBox *opts=new TQHBox(page);
+ lock=new TQCheckBox(_("&Record boot command lines for defaults"), opts);
+ TQWhatsThis::add(lock, "<qt>" + _("Checking this box enables automatic recording of boot command lines as the default for the following bootups. This way, lilo \"locks\" on a choice until it is manually overridden.<br>This sets the <b>lock</b> option in lilo.conf"));
+ restricted=new TQCheckBox(_("R&estrict parameters"), opts);
+ connect(restricted, TQT_SIGNAL(clicked()), TQT_SLOT(check_pw()));
+ TQWhatsThis::add(restricted, _("If this box is checked, a password (entered below) is required only if any parameters are changed (i.e. the user can boot <i>linux</i>, but not <i>linux single</i> or <i>linux init=/bin/sh</i>).\nThis sets the <b>restricted</b> option in lilo.conf."));
- QHBox *pw=new QHBox(page);
- use_password=new QCheckBox(_("Require &password:"), pw);
- connect(use_password, SIGNAL(clicked()), SLOT(check_pw()));
- password=new QLineEdit(pw);
+ TQHBox *pw=new TQHBox(page);
+ use_password=new TQCheckBox(_("Require &password:"), pw);
+ connect(use_password, TQT_SIGNAL(clicked()), TQT_SLOT(check_pw()));
+ password=new TQLineEdit(pw);
password->setMaxLength(15);
- password->setEchoMode(QLineEdit::Password);
- QWhatsThis::add(pw, _("Enter the password required for bootup (if any) here. If <i>restricted</i> above is checked, the password is required for additional parameters only.<br><b>WARNING:</b> The password is stored in clear text in /etc/lilo.conf. You'll want to make sure nobody untrusted can read this file. Also, you probably don't want to use your normal/root password here."));
+ password->setEchoMode(TQLineEdit::Password);
+ TQWhatsThis::add(pw, _("Enter the password required for bootup (if any) here. If <i>restricted</i> above is checked, the password is required for additional parameters only.<br><b>WARNING:</b> The password is stored in clear text in /etc/lilo.conf. You'll want to make sure nobody untrusted can read this file. Also, you probably don't want to use your normal/root password here."));
if(l) {
- QString mode=l->get("vga", "").cstr();
+ TQString mode=l->get("vga", "").cstr();
if(mode.isEmpty())
vga->setCurrentItem(0);
else if(mode=="ask")
@@ -121,9 +121,9 @@ void Details::check_pw()
password->setEnabled(restricted->isChecked() || use_password->isChecked());
}
-QString Details::vgaMode() const
+TQString Details::vgaMode() const
{
- QString s=vga->currentText();
+ TQString s=vga->currentText();
if(s=="default")
return "";
else if(s!="ask") {
diff --git a/lilo-config/kde/Details.h b/lilo-config/kde/Details.h
index e752f0b..2e9f0f6 100644
--- a/lilo-config/kde/Details.h
+++ b/lilo-config/kde/Details.h
@@ -30,22 +30,22 @@
#include <lilo.h>
#include <kdialogbase.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
class Details:public KDialogBase
{
Q_OBJECT
public:
- Details(liloimage *lilo, QWidget *parent=0, const char *name=0, WFlags f=0);
+ Details(liloimage *lilo, TQWidget *parent=0, const char *name=0, WFlags f=0);
bool isReadOnly() const { return readonly->isChecked(); };
- QString vgaMode() const;
+ TQString vgaMode() const;
bool isUnsafe() const { return unsafe->isChecked(); };
bool isLocked() const { return lock->isChecked(); };
bool isRestricted() const { return restricted->isChecked(); };
bool usePassword() const { return use_password->isChecked(); };
- QString Password() const { return password->text(); };
+ TQString Password() const { return password->text(); };
private slots:
void check_pw();
private:
diff --git a/lilo-config/kde/InputBox.cpp b/lilo-config/kde/InputBox.cpp
index a338c20..3a707cf 100644
--- a/lilo-config/kde/InputBox.cpp
+++ b/lilo-config/kde/InputBox.cpp
@@ -27,17 +27,17 @@
** Bug reports and questions can be sent to kde-devel@kde.org
*/
#include "InputBox.moc"
-#include <qvbox.h>
-#include <qwhatsthis.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
#include <ui.h>
-InputBox::InputBox(entries e, QWidget *parent, const char *name, bool hasCancel, WFlags f)
- : KDialogBase(parent, name, true, QString::null, hasCancel ? Ok | Cancel : Ok, Ok, true )
+InputBox::InputBox(entries e, TQWidget *parent, const char *name, bool hasCancel, WFlags f)
+ : KDialogBase(parent, name, true, TQString::null, hasCancel ? Ok | Cancel : Ok, Ok, true )
{
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
for(entries::iterator it=e.begin(); it!=e.end(); it++) {
EditWidget *ed=new EditWidget((*it).label, (*it).dflt, (*it).isFile, page);
- QWhatsThis::add(ed, (*it).help);
+ TQWhatsThis::add(ed, (*it).help);
edit.insert(edit.end(), ed);
}
}
diff --git a/lilo-config/kde/InputBox.h b/lilo-config/kde/InputBox.h
index d263161..9bf88cd 100644
--- a/lilo-config/kde/InputBox.h
+++ b/lilo-config/kde/InputBox.h
@@ -31,8 +31,8 @@
#include <kdialogbase.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
#include "EditWidget.h"
#include <list>
@@ -40,10 +40,10 @@ class InputBox:public KDialogBase
{
Q_OBJECT
public:
- typedef struct { QString label; QString dflt; bool isFile; QString help; } entry;
+ typedef struct { TQString label; TQString dflt; bool isFile; TQString help; } entry;
typedef std::list<entry> entries;
- InputBox(entries e, QWidget *parent=0, const char *name=0, bool hasCancel=true, WFlags f=0);
- QStringList const text() const { QStringList s; for(std::list<EditWidget*>::const_iterator it=edit.begin(); it!=edit.end(); it++) s << (*it)->text(); return s; };
+ InputBox(entries e, TQWidget *parent=0, const char *name=0, bool hasCancel=true, WFlags f=0);
+ TQStringList const text() const { TQStringList s; for(std::list<EditWidget*>::const_iterator it=edit.begin(); it!=edit.end(); it++) s << (*it)->text(); return s; };
private:
std::list<EditWidget*> edit;
};
diff --git a/lilo-config/kde/kcontrol.cpp b/lilo-config/kde/kcontrol.cpp
index 2db98af..846edc8 100644
--- a/lilo-config/kde/kcontrol.cpp
+++ b/lilo-config/kde/kcontrol.cpp
@@ -31,17 +31,17 @@
#include <ui.h>
#include <kglobal.h>
#include <klocale.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kaboutdata.h>
#include <unistd.h>
-KControl::KControl(QWidget *parent, const char *name)
+KControl::KControl(TQWidget *parent, const char *name)
: KCModule(parent, name)
{
- QVBoxLayout *layout=new QVBoxLayout(this);
+ TQVBoxLayout *layout=new TQVBoxLayout(this);
m=new MainWidget(this, name);
layout->addWidget(m);
- connect(m, SIGNAL(configChanged()), SLOT(configChanged()));
+ connect(m, TQT_SIGNAL(configChanged()), TQT_SLOT(configChanged()));
if (getuid() != 0) {
m->makeReadOnly();
}
@@ -79,7 +79,7 @@ void KControl::configChanged() // SLOT
extern "C"
{
- KDE_EXPORT KCModule *create_lilo(QWidget *parent, const char *name)
+ KDE_EXPORT KCModule *create_lilo(TQWidget *parent, const char *name)
{
return new KControl(parent, "kcmlilo");
}
diff --git a/lilo-config/kde/kcontrol.h b/lilo-config/kde/kcontrol.h
index d06d834..edb64d9 100644
--- a/lilo-config/kde/kcontrol.h
+++ b/lilo-config/kde/kcontrol.h
@@ -29,8 +29,8 @@
/*
** Bug reports and questions can be sent to kde-devel@kde.org
*/
-#include <qwidget.h>
-#include <qevent.h>
+#include <tqwidget.h>
+#include <tqevent.h>
#include <kcmodule.h>
#include "mainwidget.h"
@@ -39,7 +39,7 @@ class KAboutData;
class KControl: public KCModule {
Q_OBJECT
public:
- KControl(QWidget *parent, const char *name);
+ KControl(TQWidget *parent, const char *name);
void load();
void save();
void defaults();
diff --git a/lilo-config/qt/Details.cpp b/lilo-config/qt/Details.cpp
index eae3ed5..944ba0d 100644
--- a/lilo-config/qt/Details.cpp
+++ b/lilo-config/qt/Details.cpp
@@ -26,25 +26,25 @@
*/
#include "Details.moc"
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qwhatsthis.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqwhatsthis.h>
+#include <tqlabel.h>
#include <ui.h>
-Details::Details(liloimage *lilo, QWidget *parent, const char *name, WFlags f):QDialog(parent, name, true, f)
+Details::Details(liloimage *lilo, TQWidget *parent, const char *name, WFlags f):TQDialog(parent, name, true, f)
{
l=lilo;
- QVBoxLayout *layout=new QVBoxLayout(this);
+ TQVBoxLayout *layout=new TQVBoxLayout(this);
layout->setMargin(SPACE_MARGIN);
layout->setSpacing(SPACE_INSIDE);
- QHBox *vgab=new QHBox(this);
- QLabel *vlbl=new QLabel(_("&Graphics mode on text console:"), vgab);
- vga=new QComboBox(false, vgab);
+ TQHBox *vgab=new TQHBox(this);
+ TQLabel *vlbl=new TQLabel(_("&Graphics mode on text console:"), vgab);
+ vga=new TQComboBox(false, vgab);
vlbl->setBuddy(vga);
- QWhatsThis::add(vgab, _("You can select the graphics mode for this kernel here.<br>If you intend to use a VGA graphics mode, you must compile the kernel with support for framebuffer devices. The <i>ask</i> setting brings up a prompt at boot time."));
+ TQWhatsThis::add(vgab, _("You can select the graphics mode for this kernel here.<br>If you intend to use a VGA graphics mode, you must compile the kernel with support for framebuffer devices. The <i>ask</i> setting brings up a prompt at boot time."));
vga->insertItem(_("default"));
vga->insertItem(_("ask"));
vga->insertItem(_("text 80x25 (0)"));
@@ -73,40 +73,40 @@ Details::Details(liloimage *lilo, QWidget *parent, const char *name, WFlags f):Q
vga->insertItem(_("VGA 1280x1024, 16.7M colors (795)"));
layout->addWidget(vgab);
- readonly=new QCheckBox(_("Mount root filesystem &read-only"), this);
- QWhatsThis::add(readonly, _("Mount the root filesystem for this kernel read-only. Since the init scripts normally take care of remounting the root filesystem in read-write mode after running some checks, this should always be turned on.<br>Don't turn this off unless you know what you're doing."));
+ readonly=new TQCheckBox(_("Mount root filesystem &read-only"), this);
+ TQWhatsThis::add(readonly, _("Mount the root filesystem for this kernel read-only. Since the init scripts normally take care of remounting the root filesystem in read-write mode after running some checks, this should always be turned on.<br>Don't turn this off unless you know what you're doing."));
layout->addWidget(readonly);
- unsafe=new QCheckBox(_("Do not check &partition table"), this);
- QWhatsThis::add(unsafe, _("This turns off some sanity checks while writing the configuration. This shouldn't be used under \"normal\" circumstances, but it's useful, for example, for installing the possibility to boot from a floppy disk without having a floppy in the drive every time you run lilo.<br>This sets the <i>unsafe</i> keyword in lilo.conf."));
+ unsafe=new TQCheckBox(_("Do not check &partition table"), this);
+ TQWhatsThis::add(unsafe, _("This turns off some sanity checks while writing the configuration. This shouldn't be used under \"normal\" circumstances, but it's useful, for example, for installing the possibility to boot from a floppy disk without having a floppy in the drive every time you run lilo.<br>This sets the <i>unsafe</i> keyword in lilo.conf."));
layout->addWidget(unsafe);
- QHBox *opts=new QHBox(this);
- lock=new QCheckBox(_("&Record boot command lines for defaults"), opts);
- QWhatsThis::add(lock, "<qt>"+_("Checking this box enables automatic recording of boot command lines as the default for the following bootups. This way, lilo \"locks\" on a choice until it is manually overridden.<br>This sets the <b>lock</b> option in lilo.conf"));
- restricted=new QCheckBox(_("R&estrict parameters"), opts);
- connect(restricted, SIGNAL(clicked()), SLOT(check_pw()));
- QWhatsThis::add(restricted, _("If this box is checked, a password (entered below) is required only if any parameters are changed (i.e. the user can boot <i>linux</i>, but not <i>linux single</i> or <i>linux init=/bin/sh</i>).\nThis sets the <b>restricted</b> option in lilo.conf."));
+ TQHBox *opts=new TQHBox(this);
+ lock=new TQCheckBox(_("&Record boot command lines for defaults"), opts);
+ TQWhatsThis::add(lock, "<qt>"+_("Checking this box enables automatic recording of boot command lines as the default for the following bootups. This way, lilo \"locks\" on a choice until it is manually overridden.<br>This sets the <b>lock</b> option in lilo.conf"));
+ restricted=new TQCheckBox(_("R&estrict parameters"), opts);
+ connect(restricted, TQT_SIGNAL(clicked()), TQT_SLOT(check_pw()));
+ TQWhatsThis::add(restricted, _("If this box is checked, a password (entered below) is required only if any parameters are changed (i.e. the user can boot <i>linux</i>, but not <i>linux single</i> or <i>linux init=/bin/sh</i>).\nThis sets the <b>restricted</b> option in lilo.conf."));
layout->addWidget(opts);
- QHBox *pw=new QHBox(this);
- use_password=new QCheckBox(_("Require &password:"), pw);
- connect(use_password, SIGNAL(clicked()), SLOT(check_pw()));
- password=new QLineEdit(pw);
+ TQHBox *pw=new TQHBox(this);
+ use_password=new TQCheckBox(_("Require &password:"), pw);
+ connect(use_password, TQT_SIGNAL(clicked()), TQT_SLOT(check_pw()));
+ password=new TQLineEdit(pw);
password->setMaxLength(15);
- password->setEchoMode(QLineEdit::Password);
- QWhatsThis::add(pw, _("Enter the password required for bootup (if any) here. If <i>restricted</i> above is checked, the password is required for additional parameters only.<br><b>WARNING:</b> The password is stored in clear text in /etc/lilo.conf. You'll want to make sure nobody untrusted can read this file. Also, you probably don't want to use your normal/root password here."));
+ password->setEchoMode(TQLineEdit::Password);
+ TQWhatsThis::add(pw, _("Enter the password required for bootup (if any) here. If <i>restricted</i> above is checked, the password is required for additional parameters only.<br><b>WARNING:</b> The password is stored in clear text in /etc/lilo.conf. You'll want to make sure nobody untrusted can read this file. Also, you probably don't want to use your normal/root password here."));
layout->addWidget(pw);
- QHBox *btns=new QHBox(this);
- ok=new QPushButton(_("&OK"), btns);
- cancel=new QPushButton(_("&Cancel"), btns);
+ TQHBox *btns=new TQHBox(this);
+ ok=new TQPushButton(_("&OK"), btns);
+ cancel=new TQPushButton(_("&Cancel"), btns);
layout->addWidget(btns);
- connect(cancel, SIGNAL(clicked()), SLOT(reject()));
- connect(ok, SIGNAL(clicked()), SLOT(accept()));
+ connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
+ connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
if(l) {
- QString mode=l->get("vga", "").cstr();
+ TQString mode=l->get("vga", "").cstr();
if(mode.isEmpty())
vga->setCurrentItem(0);
else if(mode=="ask")
@@ -131,9 +131,9 @@ void Details::check_pw()
{
password->setEnabled(restricted->isChecked() || use_password->isChecked());
}
-QString Details::vgaMode() const
+TQString Details::vgaMode() const
{
- QString s=vga->currentText();
+ TQString s=vga->currentText();
if(s=="default")
return "";
else if(s!="ask") {
diff --git a/lilo-config/qt/Details.h b/lilo-config/qt/Details.h
index f189430..c7c7f98 100644
--- a/lilo-config/qt/Details.h
+++ b/lilo-config/qt/Details.h
@@ -27,23 +27,23 @@
#ifndef _DETAILS_H_
#define _DETAILS_H_ 1
#include <lilo.h>
-#include <qdialog.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
+#include <tqdialog.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
class Details:public QDialog
{
Q_OBJECT
public:
- Details(liloimage *lilo, QWidget *parent=0, const char *name=0, WFlags f=0);
+ Details(liloimage *lilo, TQWidget *parent=0, const char *name=0, WFlags f=0);
bool isReadOnly() const { return readonly->isChecked(); };
- QString vgaMode() const;
+ TQString vgaMode() const;
bool isUnsafe() const { return unsafe->isChecked(); };
bool isLocked() const { return lock->isChecked(); };
bool isRestricted() const { return restricted->isChecked(); };
bool usePassword() const { return use_password->isChecked(); };
- QString Password() const { return password->text(); };
+ TQString Password() const { return password->text(); };
private slots:
void check_pw();
private:
diff --git a/lilo-config/qt/InputBox.cpp b/lilo-config/qt/InputBox.cpp
index f95989b..9836a91 100644
--- a/lilo-config/qt/InputBox.cpp
+++ b/lilo-config/qt/InputBox.cpp
@@ -26,31 +26,31 @@
*/
#include "InputBox.moc"
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqwhatsthis.h>
#include <ui.h>
-InputBox::InputBox(entries e, QWidget *parent, const char *name, bool hasCancel, WFlags f):QDialog(parent, name, true, f)
+InputBox::InputBox(entries e, TQWidget *parent, const char *name, bool hasCancel, WFlags f):TQDialog(parent, name, true, f)
{
- QVBoxLayout *layout=new QVBoxLayout(this);
+ TQVBoxLayout *layout=new TQVBoxLayout(this);
layout->setMargin(SPACE_MARGIN);
layout->setSpacing(SPACE_INSIDE);
for(entries::iterator it=e.begin(); it!=e.end(); it++) {
EditWidget *ed=new EditWidget((*it).label, (*it).dflt, (*it).isFile, this);
- QWhatsThis::add(ed, (*it).help);
+ TQWhatsThis::add(ed, (*it).help);
layout->addWidget(ed);
edit.insert(edit.end(), ed);
}
if(hasCancel) {
- QHBox *btns=new QHBox(this);
- ok=new QPushButton(_("&OK"), btns);
- cancel=new QPushButton(_("&Cancel"), btns);
+ TQHBox *btns=new TQHBox(this);
+ ok=new TQPushButton(_("&OK"), btns);
+ cancel=new TQPushButton(_("&Cancel"), btns);
layout->addWidget(btns);
- connect(cancel, SIGNAL(clicked()), SLOT(reject()));
+ connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
} else {
- ok=new QPushButton(_("&OK"), this);
+ ok=new TQPushButton(_("&OK"), this);
layout->addWidget(ok);
}
- connect(ok, SIGNAL(clicked()), SLOT(accept()));
+ connect(ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
}
diff --git a/lilo-config/qt/InputBox.h b/lilo-config/qt/InputBox.h
index da2371b..f4be6e9 100644
--- a/lilo-config/qt/InputBox.h
+++ b/lilo-config/qt/InputBox.h
@@ -27,23 +27,23 @@
#ifndef _INPUTBOX_H_
#define _INPUTBOX_H_ 1
-#include <qdialog.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
+#include <tqdialog.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
#include "EditWidget.h"
#include <list>
class InputBox:public QDialog
{
Q_OBJECT
public:
- typedef struct { QString label; QString dflt; bool isFile; QString help; } entry;
+ typedef struct { TQString label; TQString dflt; bool isFile; TQString help; } entry;
typedef std::list<entry> entries;
- InputBox(entries e, QWidget *parent=0, const char *name=0, bool hasCancel=true, WFlags f=0);
- QStringList const text() const { QStringList s; for(std::list<EditWidget*>::const_iterator it=edit.begin(); it!=edit.end(); it++) s << (*it)->text(); return s; };
+ InputBox(entries e, TQWidget *parent=0, const char *name=0, bool hasCancel=true, WFlags f=0);
+ TQStringList const text() const { TQStringList s; for(std::list<EditWidget*>::const_iterator it=edit.begin(); it!=edit.end(); it++) s << (*it)->text(); return s; };
private:
std::list<EditWidget*> edit;
- QPushButton *ok;
- QPushButton *cancel;
+ TQPushButton *ok;
+ TQPushButton *cancel;
};
#endif
diff --git a/lilo-config/qt/standalone.cpp b/lilo-config/qt/standalone.cpp
index 268ad21..4dc73e2 100644
--- a/lilo-config/qt/standalone.cpp
+++ b/lilo-config/qt/standalone.cpp
@@ -25,42 +25,42 @@
** Bug reports and questions can be sent to kde-devel@kde.org
*/
-#include <qapplication.h>
-#include <qobject.h>
-#include <qwhatsthis.h>
-#include <qwindowsstyle.h>
+#include <tqapplication.h>
+#include <tqobject.h>
+#include <tqwhatsthis.h>
+#include <tqwindowsstyle.h>
#include <mainwidget.h>
#include <ui.h>
#include "standalone.moc"
-Standalone::Standalone(QWidget *parent, const char *name):QWidget(parent,name)
+Standalone::Standalone(TQWidget *parent, const char *name):TQWidget(parent,name)
{
m=new MainWidget(this);
- connect(m, SIGNAL(configChanged()), SLOT(configChanged()));
- actions=new QHButtonGroup(this);
- _whatsthis=new QPushButton(_("&What's This?"), actions);
+ connect(m, TQT_SIGNAL(configChanged()), TQT_SLOT(configChanged()));
+ actions=new TQHButtonGroup(this);
+ _whatsthis=new TQPushButton(_("&What's This?"), actions);
_whatsthis->setAccel(SHIFT+Key_F1);
- QWhatsThis::add(_whatsthis, _("The <i>What's This?</i> button is part of this program's help system. Click on the What's This? button then on any widget in the window to get information (like this) on it."));
- connect(_whatsthis, SIGNAL(clicked()), SLOT(whatsthis()));
- _help=new QPushButton(_("&Help"), actions);
+ TQWhatsThis::add(_whatsthis, _("The <i>What's This?</i> button is part of this program's help system. Click on the What's This? button then on any widget in the window to get information (like this) on it."));
+ connect(_whatsthis, TQT_SIGNAL(clicked()), TQT_SLOT(whatsthis()));
+ _help=new TQPushButton(_("&Help"), actions);
_help->setAccel(Key_F1);
- QWhatsThis::add(_help, _("This button calls up the program's online help system. If it does nothing, no help file has been written (yet); in that case, use the <i>What's This</i> button on the left."));
- connect(_help, SIGNAL(clicked()), this, SLOT(help()));
- _deflt=new QPushButton(_("&Default"), actions);
- QWhatsThis::add(_deflt, _("This button resets all parameters to some (hopefully sane) default values."));
- connect(_deflt, SIGNAL(clicked()), this, SLOT(defaults()));
- _reset=new QPushButton(_("&Reset"), actions);
- QWhatsThis::add(_reset, _("This button resets all parameters to what they were before you started the program."));
- connect(_reset, SIGNAL(clicked()), this, SLOT(reset()));
- _apply=new QPushButton(_("&Apply"), actions);
- QWhatsThis::add(_apply, _("This button saves all your changes without exiting."));
- connect(_apply, SIGNAL(clicked()), this, SLOT(apply()));
- _ok=new QPushButton(_("&OK"), actions);
- QWhatsThis::add(_ok, _("This button saves all your changes and exits the program."));
- connect(_ok, SIGNAL(clicked()), this, SLOT(ok()));
- _cancel=new QPushButton(_("&Cancel"), actions);
- QWhatsThis::add(_cancel, _("This button exits the program without saving your changes."));
- connect(_cancel, SIGNAL(clicked()), this, SLOT(cancel()));
+ TQWhatsThis::add(_help, _("This button calls up the program's online help system. If it does nothing, no help file has been written (yet); in that case, use the <i>What's This</i> button on the left."));
+ connect(_help, TQT_SIGNAL(clicked()), this, TQT_SLOT(help()));
+ _deflt=new TQPushButton(_("&Default"), actions);
+ TQWhatsThis::add(_deflt, _("This button resets all parameters to some (hopefully sane) default values."));
+ connect(_deflt, TQT_SIGNAL(clicked()), this, TQT_SLOT(defaults()));
+ _reset=new TQPushButton(_("&Reset"), actions);
+ TQWhatsThis::add(_reset, _("This button resets all parameters to what they were before you started the program."));
+ connect(_reset, TQT_SIGNAL(clicked()), this, TQT_SLOT(reset()));
+ _apply=new TQPushButton(_("&Apply"), actions);
+ TQWhatsThis::add(_apply, _("This button saves all your changes without exiting."));
+ connect(_apply, TQT_SIGNAL(clicked()), this, TQT_SLOT(apply()));
+ _ok=new TQPushButton(_("&OK"), actions);
+ TQWhatsThis::add(_ok, _("This button saves all your changes and exits the program."));
+ connect(_ok, TQT_SIGNAL(clicked()), this, TQT_SLOT(ok()));
+ _cancel=new TQPushButton(_("&Cancel"), actions);
+ TQWhatsThis::add(_cancel, _("This button exits the program without saving your changes."));
+ connect(_cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(cancel()));
_apply->setEnabled(false);
setMinimumWidth(actions->sizeHint().width()+10);
arrangeWidgets();
@@ -72,15 +72,15 @@ void Standalone::arrangeWidgets()
actions->setGeometry(SPACE_MARGIN, height()-actions->sizeHint().height()-SPACE_MARGIN, width()-2*SPACE_MARGIN, actions->sizeHint().height());
}
-void Standalone::resizeEvent(QResizeEvent *e)
+void Standalone::resizeEvent(TQResizeEvent *e)
{
- QWidget::resizeEvent(e);
+ TQWidget::resizeEvent(e);
arrangeWidgets();
}
void Standalone::whatsthis()
{
- QWhatsThis::enterWhatsThisMode();
+ TQWhatsThis::enterWhatsThisMode();
}
void Standalone::help()
{
@@ -113,12 +113,12 @@ void Standalone::configChanged() // SLOT
}
int main(int argc, char **argv) {
- QApplication a(argc, argv);
+ TQApplication a(argc, argv);
Standalone *s=new Standalone(0);
int ret;
- a.setStyle(new QWindowsStyle());
+ a.setStyle(new TQWindowsStyle());
a.setMainWidget(s);
- QObject::connect(s, SIGNAL(done()), &a, SLOT(quit()));
+ TQObject::connect(s, TQT_SIGNAL(done()), &a, TQT_SLOT(quit()));
s->show();
ret=a.exec();
delete s;
diff --git a/lilo-config/qt/standalone.h b/lilo-config/qt/standalone.h
index 8b0fa16..3d5c4bf 100644
--- a/lilo-config/qt/standalone.h
+++ b/lilo-config/qt/standalone.h
@@ -27,17 +27,17 @@
#ifndef _STANDALONE_H_
#define _STANDALONE_H_ 1
-#include <qwidget.h>
-#include <qpushbutton.h>
-#include <qhbuttongroup.h>
-#include <qevent.h>
+#include <tqwidget.h>
+#include <tqpushbutton.h>
+#include <tqhbuttongroup.h>
+#include <tqevent.h>
#include "mainwidget.h"
class Standalone: public QWidget
{
Q_OBJECT
public:
- Standalone(QWidget *parent=0, const char *name=0);
- void resizeEvent(QResizeEvent *e);
+ Standalone(TQWidget *parent=0, const char *name=0);
+ void resizeEvent(TQResizeEvent *e);
public slots:
void whatsthis();
void help();
@@ -52,13 +52,13 @@ signals:
private:
void arrangeWidgets();
MainWidget *m;
- QHButtonGroup *actions;
- QPushButton *_whatsthis;
- QPushButton *_help;
- QPushButton *_deflt;
- QPushButton *_reset;
- QPushButton *_apply;
- QPushButton *_ok;
- QPushButton *_cancel;
+ TQHButtonGroup *actions;
+ TQPushButton *_whatsthis;
+ TQPushButton *_help;
+ TQPushButton *_deflt;
+ TQPushButton *_reset;
+ TQPushButton *_apply;
+ TQPushButton *_ok;
+ TQPushButton *_cancel;
};
#endif