+// -*- C++ -*-
/* This file is part of
* ======================================================
*
* \file ControlDialogs.h
* \author Angus Leeming <a.leeming@ic.ac.uk>
*
- * ControlDialog is to be used as a parent class for popups that are not
- * Inset-popups. (An ugly description I know, but I hope the meaning is clear!
- * Can anyone do any better?) Examples would be the Document and Paragraph
- * popups.
+ * ControlDialog is to be used as a parent class for dialogs that are not
+ * views onto parameters of insets. (An ugly description I know, but I hope
+ * the meaning is clear! * Can anyone do any better?) Examples would be the
+ * Document and Paragraph dialogs.
*/
#ifndef CONTROLDIALOGS_H
#include "LyXView.h"
-
template <class Base>
ControlDialog<Base>::ControlDialog(LyXView & lv, Dialogs & d)
: Base(lv, d)
setParams();
+ static bool isBuilt = false;
+ if (!isBuilt) {
+ isBuilt = true;
+ view().build();
+ }
+
bc().readOnly(isReadonly());
view().show();
}
return;
setParams();
-
+
bc().readOnly(isReadonly());
+ // Reset the Button Controller to it's initial state
+ bc().invalid();
+ bc().restore();
+
view().update();
}