3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Michael Koziarski
10 * Full author contact details are available in file CREDITS.
15 // Too hard to make concept checks work with this file
16 #ifdef _GLIBCXX_CONCEPT_CHECKS
17 #undef _GLIBCXX_CONCEPT_CHECKS
19 #ifdef _GLIBCPP_CONCEPT_CHECKS
20 #undef _GLIBCPP_CONCEPT_CHECKS
29 Timeout::Timeout(unsigned int msec, Type t)
30 : pimpl_(new lyx::frontend::GTimeout(*this)),
31 type(t), timeout_ms(msec)
37 GTimeout::GTimeout(Timeout & owner)
38 : Timeout::Impl(owner)
43 void GTimeout::reset()
49 bool GTimeout::running() const
55 void GTimeout::start()
57 if (conn_.connected()) {
58 lyxerr << "Timeout::start: already running!" << std::endl;
62 conn_ = Glib::signal_timeout().connect(
63 sigc::mem_fun(*this, >imeout::timeoutEvent),
77 bool GTimeout::timeoutEvent()
80 return false; // discontinue emitting timeouts.
83 } // namespace frontend