]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GTableCreate.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GTableCreate.C
index 98ecf8a1ccdb5672c95bfe3e0cd39f910e7bab89..3405f602657dfd30709d2eaaea3d5d37a213d255 100644 (file)
@@ -9,22 +9,30 @@
  */
 
 #include <config.h>
-#include <gtkmm.h>
 
-#include <libglademm.h>
+// Too hard to make concept checks work with this file
+#ifdef _GLIBCPP_CONCEPT_CHECKS
+#undef _GLIBCPP_CONCEPT_CHECKS
+#endif
 
-#include "ControlTabularCreate.h"
 #include "GTableCreate.h"
 #include "ghelpers.h"
+
 #include "support/lstrings.h"
 
+#include <libglademm.h>
+
 using std::string;
 
+namespace lyx {
+namespace frontend {
+
 GTableCreate::GTableCreate(Dialog & parent)
        : GViewCB<ControlTabularCreate, GViewGladeB>(parent, _("Insert Table"))
 {
 }
 
+
 void GTableCreate::doBuild()
 {
        string const gladeName = findGladeFile("tableCreate");
@@ -42,9 +50,13 @@ void GTableCreate::doBuild()
        setApply(apply);
 }
 
+
 void GTableCreate::apply()
 {
-       int rows = rows_->get_value_as_int();
-       int columns = columns_->get_value_as_int();
+       int const rows = rows_->get_value_as_int();
+       int const columns = columns_->get_value_as_int();
        controller().params() = std::make_pair(columns, rows);
 }
+
+} // namespace frontend
+} // namespace lyx