summaryrefslogtreecommitdiffstats
path: root/lilo-config/kde
diff options
context:
space:
mode:
Diffstat (limited to 'lilo-config/kde')
-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
6 files changed, 56 insertions, 56 deletions
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();