mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Compile fixes following Alfredo's setTitle changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7006 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b12c42a381
commit
a79813c242
@ -1,3 +1,23 @@
|
|||||||
|
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>
|
2003-05-21 Alfredo Braunstein <abraunst@libero.it>
|
||||||
|
|
||||||
* Qt2Base.[Ch]:
|
* Qt2Base.[Ch]:
|
||||||
|
@ -179,13 +179,13 @@ Dialog * Dialogs::build(string const & name)
|
|||||||
} else if (name == "index") {
|
} else if (name == "index") {
|
||||||
dialog->setController(new ControlCommand(*dialog, name));
|
dialog->setController(new ControlCommand(*dialog, name));
|
||||||
dialog->setView(new QIndex(*dialog,
|
dialog->setView(new QIndex(*dialog,
|
||||||
qt_("LyX: Index Entry"),
|
_("LyX: Index Entry"),
|
||||||
qt_("&Keyword")));
|
qt_("&Keyword")));
|
||||||
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
|
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
|
||||||
} else if (name == "label") {
|
} else if (name == "label") {
|
||||||
dialog->setController(new ControlCommand(*dialog, name));
|
dialog->setController(new ControlCommand(*dialog, name));
|
||||||
dialog->setView(new QIndex(*dialog,
|
dialog->setView(new QIndex(*dialog,
|
||||||
qt_("LyX: Label"),
|
_("LyX: Label"),
|
||||||
qt_("&Label")));
|
qt_("&Label")));
|
||||||
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
|
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
|
||||||
} else if (name == "log") {
|
} else if (name == "log") {
|
||||||
|
@ -83,7 +83,7 @@ private:
|
|||||||
template <class GUIDialog>
|
template <class GUIDialog>
|
||||||
class QView: public QDialogView {
|
class QView: public QDialogView {
|
||||||
protected:
|
protected:
|
||||||
QView(Dialog &, QString const &);
|
QView(Dialog &, string const &);
|
||||||
|
|
||||||
/// update the dialog
|
/// update the dialog
|
||||||
virtual void update();
|
virtual void update();
|
||||||
@ -101,7 +101,7 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
template <class GUIDialog>
|
template <class GUIDialog>
|
||||||
QView<GUIDialog>::QView(Dialog & p, QString const & t)
|
QView<GUIDialog>::QView(Dialog & p, string const & t)
|
||||||
: QDialogView(p, t)
|
: QDialogView(p, t)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ class QController: public Base
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
///
|
///
|
||||||
QController(Dialog &, QString const &);
|
QController(Dialog &, string const &);
|
||||||
public:
|
public:
|
||||||
/// The parent controller
|
/// The parent controller
|
||||||
Controller & controller();
|
Controller & controller();
|
||||||
@ -159,7 +159,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
template <class Controller, class Base>
|
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)
|
: Base(p, t)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ typedef Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> > base_class;
|
|||||||
|
|
||||||
|
|
||||||
QDocument::QDocument()
|
QDocument::QDocument()
|
||||||
: base_class(qt_("LyX: Document Settings"))
|
: base_class(_("LyX: Document Settings"))
|
||||||
{
|
{
|
||||||
vector<frnt::LanguagePair> const langs = frnt::getLanguageData(false);
|
vector<frnt::LanguagePair> const langs = frnt::getLanguageData(false);
|
||||||
lang_ = getSecond(langs);
|
lang_ = getSecond(langs);
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
typedef QController<ControlCommand, QView<QIndexDialog> > base_class;
|
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)
|
: base_class(parent, title), label_(label)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ class QIndex :
|
|||||||
public:
|
public:
|
||||||
friend class QIndexDialog;
|
friend class QIndexDialog;
|
||||||
|
|
||||||
QIndex(Dialog &, QString const & title, QString const & label);
|
QIndex(Dialog &, string const & title, QString const & label);
|
||||||
protected:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
|
@ -64,7 +64,7 @@ typedef Qt2CB<ControlPrefs, Qt2DB<QPrefsDialog> > base_class;
|
|||||||
|
|
||||||
|
|
||||||
QPrefs::QPrefs()
|
QPrefs::QPrefs()
|
||||||
: base_class(qt_("LyX: Preferences"))
|
: base_class(_("LyX: Preferences"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ typedef Qt2CB<ControlPrint, Qt2DB<QLPrintDialog> > base_class;
|
|||||||
|
|
||||||
|
|
||||||
QPrint::QPrint()
|
QPrint::QPrint()
|
||||||
: base_class(qt_("LyX: Print Document"))
|
: base_class(_("LyX: Print Document"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ typedef Qt2CB<ControlSearch, Qt2DB<QSearchDialog> > base_class;
|
|||||||
|
|
||||||
|
|
||||||
QSearch::QSearch()
|
QSearch::QSearch()
|
||||||
: base_class(qt_("LyX: Find and Replace"))
|
: base_class(_("LyX: Find and Replace"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ typedef Qt2CB<ControlSendto, Qt2DB<QSendtoDialog> > base_class;
|
|||||||
|
|
||||||
|
|
||||||
QSendto::QSendto()
|
QSendto::QSendto()
|
||||||
: base_class(qt_("LyX: Send Document to Command"))
|
: base_class(_("LyX: Send Document to Command"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ typedef Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> > base_class;
|
|||||||
|
|
||||||
|
|
||||||
QSpellchecker::QSpellchecker()
|
QSpellchecker::QSpellchecker()
|
||||||
: base_class(qt_("LyX: Spell-check Document"))
|
: base_class(_("LyX: Spell-check Document"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ typedef Qt2CB<ControlTexinfo, Qt2DB<QTexinfoDialog> > base_class;
|
|||||||
|
|
||||||
|
|
||||||
QTexinfo::QTexinfo()
|
QTexinfo::QTexinfo()
|
||||||
: base_class(qt_("LyX: LaTeX Information")),
|
: base_class(_("LyX: LaTeX Information")),
|
||||||
warningPosted(false), activeStyle(ControlTexinfo::cls)
|
warningPosted(false), activeStyle(ControlTexinfo::cls)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ private:
|
|||||||
template <class Dialog>
|
template <class Dialog>
|
||||||
class Qt2DB: public Qt2Base {
|
class Qt2DB: public Qt2Base {
|
||||||
protected:
|
protected:
|
||||||
Qt2DB(QString const &);
|
Qt2DB(string const &);
|
||||||
|
|
||||||
/// update the dialog
|
/// update the dialog
|
||||||
virtual void update();
|
virtual void update();
|
||||||
@ -97,7 +97,7 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
template <class Dialog>
|
template <class Dialog>
|
||||||
Qt2DB<Dialog>::Qt2DB(QString const & t)
|
Qt2DB<Dialog>::Qt2DB(string const & t)
|
||||||
: Qt2Base(t)
|
: Qt2Base(t)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -155,12 +155,12 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
///
|
///
|
||||||
Qt2CB(QString const &);
|
Qt2CB(string const &);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
template <class Controller, class Base>
|
template <class Controller, class Base>
|
||||||
Qt2CB<Controller, Base>::Qt2CB(QString const & t)
|
Qt2CB<Controller, Base>::Qt2CB(string const & t)
|
||||||
: Base(t)
|
: Base(t)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user