2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
11 * \author Angus Leeming <a.leeming@ic.ac.uk>
17 #pragma implementation
26 #include "support/LAssert.h"
31 Qt2Base::Qt2Base(ControlButtons & c, QString const & t)
32 : ViewBC<qt2BC>(c), title_(t)
42 update(); // make sure its up-to-date
44 if (form()->isVisible()) {
47 form()->setCaption( title_ );
55 if (form() && form()->isVisible() )
60 // PENDING(kalle) Handle this with QValidator?
61 // void Qt2Base::InputCB(FL_OBJECT * ob, long data)
63 // bc().input(input(ob, data));
67 ButtonPolicy::SMInput Qt2Base::input(QWidget*, long)
69 return ButtonPolicy::SMI_VALID;
74 void Qt2Base::slotWMHide()
81 void Qt2Base::slotApply()
87 void Qt2Base::slotOK()
93 void Qt2Base::slotCancel()
99 void Qt2Base::slotRestore()
105 // PENDING(kalle) How to handle this?
106 // extern "C" void C_Qt2BaseInputCB(FL_OBJECT * ob, long d)
108 // GetForm(ob)->InputCB(ob, d);