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"
29 Qt2Base::Qt2Base(QString const & t)
30 : ViewBase(), updating_(false), title_(t)
36 return static_cast<Qt2BC &>(getController().bc());
37 // return dynamic_cast<Qt2BC &>(getController().bc());
41 bool Qt2Base::isVisible() const
43 return form() && form()->isVisible();
53 form()->setMinimumSize(form()->sizeHint());
55 update(); // make sure its up-to-date
57 if (form()->isVisible()) {
60 form()->setCaption(title_);
68 if (form() && form()->isVisible())
73 bool Qt2Base::isValid()
79 void Qt2Base::changed()
91 void Qt2Base::slotWMHide()
93 getController().CancelButton();
97 void Qt2Base::slotApply()
99 getController().ApplyButton();
103 void Qt2Base::slotOK()
105 getController().OKButton();
109 void Qt2Base::slotClose()
111 getController().CancelButton();
115 void Qt2Base::slotRestore()
117 getController().RestoreButton();