3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 // Too hard to make concept checks work with this file
14 #ifdef _GLIBCPP_CONCEPT_CHECKS
15 #undef _GLIBCPP_CONCEPT_CHECKS
18 #include "GTableCreate.h"
21 #include "support/lstrings.h"
23 #include <libglademm.h>
30 GTableCreate::GTableCreate(Dialog & parent)
31 : GViewCB<ControlTabularCreate, GViewGladeB>(parent, _("Insert Table"))
36 void GTableCreate::doBuild()
38 string const gladeName = findGladeFile("tableCreate");
39 xml_ = Gnome::Glade::Xml::create(gladeName);
43 xml_->get_widget("Ok", ok);
44 xml_->get_widget("Apply", apply);
45 xml_->get_widget("Cancel", cancel);
46 xml_->get_widget("Rows", rows_);
47 xml_->get_widget("Columns", columns_);
54 void GTableCreate::apply()
56 int const rows = rows_->get_value_as_int();
57 int const columns = columns_->get_value_as_int();
58 controller().params() = std::make_pair(columns, rows);
61 } // namespace frontend