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
15 #include <qapplication.h>
18 #include "QtLyXView.h"
22 #include "ControlButtons.h"
23 #include "support/LAssert.h"
26 Qt2Base::Qt2Base(QString const & t)
27 : ViewBase(), updating_(false), title_(t)
33 return static_cast<Qt2BC &>(getController().bc());
34 // return dynamic_cast<Qt2BC &>(getController().bc());
38 bool Qt2Base::isVisible() const
40 return form() && form()->isVisible();
50 form()->setMinimumSize(form()->sizeHint());
52 update(); // make sure its up-to-date
54 if (form()->isVisible()) {
57 form()->setCaption(title_);
65 if (form() && form()->isVisible())
70 bool Qt2Base::isValid()
76 void Qt2Base::changed()
88 void Qt2Base::slotWMHide()
90 getController().CancelButton();
94 void Qt2Base::slotApply()
96 getController().ApplyButton();
100 void Qt2Base::slotOK()
102 getController().OKButton();
106 void Qt2Base::slotClose()
108 getController().CancelButton();
112 void Qt2Base::slotRestore()
114 getController().RestoreButton();