Exemplo n.º 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);
}
Exemplo n.º 2
0
void UndoRedoManager::clear()
{
    m_currentManager->clear();
    m_sig("CLEAR_EVENT");
}
Exemplo n.º 3
0
void UndoRedoManager::forward()
{
    m_currentManager->forward();
    m_sig("FORWARD_EVENT");
}
Exemplo n.º 4
0
void UndoRedoManager::backward()
{
    m_currentManager->backward();
    m_sig("BACKWARD_EVENT");
}
Exemplo n.º 5
0
void UndoRedoManager::queue( ICommand::sptr pCmd, const bool execute )
{
    m_currentManager->queue(pCmd,execute);
    m_sig("QUEUE_EVENT");
}
Exemplo n.º 6
0
void UpdateSignal::update() {
   m_sig(); 
#ifdef BB_FLOOD
   std::cout << "update()" << std::endl;
#endif
}
 void append(const char* s)
 {
   m_text += s;
   m_sig();
 }
Exemplo n.º 8
0
void RealmConnection::_signal()
{
	m_sig(shared_from_this());
}
Exemplo n.º 9
0
void CFunction::NotifyUpdate()const
{
	m_sig();
}