
/*

  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 gsiDeclQAbstractFormBuilder.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtDesigner.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQAbstractFormBuilder_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QAbstractFormBuilder

//  Constructor QAbstractFormBuilder::QAbstractFormBuilder()


static void _init_ctor_QAbstractFormBuilder_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return_new<QAbstractFormBuilder *> ();
}

static void _call_ctor_QAbstractFormBuilder_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QAbstractFormBuilder *> (new QAbstractFormBuilder ());
}

static qt_gsi::GenericStaticMethod *_create_ctor_QAbstractFormBuilder_0 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QAbstractFormBuilder::QAbstractFormBuilder()\nThis method creates an object of class QAbstractFormBuilder.", &_init_ctor_QAbstractFormBuilder_0, &_call_ctor_QAbstractFormBuilder_0);
}

// bool QAbstractFormBuilder::isScriptingEnabled()


static void _init_f_isScriptingEnabled_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<bool > ();
}

static void _call_f_isScriptingEnabled_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<bool > ((bool)((QAbstractFormBuilder *)cls)->isScriptingEnabled ());
}

static qt_gsi::GenericMethod *_create_f_isScriptingEnabled_c0 ()
{
  return new qt_gsi::GenericMethod ("isScriptingEnabled?|:scriptingEnabled", "@brief Method bool QAbstractFormBuilder::isScriptingEnabled()\n", true, &_init_f_isScriptingEnabled_c0, &_call_f_isScriptingEnabled_c0);
}

// QWidget *QAbstractFormBuilder::load(QIODevice *dev, QWidget *parentWidget)


static void _init_f_load_2654 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("dev");
  decl->add_arg<QIODevice * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("parentWidget", true, "0");
  decl->add_arg<QWidget * > (argspec_1);
  decl->set_return<QWidget * > ();
}

static void _call_f_load_2654 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QIODevice *arg1 = args.read<QIODevice * > ();
  QWidget *arg2 = args ? args.read<QWidget * > () : (QWidget *)(0);
  ret.write<QWidget * > ((QWidget *)((QAbstractFormBuilder *)cls)->load (arg1, arg2));
}

static qt_gsi::GenericMethod *_create_f_load_2654 ()
{
  return new qt_gsi::GenericMethod ("load", "@brief Method QWidget *QAbstractFormBuilder::load(QIODevice *dev, QWidget *parentWidget)\n", false, &_init_f_load_2654, &_call_f_load_2654);
}

// void QAbstractFormBuilder::save(QIODevice *dev, QWidget *widget)


static void _init_f_save_2654 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("dev");
  decl->add_arg<QIODevice * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("widget");
  decl->add_arg<QWidget * > (argspec_1);
  decl->set_return<void > ();
}

static void _call_f_save_2654 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QIODevice *arg1 = args.read<QIODevice * > ();
  QWidget *arg2 = args.read<QWidget * > ();
  ((QAbstractFormBuilder *)cls)->save (arg1, arg2);
}

static qt_gsi::GenericMethod *_create_f_save_2654 ()
{
  return new qt_gsi::GenericMethod ("save", "@brief Method void QAbstractFormBuilder::save(QIODevice *dev, QWidget *widget)\n", false, &_init_f_save_2654, &_call_f_save_2654);
}

// void QAbstractFormBuilder::setScriptingEnabled(bool enabled)


static void _init_f_setScriptingEnabled_864 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("enabled");
  decl->add_arg<bool > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setScriptingEnabled_864 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  bool arg1 = args.read<bool > ();
  ((QAbstractFormBuilder *)cls)->setScriptingEnabled (arg1);
}

static qt_gsi::GenericMethod *_create_f_setScriptingEnabled_864 ()
{
  return new qt_gsi::GenericMethod ("setScriptingEnabled|scriptingEnabled=", "@brief Method void QAbstractFormBuilder::setScriptingEnabled(bool enabled)\n", false, &_init_f_setScriptingEnabled_864, &_call_f_setScriptingEnabled_864);
}

// void QAbstractFormBuilder::setWorkingDirectory(const QDir &directory)


static void _init_f_setWorkingDirectory_1681 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("directory");
  decl->add_arg<const QDir & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setWorkingDirectory_1681 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QDir &arg1 = args.read<const QDir & > ();
  ((QAbstractFormBuilder *)cls)->setWorkingDirectory (arg1);
}

static qt_gsi::GenericMethod *_create_f_setWorkingDirectory_1681 ()
{
  return new qt_gsi::GenericMethod ("setWorkingDirectory|workingDirectory=", "@brief Method void QAbstractFormBuilder::setWorkingDirectory(const QDir &directory)\n", false, &_init_f_setWorkingDirectory_1681, &_call_f_setWorkingDirectory_1681);
}

// QDir QAbstractFormBuilder::workingDirectory()


static void _init_f_workingDirectory_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<QDir > ();
}

static void _call_f_workingDirectory_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QDir > ((QDir)((QAbstractFormBuilder *)cls)->workingDirectory ());
}

static qt_gsi::GenericMethod *_create_f_workingDirectory_c0 ()
{
  return new qt_gsi::GenericMethod (":workingDirectory", "@brief Method QDir QAbstractFormBuilder::workingDirectory()\n", true, &_init_f_workingDirectory_c0, &_call_f_workingDirectory_c0);
}


namespace gsi
{
gsi::Class<QAbstractFormBuilder> decl_QAbstractFormBuilder ("QAbstractFormBuilder",
  gsi::Methods(_create_ctor_QAbstractFormBuilder_0 ()) +
  gsi::Methods(_create_f_isScriptingEnabled_c0 ()) +
  gsi::Methods(_create_f_load_2654 ()) +
  gsi::Methods(_create_f_save_2654 ()) +
  gsi::Methods(_create_f_setScriptingEnabled_864 ()) +
  gsi::Methods(_create_f_setWorkingDirectory_1681 ()) +
  gsi::Methods(_create_f_workingDirectory_c0 ()),
  "@qt\n@brief Binding of QAbstractFormBuilder");

}

