]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormInset.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormInset.C
index 7f81476aaf02e8b13eb7c17a62bc40d875c69239..3f0c6676f5b8457d9c316ea5fc9512c069901a72 100644 (file)
@@ -1,10 +1,9 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
  *           LyX, The Document Processor
  *
- *           Copyright 2000 The LyX Team.
+ *           Copyright 2000-2001 The LyX Team.
  *
  * ======================================================
  */
 #pragma implementation
 #endif
 
-
 #include "Dialogs.h"
 #include "LyXView.h"
 #include "FormInset.h"
+#include "xformsBC.h"
+
+using SigC::slot;
 
-FormInset::FormInset(LyXView * lv, Dialogs * d, string const & t,
-                    ButtonPolicy * bp,
-                    char const * close, char const * cancel)
-       : FormBaseBD(lv, d, t, bp, close, cancel), ih_(0)
+FormInset::FormInset(LyXView * lv, Dialogs * d, string const & t)
+       : FormBaseBD(lv, d, t), ih_(0)
 {}
 
 
@@ -35,7 +34,7 @@ void FormInset::connect()
                 connect(slot(this, &FormInset::updateSlot));
        h_ = d_->hideBufferDependent.
                 connect(slot(this, &FormInset::hide));
-       FormBase::connect();
+       FormBaseDeprecated::connect();
 }
 
 
@@ -55,10 +54,8 @@ void FormInset::updateSlot(bool switched)
 }
 
 
-FormCommand::FormCommand(LyXView * lv, Dialogs * d, string const & t,
-                        ButtonPolicy * bp,
-                        char const * close, char const * cancel)
-       : FormInset(lv, d, t, bp, close, cancel),
+FormCommand::FormCommand(LyXView * lv, Dialogs * d, string const & t)
+       : FormInset(lv, d, t),
          inset_(0)
 {}
 
@@ -95,6 +92,6 @@ void FormCommand::createInset(string const & arg)
 
        params.setFromString(arg);
        if ( !arg.empty() )
-               bc_.valid(); // so that the user can press Ok
+               bc().valid(); // so that the user can press Ok
        show();
 }