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
21 #include "QtLyXView.h"
25 #include "support/LAssert.h"
30 Qt2Base::Qt2Base(ControlButtons & c, QString const & t)
31 : ViewBC<qt2BC>(c), title_(t)
41 update(); // make sure its up-to-date
43 if (form()->isVisible()) {
46 form()->setCaption( title_ );
54 if (form() && form()->isVisible() )
59 // PENDING(kalle) Handle this with QValidator?
60 // void Qt2Base::InputCB(FL_OBJECT * ob, long data)
62 // bc().input(input(ob, data));
66 ButtonPolicy::SMInput Qt2Base::input(QWidget*, long)
68 return ButtonPolicy::SMI_VALID;
73 void Qt2Base::slotWMHide()
80 void Qt2Base::slotApply()
86 void Qt2Base::slotOK()
92 void Qt2Base::slotCancel()
98 void Qt2Base::slotRestore()
104 // PENDING(kalle) How to handle this?
105 // extern "C" void C_Qt2BaseInputCB(FL_OBJECT * ob, long d)
107 // GetForm(ob)->InputCB(ob, d);