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(::ControlButton & c, QString const & t)
32 : ViewBC<qt2BC>(c), title_(t)
43 update(); // make sure its up-to-date
45 if (form()->isVisible()) {
48 form()->setCaption( title_ );
56 if (form() && form()->isVisible() )
61 // PENDING(kalle) Handle this with QValidator?
62 // void Qt2Base::InputCB(FL_OBJECT * ob, long data)
64 // bc().input(input(ob, data));
68 ButtonPolicy::SMInput Qt2Base::input(QWidget*, long)
70 return ButtonPolicy::SMI_VALID;
75 void Qt2Base::slotWMHide()
82 void Qt2Base::slotApply()
88 void Qt2Base::slotOK()
94 void Qt2Base::slotCancel()
100 void Qt2Base::slotRestore()
106 // PENDING(kalle) How to handle this?
107 // extern "C" void C_Qt2BaseInputCB(FL_OBJECT * ob, long d)
109 // GetForm(ob)->InputCB(ob, d);