+2003-05-22 Angus Leeming <leeming@lyx.org>
+
+ compile fixes.
+ * QDialogView.h: QController and QView c-tors take a string not a
+ QString.
+ * Qt2Base.h: ditto for the Qt2DB and Qt2CB c-tors.
+
+ * QDocument.C (c-tor):
+ * QPrefs.C (c-tor):
+ * QPrint.C (c-tor):
+ * QSearch.C (c-tor):
+ * QSendto.C (c-tor):
+ * QSpellchecker.C (c-tor):
+ * QTexinfo.C (c-tor): pass a string not a QString to the base class.
+
+ * QIndex.[Ch](c-tor): pass it a string, not a QString.
+
+ * Dialogs.C (build): the title passed to the Index dialog is a string,
+ not a QString.
+
2003-05-21 Alfredo Braunstein <abraunst@libero.it>
* Qt2Base.[Ch]:
} else if (name == "index") {
dialog->setController(new ControlCommand(*dialog, name));
dialog->setView(new QIndex(*dialog,
- qt_("LyX: Index Entry"),
+ _("LyX: Index Entry"),
qt_("&Keyword")));
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
} else if (name == "label") {
dialog->setController(new ControlCommand(*dialog, name));
dialog->setView(new QIndex(*dialog,
- qt_("LyX: Label"),
+ _("LyX: Label"),
qt_("&Label")));
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
} else if (name == "log") {
template <class GUIDialog>
class QView: public QDialogView {
protected:
- QView(Dialog &, QString const &);
+ QView(Dialog &, string const &);
/// update the dialog
virtual void update();
template <class GUIDialog>
-QView<GUIDialog>::QView(Dialog & p, QString const & t)
+QView<GUIDialog>::QView(Dialog & p, string const & t)
: QDialogView(p, t)
{}
{
protected:
///
- QController(Dialog &, QString const &);
+ QController(Dialog &, string const &);
public:
/// The parent controller
Controller & controller();
template <class Controller, class Base>
-QController<Controller, Base>::QController(Dialog & p, QString const & t)
+QController<Controller, Base>::QController(Dialog & p, string const & t)
: Base(p, t)
{}
QDocument::QDocument()
- : base_class(qt_("LyX: Document Settings"))
+ : base_class(_("LyX: Document Settings"))
{
vector<frnt::LanguagePair> const langs = frnt::getLanguageData(false);
lang_ = getSecond(langs);
typedef QController<ControlCommand, QView<QIndexDialog> > base_class;
-QIndex::QIndex(Dialog & parent, QString const & title, QString const & label)
+QIndex::QIndex(Dialog & parent, string const & title, QString const & label)
: base_class(parent, title), label_(label)
{
}
public:
friend class QIndexDialog;
- QIndex(Dialog &, QString const & title, QString const & label);
+ QIndex(Dialog &, string const & title, QString const & label);
protected:
virtual bool isValid();
private:
QPrefs::QPrefs()
- : base_class(qt_("LyX: Preferences"))
+ : base_class(_("LyX: Preferences"))
{
}
QPrint::QPrint()
- : base_class(qt_("LyX: Print Document"))
+ : base_class(_("LyX: Print Document"))
{
}
QSearch::QSearch()
- : base_class(qt_("LyX: Find and Replace"))
+ : base_class(_("LyX: Find and Replace"))
{
}
QSendto::QSendto()
- : base_class(qt_("LyX: Send Document to Command"))
+ : base_class(_("LyX: Send Document to Command"))
{
}
QSpellchecker::QSpellchecker()
- : base_class(qt_("LyX: Spell-check Document"))
+ : base_class(_("LyX: Spell-check Document"))
{
}
QTexinfo::QTexinfo()
- : base_class(qt_("LyX: LaTeX Information")),
+ : base_class(_("LyX: LaTeX Information")),
warningPosted(false), activeStyle(ControlTexinfo::cls)
{
}
template <class Dialog>
class Qt2DB: public Qt2Base {
protected:
- Qt2DB(QString const &);
+ Qt2DB(string const &);
/// update the dialog
virtual void update();
template <class Dialog>
-Qt2DB<Dialog>::Qt2DB(QString const & t)
+Qt2DB<Dialog>::Qt2DB(string const & t)
: Qt2Base(t)
{}
protected:
///
- Qt2CB(QString const &);
+ Qt2CB(string const &);
};
template <class Controller, class Base>
-Qt2CB<Controller, Base>::Qt2CB(QString const & t)
+Qt2CB<Controller, Base>::Qt2CB(string const & t)
: Base(t)
{}