]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/checkedwidgets.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / checkedwidgets.C
index 34b863eeae6b0666d5f562939e628e374bacdad6..532823e34fbf245f9d58affc705f5f39e5fd1d94 100644 (file)
@@ -1,41 +1,44 @@
 /**
- * \file checkedwidgets.C
+ * \file xforms/checkedwidgets.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "checkedwidgets.h"
 #include "xforms_helpers.h"
-#include "lyxlength.h"
 #include "lyxgluelength.h"
-#include "support/LAssert.h"
+
 #include "support/lstrings.h"
-#include "LString.h"
 
-#include FORMS_H_LOCATION
+#include "lyx_forms.h"
+
+using std::string;
+
+namespace lyx {
 
+using support::isStrDbl;
 
-void addCheckedLyXLength(ButtonControllerBase & bc,
+namespace frontend {
+
+
+void addCheckedLyXLength(BCView & bcview,
                         FL_OBJECT * input, FL_OBJECT * label)
 {
-       bc.addCheckedWidget(new CheckedLyXLength(input, label));
+       bcview.addCheckedWidget(new CheckedLyXLength(input, label));
 }
 
 
-void addCheckedGlueLength(ButtonControllerBase & bc,
+void addCheckedGlueLength(BCView & bcview,
                          FL_OBJECT * input, FL_OBJECT * label)
 {
-       bc.addCheckedWidget(new CheckedGlueLength(input, label));
+       bcview.addCheckedWidget(new CheckedGlueLength(input, label));
 }
 
 
@@ -68,7 +71,7 @@ void setWidget(bool valid, FL_OBJECT * input, FL_OBJECT * label)
 CheckedLyXLength::CheckedLyXLength(FL_OBJECT * input, FL_OBJECT * label)
        : input_(input), label_(label ? label : input)
 {
-       lyx::Assert(input && input->objclass == FL_INPUT);
+       BOOST_ASSERT(input && input->objclass == FL_INPUT);
 }
 
 
@@ -88,7 +91,7 @@ bool CheckedLyXLength::check() const
 CheckedGlueLength::CheckedGlueLength(FL_OBJECT * input, FL_OBJECT * label)
        : input_(input), label_(label ? label : input)
 {
-       lyx::Assert(input && input->objclass == FL_INPUT);
+       BOOST_ASSERT(input && input->objclass == FL_INPUT);
 }
 
 
@@ -103,3 +106,6 @@ bool CheckedGlueLength::check() const
 
        return valid;
 }
+
+} // namespace frontend
+} // namespace lyx