*/
#include <config.h>
-#include <gtkmm.h>
-#include <libglademm.h>
-#include "support/lstrings.h"
-#include "ControlCommand.h"
+// Too hard to make concept checks work with this file
+#ifdef _GLIBCPP_CONCEPT_CHECKS
+#undef _GLIBCPP_CONCEPT_CHECKS
+#endif
+
#include "GText.h"
+#include "ControlCommand.h"
#include "ghelpers.h"
#include "IdSc.h"
+#include "support/lstrings.h"
+
+#include <gtkmm.h>
+#include <libglademm.h>
+
using std::string;
namespace lyx {
{
}
+
void GText::apply()
{
string const contents = Glib::locale_from_utf8(entry_->get_text());
controller().params().setContents(contents);
}
+
void GText::update()
{
string const contents = support::trim(
entry_->set_text(Glib::locale_to_utf8(contents));
}
+
void GText::doBuild()
{
string const gladeName = findGladeFile("text");
setRestore(restore);
bcview().addReadOnly(entry_);
entry_->signal_changed().connect(
- SigC::slot(*this, >ext::onEntryChanged));
+ sigc::mem_fun(*this, >ext::onEntryChanged));
}
+
void GText::onEntryChanged()
{
bc().valid(!entry_->get_text().empty());