#include "lfuns.h"
+#include <QString>
#include <string>
-class QString;
class QWidget;
namespace lyx {
/// \param lv is the access point for the dialog to the LyX kernel.
/// \param name is the identifier given to the dialog by its parent
/// container.
- Dialog(GuiView & lv, std::string const & name);
+ /// \param title is the window title used for decoration.
+ Dialog(GuiView & lv, QString const & name, QString const & title);
virtual ~Dialog();
//@}
/// Dialog identifier.
- /// FIXME for Andre': Now that Dialog is entirely within qt4/
- /// We can use QString instead in order to avoid <string> inclusion
- /// or we can pimpl name_.
- std::string const & name() const;
+ QString name() const { return name_; }
//@{
/** Enable the controller to initialise its data structures.
//@}
protected:
+ ///
+ void setTitle(QString const & title) { title_ = title; }
+ ///
virtual void apply();
private:
/** The Dialog's name is the means by which a dialog identifies
* itself to the LyXView.
*/
- std::string const name_;
+ QString const name_;
+ ///
+ QString title_;
///
GuiView * lyxview_;