Beispiel #1
0
	void ComboBox::ItemWindow::onKeyReleased(const KeyEvent &e) {
		uchar keycode = e.getKeyCode();
		UIElement::onKeyReleased(e);
		if(keycode == VK_ESC || keycode == VK_ENTER || keycode == VK_SPACE) {
			if(keycode != VK_ESC)
				_cb->setSelectedIndex(_highlighted);
			closeImpl();
		}
	}
Beispiel #2
0
void SerialPort::close()
{
	if (isOpenImpl())
	{
		if (_logger.debug())
		{
			_logger.debug("Closing serial port");
		}
		closeImpl();
	    _cur = _end = _buffer.begin();
	}
}
MojErr MojDbSandwichDatabase::close()
{
    LOG_TRACE("Entering function %s", __FUNCTION__);

    MojErr err = MojErrNone;
    if (m_db.Valid()) {
        err = closeImpl();
        if (engine()->lazySync())
            engine()->getUpdater()->close( getDb() );
    }
    return err;
}
Beispiel #4
0
MojErr MojDbLevelDatabase::close()
{
    LOG_TRACE("Entering function %s", __FUNCTION__);

    MojErr err = MojErrNone;
    if (m_db) {
        err = closeImpl();
        m_primaryProps.clear();
        engine()->removeDatabase(this);
    }
    return err;
}
void IOServiceLibEvent::closeChannel(const ChannelId& id, bool dontCallOnClose,
		bool closeSock)
{
	ChannelMap::iterator it = channelMap_.find(id);

	if (it != channelMap_.end())
	{
		ChannelContext* ctx = it->second;
		channelMap_.erase(it);
		closeImpl(ctx, dontCallOnClose, closeSock);
	}
}
Beispiel #6
0
	void ComboBox::ItemWindow::close(const Pos &pos) {
		// just do this here if we will not receive a mouse-click for the combobox-button
		// anyway
		Pos cb = _cb->getPos();
		Pos w = _cb->getWindow()->getPos();
		Size cbs = _cb->getSize();
		gsize_t tbh = _cb->getWindow()->getTitleBarHeight();
		if(!(pos.x >= (gpos_t)(w.x + cb.x + cbs.width - cbs.height) &&
				pos.x < (gpos_t)(w.x + cb.x + cbs.width) &&
				pos.y >= (gpos_t)(w.y + cb.y + tbh) &&
				pos.y < (gpos_t)(w.y + cb.y + tbh + cbs.height))) {
			closeImpl();
		}
	}
void IOServiceLibEvent::close(bool dontCallOnClose)
{
	if (NULL != evbase_)
	{
		wakeuper_.close();

		while (!channelMap_.empty())
		{
			ChannelMap::iterator it = channelMap_.begin();
			ChannelContext* ctx = it->second;
			channelMap_.erase(it);
			closeImpl(ctx, dontCallOnClose);
		}

		::event_base_free(evbase_);
		evbase_ = NULL;
	}
}
Beispiel #8
0
bool PlainFile::close() {
  invokeFiltersOnClose();
  return closeImpl();
}
Beispiel #9
0
bool OutputFile::close() {
  return closeImpl();
}
Beispiel #10
0
void ZipFile::sweep() {
  closeImpl();
  File::closeImpl();
}
Beispiel #11
0
bool Pipe::close() {
  return closeImpl();
}
Beispiel #12
0
MemFile::~MemFile() {
  closeImpl();
}
Beispiel #13
0
bool SSLSocket::close() {
  return closeImpl();
}
Beispiel #14
0
bool PlainFile::close() {
  return closeImpl();
}
Beispiel #15
0
PlainFile::~PlainFile() {
  closeImpl();
}
Beispiel #16
0
	void ComboBox::ItemWindow::onMouseReleased(A_UNUSED const MouseEvent &e) {
		_cb->setSelectedIndex(_highlighted);
		closeImpl();
	}
Beispiel #17
0
Socket::~Socket() {
  closeImpl();
}
Beispiel #18
0
File::~File() {
  closeImpl();
}
Beispiel #19
0
void PlainFile::sweep() {
  closeImpl();
  File::sweep();
}
Beispiel #20
0
void MemFile::sweep() {
    closeImpl();
    File::sweep();
}
Beispiel #21
0
SSLSocket::~SSLSocket() {
  m_context.reset(); // for sweeping
  closeImpl();
}
Beispiel #22
0
bool MemFile::close() {
  invokeFiltersOnClose();
  return closeImpl();
}
Beispiel #23
0
void ZipFile::sweep() {
  closeImpl();
  m_innerFile = nullptr; // it'll get swept elsewhere
  File::sweep();
}
Beispiel #24
0
BZ2File::~BZ2File() {
  if (m_bzFile)
    closeImpl();
}
Beispiel #25
0
bool MemFile::close() {
  return closeImpl();
}
Beispiel #26
0
void BZ2File::sweep() {
  if (m_bzFile) {
    closeImpl();
  }
  File::sweep();
}
Beispiel #27
0
ZipFile::~ZipFile() {
  closeImpl();
  DELETEOBJ(HPHP, PlainFile, m_innerFile);
}
Beispiel #28
0
bool BZ2File::close() {
  return closeImpl();
}
Beispiel #29
0
bool ZipFile::close() {
  return closeImpl();
}
Beispiel #30
0
OutputFile::~OutputFile() {
  closeImpl();
}