diff options
Diffstat (limited to 'lilo-config/qt/Details.cpp')
-rw-r--r-- | lilo-config/qt/Details.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
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") { |