
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 Matthias Koefferlein

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
*  @file generated/gsiDeclQPlainTextEdit_EventAdaptor.cc
*  @brief Event adaptor implementations for QPlainTextEdit
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtGui.h"
#include "gsiDeclQPlainTextEdit_EventAdaptor.h"

// -----------------------------------------------------------------------
// class QPlainTextEdit_EventAdaptor

QPlainTextEdit_EventAdaptor::QPlainTextEdit_EventAdaptor (QObject *host)
  : QObject ()
{
  connect (host, SIGNAL(blockCountChanged(int)), this, SLOT(blockCountChanged(int)));
  connect (host, SIGNAL(copyAvailable(bool)), this, SLOT(copyAvailable(bool)));
  connect (host, SIGNAL(cursorPositionChanged()), this, SLOT(cursorPositionChanged()));
  connect (host, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(customContextMenuRequested(const QPoint &)));
  connect (host, SIGNAL(destroyed(QObject *)), this, SLOT(destroyed(QObject *)));
  connect (host, SIGNAL(modificationChanged(bool)), this, SLOT(modificationChanged(bool)));
  connect (host, SIGNAL(redoAvailable(bool)), this, SLOT(redoAvailable(bool)));
  connect (host, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
  connect (host, SIGNAL(textChanged()), this, SLOT(textChanged()));
  connect (host, SIGNAL(undoAvailable(bool)), this, SLOT(undoAvailable(bool)));
  connect (host, SIGNAL(updateRequest(const QRect &, int)), this, SLOT(updateRequest(const QRect &, int)));
}

//  Event QPlainTextEdit::blockCountChanged(int newBlockCount)
void QPlainTextEdit_EventAdaptor::blockCountChanged(int newBlockCount) {
BEGIN_PROTECTED
  blockCountChanged_e_767(newBlockCount);
END_PROTECTED
}

//  Event QPlainTextEdit::copyAvailable(bool b)
void QPlainTextEdit_EventAdaptor::copyAvailable(bool b) {
BEGIN_PROTECTED
  copyAvailable_e_864(b);
END_PROTECTED
}

//  Event QPlainTextEdit::cursorPositionChanged()
void QPlainTextEdit_EventAdaptor::cursorPositionChanged() {
BEGIN_PROTECTED
  cursorPositionChanged_e_0();
END_PROTECTED
}

//  Event QPlainTextEdit::customContextMenuRequested(const QPoint &pos)
void QPlainTextEdit_EventAdaptor::customContextMenuRequested(const QPoint &pos) {
BEGIN_PROTECTED
  customContextMenuRequested_e_1916(pos);
END_PROTECTED
}

//  Event QPlainTextEdit::destroyed(QObject *arg1)
void QPlainTextEdit_EventAdaptor::destroyed(QObject *arg1) {
BEGIN_PROTECTED
  destroyed_e_1302(arg1);
END_PROTECTED
}

//  Event QPlainTextEdit::modificationChanged(bool arg1)
void QPlainTextEdit_EventAdaptor::modificationChanged(bool arg1) {
BEGIN_PROTECTED
  modificationChanged_e_864(arg1);
END_PROTECTED
}

//  Event QPlainTextEdit::redoAvailable(bool b)
void QPlainTextEdit_EventAdaptor::redoAvailable(bool b) {
BEGIN_PROTECTED
  redoAvailable_e_864(b);
END_PROTECTED
}

//  Event QPlainTextEdit::selectionChanged()
void QPlainTextEdit_EventAdaptor::selectionChanged() {
BEGIN_PROTECTED
  selectionChanged_e_0();
END_PROTECTED
}

//  Event QPlainTextEdit::textChanged()
void QPlainTextEdit_EventAdaptor::textChanged() {
BEGIN_PROTECTED
  textChanged_e_0();
END_PROTECTED
}

//  Event QPlainTextEdit::undoAvailable(bool b)
void QPlainTextEdit_EventAdaptor::undoAvailable(bool b) {
BEGIN_PROTECTED
  undoAvailable_e_864(b);
END_PROTECTED
}

//  Event QPlainTextEdit::updateRequest(const QRect &rect, int dy)
void QPlainTextEdit_EventAdaptor::updateRequest(const QRect &rect, int dy) {
BEGIN_PROTECTED
  updateRequest_e_2451(rect, dy);
END_PROTECTED
}
