3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
18 #include <qapplication.h>
21 #include "QtLyXView.h"
25 #include "ControlButtons.h"
26 #include "support/LAssert.h"
28 Qt2Base::Qt2Base(QString const & t)
29 : ViewBase(), updating_(false), title_(t)
35 return static_cast<Qt2BC &>(getController().bc());
36 // return dynamic_cast<Qt2BC &>(getController().bc());
46 form()->setMinimumSize(form()->sizeHint());
48 update(); // make sure its up-to-date
50 if (form()->isVisible()) {
53 form()->setCaption(title_);
61 if (form() && form()->isVisible())
66 bool Qt2Base::isValid()
72 void Qt2Base::changed()
84 void Qt2Base::slotWMHide()
86 getController().CancelButton();
90 void Qt2Base::slotApply()
92 getController().ApplyButton();
96 void Qt2Base::slotOK()
98 getController().OKButton();
102 void Qt2Base::slotClose()
104 getController().CancelButton();
108 void Qt2Base::slotRestore()
110 getController().RestoreButton();