#include <QString>
+class QSettings;
class QWidget;
namespace lyx {
/** \c Dialog collects the different parts of a Model-Controller-View
* split of a generic dialog together.
*/
-class Dialog
+class Dialog
{
public:
/// \param lv is the access point for the dialog to the LyX kernel.
* This default implementation saves the geometry state.
* Reimplement to save more settings.
**/
- virtual void saveSession() const;
+ virtual void saveSession(QSettings & settings) const;
/// Restore session settings.
/**
void setTitle(QString const & title) { title_ = title; }
///
virtual void apply();
+ /// To be called when the buffer view has changed
+ virtual void onBufferViewChanged() = 0;
private:
/** The Dialog's name is the means by which a dialog identifies