1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2000 The LyX Team.
8 * ======================================================
10 * \author Angus Leeming <a.leeming@ic.ac.uk>
16 #pragma implementation
20 #include <qapplication.h>
23 #include "QtLyXView.h"
27 #include "ControlButtons.h"
28 #include "support/LAssert.h"
30 Qt2Base::Qt2Base(QString const & t)
31 : ViewBase(), updating_(false), title_(t)
37 return static_cast<Qt2BC &>(getController().bc());
38 // return dynamic_cast<Qt2BC &>(getController().bc());
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();