+2002-10-30 John Levon <levon@movementarian.org>
+
+ * QPrintDialog.[hC]: move to ...
+
+ * QLPrintDialog.[hC]: ... here to prevent name clash
+
+ * QPrint.h:
+ * QPrint.C:
+ * Dialogs_impl.h:
+ * Makefile.dialogs: from above
+
+ * QSpellchecker.C: reset progress
+
2002-10-30 John Levon <levon@movementarian.org>
* QGraphics.C:
#include "QPreambleDialog.h"
//#include "QPreferences.h"
#include "QPrint.h"
-#include "QPrintDialog.h"
+#include "QLPrintDialog.h"
#include "QRef.h"
#include "QRefDialog.h"
#include "QSearch.h"
QParagraph.C QParagraphDialog.C \
QPreamble.h QPreambleDialog.h \
QPreamble.C QPreambleDialog.C \
- QPrint.h QPrintDialog.h \
- QPrint.C QPrintDialog.C \
+ QPrint.h QLPrintDialog.h \
+ QPrint.C QLPrintDialog.C \
QRef.h QRefDialog.h \
QRef.C QRefDialog.C \
QSearch.h QSearchDialog.h \
QMinipageDialog_moc.C \
QParagraphDialog_moc.C \
QPreambleDialog_moc.C \
- QPrintDialog_moc.C \
+ QLPrintDialog_moc.C \
QRefDialog_moc.C \
QSearchDialog_moc.C \
QSendtoDialog_moc.C \
--- /dev/null
+/**
+ * \file QLPrintDialog.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#include <config.h>
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include "gettext.h"
+#include "support/filetools.h"
+#include "support/lstrings.h"
+
+#include "QPrint.h"
+#include "QLPrintDialog.h"
+
+#include <qfiledialog.h>
+#include <qcheckbox.h>
+#include <qlabel.h>
+#include <qlineedit.h>
+#include <qpushbutton.h>
+#include <qradiobutton.h>
+#include <qspinbox.h>
+
+
+QLPrintDialog::QLPrintDialog(QPrint * f)
+ : QPrintDialogBase(0, 0, false, 0),
+ form_(f)
+{
+ connect(printPB, SIGNAL(clicked()),
+ form_, SLOT(slotOK()));
+ connect(closePB, SIGNAL(clicked()),
+ form_, SLOT(slotClose()));
+}
+
+
+void QLPrintDialog::change_adaptor()
+{
+ form_->changed();
+}
+
+
+void QLPrintDialog::browseClicked()
+{
+ QString file =
+ QFileDialog::getOpenFileName(QString::null,
+ _("PostScript files (*.ps)"),
+ this, 0,
+ _("Select a file to print to"));
+ if (!file.isNull()) {
+ fileED->setText(file);
+ form_->changed();
+ }
+}
+
+
+void QLPrintDialog::fileChanged()
+{
+ if (!fileED->text().isEmpty())
+ fileRB->setChecked(true);
+ form_->changed();
+}
+
+
+void QLPrintDialog::copiesChanged(int i)
+{
+ collateCB->setEnabled(i != 1);
+ form_->changed();
+}
+
+
+void QLPrintDialog::printerChanged()
+{
+ printerRB->setChecked(true);
+ form_->changed();
+}
+
+
+void QLPrintDialog::pagerangeChanged()
+{
+ int const from = strToUnsignedInt(fromED->text().latin1());
+ int const to = strToUnsignedInt(toED->text().latin1());
+
+ if (!toED->text().isEmpty() && from > to)
+ fromED->setText(toED->text());
+
+ form_->changed();
+}
--- /dev/null
+// -*- C++ -*-
+/**
+ * \file QLPrintDialog.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ * \author Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#ifndef QLPRINTDIALOG_H
+#define QLPRINTDIALOG_H
+
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include "ui/QPrintDialogBase.h"
+
+class QPrint;
+
+class QLPrintDialog : public QPrintDialogBase {
+ Q_OBJECT
+public:
+ QLPrintDialog(QPrint * f);
+protected slots:
+ virtual void change_adaptor();
+ virtual void browseClicked();
+ virtual void fileChanged();
+ virtual void copiesChanged(int);
+ virtual void printerChanged();
+ virtual void pagerangeChanged();
+private:
+ QPrint * form_;
+};
+
+#endif // QLPRINTDIALOG_H
#include "gettext.h"
#include "QPrint.h"
-#include "QPrintDialog.h"
+#include "QLPrintDialog.h"
#include "Qt2BC.h"
#include <qlineedit.h>
#include <qspinbox.h>
#include <qpushbutton.h>
-// FIXME FIXME QPrintDialog is getting destructed twice !!!!
-
-typedef Qt2CB<ControlPrint, Qt2DB<QPrintDialog> > base_class;
+typedef Qt2CB<ControlPrint, Qt2DB<QLPrintDialog> > base_class;
QPrint::QPrint()
void QPrint::build_dialog()
{
- dialog_.reset(new QPrintDialog(this));
+ dialog_.reset(new QLPrintDialog(this));
bc().setOK(dialog_->printPB);
bc().setCancel(dialog_->closePB);
#include "Qt2Base.h"
class ControlPrint;
-class QPrintDialog;
+class QLPrintDialog;
///
class QPrint
- : public Qt2CB<ControlPrint, Qt2DB<QPrintDialog> >
+ : public Qt2CB<ControlPrint, Qt2DB<QLPrintDialog> >
{
public:
///
- friend class QPrintDialog;
+ friend class QLPrintDialog;
///
QPrint();
private:
+++ /dev/null
-/**
- * \file QPrintDialog.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS
- */
-
-#include <config.h>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "gettext.h"
-#include "support/filetools.h"
-#include "support/lstrings.h"
-
-#include "QPrint.h"
-#include "QPrintDialog.h"
-
-#include <qfiledialog.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-
-
-QPrintDialog::QPrintDialog(QPrint * f)
- : QPrintDialogBase(0, 0, false, 0),
- form_(f)
-{
- connect(printPB, SIGNAL(clicked()),
- form_, SLOT(slotOK()));
- connect(closePB, SIGNAL(clicked()),
- form_, SLOT(slotClose()));
-}
-
-
-void QPrintDialog::change_adaptor()
-{
- form_->changed();
-}
-
-
-void QPrintDialog::browseClicked()
-{
- QString file =
- QFileDialog::getOpenFileName(QString::null,
- _("PostScript files (*.ps)"),
- this, 0,
- _("Select a file to print to"));
- if (!file.isNull()) {
- fileED->setText(file);
- form_->changed();
- }
-}
-
-
-void QPrintDialog::fileChanged()
-{
- if (!fileED->text().isEmpty())
- fileRB->setChecked(true);
- form_->changed();
-}
-
-
-void QPrintDialog::copiesChanged(int i)
-{
- collateCB->setEnabled(i != 1);
- form_->changed();
-}
-
-
-void QPrintDialog::printerChanged()
-{
- printerRB->setChecked(true);
- form_->changed();
-}
-
-
-void QPrintDialog::pagerangeChanged()
-{
- int const from = strToUnsignedInt(fromED->text().latin1());
- int const to = strToUnsignedInt(toED->text().latin1());
-
- if (!toED->text().isEmpty() && from > to)
- fromED->setText(toED->text());
-
- form_->changed();
-}
+++ /dev/null
-// -*- C++ -*-
-/**
- * \file QPrintDialog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS
- */
-
-#ifndef QPRINTDIALOG_H
-#define QPRINTDIALOG_H
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ui/QPrintDialogBase.h"
-
-class QPrint;
-
-class QPrintDialog : public QPrintDialogBase {
- Q_OBJECT
-public:
- QPrintDialog(QPrint * f);
-protected slots:
- virtual void change_adaptor();
- virtual void browseClicked();
- virtual void fileChanged();
- virtual void copiesChanged(int);
- virtual void printerChanged();
- virtual void pagerangeChanged();
-private:
- QPrint * form_;
-};
-
-#endif // QPRINTDIALOG_H
dialog_->wordED->setText("");
dialog_->replaceCO->clear();
dialog_->suggestionsLB->clear();
+ dialog_->spellcheckPR->setProgress(0.0);
}
Those with asterisks are what I perceive as being "big jobs"
-lyx_gui (qt)
-
- - move out lyxserver
-
QDocument
- finalize bullets
qfont_loader
- - use lyxrc, check for failure
+ - use lyxrc
QForks
- getISOEncoded - get this to work (*)
-QMathDialog
-
- - finish
-
QPreferences
- implement me (*)