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 #include <qapplication.h>
17 #include "QtLyXView.h"
20 #include "ControlButtons.h"
21 #include "support/LAssert.h"
24 Qt2Base::Qt2Base(QString const & t)
25 : ViewBase(), updating_(false), title_(t)
31 return static_cast<Qt2BC &>(getController().bc());
32 // return dynamic_cast<Qt2BC &>(getController().bc());
36 bool Qt2Base::isVisible() const
38 return form() && form()->isVisible();
48 form()->setMinimumSize(form()->sizeHint());
50 update(); // make sure its up-to-date
52 if (form()->isVisible()) {
55 form()->setCaption(title_);
63 if (form() && form()->isVisible())
68 bool Qt2Base::isValid()
74 void Qt2Base::changed()
86 void Qt2Base::slotWMHide()
88 getController().CancelButton();
92 void Qt2Base::slotApply()
94 getController().ApplyButton();
98 void Qt2Base::slotOK()
100 getController().OKButton();
104 void Qt2Base::slotClose()
106 getController().CancelButton();
110 void Qt2Base::slotRestore()
112 getController().RestoreButton();