Exemple #1
0
// notify the observer
void MT::notifier::notify()
{
  if (!m_sig.empty())
    m_sig();

  for (size_t i = 0; i < m_sendmsg.size(); ++i)
    ::SendMessage(m_sendmsg[i], WM_COMMAND, (WPARAM)ID_MONITOR_CHANGED, 0);

  for (size_t i = 0; i < m_postmsg.size(); ++i)
    ::PostMessage(m_sendmsg[i], WM_COMMAND, (WPARAM)ID_MONITOR_CHANGED, 0);
}
Exemple #2
0
void UndoRedoManager::clear()
{
    m_currentManager->clear();
    m_sig("CLEAR_EVENT");
}
Exemple #3
0
void UndoRedoManager::forward()
{
    m_currentManager->forward();
    m_sig("FORWARD_EVENT");
}
Exemple #4
0
void UndoRedoManager::backward()
{
    m_currentManager->backward();
    m_sig("BACKWARD_EVENT");
}
Exemple #5
0
void UndoRedoManager::queue( ICommand::sptr pCmd, const bool execute )
{
    m_currentManager->queue(pCmd,execute);
    m_sig("QUEUE_EVENT");
}
void UpdateSignal::update() {
   m_sig(); 
#ifdef BB_FLOOD
   std::cout << "update()" << std::endl;
#endif
}
 void append(const char* s)
 {
   m_text += s;
   m_sig();
 }
void RealmConnection::_signal()
{
	m_sig(shared_from_this());
}
Exemple #9
0
void CFunction::NotifyUpdate()const
{
	m_sig();
}