/* this file was generated by the MCOP idl compiler - DO NOT EDIT */

#include "artsgui.h"

// Implementation
Arts::GraphPoint::GraphPoint()
{
}

Arts::GraphPoint::GraphPoint(float _a_x, float _a_y)
{
	this->x = _a_x;
	this->y = _a_y;
}

Arts::GraphPoint::GraphPoint(Arts::Buffer& stream)
{
	readType(stream);
}

Arts::GraphPoint::GraphPoint(const Arts::GraphPoint& copyType) : Arts::Type(copyType)
{
	Arts::Buffer buffer;
	copyType.writeType(buffer);
	readType(buffer);
}

Arts::GraphPoint& Arts::GraphPoint::operator=(const Arts::GraphPoint& assignType)
{
	Arts::Buffer buffer;
	assignType.writeType(buffer);
	readType(buffer);
	return *this;
}

void Arts::GraphPoint::readType(Arts::Buffer& stream)
{
	x = stream.readFloat();
	y = stream.readFloat();
}

void Arts::GraphPoint::writeType(Arts::Buffer& stream) const
{
	stream.writeFloat(x);
	stream.writeFloat(y);
}

std::string Arts::GraphPoint::_typeName() const
{
	return "Arts::GraphPoint";
}

Arts::Widget_base *Arts::Widget_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Widget_base *castedObject = (Arts::Widget_base *)skel->_cast(Arts::Widget_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Widget_base *Arts::Widget_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Widget_base::_fromReference(r,true);
	return 0;
}

Arts::Widget_base *Arts::Widget_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Widget_base *castedObject = (Arts::Widget_base *)object._base()->_cast(Arts::Widget_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Widget_base *Arts::Widget_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Widget_base *result;
	result = (Arts::Widget_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Widget");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Widget_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Widget")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Widget_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Widget_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Widget_base::_cast(unsigned long iid)
{
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Widget_stub::Widget_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Widget_stub::Widget_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::Widget_stub::show()
{
	long methodID = _lookupMethodFast("method:0000000573686f770000000005766f696400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::Widget_stub::hide()
{
	long methodID = _lookupMethodFast("method:00000005686964650000000005766f696400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Widget_stub::widgetID()
{
	long methodID = _lookupMethodFast("method:0000000e5f6765745f776964676574494400000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

Arts::Widget Arts::Widget_stub::parent()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f706172656e74000000000d417274733a3a57696467657400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if (!result) return Arts::Widget::null();
	Arts::Widget_base* returnCode;
	Arts::readObject(*result,returnCode);
	delete result;
	return Arts::Widget::_from_base(returnCode);
}

void Arts::Widget_stub::parent(Arts::Widget newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f706172656e740000000005766f69640000000002000000010000000d417274733a3a57696467657400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,newValue._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Widget_stub::x()
{
	long methodID = _lookupMethodFast("method:000000075f6765745f7800000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Widget_stub::x(long newValue)
{
	long methodID = _lookupMethodFast("method:000000075f7365745f780000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Widget_stub::y()
{
	long methodID = _lookupMethodFast("method:000000075f6765745f7900000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Widget_stub::y(long newValue)
{
	long methodID = _lookupMethodFast("method:000000075f7365745f790000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Widget_stub::width()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f776964746800000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Widget_stub::width(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f77696474680000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Widget_stub::height()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f68656967687400000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Widget_stub::height(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f6865696768740000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

bool Arts::Widget_stub::visible()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f76697369626c650000000008626f6f6c65616e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return false; // error occurred
	bool returnCode = result->readBool();
	delete result;
	return returnCode;
}

void Arts::Widget_stub::visible(bool newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f76697369626c650000000005766f696400000000020000000100000008626f6f6c65616e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeBool(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::SizePolicy Arts::Widget_stub::hSizePolicy()
{
	long methodID = _lookupMethodFast("method:000000115f6765745f6853697a65506f6c6963790000000011417274733a3a53697a65506f6c69637900000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::SizePolicy)0; // error occurred
	Arts::SizePolicy returnCode = (Arts::SizePolicy)result->readLong();
	delete result;
	return returnCode;
}

void Arts::Widget_stub::hSizePolicy(Arts::SizePolicy newValue)
{
	long methodID = _lookupMethodFast("method:000000115f7365745f6853697a65506f6c6963790000000005766f696400000000020000000100000011417274733a3a53697a65506f6c69637900000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::SizePolicy Arts::Widget_stub::vSizePolicy()
{
	long methodID = _lookupMethodFast("method:000000115f6765745f7653697a65506f6c6963790000000011417274733a3a53697a65506f6c69637900000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::SizePolicy)0; // error occurred
	Arts::SizePolicy returnCode = (Arts::SizePolicy)result->readLong();
	delete result;
	return returnCode;
}

void Arts::Widget_stub::vSizePolicy(Arts::SizePolicy newValue)
{
	long methodID = _lookupMethodFast("method:000000115f7365745f7653697a65506f6c6963790000000005766f696400000000020000000100000011417274733a3a53697a65506f6c69637900000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Widget_skel::_interfaceName()
{
	return "Arts::Widget";
}

bool Arts::Widget_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Widget_skel::_interfaceNameSkel()
{
	return "Arts::Widget";
}

// show
static void _dispatch_Arts_Widget_00(void *object, Arts::Buffer *, Arts::Buffer *)
{
	((Arts::Widget_skel *)object)->show();
}

// hide
static void _dispatch_Arts_Widget_01(void *object, Arts::Buffer *, Arts::Buffer *)
{
	((Arts::Widget_skel *)object)->hide();
}

// _get_widgetID
static void _dispatch_Arts_Widget_02(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Widget_skel *)object)->widgetID());
}

// _get_parent
static void _dispatch_Arts_Widget_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	Arts::Widget returnCode = ((Arts::Widget_skel *)object)->parent();
	Arts::writeObject(*result,returnCode._base());
}

// _set_parent
static void _dispatch_Arts_Widget_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_newValue;
	Arts::readObject(*request,_temp_newValue);
	Arts::Widget newValue = Arts::Widget::_from_base(_temp_newValue);
	((Arts::Widget_skel *)object)->parent(newValue);
}

// _get_x
static void _dispatch_Arts_Widget_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Widget_skel *)object)->x());
}

// _set_x
static void _dispatch_Arts_Widget_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Widget_skel *)object)->x(newValue);
}

// _get_y
static void _dispatch_Arts_Widget_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Widget_skel *)object)->y());
}

// _set_y
static void _dispatch_Arts_Widget_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Widget_skel *)object)->y(newValue);
}

// _get_width
static void _dispatch_Arts_Widget_09(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Widget_skel *)object)->width());
}

// _set_width
static void _dispatch_Arts_Widget_10(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Widget_skel *)object)->width(newValue);
}

// _get_height
static void _dispatch_Arts_Widget_11(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Widget_skel *)object)->height());
}

// _set_height
static void _dispatch_Arts_Widget_12(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Widget_skel *)object)->height(newValue);
}

// _get_visible
static void _dispatch_Arts_Widget_13(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeBool(((Arts::Widget_skel *)object)->visible());
}

// _set_visible
static void _dispatch_Arts_Widget_14(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	bool newValue = request->readBool();
	((Arts::Widget_skel *)object)->visible(newValue);
}

// _get_hSizePolicy
static void _dispatch_Arts_Widget_15(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Widget_skel *)object)->hSizePolicy());
}

// _set_hSizePolicy
static void _dispatch_Arts_Widget_16(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::SizePolicy newValue = (Arts::SizePolicy)request->readLong();
	((Arts::Widget_skel *)object)->hSizePolicy(newValue);
}

// _get_vSizePolicy
static void _dispatch_Arts_Widget_17(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Widget_skel *)object)->vSizePolicy());
}

// _set_vSizePolicy
static void _dispatch_Arts_Widget_18(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::SizePolicy newValue = (Arts::SizePolicy)request->readLong();
	((Arts::Widget_skel *)object)->vSizePolicy(newValue);
}

void Arts::Widget_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000573686f770000000005766f696400000000020000000000"
        "00000000000005686964650000000005766f696400000000020000000000000000"
        "0000000e5f6765745f776964676574494400000000056c6f6e6700000000020000"
        "0000000000000000000c5f6765745f706172656e74000000000d417274733a3a57"
        "6964676574000000000200000000000000000000000c5f7365745f706172656e74"
        "0000000005766f69640000000002000000010000000d417274733a3a5769646765"
        "7400000000096e657756616c7565000000000000000000000000075f6765745f78"
        "00000000056c6f6e6700000000020000000000000000000000075f7365745f7800"
        "00000005766f6964000000000200000001000000056c6f6e6700000000096e6577"
        "56616c7565000000000000000000000000075f6765745f7900000000056c6f6e67"
        "00000000020000000000000000000000075f7365745f790000000005766f696400"
        "0000000200000001000000056c6f6e6700000000096e657756616c756500000000"
        "00000000000000000b5f6765745f776964746800000000056c6f6e670000000002"
        "00000000000000000000000b5f7365745f77696474680000000005766f69640000"
        "00000200000001000000056c6f6e6700000000096e657756616c75650000000000"
        "000000000000000c5f6765745f68656967687400000000056c6f6e670000000002"
        "00000000000000000000000c5f7365745f6865696768740000000005766f696400"
        "0000000200000001000000056c6f6e6700000000096e657756616c756500000000"
        "00000000000000000d5f6765745f76697369626c650000000008626f6f6c65616e"
        "000000000200000000000000000000000d5f7365745f76697369626c6500000000"
        "05766f696400000000020000000100000008626f6f6c65616e00000000096e6577"
        "56616c7565000000000000000000000000115f6765745f6853697a65506f6c6963"
        "790000000011417274733a3a53697a65506f6c6963790000000002000000000000"
        "0000000000115f7365745f6853697a65506f6c6963790000000005766f69640000"
        "0000020000000100000011417274733a3a53697a65506f6c69637900000000096e"
        "657756616c7565000000000000000000000000115f6765745f7653697a65506f6c"
        "6963790000000011417274733a3a53697a65506f6c696379000000000200000000"
        "00000000000000115f7365745f7653697a65506f6c6963790000000005766f6964"
        "00000000020000000100000011417274733a3a53697a65506f6c69637900000000"
        "096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Widget_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_10,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_11,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_12,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_13,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_14,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_15,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_16,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_17,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Widget_18,this,Arts::MethodDef(m));
}

Arts::Widget_skel::Widget_skel()
{
}

Arts::Object_base* Arts::Widget::_Creator() {
	return Arts::Widget_base::_create();
}

unsigned long Arts::Widget_base::_IID = Arts::MCOPUtils::makeIID("Arts::Widget");

Arts::Frame_base *Arts::Frame_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Frame_base *castedObject = (Arts::Frame_base *)skel->_cast(Arts::Frame_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Frame_base *Arts::Frame_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Frame_base::_fromReference(r,true);
	return 0;
}

Arts::Frame_base *Arts::Frame_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Frame_base *castedObject = (Arts::Frame_base *)object._base()->_cast(Arts::Frame_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Frame_base *Arts::Frame_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Frame_base *result;
	result = (Arts::Frame_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Frame");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Frame_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Frame")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Frame_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Frame_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Frame_base::_cast(unsigned long iid)
{
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Frame_stub::Frame_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Frame_stub::Frame_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::Frame_stub::constructor(Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Frame_stub::margin()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f6d617267696e00000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Frame_stub::margin(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f6d617267696e0000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Frame_stub::linewidth()
{
	long methodID = _lookupMethodFast("method:0000000f5f6765745f6c696e65776964746800000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Frame_stub::linewidth(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000f5f7365745f6c696e6577696474680000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Frame_stub::midlinewidth()
{
	long methodID = _lookupMethodFast("method:000000125f6765745f6d69646c696e65776964746800000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Frame_stub::midlinewidth(long newValue)
{
	long methodID = _lookupMethodFast("method:000000125f7365745f6d69646c696e6577696474680000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Frame_stub::framestyle()
{
	long methodID = _lookupMethodFast("method:000000105f6765745f6672616d657374796c6500000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Frame_stub::framestyle(long newValue)
{
	long methodID = _lookupMethodFast("method:000000105f7365745f6672616d657374796c650000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::Shape Arts::Frame_stub::frameshape()
{
	long methodID = _lookupMethodFast("method:000000105f6765745f6672616d657368617065000000000c417274733a3a536861706500000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::Shape)0; // error occurred
	Arts::Shape returnCode = (Arts::Shape)result->readLong();
	delete result;
	return returnCode;
}

void Arts::Frame_stub::frameshape(Arts::Shape newValue)
{
	long methodID = _lookupMethodFast("method:000000105f7365745f6672616d6573686170650000000005766f69640000000002000000010000000c417274733a3a536861706500000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::Shadow Arts::Frame_stub::frameshadow()
{
	long methodID = _lookupMethodFast("method:000000115f6765745f6672616d65736861646f77000000000d417274733a3a536861646f7700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::Shadow)0; // error occurred
	Arts::Shadow returnCode = (Arts::Shadow)result->readLong();
	delete result;
	return returnCode;
}

void Arts::Frame_stub::frameshadow(Arts::Shadow newValue)
{
	long methodID = _lookupMethodFast("method:000000115f7365745f6672616d65736861646f770000000005766f69640000000002000000010000000d417274733a3a536861646f7700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Frame_skel::_interfaceName()
{
	return "Arts::Frame";
}

bool Arts::Frame_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Frame_skel::_interfaceNameSkel()
{
	return "Arts::Frame";
}

// constructor
static void _dispatch_Arts_Frame_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::Frame_skel *)object)->constructor(parent);
}

// _get_margin
static void _dispatch_Arts_Frame_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Frame_skel *)object)->margin());
}

// _set_margin
static void _dispatch_Arts_Frame_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Frame_skel *)object)->margin(newValue);
}

// _get_linewidth
static void _dispatch_Arts_Frame_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Frame_skel *)object)->linewidth());
}

// _set_linewidth
static void _dispatch_Arts_Frame_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Frame_skel *)object)->linewidth(newValue);
}

// _get_midlinewidth
static void _dispatch_Arts_Frame_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Frame_skel *)object)->midlinewidth());
}

// _set_midlinewidth
static void _dispatch_Arts_Frame_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Frame_skel *)object)->midlinewidth(newValue);
}

// _get_framestyle
static void _dispatch_Arts_Frame_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Frame_skel *)object)->framestyle());
}

// _set_framestyle
static void _dispatch_Arts_Frame_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Frame_skel *)object)->framestyle(newValue);
}

// _get_frameshape
static void _dispatch_Arts_Frame_09(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Frame_skel *)object)->frameshape());
}

// _set_frameshape
static void _dispatch_Arts_Frame_10(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Shape newValue = (Arts::Shape)request->readLong();
	((Arts::Frame_skel *)object)->frameshape(newValue);
}

// _get_frameshadow
static void _dispatch_Arts_Frame_11(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Frame_skel *)object)->frameshadow());
}

// _set_frameshadow
static void _dispatch_Arts_Frame_12(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Shadow newValue = (Arts::Shadow)request->readLong();
	((Arts::Frame_skel *)object)->frameshadow(newValue);
}

void Arts::Frame_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "0002000000010000000d417274733a3a5769646765740000000007706172656e74"
        "0000000000000000000000000c5f6765745f6d617267696e00000000056c6f6e67"
        "000000000200000000000000000000000c5f7365745f6d617267696e0000000005"
        "766f6964000000000200000001000000056c6f6e6700000000096e657756616c75"
        "650000000000000000000000000f5f6765745f6c696e6577696474680000000005"
        "6c6f6e67000000000200000000000000000000000f5f7365745f6c696e65776964"
        "74680000000005766f6964000000000200000001000000056c6f6e670000000009"
        "6e657756616c7565000000000000000000000000125f6765745f6d69646c696e65"
        "776964746800000000056c6f6e6700000000020000000000000000000000125f73"
        "65745f6d69646c696e6577696474680000000005766f6964000000000200000001"
        "000000056c6f6e6700000000096e657756616c7565000000000000000000000000"
        "105f6765745f6672616d657374796c6500000000056c6f6e670000000002000000"
        "0000000000000000105f7365745f6672616d657374796c650000000005766f6964"
        "000000000200000001000000056c6f6e6700000000096e657756616c7565000000"
        "000000000000000000105f6765745f6672616d657368617065000000000c417274"
        "733a3a536861706500000000020000000000000000000000105f7365745f667261"
        "6d6573686170650000000005766f69640000000002000000010000000c41727473"
        "3a3a536861706500000000096e657756616c756500000000000000000000000011"
        "5f6765745f6672616d65736861646f77000000000d417274733a3a536861646f77"
        "00000000020000000000000000000000115f7365745f6672616d65736861646f77"
        "0000000005766f69640000000002000000010000000d417274733a3a536861646f"
        "7700000000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Frame_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_10,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_11,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Frame_12,this,Arts::MethodDef(m));
	Arts::Widget_skel::_buildMethodTable();
}

Arts::Frame_skel::Frame_skel()
{
}

Arts::Object_base* Arts::Frame::_Creator() {
	return Arts::Frame_base::_create();
}

unsigned long Arts::Frame_base::_IID = Arts::MCOPUtils::makeIID("Arts::Frame");

Arts::LayoutBox_base *Arts::LayoutBox_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::LayoutBox_base *castedObject = (Arts::LayoutBox_base *)skel->_cast(Arts::LayoutBox_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::LayoutBox_base *Arts::LayoutBox_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::LayoutBox_base::_fromReference(r,true);
	return 0;
}

Arts::LayoutBox_base *Arts::LayoutBox_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::LayoutBox_base *castedObject = (Arts::LayoutBox_base *)object._base()->_cast(Arts::LayoutBox_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::LayoutBox_base *Arts::LayoutBox_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::LayoutBox_base *result;
	result = (Arts::LayoutBox_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::LayoutBox");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::LayoutBox_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::LayoutBox")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::LayoutBox_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::LayoutBox_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::LayoutBox_base::_cast(unsigned long iid)
{
	if(iid == Arts::LayoutBox_base::_IID) return (Arts::LayoutBox_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::LayoutBox_stub::LayoutBox_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::LayoutBox_stub::LayoutBox_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::LayoutBox_stub::addWidget(Arts::Widget widget, long stretch, long align)
{
	long methodID = _lookupMethodFast("method:0000000a6164645769646765740000000005766f69640000000002000000030000000d417274733a3a57696467657400000000077769646765740000000000000000056c6f6e670000000008737472657463680000000000000000056c6f6e670000000006616c69676e000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,widget._base());
	request->writeLong(stretch);
	request->writeLong(align);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addWidget(Arts::Widget widget, long stretch)
{
	long methodID = _lookupMethodFast("method:0000000a6164645769646765740000000005766f69640000000002000000020000000d417274733a3a57696467657400000000077769646765740000000000000000056c6f6e67000000000873747265746368000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,widget._base());
	request->writeLong(stretch);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addWidget(Arts::Widget widget)
{
	long methodID = _lookupMethodFast("method:0000000a6164645769646765740000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007776964676574000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,widget._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::insertWidget(long position, Arts::Widget widget, long stretch, long align)
{
	long methodID = _lookupMethodFast("method:0000000d696e736572745769646765740000000005766f6964000000000200000004000000056c6f6e670000000009706f736974696f6e00000000000000000d417274733a3a57696467657400000000077769646765740000000000000000056c6f6e670000000008737472657463680000000000000000056c6f6e670000000006616c69676e000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(position);
	Arts::writeObject(*request,widget._base());
	request->writeLong(stretch);
	request->writeLong(align);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::insertWidget(long position, Arts::Widget widget, long stretch)
{
	long methodID = _lookupMethodFast("method:0000000d696e736572745769646765740000000005766f6964000000000200000003000000056c6f6e670000000009706f736974696f6e00000000000000000d417274733a3a57696467657400000000077769646765740000000000000000056c6f6e67000000000873747265746368000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(position);
	Arts::writeObject(*request,widget._base());
	request->writeLong(stretch);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::insertWidget(long position, Arts::Widget widget)
{
	long methodID = _lookupMethodFast("method:0000000d696e736572745769646765740000000005766f6964000000000200000002000000056c6f6e670000000009706f736974696f6e00000000000000000d417274733a3a5769646765740000000007776964676574000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(position);
	Arts::writeObject(*request,widget._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addStretch(long stretch)
{
	long methodID = _lookupMethodFast("method:0000000b616464537472657463680000000005766f6964000000000200000001000000056c6f6e67000000000873747265746368000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(stretch);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addStretch()
{
	long methodID = _lookupMethodFast("method:0000000b616464537472657463680000000005766f696400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addSpace(long space)
{
	long methodID = _lookupMethodFast("method:0000000961646453706163650000000005766f6964000000000200000001000000056c6f6e6700000000067370616365000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(space);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addStrut(long size)
{
	long methodID = _lookupMethodFast("method:0000000961646453747275740000000005766f6964000000000200000001000000056c6f6e67000000000573697a65000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(size);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addSeparator(long stretch, long align)
{
	long methodID = _lookupMethodFast("method:0000000d616464536570617261746f720000000005766f6964000000000200000002000000056c6f6e670000000008737472657463680000000000000000056c6f6e670000000006616c69676e000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(stretch);
	request->writeLong(align);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addSeparator(long stretch)
{
	long methodID = _lookupMethodFast("method:0000000d616464536570617261746f720000000005766f6964000000000200000001000000056c6f6e67000000000873747265746368000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(stretch);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addSeparator()
{
	long methodID = _lookupMethodFast("method:0000000d616464536570617261746f720000000005766f696400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addLine(long width, long space, long stretch, long align)
{
	long methodID = _lookupMethodFast("method:000000086164644c696e650000000005766f6964000000000200000004000000056c6f6e67000000000677696474680000000000000000056c6f6e67000000000673706163650000000000000000056c6f6e670000000008737472657463680000000000000000056c6f6e670000000006616c69676e000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(width);
	request->writeLong(space);
	request->writeLong(stretch);
	request->writeLong(align);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addLine(long width, long space, long stretch)
{
	long methodID = _lookupMethodFast("method:000000086164644c696e650000000005766f6964000000000200000003000000056c6f6e67000000000677696474680000000000000000056c6f6e67000000000673706163650000000000000000056c6f6e67000000000873747265746368000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(width);
	request->writeLong(space);
	request->writeLong(stretch);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::LayoutBox_stub::addLine(long width, long space)
{
	long methodID = _lookupMethodFast("method:000000086164644c696e650000000005766f6964000000000200000002000000056c6f6e67000000000677696474680000000000000000056c6f6e6700000000067370616365000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(width);
	request->writeLong(space);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::Direction Arts::LayoutBox_stub::direction()
{
	long methodID = _lookupMethodFast("method:0000000f5f6765745f646972656374696f6e0000000010417274733a3a446972656374696f6e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::Direction)0; // error occurred
	Arts::Direction returnCode = (Arts::Direction)result->readLong();
	delete result;
	return returnCode;
}

void Arts::LayoutBox_stub::direction(Arts::Direction newValue)
{
	long methodID = _lookupMethodFast("method:0000000f5f7365745f646972656374696f6e0000000005766f696400000000020000000100000010417274733a3a446972656374696f6e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::LayoutBox_stub::spacing()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f73706163696e6700000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::LayoutBox_stub::spacing(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f73706163696e670000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::LayoutBox_stub::layoutmargin()
{
	long methodID = _lookupMethodFast("method:000000125f6765745f6c61796f75746d617267696e00000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::LayoutBox_stub::layoutmargin(long newValue)
{
	long methodID = _lookupMethodFast("method:000000125f7365745f6c61796f75746d617267696e0000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::LayoutBox_skel::_interfaceName()
{
	return "Arts::LayoutBox";
}

bool Arts::LayoutBox_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::LayoutBox") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::LayoutBox_skel::_interfaceNameSkel()
{
	return "Arts::LayoutBox";
}

// addWidget
static void _dispatch_Arts_LayoutBox_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_widget;
	Arts::readObject(*request,_temp_widget);
	Arts::Widget widget = Arts::Widget::_from_base(_temp_widget);
	long stretch = request->readLong();
	long align = request->readLong();
	((Arts::LayoutBox_skel *)object)->addWidget(widget,stretch,align);
}

// addWidget
static void _dispatch_Arts_LayoutBox_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_widget;
	Arts::readObject(*request,_temp_widget);
	Arts::Widget widget = Arts::Widget::_from_base(_temp_widget);
	long stretch = request->readLong();
	((Arts::LayoutBox_skel *)object)->addWidget(widget,stretch);
}

// addWidget
static void _dispatch_Arts_LayoutBox_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_widget;
	Arts::readObject(*request,_temp_widget);
	Arts::Widget widget = Arts::Widget::_from_base(_temp_widget);
	((Arts::LayoutBox_skel *)object)->addWidget(widget);
}

// insertWidget
static void _dispatch_Arts_LayoutBox_03(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long position = request->readLong();
	Arts::Widget_base* _temp_widget;
	Arts::readObject(*request,_temp_widget);
	Arts::Widget widget = Arts::Widget::_from_base(_temp_widget);
	long stretch = request->readLong();
	long align = request->readLong();
	((Arts::LayoutBox_skel *)object)->insertWidget(position,widget,stretch,align);
}

// insertWidget
static void _dispatch_Arts_LayoutBox_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long position = request->readLong();
	Arts::Widget_base* _temp_widget;
	Arts::readObject(*request,_temp_widget);
	Arts::Widget widget = Arts::Widget::_from_base(_temp_widget);
	long stretch = request->readLong();
	((Arts::LayoutBox_skel *)object)->insertWidget(position,widget,stretch);
}

// insertWidget
static void _dispatch_Arts_LayoutBox_05(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long position = request->readLong();
	Arts::Widget_base* _temp_widget;
	Arts::readObject(*request,_temp_widget);
	Arts::Widget widget = Arts::Widget::_from_base(_temp_widget);
	((Arts::LayoutBox_skel *)object)->insertWidget(position,widget);
}

// addStretch
static void _dispatch_Arts_LayoutBox_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long stretch = request->readLong();
	((Arts::LayoutBox_skel *)object)->addStretch(stretch);
}

// addStretch
static void _dispatch_Arts_LayoutBox_07(void *object, Arts::Buffer *, Arts::Buffer *)
{
	((Arts::LayoutBox_skel *)object)->addStretch();
}

// addSpace
static void _dispatch_Arts_LayoutBox_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long space = request->readLong();
	((Arts::LayoutBox_skel *)object)->addSpace(space);
}

// addStrut
static void _dispatch_Arts_LayoutBox_09(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long size = request->readLong();
	((Arts::LayoutBox_skel *)object)->addStrut(size);
}

// addSeparator
static void _dispatch_Arts_LayoutBox_10(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long stretch = request->readLong();
	long align = request->readLong();
	((Arts::LayoutBox_skel *)object)->addSeparator(stretch,align);
}

// addSeparator
static void _dispatch_Arts_LayoutBox_11(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long stretch = request->readLong();
	((Arts::LayoutBox_skel *)object)->addSeparator(stretch);
}

// addSeparator
static void _dispatch_Arts_LayoutBox_12(void *object, Arts::Buffer *, Arts::Buffer *)
{
	((Arts::LayoutBox_skel *)object)->addSeparator();
}

// addLine
static void _dispatch_Arts_LayoutBox_13(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long width = request->readLong();
	long space = request->readLong();
	long stretch = request->readLong();
	long align = request->readLong();
	((Arts::LayoutBox_skel *)object)->addLine(width,space,stretch,align);
}

// addLine
static void _dispatch_Arts_LayoutBox_14(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long width = request->readLong();
	long space = request->readLong();
	long stretch = request->readLong();
	((Arts::LayoutBox_skel *)object)->addLine(width,space,stretch);
}

// addLine
static void _dispatch_Arts_LayoutBox_15(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long width = request->readLong();
	long space = request->readLong();
	((Arts::LayoutBox_skel *)object)->addLine(width,space);
}

// _get_direction
static void _dispatch_Arts_LayoutBox_16(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LayoutBox_skel *)object)->direction());
}

// _set_direction
static void _dispatch_Arts_LayoutBox_17(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Direction newValue = (Arts::Direction)request->readLong();
	((Arts::LayoutBox_skel *)object)->direction(newValue);
}

// _get_spacing
static void _dispatch_Arts_LayoutBox_18(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LayoutBox_skel *)object)->spacing());
}

// _set_spacing
static void _dispatch_Arts_LayoutBox_19(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::LayoutBox_skel *)object)->spacing(newValue);
}

// _get_layoutmargin
static void _dispatch_Arts_LayoutBox_20(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LayoutBox_skel *)object)->layoutmargin());
}

// _set_layoutmargin
static void _dispatch_Arts_LayoutBox_21(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::LayoutBox_skel *)object)->layoutmargin(newValue);
}

void Arts::LayoutBox_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000a6164645769646765740000000005766f69640000000002"
        "000000030000000d417274733a3a57696467657400000000077769646765740000"
        "000000000000056c6f6e670000000008737472657463680000000000000000056c"
        "6f6e670000000006616c69676e0000000000000000000000000a61646457696467"
        "65740000000005766f69640000000002000000020000000d417274733a3a576964"
        "67657400000000077769646765740000000000000000056c6f6e67000000000873"
        "7472657463680000000000000000000000000a6164645769646765740000000005"
        "766f69640000000002000000010000000d417274733a3a57696467657400000000"
        "077769646765740000000000000000000000000d696e7365727457696467657400"
        "00000005766f6964000000000200000004000000056c6f6e670000000009706f73"
        "6974696f6e00000000000000000d417274733a3a57696467657400000000077769"
        "646765740000000000000000056c6f6e6700000000087374726574636800000000"
        "00000000056c6f6e670000000006616c69676e0000000000000000000000000d69"
        "6e736572745769646765740000000005766f696400000000020000000300000005"
        "6c6f6e670000000009706f736974696f6e00000000000000000d417274733a3a57"
        "696467657400000000077769646765740000000000000000056c6f6e6700000000"
        "08737472657463680000000000000000000000000d696e73657274576964676574"
        "0000000005766f6964000000000200000002000000056c6f6e670000000009706f"
        "736974696f6e00000000000000000d417274733a3a576964676574000000000777"
        "69646765740000000000000000000000000b616464537472657463680000000005"
        "766f6964000000000200000001000000056c6f6e67000000000873747265746368"
        "0000000000000000000000000b616464537472657463680000000005766f696400"
        "0000000200000000000000000000000961646453706163650000000005766f6964"
        "000000000200000001000000056c6f6e6700000000067370616365000000000000"
        "0000000000000961646453747275740000000005766f6964000000000200000001"
        "000000056c6f6e67000000000573697a650000000000000000000000000d616464"
        "536570617261746f720000000005766f6964000000000200000002000000056c6f"
        "6e670000000008737472657463680000000000000000056c6f6e67000000000661"
        "6c69676e0000000000000000000000000d616464536570617261746f7200000000"
        "05766f6964000000000200000001000000056c6f6e670000000008737472657463"
        "680000000000000000000000000d616464536570617261746f720000000005766f"
        "696400000000020000000000000000000000086164644c696e650000000005766f"
        "6964000000000200000004000000056c6f6e670000000006776964746800000000"
        "00000000056c6f6e67000000000673706163650000000000000000056c6f6e6700"
        "00000008737472657463680000000000000000056c6f6e670000000006616c6967"
        "6e000000000000000000000000086164644c696e650000000005766f6964000000"
        "000200000003000000056c6f6e6700000000067769647468000000000000000005"
        "6c6f6e67000000000673706163650000000000000000056c6f6e67000000000873"
        "747265746368000000000000000000000000086164644c696e650000000005766f"
        "6964000000000200000002000000056c6f6e670000000006776964746800000000"
        "00000000056c6f6e67000000000673706163650000000000000000000000000f5f"
        "6765745f646972656374696f6e0000000010417274733a3a446972656374696f6e"
        "000000000200000000000000000000000f5f7365745f646972656374696f6e0000"
        "000005766f696400000000020000000100000010417274733a3a44697265637469"
        "6f6e00000000096e657756616c75650000000000000000000000000d5f6765745f"
        "73706163696e6700000000056c6f6e67000000000200000000000000000000000d"
        "5f7365745f73706163696e670000000005766f6964000000000200000001000000"
        "056c6f6e6700000000096e657756616c7565000000000000000000000000125f67"
        "65745f6c61796f75746d617267696e00000000056c6f6e67000000000200000000"
        "00000000000000125f7365745f6c61796f75746d617267696e0000000005766f69"
        "64000000000200000001000000056c6f6e6700000000096e657756616c75650000"
        "00000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_LayoutBox_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_10,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_11,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_12,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_13,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_14,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_15,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_16,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_17,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_18,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_19,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_20,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LayoutBox_21,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::LayoutBox_skel::LayoutBox_skel()
{
}

Arts::Object_base* Arts::LayoutBox::_Creator() {
	return Arts::LayoutBox_base::_create();
}

unsigned long Arts::LayoutBox_base::_IID = Arts::MCOPUtils::makeIID("Arts::LayoutBox");

Arts::HBox_base *Arts::HBox_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::HBox_base *castedObject = (Arts::HBox_base *)skel->_cast(Arts::HBox_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::HBox_base *Arts::HBox_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::HBox_base::_fromReference(r,true);
	return 0;
}

Arts::HBox_base *Arts::HBox_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::HBox_base *castedObject = (Arts::HBox_base *)object._base()->_cast(Arts::HBox_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::HBox_base *Arts::HBox_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::HBox_base *result;
	result = (Arts::HBox_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::HBox");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::HBox_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::HBox")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::HBox_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::HBox_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::HBox_base::_cast(unsigned long iid)
{
	if(iid == Arts::HBox_base::_IID) return (Arts::HBox_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::HBox_stub::HBox_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::HBox_stub::HBox_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

long Arts::HBox_stub::spacing()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f73706163696e6700000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::HBox_stub::spacing(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f73706163696e670000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::HBox_skel::_interfaceName()
{
	return "Arts::HBox";
}

bool Arts::HBox_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::HBox") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::HBox_skel::_interfaceNameSkel()
{
	return "Arts::HBox";
}

// _get_spacing
static void _dispatch_Arts_HBox_00(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::HBox_skel *)object)->spacing());
}

// _set_spacing
static void _dispatch_Arts_HBox_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::HBox_skel *)object)->spacing(newValue);
}

void Arts::HBox_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000d5f6765745f73706163696e6700000000056c6f6e670000"
        "00000200000000000000000000000d5f7365745f73706163696e67000000000576"
        "6f6964000000000200000001000000056c6f6e6700000000096e657756616c7565"
        "000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_HBox_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_HBox_01,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::HBox_skel::HBox_skel()
{
}

Arts::Object_base* Arts::HBox::_Creator() {
	return Arts::HBox_base::_create();
}

unsigned long Arts::HBox_base::_IID = Arts::MCOPUtils::makeIID("Arts::HBox");

Arts::VBox_base *Arts::VBox_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::VBox_base *castedObject = (Arts::VBox_base *)skel->_cast(Arts::VBox_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::VBox_base *Arts::VBox_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::VBox_base::_fromReference(r,true);
	return 0;
}

Arts::VBox_base *Arts::VBox_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::VBox_base *castedObject = (Arts::VBox_base *)object._base()->_cast(Arts::VBox_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::VBox_base *Arts::VBox_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::VBox_base *result;
	result = (Arts::VBox_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::VBox");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::VBox_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::VBox")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::VBox_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::VBox_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::VBox_base::_cast(unsigned long iid)
{
	if(iid == Arts::VBox_base::_IID) return (Arts::VBox_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::VBox_stub::VBox_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::VBox_stub::VBox_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

long Arts::VBox_stub::spacing()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f73706163696e6700000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::VBox_stub::spacing(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f73706163696e670000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::VBox_skel::_interfaceName()
{
	return "Arts::VBox";
}

bool Arts::VBox_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::VBox") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::VBox_skel::_interfaceNameSkel()
{
	return "Arts::VBox";
}

// _get_spacing
static void _dispatch_Arts_VBox_00(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::VBox_skel *)object)->spacing());
}

// _set_spacing
static void _dispatch_Arts_VBox_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::VBox_skel *)object)->spacing(newValue);
}

void Arts::VBox_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000d5f6765745f73706163696e6700000000056c6f6e670000"
        "00000200000000000000000000000d5f7365745f73706163696e67000000000576"
        "6f6964000000000200000001000000056c6f6e6700000000096e657756616c7565"
        "000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_VBox_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VBox_01,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::VBox_skel::VBox_skel()
{
}

Arts::Object_base* Arts::VBox::_Creator() {
	return Arts::VBox_base::_create();
}

unsigned long Arts::VBox_base::_IID = Arts::MCOPUtils::makeIID("Arts::VBox");

Arts::PopupBox_base *Arts::PopupBox_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::PopupBox_base *castedObject = (Arts::PopupBox_base *)skel->_cast(Arts::PopupBox_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::PopupBox_base *Arts::PopupBox_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::PopupBox_base::_fromReference(r,true);
	return 0;
}

Arts::PopupBox_base *Arts::PopupBox_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::PopupBox_base *castedObject = (Arts::PopupBox_base *)object._base()->_cast(Arts::PopupBox_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::PopupBox_base *Arts::PopupBox_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::PopupBox_base *result;
	result = (Arts::PopupBox_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::PopupBox");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::PopupBox_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::PopupBox")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::PopupBox_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::PopupBox_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::PopupBox_base::_cast(unsigned long iid)
{
	if(iid == Arts::PopupBox_base::_IID) return (Arts::PopupBox_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::PopupBox_stub::PopupBox_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::PopupBox_stub::PopupBox_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

Arts::Direction Arts::PopupBox_stub::direction()
{
	long methodID = _lookupMethodFast("method:0000000f5f6765745f646972656374696f6e0000000010417274733a3a446972656374696f6e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::Direction)0; // error occurred
	Arts::Direction returnCode = (Arts::Direction)result->readLong();
	delete result;
	return returnCode;
}

void Arts::PopupBox_stub::direction(Arts::Direction newValue)
{
	long methodID = _lookupMethodFast("method:0000000f5f7365745f646972656374696f6e0000000005766f696400000000020000000100000010417274733a3a446972656374696f6e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::PopupBox_stub::name()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f6e616d650000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::PopupBox_stub::name(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f6e616d650000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::Widget Arts::PopupBox_stub::widget()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f776964676574000000000d417274733a3a57696467657400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if (!result) return Arts::Widget::null();
	Arts::Widget_base* returnCode;
	Arts::readObject(*result,returnCode);
	delete result;
	return Arts::Widget::_from_base(returnCode);
}

void Arts::PopupBox_stub::widget(Arts::Widget newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f7769646765740000000005766f69640000000002000000010000000d417274733a3a57696467657400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,newValue._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::PopupBox_skel::_interfaceName()
{
	return "Arts::PopupBox";
}

bool Arts::PopupBox_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::PopupBox") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::PopupBox_skel::_interfaceNameSkel()
{
	return "Arts::PopupBox";
}

// _get_direction
static void _dispatch_Arts_PopupBox_00(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::PopupBox_skel *)object)->direction());
}

// _set_direction
static void _dispatch_Arts_PopupBox_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Direction newValue = (Arts::Direction)request->readLong();
	((Arts::PopupBox_skel *)object)->direction(newValue);
}

// _get_name
static void _dispatch_Arts_PopupBox_02(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::PopupBox_skel *)object)->name());
}

// _set_name
static void _dispatch_Arts_PopupBox_03(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::PopupBox_skel *)object)->name(newValue);
}

// _get_widget
static void _dispatch_Arts_PopupBox_04(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	Arts::Widget returnCode = ((Arts::PopupBox_skel *)object)->widget();
	Arts::writeObject(*result,returnCode._base());
}

// _set_widget
static void _dispatch_Arts_PopupBox_05(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_newValue;
	Arts::readObject(*request,_temp_newValue);
	Arts::Widget newValue = Arts::Widget::_from_base(_temp_newValue);
	((Arts::PopupBox_skel *)object)->widget(newValue);
}

void Arts::PopupBox_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000f5f6765745f646972656374696f6e000000001041727473"
        "3a3a446972656374696f6e000000000200000000000000000000000f5f7365745f"
        "646972656374696f6e0000000005766f6964000000000200000001000000104172"
        "74733a3a446972656374696f6e00000000096e657756616c756500000000000000"
        "00000000000a5f6765745f6e616d650000000007737472696e6700000000020000"
        "0000000000000000000a5f7365745f6e616d650000000005766f69640000000002"
        "0000000100000007737472696e6700000000096e657756616c7565000000000000"
        "0000000000000c5f6765745f776964676574000000000d417274733a3a57696467"
        "6574000000000200000000000000000000000c5f7365745f776964676574000000"
        "0005766f69640000000002000000010000000d417274733a3a5769646765740000"
        "0000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_PopupBox_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_PopupBox_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_PopupBox_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_PopupBox_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_PopupBox_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_PopupBox_05,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::PopupBox_skel::PopupBox_skel()
{
}

Arts::Object_base* Arts::PopupBox::_Creator() {
	return Arts::PopupBox_base::_create();
}

unsigned long Arts::PopupBox_base::_IID = Arts::MCOPUtils::makeIID("Arts::PopupBox");

Arts::Button_base *Arts::Button_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Button_base *castedObject = (Arts::Button_base *)skel->_cast(Arts::Button_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Button_base *Arts::Button_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Button_base::_fromReference(r,true);
	return 0;
}

Arts::Button_base *Arts::Button_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Button_base *castedObject = (Arts::Button_base *)object._base()->_cast(Arts::Button_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Button_base *Arts::Button_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Button_base *result;
	result = (Arts::Button_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Button");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Button_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Button")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Button_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Button_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Button_base::_cast(unsigned long iid)
{
	if(iid == Arts::Button_base::_IID) return (Arts::Button_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Button_stub::Button_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Button_stub::Button_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::Button_stub::constructor(Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

void Arts::Button_stub::constructor(const std::string& text, Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f696400000000020000000200000007737472696e6700000000057465787400000000000000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(text);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Button_stub::text()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f746578740000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Button_stub::text(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f746578740000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

bool Arts::Button_stub::toggle()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f746f67676c650000000008626f6f6c65616e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return false; // error occurred
	bool returnCode = result->readBool();
	delete result;
	return returnCode;
}

void Arts::Button_stub::toggle(bool newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f746f67676c650000000005766f696400000000020000000100000008626f6f6c65616e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeBool(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

bool Arts::Button_stub::pressed()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f707265737365640000000008626f6f6c65616e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return false; // error occurred
	bool returnCode = result->readBool();
	delete result;
	return returnCode;
}

bool Arts::Button_stub::clicked()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f636c69636b65640000000008626f6f6c65616e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return false; // error occurred
	bool returnCode = result->readBool();
	delete result;
	return returnCode;
}

std::string Arts::Button_skel::_interfaceName()
{
	return "Arts::Button";
}

bool Arts::Button_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Button") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Button_skel::_interfaceNameSkel()
{
	return "Arts::Button";
}

// constructor
static void _dispatch_Arts_Button_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::Button_skel *)object)->constructor(parent);
}

// constructor
static void _dispatch_Arts_Button_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string text;
	request->readString(text);
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::Button_skel *)object)->constructor(text,parent);
}

// _get_text
static void _dispatch_Arts_Button_02(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Button_skel *)object)->text());
}

// _set_text
static void _dispatch_Arts_Button_03(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Button_skel *)object)->text(newValue);
}

// _get_toggle
static void _dispatch_Arts_Button_04(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeBool(((Arts::Button_skel *)object)->toggle());
}

// _set_toggle
static void _dispatch_Arts_Button_05(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	bool newValue = request->readBool();
	((Arts::Button_skel *)object)->toggle(newValue);
}

// _get_pressed
static void _dispatch_Arts_Button_06(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeBool(((Arts::Button_skel *)object)->pressed());
}

// _get_clicked
static void _dispatch_Arts_Button_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeBool(((Arts::Button_skel *)object)->clicked());
}

void Arts::Button_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "0002000000010000000d417274733a3a5769646765740000000007706172656e74"
        "0000000000000000000000000c636f6e7374727563746f720000000005766f6964"
        "00000000020000000200000007737472696e670000000005746578740000000000"
        "0000000d417274733a3a5769646765740000000007706172656e74000000000000"
        "0000000000000a5f6765745f746578740000000007737472696e67000000000200"
        "000000000000000000000a5f7365745f746578740000000005766f696400000000"
        "020000000100000007737472696e6700000000096e657756616c75650000000000"
        "000000000000000c5f6765745f746f67676c650000000008626f6f6c65616e0000"
        "00000200000000000000000000000c5f7365745f746f67676c650000000005766f"
        "696400000000020000000100000008626f6f6c65616e00000000096e657756616c"
        "75650000000000000000000000000d5f6765745f70726573736564000000000862"
        "6f6f6c65616e000000000200000000000000000000000d5f6765745f636c69636b"
        "65640000000008626f6f6c65616e00000000020000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Button_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Button_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Button_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Button_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Button_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Button_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Button_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Button_07,this,Arts::MethodDef(m));
	Arts::Widget_skel::_buildMethodTable();
}

Arts::Button_skel::Button_skel()
{
}

Arts::Object_base* Arts::Button::_Creator() {
	return Arts::Button_base::_create();
}

unsigned long Arts::Button_base::_IID = Arts::MCOPUtils::makeIID("Arts::Button");

Arts::Poti_base *Arts::Poti_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Poti_base *castedObject = (Arts::Poti_base *)skel->_cast(Arts::Poti_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Poti_base *Arts::Poti_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Poti_base::_fromReference(r,true);
	return 0;
}

Arts::Poti_base *Arts::Poti_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Poti_base *castedObject = (Arts::Poti_base *)object._base()->_cast(Arts::Poti_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Poti_base *Arts::Poti_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Poti_base *result;
	result = (Arts::Poti_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Poti");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Poti_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Poti")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Poti_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Poti_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Poti_base::_cast(unsigned long iid)
{
	if(iid == Arts::Poti_base::_IID) return (Arts::Poti_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Poti_stub::Poti_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Poti_stub::Poti_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

std::string Arts::Poti_stub::caption()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f63617074696f6e0000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Poti_stub::caption(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f63617074696f6e0000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Poti_stub::color()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f636f6c6f720000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Poti_stub::color(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f636f6c6f720000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Poti_stub::min()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d696e0000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Poti_stub::min(float newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d696e0000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Poti_stub::max()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d61780000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Poti_stub::max(float newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d61780000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Poti_stub::value()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f76616c75650000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Poti_stub::value(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f76616c75650000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Poti_stub::logarithmic()
{
	long methodID = _lookupMethodFast("method:000000115f6765745f6c6f6761726974686d69630000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Poti_stub::logarithmic(float newValue)
{
	long methodID = _lookupMethodFast("method:000000115f7365745f6c6f6761726974686d69630000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Poti_stub::range()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f72616e676500000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Poti_stub::range(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f72616e67650000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Poti_skel::_interfaceName()
{
	return "Arts::Poti";
}

bool Arts::Poti_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Poti") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Poti_skel::_interfaceNameSkel()
{
	return "Arts::Poti";
}

// _get_caption
static void _dispatch_Arts_Poti_00(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Poti_skel *)object)->caption());
}

// _set_caption
static void _dispatch_Arts_Poti_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Poti_skel *)object)->caption(newValue);
}

// _get_color
static void _dispatch_Arts_Poti_02(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Poti_skel *)object)->color());
}

// _set_color
static void _dispatch_Arts_Poti_03(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Poti_skel *)object)->color(newValue);
}

// _get_min
static void _dispatch_Arts_Poti_04(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Poti_skel *)object)->min());
}

// _set_min
static void _dispatch_Arts_Poti_05(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Poti_skel *)object)->min(newValue);
}

// _get_max
static void _dispatch_Arts_Poti_06(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Poti_skel *)object)->max());
}

// _set_max
static void _dispatch_Arts_Poti_07(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Poti_skel *)object)->max(newValue);
}

// _get_value
static void _dispatch_Arts_Poti_08(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Poti_skel *)object)->value());
}

// _set_value
static void _dispatch_Arts_Poti_09(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Poti_skel *)object)->value(newValue);
}

// _get_logarithmic
static void _dispatch_Arts_Poti_10(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Poti_skel *)object)->logarithmic());
}

// _set_logarithmic
static void _dispatch_Arts_Poti_11(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Poti_skel *)object)->logarithmic(newValue);
}

// _get_range
static void _dispatch_Arts_Poti_12(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Poti_skel *)object)->range());
}

// _set_range
static void _dispatch_Arts_Poti_13(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Poti_skel *)object)->range(newValue);
}

void Arts::Poti_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000d5f6765745f63617074696f6e0000000007737472696e67"
        "000000000200000000000000000000000d5f7365745f63617074696f6e00000000"
        "05766f696400000000020000000100000007737472696e6700000000096e657756"
        "616c75650000000000000000000000000b5f6765745f636f6c6f72000000000773"
        "7472696e67000000000200000000000000000000000b5f7365745f636f6c6f7200"
        "00000005766f696400000000020000000100000007737472696e6700000000096e"
        "657756616c7565000000000000000000000000095f6765745f6d696e0000000006"
        "666c6f617400000000020000000000000000000000095f7365745f6d696e000000"
        "0005766f696400000000020000000100000006666c6f617400000000096e657756"
        "616c7565000000000000000000000000095f6765745f6d61780000000006666c6f"
        "617400000000020000000000000000000000095f7365745f6d6178000000000576"
        "6f696400000000020000000100000006666c6f617400000000096e657756616c75"
        "650000000000000000000000000b5f6765745f76616c75650000000006666c6f61"
        "74000000000200000000000000000000000b5f7365745f76616c75650000000005"
        "766f696400000000020000000100000006666c6f617400000000096e657756616c"
        "7565000000000000000000000000115f6765745f6c6f6761726974686d69630000"
        "000006666c6f617400000000020000000000000000000000115f7365745f6c6f67"
        "61726974686d69630000000005766f696400000000020000000100000006666c6f"
        "617400000000096e657756616c75650000000000000000000000000b5f6765745f"
        "72616e676500000000056c6f6e67000000000200000000000000000000000b5f73"
        "65745f72616e67650000000005766f6964000000000200000001000000056c6f6e"
        "6700000000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Poti_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_10,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_11,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_12,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Poti_13,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::Poti_skel::Poti_skel()
{
}

Arts::Object_base* Arts::Poti::_Creator() {
	return Arts::Poti_base::_create();
}

unsigned long Arts::Poti_base::_IID = Arts::MCOPUtils::makeIID("Arts::Poti");

Arts::Fader_base *Arts::Fader_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Fader_base *castedObject = (Arts::Fader_base *)skel->_cast(Arts::Fader_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Fader_base *Arts::Fader_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Fader_base::_fromReference(r,true);
	return 0;
}

Arts::Fader_base *Arts::Fader_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Fader_base *castedObject = (Arts::Fader_base *)object._base()->_cast(Arts::Fader_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Fader_base *Arts::Fader_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Fader_base *result;
	result = (Arts::Fader_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Fader");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Fader_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Fader")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Fader_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Fader_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Fader_base::_cast(unsigned long iid)
{
	if(iid == Arts::Fader_base::_IID) return (Arts::Fader_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Fader_stub::Fader_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Fader_stub::Fader_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::Fader_stub::constructor(Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Fader_stub::caption()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f63617074696f6e0000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Fader_stub::caption(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f63617074696f6e0000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Fader_stub::color()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f636f6c6f720000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Fader_stub::color(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f636f6c6f720000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Fader_stub::min()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d696e0000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Fader_stub::min(float newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d696e0000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Fader_stub::max()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d61780000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Fader_stub::max(float newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d61780000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Fader_stub::value()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f76616c75650000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Fader_stub::value(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f76616c75650000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Fader_stub::logarithmic()
{
	long methodID = _lookupMethodFast("method:000000115f6765745f6c6f6761726974686d69630000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Fader_stub::logarithmic(float newValue)
{
	long methodID = _lookupMethodFast("method:000000115f7365745f6c6f6761726974686d69630000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Fader_skel::_interfaceName()
{
	return "Arts::Fader";
}

bool Arts::Fader_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Fader") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Fader_skel::_interfaceNameSkel()
{
	return "Arts::Fader";
}

// constructor
static void _dispatch_Arts_Fader_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::Fader_skel *)object)->constructor(parent);
}

// _get_caption
static void _dispatch_Arts_Fader_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Fader_skel *)object)->caption());
}

// _set_caption
static void _dispatch_Arts_Fader_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Fader_skel *)object)->caption(newValue);
}

// _get_color
static void _dispatch_Arts_Fader_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Fader_skel *)object)->color());
}

// _set_color
static void _dispatch_Arts_Fader_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Fader_skel *)object)->color(newValue);
}

// _get_min
static void _dispatch_Arts_Fader_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Fader_skel *)object)->min());
}

// _set_min
static void _dispatch_Arts_Fader_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Fader_skel *)object)->min(newValue);
}

// _get_max
static void _dispatch_Arts_Fader_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Fader_skel *)object)->max());
}

// _set_max
static void _dispatch_Arts_Fader_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Fader_skel *)object)->max(newValue);
}

// _get_value
static void _dispatch_Arts_Fader_09(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Fader_skel *)object)->value());
}

// _set_value
static void _dispatch_Arts_Fader_10(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Fader_skel *)object)->value(newValue);
}

// _get_logarithmic
static void _dispatch_Arts_Fader_11(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Fader_skel *)object)->logarithmic());
}

// _set_logarithmic
static void _dispatch_Arts_Fader_12(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Fader_skel *)object)->logarithmic(newValue);
}

void Arts::Fader_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "0002000000010000000d417274733a3a5769646765740000000007706172656e74"
        "0000000000000000000000000d5f6765745f63617074696f6e0000000007737472"
        "696e67000000000200000000000000000000000d5f7365745f63617074696f6e00"
        "00000005766f696400000000020000000100000007737472696e6700000000096e"
        "657756616c75650000000000000000000000000b5f6765745f636f6c6f72000000"
        "0007737472696e67000000000200000000000000000000000b5f7365745f636f6c"
        "6f720000000005766f696400000000020000000100000007737472696e67000000"
        "00096e657756616c7565000000000000000000000000095f6765745f6d696e0000"
        "000006666c6f617400000000020000000000000000000000095f7365745f6d696e"
        "0000000005766f696400000000020000000100000006666c6f617400000000096e"
        "657756616c7565000000000000000000000000095f6765745f6d61780000000006"
        "666c6f617400000000020000000000000000000000095f7365745f6d6178000000"
        "0005766f696400000000020000000100000006666c6f617400000000096e657756"
        "616c75650000000000000000000000000b5f6765745f76616c7565000000000666"
        "6c6f6174000000000200000000000000000000000b5f7365745f76616c75650000"
        "000005766f696400000000020000000100000006666c6f617400000000096e6577"
        "56616c7565000000000000000000000000115f6765745f6c6f6761726974686d69"
        "630000000006666c6f617400000000020000000000000000000000115f7365745f"
        "6c6f6761726974686d69630000000005766f696400000000020000000100000006"
        "666c6f617400000000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Fader_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_10,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_11,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Fader_12,this,Arts::MethodDef(m));
	Arts::Widget_skel::_buildMethodTable();
}

Arts::Fader_skel::Fader_skel()
{
}

Arts::Object_base* Arts::Fader::_Creator() {
	return Arts::Fader_base::_create();
}

unsigned long Arts::Fader_base::_IID = Arts::MCOPUtils::makeIID("Arts::Fader");

Arts::LineEdit_base *Arts::LineEdit_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::LineEdit_base *castedObject = (Arts::LineEdit_base *)skel->_cast(Arts::LineEdit_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::LineEdit_base *Arts::LineEdit_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::LineEdit_base::_fromReference(r,true);
	return 0;
}

Arts::LineEdit_base *Arts::LineEdit_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::LineEdit_base *castedObject = (Arts::LineEdit_base *)object._base()->_cast(Arts::LineEdit_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::LineEdit_base *Arts::LineEdit_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::LineEdit_base *result;
	result = (Arts::LineEdit_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::LineEdit");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::LineEdit_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::LineEdit")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::LineEdit_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::LineEdit_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::LineEdit_base::_cast(unsigned long iid)
{
	if(iid == Arts::LineEdit_base::_IID) return (Arts::LineEdit_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::LineEdit_stub::LineEdit_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::LineEdit_stub::LineEdit_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::LineEdit_stub::constructor(Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::LineEdit_stub::caption()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f63617074696f6e0000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::LineEdit_stub::caption(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f63617074696f6e0000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::LineEdit_stub::text()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f746578740000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::LineEdit_stub::text(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f746578740000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::LineEdit_skel::_interfaceName()
{
	return "Arts::LineEdit";
}

bool Arts::LineEdit_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::LineEdit") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::LineEdit_skel::_interfaceNameSkel()
{
	return "Arts::LineEdit";
}

// constructor
static void _dispatch_Arts_LineEdit_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::LineEdit_skel *)object)->constructor(parent);
}

// _get_caption
static void _dispatch_Arts_LineEdit_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::LineEdit_skel *)object)->caption());
}

// _set_caption
static void _dispatch_Arts_LineEdit_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::LineEdit_skel *)object)->caption(newValue);
}

// _get_text
static void _dispatch_Arts_LineEdit_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::LineEdit_skel *)object)->text());
}

// _set_text
static void _dispatch_Arts_LineEdit_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::LineEdit_skel *)object)->text(newValue);
}

void Arts::LineEdit_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "0002000000010000000d417274733a3a5769646765740000000007706172656e74"
        "0000000000000000000000000d5f6765745f63617074696f6e0000000007737472"
        "696e67000000000200000000000000000000000d5f7365745f63617074696f6e00"
        "00000005766f696400000000020000000100000007737472696e6700000000096e"
        "657756616c75650000000000000000000000000a5f6765745f7465787400000000"
        "07737472696e67000000000200000000000000000000000a5f7365745f74657874"
        "0000000005766f696400000000020000000100000007737472696e670000000009"
        "6e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_LineEdit_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LineEdit_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LineEdit_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LineEdit_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LineEdit_04,this,Arts::MethodDef(m));
	Arts::Widget_skel::_buildMethodTable();
}

Arts::LineEdit_skel::LineEdit_skel()
{
}

Arts::Object_base* Arts::LineEdit::_Creator() {
	return Arts::LineEdit_base::_create();
}

unsigned long Arts::LineEdit_base::_IID = Arts::MCOPUtils::makeIID("Arts::LineEdit");

Arts::SpinBox_base *Arts::SpinBox_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::SpinBox_base *castedObject = (Arts::SpinBox_base *)skel->_cast(Arts::SpinBox_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::SpinBox_base *Arts::SpinBox_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::SpinBox_base::_fromReference(r,true);
	return 0;
}

Arts::SpinBox_base *Arts::SpinBox_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::SpinBox_base *castedObject = (Arts::SpinBox_base *)object._base()->_cast(Arts::SpinBox_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::SpinBox_base *Arts::SpinBox_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::SpinBox_base *result;
	result = (Arts::SpinBox_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::SpinBox");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::SpinBox_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::SpinBox")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::SpinBox_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::SpinBox_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::SpinBox_base::_cast(unsigned long iid)
{
	if(iid == Arts::SpinBox_base::_IID) return (Arts::SpinBox_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::SpinBox_stub::SpinBox_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::SpinBox_stub::SpinBox_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::SpinBox_stub::constructor(Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::SpinBox_stub::caption()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f63617074696f6e0000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::SpinBox_stub::caption(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f63617074696f6e0000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::SpinBox_stub::min()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d696e00000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::SpinBox_stub::min(long newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d696e0000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::SpinBox_stub::max()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d617800000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::SpinBox_stub::max(long newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d61780000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::SpinBox_stub::value()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f76616c756500000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::SpinBox_stub::value(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f76616c75650000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::SpinBox_skel::_interfaceName()
{
	return "Arts::SpinBox";
}

bool Arts::SpinBox_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::SpinBox") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::SpinBox_skel::_interfaceNameSkel()
{
	return "Arts::SpinBox";
}

// constructor
static void _dispatch_Arts_SpinBox_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::SpinBox_skel *)object)->constructor(parent);
}

// _get_caption
static void _dispatch_Arts_SpinBox_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::SpinBox_skel *)object)->caption());
}

// _set_caption
static void _dispatch_Arts_SpinBox_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::SpinBox_skel *)object)->caption(newValue);
}

// _get_min
static void _dispatch_Arts_SpinBox_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::SpinBox_skel *)object)->min());
}

// _set_min
static void _dispatch_Arts_SpinBox_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::SpinBox_skel *)object)->min(newValue);
}

// _get_max
static void _dispatch_Arts_SpinBox_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::SpinBox_skel *)object)->max());
}

// _set_max
static void _dispatch_Arts_SpinBox_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::SpinBox_skel *)object)->max(newValue);
}

// _get_value
static void _dispatch_Arts_SpinBox_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::SpinBox_skel *)object)->value());
}

// _set_value
static void _dispatch_Arts_SpinBox_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::SpinBox_skel *)object)->value(newValue);
}

void Arts::SpinBox_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "0002000000010000000d417274733a3a5769646765740000000007706172656e74"
        "0000000000000000000000000d5f6765745f63617074696f6e0000000007737472"
        "696e67000000000200000000000000000000000d5f7365745f63617074696f6e00"
        "00000005766f696400000000020000000100000007737472696e6700000000096e"
        "657756616c7565000000000000000000000000095f6765745f6d696e0000000005"
        "6c6f6e6700000000020000000000000000000000095f7365745f6d696e00000000"
        "05766f6964000000000200000001000000056c6f6e6700000000096e657756616c"
        "7565000000000000000000000000095f6765745f6d617800000000056c6f6e6700"
        "000000020000000000000000000000095f7365745f6d61780000000005766f6964"
        "000000000200000001000000056c6f6e6700000000096e657756616c7565000000"
        "0000000000000000000b5f6765745f76616c756500000000056c6f6e6700000000"
        "0200000000000000000000000b5f7365745f76616c75650000000005766f696400"
        "0000000200000001000000056c6f6e6700000000096e657756616c756500000000"
        "0000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_SpinBox_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_SpinBox_08,this,Arts::MethodDef(m));
	Arts::Widget_skel::_buildMethodTable();
}

Arts::SpinBox_skel::SpinBox_skel()
{
}

Arts::Object_base* Arts::SpinBox::_Creator() {
	return Arts::SpinBox_base::_create();
}

unsigned long Arts::SpinBox_base::_IID = Arts::MCOPUtils::makeIID("Arts::SpinBox");

Arts::ComboBox_base *Arts::ComboBox_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::ComboBox_base *castedObject = (Arts::ComboBox_base *)skel->_cast(Arts::ComboBox_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::ComboBox_base *Arts::ComboBox_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::ComboBox_base::_fromReference(r,true);
	return 0;
}

Arts::ComboBox_base *Arts::ComboBox_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::ComboBox_base *castedObject = (Arts::ComboBox_base *)object._base()->_cast(Arts::ComboBox_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::ComboBox_base *Arts::ComboBox_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::ComboBox_base *result;
	result = (Arts::ComboBox_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::ComboBox");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::ComboBox_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::ComboBox")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::ComboBox_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::ComboBox_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::ComboBox_base::_cast(unsigned long iid)
{
	if(iid == Arts::ComboBox_base::_IID) return (Arts::ComboBox_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::ComboBox_stub::ComboBox_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::ComboBox_stub::ComboBox_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::ComboBox_stub::constructor(Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::ComboBox_stub::caption()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f63617074696f6e0000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::ComboBox_stub::caption(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f63617074696f6e0000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::vector<std::string> * Arts::ComboBox_stub::choices()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f63686f6963657300000000082a737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	std::vector<std::string> *_returnCode = new std::vector<std::string>;
	if(!result) return _returnCode; // error occurred
	result->readStringSeq(*_returnCode);
	delete result;
	return _returnCode;
}

void Arts::ComboBox_stub::choices(const std::vector<std::string>& newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f63686f696365730000000005766f6964000000000200000001000000082a737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeStringSeq(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::ComboBox_stub::value()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f76616c75650000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::ComboBox_stub::value(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f76616c75650000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::ComboBox_skel::_interfaceName()
{
	return "Arts::ComboBox";
}

bool Arts::ComboBox_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::ComboBox") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::ComboBox_skel::_interfaceNameSkel()
{
	return "Arts::ComboBox";
}

// constructor
static void _dispatch_Arts_ComboBox_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::ComboBox_skel *)object)->constructor(parent);
}

// _get_caption
static void _dispatch_Arts_ComboBox_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::ComboBox_skel *)object)->caption());
}

// _set_caption
static void _dispatch_Arts_ComboBox_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::ComboBox_skel *)object)->caption(newValue);
}

// _get_choices
static void _dispatch_Arts_ComboBox_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	std::vector<std::string> *_returnCode = ((Arts::ComboBox_skel *)object)->choices();
	result->writeStringSeq(*_returnCode);
	delete _returnCode;
}

// _set_choices
static void _dispatch_Arts_ComboBox_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::vector<std::string> newValue;
	request->readStringSeq(newValue);
	((Arts::ComboBox_skel *)object)->choices(newValue);
}

// _get_value
static void _dispatch_Arts_ComboBox_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::ComboBox_skel *)object)->value());
}

// _set_value
static void _dispatch_Arts_ComboBox_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::ComboBox_skel *)object)->value(newValue);
}

void Arts::ComboBox_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "0002000000010000000d417274733a3a5769646765740000000007706172656e74"
        "0000000000000000000000000d5f6765745f63617074696f6e0000000007737472"
        "696e67000000000200000000000000000000000d5f7365745f63617074696f6e00"
        "00000005766f696400000000020000000100000007737472696e6700000000096e"
        "657756616c75650000000000000000000000000d5f6765745f63686f6963657300"
        "000000082a737472696e67000000000200000000000000000000000d5f7365745f"
        "63686f696365730000000005766f6964000000000200000001000000082a737472"
        "696e6700000000096e657756616c75650000000000000000000000000b5f676574"
        "5f76616c75650000000007737472696e6700000000020000000000000000000000"
        "0b5f7365745f76616c75650000000005766f696400000000020000000100000007"
        "737472696e6700000000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_ComboBox_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_ComboBox_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_ComboBox_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_ComboBox_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_ComboBox_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_ComboBox_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_ComboBox_06,this,Arts::MethodDef(m));
	Arts::Widget_skel::_buildMethodTable();
}

Arts::ComboBox_skel::ComboBox_skel()
{
}

Arts::Object_base* Arts::ComboBox::_Creator() {
	return Arts::ComboBox_base::_create();
}

unsigned long Arts::ComboBox_base::_IID = Arts::MCOPUtils::makeIID("Arts::ComboBox");

Arts::Graph_base *Arts::Graph_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Graph_base *castedObject = (Arts::Graph_base *)skel->_cast(Arts::Graph_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Graph_base *Arts::Graph_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Graph_base::_fromReference(r,true);
	return 0;
}

Arts::Graph_base *Arts::Graph_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Graph_base *castedObject = (Arts::Graph_base *)object._base()->_cast(Arts::Graph_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Graph_base *Arts::Graph_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Graph_base *result;
	result = (Arts::Graph_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Graph");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Graph_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Graph")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Graph_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Graph_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Graph_base::_cast(unsigned long iid)
{
	if(iid == Arts::Graph_base::_IID) return (Arts::Graph_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Graph_stub::Graph_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Graph_stub::Graph_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::Graph_stub::constructor(Arts::Widget parent)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f69640000000002000000010000000d417274733a3a5769646765740000000007706172656e74000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,parent._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Graph_stub::caption()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f63617074696f6e0000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Graph_stub::caption(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f63617074696f6e0000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Graph_stub::minx()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f6d696e780000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Graph_stub::minx(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f6d696e780000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Graph_stub::maxx()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f6d6178780000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Graph_stub::maxx(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f6d6178780000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Graph_stub::miny()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f6d696e790000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Graph_stub::miny(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f6d696e790000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Graph_stub::maxy()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f6d6178790000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Graph_stub::maxy(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f6d6178790000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Graph_skel::_interfaceName()
{
	return "Arts::Graph";
}

bool Arts::Graph_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Graph") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Graph_skel::_interfaceNameSkel()
{
	return "Arts::Graph";
}

// constructor
static void _dispatch_Arts_Graph_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Widget_base* _temp_parent;
	Arts::readObject(*request,_temp_parent);
	Arts::Widget parent = Arts::Widget::_from_base(_temp_parent);
	((Arts::Graph_skel *)object)->constructor(parent);
}

// _get_caption
static void _dispatch_Arts_Graph_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Graph_skel *)object)->caption());
}

// _set_caption
static void _dispatch_Arts_Graph_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Graph_skel *)object)->caption(newValue);
}

// _get_minx
static void _dispatch_Arts_Graph_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Graph_skel *)object)->minx());
}

// _set_minx
static void _dispatch_Arts_Graph_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Graph_skel *)object)->minx(newValue);
}

// _get_maxx
static void _dispatch_Arts_Graph_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Graph_skel *)object)->maxx());
}

// _set_maxx
static void _dispatch_Arts_Graph_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Graph_skel *)object)->maxx(newValue);
}

// _get_miny
static void _dispatch_Arts_Graph_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Graph_skel *)object)->miny());
}

// _set_miny
static void _dispatch_Arts_Graph_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Graph_skel *)object)->miny(newValue);
}

// _get_maxy
static void _dispatch_Arts_Graph_09(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Graph_skel *)object)->maxy());
}

// _set_maxy
static void _dispatch_Arts_Graph_10(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Graph_skel *)object)->maxy(newValue);
}

void Arts::Graph_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "0002000000010000000d417274733a3a5769646765740000000007706172656e74"
        "0000000000000000000000000d5f6765745f63617074696f6e0000000007737472"
        "696e67000000000200000000000000000000000d5f7365745f63617074696f6e00"
        "00000005766f696400000000020000000100000007737472696e6700000000096e"
        "657756616c75650000000000000000000000000a5f6765745f6d696e7800000000"
        "06666c6f6174000000000200000000000000000000000a5f7365745f6d696e7800"
        "00000005766f696400000000020000000100000006666c6f617400000000096e65"
        "7756616c75650000000000000000000000000a5f6765745f6d6178780000000006"
        "666c6f6174000000000200000000000000000000000a5f7365745f6d6178780000"
        "000005766f696400000000020000000100000006666c6f617400000000096e6577"
        "56616c75650000000000000000000000000a5f6765745f6d696e79000000000666"
        "6c6f6174000000000200000000000000000000000a5f7365745f6d696e79000000"
        "0005766f696400000000020000000100000006666c6f617400000000096e657756"
        "616c75650000000000000000000000000a5f6765745f6d6178790000000006666c"
        "6f6174000000000200000000000000000000000a5f7365745f6d61787900000000"
        "05766f696400000000020000000100000006666c6f617400000000096e65775661"
        "6c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Graph_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Graph_10,this,Arts::MethodDef(m));
	Arts::Widget_skel::_buildMethodTable();
}

Arts::Graph_skel::Graph_skel()
{
}

Arts::Object_base* Arts::Graph::_Creator() {
	return Arts::Graph_base::_create();
}

unsigned long Arts::Graph_base::_IID = Arts::MCOPUtils::makeIID("Arts::Graph");

Arts::GraphLine_base *Arts::GraphLine_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::GraphLine_base *castedObject = (Arts::GraphLine_base *)skel->_cast(Arts::GraphLine_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::GraphLine_base *Arts::GraphLine_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::GraphLine_base::_fromReference(r,true);
	return 0;
}

Arts::GraphLine_base *Arts::GraphLine_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::GraphLine_base *castedObject = (Arts::GraphLine_base *)object._base()->_cast(Arts::GraphLine_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::GraphLine_base *Arts::GraphLine_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::GraphLine_base *result;
	result = (Arts::GraphLine_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::GraphLine");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::GraphLine_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::GraphLine")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::GraphLine_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::GraphLine_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::GraphLine_base::_cast(unsigned long iid)
{
	if(iid == Arts::GraphLine_base::_IID) return (Arts::GraphLine_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::GraphLine_stub::GraphLine_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::GraphLine_stub::GraphLine_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

Arts::Graph Arts::GraphLine_stub::graph()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f6772617068000000000c417274733a3a477261706800000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if (!result) return Arts::Graph::null();
	Arts::Graph_base* returnCode;
	Arts::readObject(*result,returnCode);
	delete result;
	return Arts::Graph::_from_base(returnCode);
}

void Arts::GraphLine_stub::graph(Arts::Graph newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f67726170680000000005766f69640000000002000000010000000c417274733a3a477261706800000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,newValue._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

bool Arts::GraphLine_stub::editable()
{
	long methodID = _lookupMethodFast("method:0000000e5f6765745f6564697461626c650000000008626f6f6c65616e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return false; // error occurred
	bool returnCode = result->readBool();
	delete result;
	return returnCode;
}

void Arts::GraphLine_stub::editable(bool newValue)
{
	long methodID = _lookupMethodFast("method:0000000e5f7365745f6564697461626c650000000005766f696400000000020000000100000008626f6f6c65616e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeBool(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::GraphLine_stub::color()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f636f6c6f720000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::GraphLine_stub::color(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f636f6c6f720000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::vector<Arts::GraphPoint> * Arts::GraphLine_stub::points()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f706f696e747300000000122a417274733a3a4772617068506f696e7400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	std::vector<Arts::GraphPoint> *_returnCode = new std::vector<Arts::GraphPoint>;
	if(!result) return _returnCode; // error occurred
	Arts::readTypeSeq(*result,*_returnCode);
	delete result;
	return _returnCode;
}

void Arts::GraphLine_stub::points(const std::vector<Arts::GraphPoint>& newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f706f696e74730000000005766f6964000000000200000001000000122a417274733a3a4772617068506f696e7400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeTypeSeq(*request,newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::GraphLine_skel::_interfaceName()
{
	return "Arts::GraphLine";
}

bool Arts::GraphLine_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::GraphLine") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::GraphLine_skel::_interfaceNameSkel()
{
	return "Arts::GraphLine";
}

// _get_graph
static void _dispatch_Arts_GraphLine_00(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	Arts::Graph returnCode = ((Arts::GraphLine_skel *)object)->graph();
	Arts::writeObject(*result,returnCode._base());
}

// _set_graph
static void _dispatch_Arts_GraphLine_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Graph_base* _temp_newValue;
	Arts::readObject(*request,_temp_newValue);
	Arts::Graph newValue = Arts::Graph::_from_base(_temp_newValue);
	((Arts::GraphLine_skel *)object)->graph(newValue);
}

// _get_editable
static void _dispatch_Arts_GraphLine_02(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeBool(((Arts::GraphLine_skel *)object)->editable());
}

// _set_editable
static void _dispatch_Arts_GraphLine_03(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	bool newValue = request->readBool();
	((Arts::GraphLine_skel *)object)->editable(newValue);
}

// _get_color
static void _dispatch_Arts_GraphLine_04(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::GraphLine_skel *)object)->color());
}

// _set_color
static void _dispatch_Arts_GraphLine_05(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::GraphLine_skel *)object)->color(newValue);
}

// _get_points
static void _dispatch_Arts_GraphLine_06(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	std::vector<Arts::GraphPoint> *_returnCode = ((Arts::GraphLine_skel *)object)->points();
	Arts::writeTypeSeq(*result,*_returnCode);
	delete _returnCode;
}

// _set_points
static void _dispatch_Arts_GraphLine_07(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::vector<Arts::GraphPoint> newValue;
	Arts::readTypeSeq(*request,newValue);
	((Arts::GraphLine_skel *)object)->points(newValue);
}

void Arts::GraphLine_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000b5f6765745f6772617068000000000c417274733a3a4772"
        "617068000000000200000000000000000000000b5f7365745f6772617068000000"
        "0005766f69640000000002000000010000000c417274733a3a4772617068000000"
        "00096e657756616c75650000000000000000000000000e5f6765745f6564697461"
        "626c650000000008626f6f6c65616e000000000200000000000000000000000e5f"
        "7365745f6564697461626c650000000005766f6964000000000200000001000000"
        "08626f6f6c65616e00000000096e657756616c7565000000000000000000000000"
        "0b5f6765745f636f6c6f720000000007737472696e670000000002000000000000"
        "00000000000b5f7365745f636f6c6f720000000005766f69640000000002000000"
        "0100000007737472696e6700000000096e657756616c7565000000000000000000"
        "0000000c5f6765745f706f696e747300000000122a417274733a3a477261706850"
        "6f696e74000000000200000000000000000000000c5f7365745f706f696e747300"
        "00000005766f6964000000000200000001000000122a417274733a3a4772617068"
        "506f696e7400000000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_GraphLine_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_GraphLine_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_GraphLine_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_GraphLine_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_GraphLine_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_GraphLine_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_GraphLine_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_GraphLine_07,this,Arts::MethodDef(m));
}

Arts::GraphLine_skel::GraphLine_skel()
{
}

Arts::Object_base* Arts::GraphLine::_Creator() {
	return Arts::GraphLine_base::_create();
}

unsigned long Arts::GraphLine_base::_IID = Arts::MCOPUtils::makeIID("Arts::GraphLine");

Arts::Label_base *Arts::Label_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Label_base *castedObject = (Arts::Label_base *)skel->_cast(Arts::Label_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Label_base *Arts::Label_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Label_base::_fromReference(r,true);
	return 0;
}

Arts::Label_base *Arts::Label_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Label_base *castedObject = (Arts::Label_base *)object._base()->_cast(Arts::Label_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Label_base *Arts::Label_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Label_base *result;
	result = (Arts::Label_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Label");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Label_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Label")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Label_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Label_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Label_base::_cast(unsigned long iid)
{
	if(iid == Arts::Label_base::_IID) return (Arts::Label_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Label_stub::Label_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Label_stub::Label_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

std::string Arts::Label_stub::text()
{
	long methodID = _lookupMethodFast("method:0000000a5f6765745f746578740000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Label_stub::text(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:0000000a5f7365745f746578740000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Label_stub::align()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f616c69676e00000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Label_stub::align(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f616c69676e0000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Label_stub::fontsize()
{
	long methodID = _lookupMethodFast("method:0000000e5f6765745f666f6e7473697a6500000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Label_stub::fontsize(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000e5f7365745f666f6e7473697a650000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Label_stub::fontfamily()
{
	long methodID = _lookupMethodFast("method:000000105f6765745f666f6e7466616d696c790000000007737472696e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return""; // error occurred
	std::string returnCode;
	result->readString(returnCode);
	delete result;
	return returnCode;
}

void Arts::Label_stub::fontfamily(const std::string& newValue)
{
	long methodID = _lookupMethodFast("method:000000105f7365745f666f6e7466616d696c790000000005766f696400000000020000000100000007737472696e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeString(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::TextBottom Arts::Label_stub::bottom()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f626f74746f6d0000000011417274733a3a54657874426f74746f6d00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::TextBottom)0; // error occurred
	Arts::TextBottom returnCode = (Arts::TextBottom)result->readLong();
	delete result;
	return returnCode;
}

void Arts::Label_stub::bottom(Arts::TextBottom newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f626f74746f6d0000000005766f696400000000020000000100000011417274733a3a54657874426f74746f6d00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Label_skel::_interfaceName()
{
	return "Arts::Label";
}

bool Arts::Label_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Label") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Label_skel::_interfaceNameSkel()
{
	return "Arts::Label";
}

// _get_text
static void _dispatch_Arts_Label_00(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Label_skel *)object)->text());
}

// _set_text
static void _dispatch_Arts_Label_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Label_skel *)object)->text(newValue);
}

// _get_align
static void _dispatch_Arts_Label_02(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Label_skel *)object)->align());
}

// _set_align
static void _dispatch_Arts_Label_03(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Label_skel *)object)->align(newValue);
}

// _get_fontsize
static void _dispatch_Arts_Label_04(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Label_skel *)object)->fontsize());
}

// _set_fontsize
static void _dispatch_Arts_Label_05(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Label_skel *)object)->fontsize(newValue);
}

// _get_fontfamily
static void _dispatch_Arts_Label_06(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeString(((Arts::Label_skel *)object)->fontfamily());
}

// _set_fontfamily
static void _dispatch_Arts_Label_07(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	std::string newValue;
	request->readString(newValue);
	((Arts::Label_skel *)object)->fontfamily(newValue);
}

// _get_bottom
static void _dispatch_Arts_Label_08(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Label_skel *)object)->bottom());
}

// _set_bottom
static void _dispatch_Arts_Label_09(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::TextBottom newValue = (Arts::TextBottom)request->readLong();
	((Arts::Label_skel *)object)->bottom(newValue);
}

void Arts::Label_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000a5f6765745f746578740000000007737472696e67000000"
        "000200000000000000000000000a5f7365745f746578740000000005766f696400"
        "000000020000000100000007737472696e6700000000096e657756616c75650000"
        "000000000000000000000b5f6765745f616c69676e00000000056c6f6e67000000"
        "000200000000000000000000000b5f7365745f616c69676e0000000005766f6964"
        "000000000200000001000000056c6f6e6700000000096e657756616c7565000000"
        "0000000000000000000e5f6765745f666f6e7473697a6500000000056c6f6e6700"
        "0000000200000000000000000000000e5f7365745f666f6e7473697a6500000000"
        "05766f6964000000000200000001000000056c6f6e6700000000096e657756616c"
        "7565000000000000000000000000105f6765745f666f6e7466616d696c79000000"
        "0007737472696e6700000000020000000000000000000000105f7365745f666f6e"
        "7466616d696c790000000005766f69640000000002000000010000000773747269"
        "6e6700000000096e657756616c75650000000000000000000000000c5f6765745f"
        "626f74746f6d0000000011417274733a3a54657874426f74746f6d000000000200"
        "000000000000000000000c5f7365745f626f74746f6d0000000005766f69640000"
        "0000020000000100000011417274733a3a54657874426f74746f6d00000000096e"
        "657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Label_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Label_09,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::Label_skel::Label_skel()
{
}

Arts::Object_base* Arts::Label::_Creator() {
	return Arts::Label_base::_create();
}

unsigned long Arts::Label_base::_IID = Arts::MCOPUtils::makeIID("Arts::Label");

Arts::LevelMeter_base *Arts::LevelMeter_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::LevelMeter_base *castedObject = (Arts::LevelMeter_base *)skel->_cast(Arts::LevelMeter_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::LevelMeter_base *Arts::LevelMeter_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::LevelMeter_base::_fromReference(r,true);
	return 0;
}

Arts::LevelMeter_base *Arts::LevelMeter_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::LevelMeter_base *castedObject = (Arts::LevelMeter_base *)object._base()->_cast(Arts::LevelMeter_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::LevelMeter_base *Arts::LevelMeter_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::LevelMeter_base *result;
	result = (Arts::LevelMeter_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::LevelMeter");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::LevelMeter_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::LevelMeter")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::LevelMeter_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::LevelMeter_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::LevelMeter_base::_cast(unsigned long iid)
{
	if(iid == Arts::LevelMeter_base::_IID) return (Arts::LevelMeter_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::LevelMeter_stub::LevelMeter_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::LevelMeter_stub::LevelMeter_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

Arts::LevelMeterStyle Arts::LevelMeter_stub::style()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f7374796c650000000016417274733a3a4c6576656c4d657465725374796c6500000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::LevelMeterStyle)0; // error occurred
	Arts::LevelMeterStyle returnCode = (Arts::LevelMeterStyle)result->readLong();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::style(Arts::LevelMeterStyle newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f7374796c650000000005766f696400000000020000000100000016417274733a3a4c6576656c4d657465725374796c6500000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::LevelMeter_stub::substyle()
{
	long methodID = _lookupMethodFast("method:0000000e5f6765745f7375627374796c6500000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::substyle(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000e5f7365745f7375627374796c650000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::LevelMeter_stub::count()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f636f756e7400000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::count(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f636f756e740000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::LevelMeter_stub::peakfalloff()
{
	long methodID = _lookupMethodFast("method:000000115f6765745f7065616b66616c6c6f666600000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::peakfalloff(long newValue)
{
	long methodID = _lookupMethodFast("method:000000115f7365745f7065616b66616c6c6f66660000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::LevelMeter_stub::mindB()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f6d696e64420000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::mindB(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f6d696e64420000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::LevelMeter_stub::maxdB()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f6d617864420000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::maxdB(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f6d617864420000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::LevelMeter_stub::invalue()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f696e76616c75650000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::invalue(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f696e76616c75650000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::Direction Arts::LevelMeter_stub::direction()
{
	long methodID = _lookupMethodFast("method:0000000f5f6765745f646972656374696f6e0000000010417274733a3a446972656374696f6e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::Direction)0; // error occurred
	Arts::Direction returnCode = (Arts::Direction)result->readLong();
	delete result;
	return returnCode;
}

void Arts::LevelMeter_stub::direction(Arts::Direction newValue)
{
	long methodID = _lookupMethodFast("method:0000000f5f7365745f646972656374696f6e0000000005766f696400000000020000000100000010417274733a3a446972656374696f6e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::LevelMeter_skel::_interfaceName()
{
	return "Arts::LevelMeter";
}

bool Arts::LevelMeter_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::LevelMeter") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::LevelMeter_skel::_interfaceNameSkel()
{
	return "Arts::LevelMeter";
}

// _get_style
static void _dispatch_Arts_LevelMeter_00(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LevelMeter_skel *)object)->style());
}

// _set_style
static void _dispatch_Arts_LevelMeter_01(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::LevelMeterStyle newValue = (Arts::LevelMeterStyle)request->readLong();
	((Arts::LevelMeter_skel *)object)->style(newValue);
}

// _get_substyle
static void _dispatch_Arts_LevelMeter_02(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LevelMeter_skel *)object)->substyle());
}

// _set_substyle
static void _dispatch_Arts_LevelMeter_03(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::LevelMeter_skel *)object)->substyle(newValue);
}

// _get_count
static void _dispatch_Arts_LevelMeter_04(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LevelMeter_skel *)object)->count());
}

// _set_count
static void _dispatch_Arts_LevelMeter_05(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::LevelMeter_skel *)object)->count(newValue);
}

// _get_peakfalloff
static void _dispatch_Arts_LevelMeter_06(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LevelMeter_skel *)object)->peakfalloff());
}

// _set_peakfalloff
static void _dispatch_Arts_LevelMeter_07(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::LevelMeter_skel *)object)->peakfalloff(newValue);
}

// _get_mindB
static void _dispatch_Arts_LevelMeter_08(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::LevelMeter_skel *)object)->mindB());
}

// _set_mindB
static void _dispatch_Arts_LevelMeter_09(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::LevelMeter_skel *)object)->mindB(newValue);
}

// _get_maxdB
static void _dispatch_Arts_LevelMeter_10(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::LevelMeter_skel *)object)->maxdB());
}

// _set_maxdB
static void _dispatch_Arts_LevelMeter_11(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::LevelMeter_skel *)object)->maxdB(newValue);
}

// _get_invalue
static void _dispatch_Arts_LevelMeter_12(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::LevelMeter_skel *)object)->invalue());
}

// _set_invalue
static void _dispatch_Arts_LevelMeter_13(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::LevelMeter_skel *)object)->invalue(newValue);
}

// _get_direction
static void _dispatch_Arts_LevelMeter_14(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::LevelMeter_skel *)object)->direction());
}

// _set_direction
static void _dispatch_Arts_LevelMeter_15(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Direction newValue = (Arts::Direction)request->readLong();
	((Arts::LevelMeter_skel *)object)->direction(newValue);
}

void Arts::LevelMeter_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000b5f6765745f7374796c650000000016417274733a3a4c65"
        "76656c4d657465725374796c65000000000200000000000000000000000b5f7365"
        "745f7374796c650000000005766f69640000000002000000010000001641727473"
        "3a3a4c6576656c4d657465725374796c6500000000096e657756616c7565000000"
        "0000000000000000000e5f6765745f7375627374796c6500000000056c6f6e6700"
        "0000000200000000000000000000000e5f7365745f7375627374796c6500000000"
        "05766f6964000000000200000001000000056c6f6e6700000000096e657756616c"
        "75650000000000000000000000000b5f6765745f636f756e7400000000056c6f6e"
        "67000000000200000000000000000000000b5f7365745f636f756e740000000005"
        "766f6964000000000200000001000000056c6f6e6700000000096e657756616c75"
        "65000000000000000000000000115f6765745f7065616b66616c6c6f6666000000"
        "00056c6f6e6700000000020000000000000000000000115f7365745f7065616b66"
        "616c6c6f66660000000005766f6964000000000200000001000000056c6f6e6700"
        "000000096e657756616c75650000000000000000000000000b5f6765745f6d696e"
        "64420000000006666c6f6174000000000200000000000000000000000b5f736574"
        "5f6d696e64420000000005766f696400000000020000000100000006666c6f6174"
        "00000000096e657756616c75650000000000000000000000000b5f6765745f6d61"
        "7864420000000006666c6f6174000000000200000000000000000000000b5f7365"
        "745f6d617864420000000005766f696400000000020000000100000006666c6f61"
        "7400000000096e657756616c75650000000000000000000000000d5f6765745f69"
        "6e76616c75650000000006666c6f6174000000000200000000000000000000000d"
        "5f7365745f696e76616c75650000000005766f6964000000000200000001000000"
        "06666c6f617400000000096e657756616c75650000000000000000000000000f5f"
        "6765745f646972656374696f6e0000000010417274733a3a446972656374696f6e"
        "000000000200000000000000000000000f5f7365745f646972656374696f6e0000"
        "000005766f696400000000020000000100000010417274733a3a44697265637469"
        "6f6e00000000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_LevelMeter_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_10,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_11,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_12,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_13,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_14,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_LevelMeter_15,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::LevelMeter_skel::LevelMeter_skel()
{
}

Arts::Object_base* Arts::LevelMeter::_Creator() {
	return Arts::LevelMeter_base::_create();
}

unsigned long Arts::LevelMeter_base::_IID = Arts::MCOPUtils::makeIID("Arts::LevelMeter");

Arts::Tickmarks_base *Arts::Tickmarks_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::Tickmarks_base *castedObject = (Arts::Tickmarks_base *)skel->_cast(Arts::Tickmarks_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::Tickmarks_base *Arts::Tickmarks_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::Tickmarks_base::_fromReference(r,true);
	return 0;
}

Arts::Tickmarks_base *Arts::Tickmarks_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::Tickmarks_base *castedObject = (Arts::Tickmarks_base *)object._base()->_cast(Arts::Tickmarks_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::Tickmarks_base *Arts::Tickmarks_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::Tickmarks_base *result;
	result = (Arts::Tickmarks_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::Tickmarks");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::Tickmarks_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::Tickmarks")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::Tickmarks_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::Tickmarks_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::Tickmarks_base::_cast(unsigned long iid)
{
	if(iid == Arts::Tickmarks_base::_IID) return (Arts::Tickmarks_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::Tickmarks_stub::Tickmarks_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::Tickmarks_stub::Tickmarks_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::Tickmarks_stub::constructor(float min, float max, Arts::Direction dir, long pos)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f696400000000020000000400000006666c6f617400000000046d696e000000000000000006666c6f617400000000046d6178000000000000000010417274733a3a446972656374696f6e00000000046469720000000000000000056c6f6e670000000004706f73000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(min);
	request->writeFloat(max);
	request->writeLong(dir);
	request->writeLong(pos);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Tickmarks_stub::min()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d696e0000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Tickmarks_stub::min(float newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d696e0000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Tickmarks_stub::max()
{
	long methodID = _lookupMethodFast("method:000000095f6765745f6d61780000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Tickmarks_stub::max(float newValue)
{
	long methodID = _lookupMethodFast("method:000000095f7365745f6d61780000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Tickmarks_stub::minstep()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f6d696e737465700000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Tickmarks_stub::minstep(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f6d696e737465700000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::Tickmarks_stub::substep()
{
	long methodID = _lookupMethodFast("method:0000000d5f6765745f737562737465700000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::Tickmarks_stub::substep(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000d5f7365745f737562737465700000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::Direction Arts::Tickmarks_stub::direction()
{
	long methodID = _lookupMethodFast("method:0000000f5f6765745f646972656374696f6e0000000010417274733a3a446972656374696f6e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::Direction)0; // error occurred
	Arts::Direction returnCode = (Arts::Direction)result->readLong();
	delete result;
	return returnCode;
}

void Arts::Tickmarks_stub::direction(Arts::Direction newValue)
{
	long methodID = _lookupMethodFast("method:0000000f5f7365745f646972656374696f6e0000000005766f696400000000020000000100000010417274733a3a446972656374696f6e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

long Arts::Tickmarks_stub::position()
{
	long methodID = _lookupMethodFast("method:0000000e5f6765745f706f736974696f6e00000000056c6f6e6700000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0; // error occurred
	long returnCode = result->readLong();
	delete result;
	return returnCode;
}

void Arts::Tickmarks_stub::position(long newValue)
{
	long methodID = _lookupMethodFast("method:0000000e5f7365745f706f736974696f6e0000000005766f6964000000000200000001000000056c6f6e6700000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::Tickmarks_skel::_interfaceName()
{
	return "Arts::Tickmarks";
}

bool Arts::Tickmarks_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::Tickmarks") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::Tickmarks_skel::_interfaceNameSkel()
{
	return "Arts::Tickmarks";
}

// constructor
static void _dispatch_Arts_Tickmarks_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float min = request->readFloat();
	float max = request->readFloat();
	Arts::Direction dir = (Arts::Direction)request->readLong();
	long pos = request->readLong();
	((Arts::Tickmarks_skel *)object)->constructor(min,max,dir,pos);
}

// _get_min
static void _dispatch_Arts_Tickmarks_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Tickmarks_skel *)object)->min());
}

// _set_min
static void _dispatch_Arts_Tickmarks_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Tickmarks_skel *)object)->min(newValue);
}

// _get_max
static void _dispatch_Arts_Tickmarks_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Tickmarks_skel *)object)->max());
}

// _set_max
static void _dispatch_Arts_Tickmarks_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Tickmarks_skel *)object)->max(newValue);
}

// _get_minstep
static void _dispatch_Arts_Tickmarks_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Tickmarks_skel *)object)->minstep());
}

// _set_minstep
static void _dispatch_Arts_Tickmarks_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Tickmarks_skel *)object)->minstep(newValue);
}

// _get_substep
static void _dispatch_Arts_Tickmarks_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::Tickmarks_skel *)object)->substep());
}

// _set_substep
static void _dispatch_Arts_Tickmarks_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::Tickmarks_skel *)object)->substep(newValue);
}

// _get_direction
static void _dispatch_Arts_Tickmarks_09(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Tickmarks_skel *)object)->direction());
}

// _set_direction
static void _dispatch_Arts_Tickmarks_10(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Direction newValue = (Arts::Direction)request->readLong();
	((Arts::Tickmarks_skel *)object)->direction(newValue);
}

// _get_position
static void _dispatch_Arts_Tickmarks_11(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::Tickmarks_skel *)object)->position());
}

// _set_position
static void _dispatch_Arts_Tickmarks_12(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	long newValue = request->readLong();
	((Arts::Tickmarks_skel *)object)->position(newValue);
}

void Arts::Tickmarks_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "00020000000400000006666c6f617400000000046d696e00000000000000000666"
        "6c6f617400000000046d6178000000000000000010417274733a3a446972656374"
        "696f6e00000000046469720000000000000000056c6f6e670000000004706f7300"
        "0000000000000000000000095f6765745f6d696e0000000006666c6f6174000000"
        "00020000000000000000000000095f7365745f6d696e0000000005766f69640000"
        "0000020000000100000006666c6f617400000000096e657756616c756500000000"
        "0000000000000000095f6765745f6d61780000000006666c6f6174000000000200"
        "00000000000000000000095f7365745f6d61780000000005766f69640000000002"
        "0000000100000006666c6f617400000000096e657756616c756500000000000000"
        "00000000000d5f6765745f6d696e737465700000000006666c6f61740000000002"
        "00000000000000000000000d5f7365745f6d696e737465700000000005766f6964"
        "00000000020000000100000006666c6f617400000000096e657756616c75650000"
        "000000000000000000000d5f6765745f737562737465700000000006666c6f6174"
        "000000000200000000000000000000000d5f7365745f7375627374657000000000"
        "05766f696400000000020000000100000006666c6f617400000000096e65775661"
        "6c75650000000000000000000000000f5f6765745f646972656374696f6e000000"
        "0010417274733a3a446972656374696f6e00000000020000000000000000000000"
        "0f5f7365745f646972656374696f6e0000000005766f6964000000000200000001"
        "00000010417274733a3a446972656374696f6e00000000096e657756616c756500"
        "00000000000000000000000e5f6765745f706f736974696f6e00000000056c6f6e"
        "67000000000200000000000000000000000e5f7365745f706f736974696f6e0000"
        "000005766f6964000000000200000001000000056c6f6e6700000000096e657756"
        "616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_Tickmarks_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_10,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_11,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_Tickmarks_12,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::Tickmarks_skel::Tickmarks_skel()
{
}

Arts::Object_base* Arts::Tickmarks::_Creator() {
	return Arts::Tickmarks_base::_create();
}

unsigned long Arts::Tickmarks_base::_IID = Arts::MCOPUtils::makeIID("Arts::Tickmarks");

Arts::VolumeFader_base *Arts::VolumeFader_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::VolumeFader_base *castedObject = (Arts::VolumeFader_base *)skel->_cast(Arts::VolumeFader_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::VolumeFader_base *Arts::VolumeFader_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::VolumeFader_base::_fromReference(r,true);
	return 0;
}

Arts::VolumeFader_base *Arts::VolumeFader_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::VolumeFader_base *castedObject = (Arts::VolumeFader_base *)object._base()->_cast(Arts::VolumeFader_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::VolumeFader_base *Arts::VolumeFader_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::VolumeFader_base *result;
	result = (Arts::VolumeFader_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::VolumeFader");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::VolumeFader_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::VolumeFader")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::VolumeFader_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::VolumeFader_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::VolumeFader_base::_cast(unsigned long iid)
{
	if(iid == Arts::VolumeFader_base::_IID) return (Arts::VolumeFader_base *)this;
	if(iid == Arts::Frame_base::_IID) return (Arts::Frame_base *)this;
	if(iid == Arts::Widget_base::_IID) return (Arts::Widget_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::VolumeFader_stub::VolumeFader_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::VolumeFader_stub::VolumeFader_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

void Arts::VolumeFader_stub::constructor(float dbmin, float dbmax, Arts::Direction dir)
{
	long methodID = _lookupMethodFast("method:0000000c636f6e7374727563746f720000000005766f696400000000020000000300000006666c6f6174000000000664626d696e000000000000000006666c6f6174000000000664626d6178000000000000000010417274733a3a446972656374696f6e0000000004646972000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(dbmin);
	request->writeFloat(dbmax);
	request->writeLong(dir);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::VolumeFader_stub::dbmin()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f64626d696e0000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::VolumeFader_stub::dbmin(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f64626d696e0000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::VolumeFader_stub::dbmax()
{
	long methodID = _lookupMethodFast("method:0000000b5f6765745f64626d61780000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::VolumeFader_stub::dbmax(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000b5f7365745f64626d61780000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

Arts::Direction Arts::VolumeFader_stub::direction()
{
	long methodID = _lookupMethodFast("method:0000000f5f6765745f646972656374696f6e0000000010417274733a3a446972656374696f6e00000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return (Arts::Direction)0; // error occurred
	Arts::Direction returnCode = (Arts::Direction)result->readLong();
	delete result;
	return returnCode;
}

void Arts::VolumeFader_stub::direction(Arts::Direction newValue)
{
	long methodID = _lookupMethodFast("method:0000000f5f7365745f646972656374696f6e0000000005766f696400000000020000000100000010417274733a3a446972656374696f6e00000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeLong(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::VolumeFader_stub::volume()
{
	long methodID = _lookupMethodFast("method:0000000c5f6765745f766f6c756d650000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::VolumeFader_stub::volume(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000c5f7365745f766f6c756d650000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

float Arts::VolumeFader_stub::dbvolume()
{
	long methodID = _lookupMethodFast("method:0000000e5f6765745f6462766f6c756d650000000006666c6f617400000000020000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(!result) return 0.0; // error occurred
	float returnCode = result->readFloat();
	delete result;
	return returnCode;
}

void Arts::VolumeFader_stub::dbvolume(float newValue)
{
	long methodID = _lookupMethodFast("method:0000000e5f7365745f6462766f6c756d650000000005766f696400000000020000000100000006666c6f617400000000096e657756616c7565000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	request->writeFloat(newValue);
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if(result) delete result;
}

std::string Arts::VolumeFader_skel::_interfaceName()
{
	return "Arts::VolumeFader";
}

bool Arts::VolumeFader_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::VolumeFader") return true;
	if (interfacename == "Arts::Frame") return true;
	if (interfacename == "Arts::Widget") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::VolumeFader_skel::_interfaceNameSkel()
{
	return "Arts::VolumeFader";
}

// constructor
static void _dispatch_Arts_VolumeFader_00(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float dbmin = request->readFloat();
	float dbmax = request->readFloat();
	Arts::Direction dir = (Arts::Direction)request->readLong();
	((Arts::VolumeFader_skel *)object)->constructor(dbmin,dbmax,dir);
}

// _get_dbmin
static void _dispatch_Arts_VolumeFader_01(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::VolumeFader_skel *)object)->dbmin());
}

// _set_dbmin
static void _dispatch_Arts_VolumeFader_02(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::VolumeFader_skel *)object)->dbmin(newValue);
}

// _get_dbmax
static void _dispatch_Arts_VolumeFader_03(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::VolumeFader_skel *)object)->dbmax());
}

// _set_dbmax
static void _dispatch_Arts_VolumeFader_04(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::VolumeFader_skel *)object)->dbmax(newValue);
}

// _get_direction
static void _dispatch_Arts_VolumeFader_05(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeLong(((Arts::VolumeFader_skel *)object)->direction());
}

// _set_direction
static void _dispatch_Arts_VolumeFader_06(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	Arts::Direction newValue = (Arts::Direction)request->readLong();
	((Arts::VolumeFader_skel *)object)->direction(newValue);
}

// _get_volume
static void _dispatch_Arts_VolumeFader_07(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::VolumeFader_skel *)object)->volume());
}

// _set_volume
static void _dispatch_Arts_VolumeFader_08(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::VolumeFader_skel *)object)->volume(newValue);
}

// _get_dbvolume
static void _dispatch_Arts_VolumeFader_09(void *object, Arts::Buffer *, Arts::Buffer *result)
{
	result->writeFloat(((Arts::VolumeFader_skel *)object)->dbvolume());
}

// _set_dbvolume
static void _dispatch_Arts_VolumeFader_10(void *object, Arts::Buffer *request, Arts::Buffer *)
{
	float newValue = request->readFloat();
	((Arts::VolumeFader_skel *)object)->dbvolume(newValue);
}

void Arts::VolumeFader_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000c636f6e7374727563746f720000000005766f6964000000"
        "00020000000300000006666c6f6174000000000664626d696e0000000000000000"
        "06666c6f6174000000000664626d6178000000000000000010417274733a3a4469"
        "72656374696f6e00000000046469720000000000000000000000000b5f6765745f"
        "64626d696e0000000006666c6f6174000000000200000000000000000000000b5f"
        "7365745f64626d696e0000000005766f696400000000020000000100000006666c"
        "6f617400000000096e657756616c75650000000000000000000000000b5f676574"
        "5f64626d61780000000006666c6f6174000000000200000000000000000000000b"
        "5f7365745f64626d61780000000005766f69640000000002000000010000000666"
        "6c6f617400000000096e657756616c75650000000000000000000000000f5f6765"
        "745f646972656374696f6e0000000010417274733a3a446972656374696f6e0000"
        "00000200000000000000000000000f5f7365745f646972656374696f6e00000000"
        "05766f696400000000020000000100000010417274733a3a446972656374696f6e"
        "00000000096e657756616c75650000000000000000000000000c5f6765745f766f"
        "6c756d650000000006666c6f6174000000000200000000000000000000000c5f73"
        "65745f766f6c756d650000000005766f696400000000020000000100000006666c"
        "6f617400000000096e657756616c75650000000000000000000000000e5f676574"
        "5f6462766f6c756d650000000006666c6f61740000000002000000000000000000"
        "00000e5f7365745f6462766f6c756d650000000005766f69640000000002000000"
        "0100000006666c6f617400000000096e657756616c7565000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_VolumeFader_00,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_01,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_02,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_03,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_04,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_05,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_06,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_07,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_08,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_09,this,Arts::MethodDef(m));
	_addMethod(_dispatch_Arts_VolumeFader_10,this,Arts::MethodDef(m));
	Arts::Frame_skel::_buildMethodTable();
}

Arts::VolumeFader_skel::VolumeFader_skel()
{
}

Arts::Object_base* Arts::VolumeFader::_Creator() {
	return Arts::VolumeFader_base::_create();
}

unsigned long Arts::VolumeFader_base::_IID = Arts::MCOPUtils::makeIID("Arts::VolumeFader");

Arts::GuiFactory_base *Arts::GuiFactory_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::GuiFactory_base *castedObject = (Arts::GuiFactory_base *)skel->_cast(Arts::GuiFactory_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::GuiFactory_base *Arts::GuiFactory_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::GuiFactory_base::_fromReference(r,true);
	return 0;
}

Arts::GuiFactory_base *Arts::GuiFactory_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::GuiFactory_base *castedObject = (Arts::GuiFactory_base *)object._base()->_cast(Arts::GuiFactory_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::GuiFactory_base *Arts::GuiFactory_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::GuiFactory_base *result;
	result = (Arts::GuiFactory_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::GuiFactory");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::GuiFactory_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::GuiFactory")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::GuiFactory_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::GuiFactory_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::GuiFactory_base::_cast(unsigned long iid)
{
	if(iid == Arts::GuiFactory_base::_IID) return (Arts::GuiFactory_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::GuiFactory_stub::GuiFactory_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::GuiFactory_stub::GuiFactory_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

Arts::Widget Arts::GuiFactory_stub::createGui(Arts::Object runningObject)
{
	long methodID = _lookupMethodFast("method:0000000a637265617465477569000000000d417274733a3a576964676574000000000200000001000000076f626a656374000000000e72756e6e696e674f626a656374000000000000000000");
	long requestID;
	Arts::Buffer *request, *result;
	request = Arts::Dispatcher::the()->createRequest(requestID,_objectID,methodID);
	Arts::writeObject(*request,runningObject._base());
	request->patchLength();
	_connection->qSendBuffer(request);

	result = Arts::Dispatcher::the()->waitForResult(requestID,_connection);
	if (!result) return Arts::Widget::null();
	Arts::Widget_base* returnCode;
	Arts::readObject(*result,returnCode);
	delete result;
	return Arts::Widget::_from_base(returnCode);
}

std::string Arts::GuiFactory_skel::_interfaceName()
{
	return "Arts::GuiFactory";
}

bool Arts::GuiFactory_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::GuiFactory") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::GuiFactory_skel::_interfaceNameSkel()
{
	return "Arts::GuiFactory";
}

// createGui
static void _dispatch_Arts_GuiFactory_00(void *object, Arts::Buffer *request, Arts::Buffer *result)
{
	Arts::Object_base* _temp_runningObject;
	Arts::readObject(*request,_temp_runningObject);
	Arts::Object runningObject = Arts::Object::_from_base(_temp_runningObject);
	Arts::Widget returnCode = ((Arts::GuiFactory_skel *)object)->createGui(runningObject);
	Arts::writeObject(*result,returnCode._base());
}

void Arts::GuiFactory_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:0000000a637265617465477569000000000d417274733a3a576964"
        "676574000000000200000001000000076f626a656374000000000e72756e6e696e"
        "674f626a656374000000000000000000",
		"MethodTable"
	);
	_addMethod(_dispatch_Arts_GuiFactory_00,this,Arts::MethodDef(m));
}

Arts::GuiFactory_skel::GuiFactory_skel()
{
}

Arts::Object_base* Arts::GuiFactory::_Creator() {
	return Arts::GuiFactory_base::_create();
}

unsigned long Arts::GuiFactory_base::_IID = Arts::MCOPUtils::makeIID("Arts::GuiFactory");

Arts::GenericGuiFactory_base *Arts::GenericGuiFactory_base::_create(const std::string& subClass)
{
	Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
	assert(skel);
	Arts::GenericGuiFactory_base *castedObject = (Arts::GenericGuiFactory_base *)skel->_cast(Arts::GenericGuiFactory_base::_IID);
	assert(castedObject);
	return castedObject;
}

Arts::GenericGuiFactory_base *Arts::GenericGuiFactory_base::_fromString(const std::string& objectref)
{
	Arts::ObjectReference r;

	if(Arts::Dispatcher::the()->stringToObjectReference(r,objectref))
		return Arts::GenericGuiFactory_base::_fromReference(r,true);
	return 0;
}

Arts::GenericGuiFactory_base *Arts::GenericGuiFactory_base::_fromDynamicCast(const Arts::Object& object)
{
	if(object.isNull()) return 0;

	Arts::GenericGuiFactory_base *castedObject = (Arts::GenericGuiFactory_base *)object._base()->_cast(Arts::GenericGuiFactory_base::_IID);
	if(castedObject) return castedObject->_copy();

	return _fromString(object._toString());
}

Arts::GenericGuiFactory_base *Arts::GenericGuiFactory_base::_fromReference(Arts::ObjectReference r, bool needcopy)
{
	Arts::GenericGuiFactory_base *result;
	result = (Arts::GenericGuiFactory_base *)Arts::Dispatcher::the()->connectObjectLocal(r,"Arts::GenericGuiFactory");
	if(result)
	{
		if(!needcopy)
			result->_cancelCopyRemote();
	}
	else
	{
		Arts::Connection *conn = Arts::Dispatcher::the()->connectObjectRemote(r);
		if(conn)
		{
			result = new Arts::GenericGuiFactory_stub(conn,r.objectID);
			if(needcopy) result->_copyRemote();
			result->_useRemote();
			if (!result->_isCompatibleWith("Arts::GenericGuiFactory")) {
				result->_release();
				return 0;
			}
		}
	}
	return result;
}

std::vector<std::string> Arts::GenericGuiFactory_base::_defaultPortsIn() const {
	std::vector<std::string> ret;
	return ret;
}
std::vector<std::string> Arts::GenericGuiFactory_base::_defaultPortsOut() const {
	std::vector<std::string> ret;
	return ret;
}

void *Arts::GenericGuiFactory_base::_cast(unsigned long iid)
{
	if(iid == Arts::GenericGuiFactory_base::_IID) return (Arts::GenericGuiFactory_base *)this;
	if(iid == Arts::GuiFactory_base::_IID) return (Arts::GuiFactory_base *)this;
	if(iid == Arts::Object_base::_IID) return (Arts::Object_base *)this;
	return 0;
}

Arts::GenericGuiFactory_stub::GenericGuiFactory_stub()
{
	// constructor for subclasses (don't use directly)
}

Arts::GenericGuiFactory_stub::GenericGuiFactory_stub(Arts::Connection *connection, long objectID)
	: Arts::Object_stub(connection, objectID)
{
	// constructor to create a stub for an object
}

std::string Arts::GenericGuiFactory_skel::_interfaceName()
{
	return "Arts::GenericGuiFactory";
}

bool Arts::GenericGuiFactory_skel::_isCompatibleWith(const std::string& interfacename)
{
	if (interfacename == "Arts::GenericGuiFactory") return true;
	if (interfacename == "Arts::GuiFactory") return true;
	if (interfacename == "Arts::Object") return true;
	return false;
}

std::string Arts::GenericGuiFactory_skel::_interfaceNameSkel()
{
	return "Arts::GenericGuiFactory";
}

void Arts::GenericGuiFactory_skel::_buildMethodTable()
{
	Arts::Buffer m;
	m.fromString(
        "MethodTable:",
		"MethodTable"
	);
	Arts::GuiFactory_skel::_buildMethodTable();
}

Arts::GenericGuiFactory_skel::GenericGuiFactory_skel()
{
}

Arts::Object_base* Arts::GenericGuiFactory::_Creator() {
	return Arts::GenericGuiFactory_base::_create();
}

unsigned long Arts::GenericGuiFactory_base::_IID = Arts::MCOPUtils::makeIID("Arts::GenericGuiFactory");

static Arts::IDLFileReg IDLFileReg_artsgui("artsgui",
    "IDLFile:00000001000000000800000011417274733a3a53697a65506f6c6963790000"
    "00000700000008737046697865640000000000000000000000000a73704d696e696d75"
    "6d0000000001000000000000000a73704d6178696d756d000000000400000000000000"
    "0c73705072656665727265640000000005000000000000001373704d696e696d756d45"
    "7870616e64696e670000000003000000000000000c7370457870616e64696e67000000"
    "0007000000000000000a737049676e6f72656400000000020000000000000000000000"
    "0c417274733a3a5368617065000000000d000000084e6f4672616d6500000000000000"
    "000000000004426f780000000001000000000000000650616e656c0000000002000000"
    "000000000957696e50616e656c00000000030000000000000006484c696e6500000000"
    "040000000000000006564c696e650000000005000000000000000c5374796c65645061"
    "6e656c0000000006000000000000000b506f70757050616e656c000000000700000000"
    "0000000d4d656e7542617250616e656c0000000008000000000000000d546f6f6c4261"
    "7250616e656c0000000009000000000000000e4c696e654564697450616e656c000000"
    "000a000000000000000f54616257696467657450616e656c000000000b000000000000"
    "00074d5368617065000000000f00000000000000000000000d417274733a3a53686164"
    "6f77000000000400000006506c61696e00000000100000000000000007526169736564"
    "0000000020000000000000000753756e6b656e000000003000000000000000084d5368"
    "61646f7700000000f000000000000000000000000c417274733a3a416c69676e000000"
    "00090000000a416c69676e4175746f0000000000000000000000000a416c69676e4c65"
    "66740000000001000000000000000b416c69676e526967687400000000020000000000"
    "00000d416c69676e4843656e7465720000000004000000000000000d416c69676e4a75"
    "737469667900000000080000000000000009416c69676e546f70000000001000000000"
    "0000000c416c69676e426f74746f6d0000000020000000000000000d416c69676e5643"
    "656e7465720000000040000000000000000c416c69676e43656e746572000000004400"
    "0000000000000000000010417274733a3a446972656374696f6e00000000040000000c"
    "4c656674546f52696768740000000000000000000000000c5269676874546f4c656674"
    "0000000001000000000000000c546f70546f426f74746f6d0000000002000000000000"
    "000c426f74746f6d546f546f700000000003000000000000000000000011417274733a"
    "3a54657874426f74746f6d000000000400000006536f75746800000000000000000000"
    "0000064e6f727468000000000100000000000000055765737400000000020000000000"
    "000005456173740000000003000000000000000000000016417274733a3a4c6576656c"
    "4d657465725374796c6500000000060000000d6c6d4e6f726d616c4261727300000000"
    "00000000000000000b6c6d46697265426172730000000001000000000000000b6c6d4c"
    "696e6542617273000000000200000000000000076c6d4c454473000000000300000000"
    "000000096c6d416e616c6f67000000000400000000000000086c6d536d616c6c000000"
    "000500000000000000000000000f417274733a3a506f736974696f6e00000000040000"
    "0008706f734c65667400000000010000000000000009706f7352696768740000000002"
    "0000000000000007706f73546f700000000004000000000000000a706f73426f74746f"
    "6d000000000800000000000000000000000100000011417274733a3a4772617068506f"
    "696e74000000000200000006666c6f6174000000000278000000000000000006666c6f"
    "6174000000000279000000000000000000000000140000000d417274733a3a57696467"
    "65740000000000000000020000000573686f770000000005766f696400000000020000"
    "00000000000000000005686964650000000005766f6964000000000200000000000000"
    "000000000900000009776964676574494400000000056c6f6e67000000001200000000"
    "00000007706172656e74000000000d417274733a3a5769646765740000000013000000"
    "00000000027800000000056c6f6e67000000001300000000000000027900000000056c"
    "6f6e6700000000130000000000000006776964746800000000056c6f6e670000000013"
    "000000000000000768656967687400000000056c6f6e67000000001300000000000000"
    "0876697369626c650000000008626f6f6c65616e0000000013000000000000000c6853"
    "697a65506f6c6963790000000011417274733a3a53697a65506f6c6963790000000013"
    "000000000000000c7653697a65506f6c6963790000000011417274733a3a53697a6550"
    "6f6c69637900000000130000000000000000000000000000000c417274733a3a467261"
    "6d6500000000010000000d417274733a3a57696467657400000000010000000c636f6e"
    "7374727563746f720000000005766f69640000000002000000010000000d417274733a"
    "3a5769646765740000000007706172656e740000000000000000000000000600000007"
    "6d617267696e00000000056c6f6e670000000013000000000000000a6c696e65776964"
    "746800000000056c6f6e670000000013000000000000000d6d69646c696e6577696474"
    "6800000000056c6f6e670000000013000000000000000b6672616d657374796c650000"
    "0000056c6f6e670000000013000000000000000b6672616d657368617065000000000c"
    "417274733a3a53686170650000000013000000000000000c6672616d65736861646f77"
    "000000000d417274733a3a536861646f77000000001300000000000000000000000000"
    "000010417274733a3a4c61796f7574426f7800000000010000000c417274733a3a4672"
    "616d6500000000100000000a6164645769646765740000000005766f69640000000002"
    "000000030000000d417274733a3a576964676574000000000777696467657400000000"
    "00000000056c6f6e670000000008737472657463680000000000000000056c6f6e6700"
    "00000006616c69676e0000000000000000000000000a61646457696467657400000000"
    "05766f69640000000002000000020000000d417274733a3a5769646765740000000007"
    "7769646765740000000000000000056c6f6e6700000000087374726574636800000000"
    "00000000000000000a6164645769646765740000000005766f69640000000002000000"
    "010000000d417274733a3a576964676574000000000777696467657400000000000000"
    "00000000000d696e736572745769646765740000000005766f69640000000002000000"
    "04000000056c6f6e670000000009706f736974696f6e00000000000000000d41727473"
    "3a3a57696467657400000000077769646765740000000000000000056c6f6e67000000"
    "0008737472657463680000000000000000056c6f6e670000000006616c69676e000000"
    "0000000000000000000d696e736572745769646765740000000005766f696400000000"
    "0200000003000000056c6f6e670000000009706f736974696f6e00000000000000000d"
    "417274733a3a57696467657400000000077769646765740000000000000000056c6f6e"
    "670000000008737472657463680000000000000000000000000d696e73657274576964"
    "6765740000000005766f6964000000000200000002000000056c6f6e67000000000970"
    "6f736974696f6e00000000000000000d417274733a3a57696467657400000000077769"
    "646765740000000000000000000000000b616464537472657463680000000005766f69"
    "64000000000200000001000000056c6f6e670000000008737472657463680000000000"
    "000000000000000b616464537472657463680000000005766f69640000000002000000"
    "00000000000000000961646453706163650000000005766f6964000000000200000001"
    "000000056c6f6e67000000000673706163650000000000000000000000000961646453"
    "747275740000000005766f6964000000000200000001000000056c6f6e670000000005"
    "73697a650000000000000000000000000d616464536570617261746f72000000000576"
    "6f6964000000000200000002000000056c6f6e67000000000873747265746368000000"
    "0000000000056c6f6e670000000006616c69676e0000000000000000000000000d6164"
    "64536570617261746f720000000005766f6964000000000200000001000000056c6f6e"
    "670000000008737472657463680000000000000000000000000d616464536570617261"
    "746f720000000005766f696400000000020000000000000000000000086164644c696e"
    "650000000005766f6964000000000200000004000000056c6f6e670000000006776964"
    "74680000000000000000056c6f6e67000000000673706163650000000000000000056c"
    "6f6e670000000008737472657463680000000000000000056c6f6e670000000006616c"
    "69676e000000000000000000000000086164644c696e650000000005766f6964000000"
    "000200000003000000056c6f6e67000000000677696474680000000000000000056c6f"
    "6e67000000000673706163650000000000000000056c6f6e6700000000087374726574"
    "6368000000000000000000000000086164644c696e650000000005766f696400000000"
    "0200000002000000056c6f6e67000000000677696474680000000000000000056c6f6e"
    "6700000000067370616365000000000000000000000000030000000a64697265637469"
    "6f6e0000000010417274733a3a446972656374696f6e00000000130000000000000008"
    "73706163696e6700000000056c6f6e670000000013000000000000000d6c61796f7574"
    "6d617267696e00000000056c6f6e670000000013000000000000000000000000000000"
    "0b417274733a3a48426f7800000000010000000c417274733a3a4672616d6500000000"
    "00000000010000000873706163696e6700000000056c6f6e6700000000130000000000"
    "000000000000000000000b417274733a3a56426f7800000000010000000c417274733a"
    "3a4672616d650000000000000000010000000873706163696e6700000000056c6f6e67"
    "00000000130000000000000000000000000000000f417274733a3a506f707570426f78"
    "00000000010000000c417274733a3a4672616d650000000000000000030000000a6469"
    "72656374696f6e0000000010417274733a3a446972656374696f6e0000000013000000"
    "00000000056e616d650000000007737472696e67000000001300000000000000077769"
    "64676574000000000d417274733a3a5769646765740000000013000000000000000000"
    "0000000000000d417274733a3a427574746f6e00000000010000000d417274733a3a57"
    "696467657400000000020000000c636f6e7374727563746f720000000005766f696400"
    "00000002000000010000000d417274733a3a5769646765740000000007706172656e74"
    "0000000000000000000000000c636f6e7374727563746f720000000005766f69640000"
    "0000020000000200000007737472696e6700000000057465787400000000000000000d"
    "417274733a3a5769646765740000000007706172656e74000000000000000000000000"
    "0400000005746578740000000007737472696e6700000000130000000000000007746f"
    "67676c650000000008626f6f6c65616e00000000130000000000000008707265737365"
    "640000000008626f6f6c65616e00000000120000000000000008636c69636b65640000"
    "000008626f6f6c65616e00000000120000000000000000000000000000000b41727473"
    "3a3a506f746900000000010000000c417274733a3a4672616d65000000000000000007"
    "0000000863617074696f6e0000000007737472696e6700000000130000000000000006"
    "636f6c6f720000000007737472696e67000000001300000000000000046d696e000000"
    "0006666c6f6174000000001300000000000000046d61780000000006666c6f61740000"
    "000013000000000000000676616c75650000000006666c6f6174000000001300000000"
    "0000000c6c6f6761726974686d69630000000006666c6f617400000000130000000000"
    "00000672616e676500000000056c6f6e67000000001300000000000000000000000000"
    "00000c417274733a3a466164657200000000010000000d417274733a3a576964676574"
    "00000000010000000c636f6e7374727563746f720000000005766f6964000000000200"
    "0000010000000d417274733a3a5769646765740000000007706172656e740000000000"
    "00000000000000060000000863617074696f6e0000000007737472696e670000000013"
    "0000000000000006636f6c6f720000000007737472696e670000000013000000000000"
    "00046d696e0000000006666c6f6174000000001300000000000000046d617800000000"
    "06666c6f61740000000013000000000000000676616c75650000000006666c6f617400"
    "00000013000000000000000c6c6f6761726974686d69630000000006666c6f61740000"
    "0000130000000000000000000000000000000f417274733a3a4c696e65456469740000"
    "0000010000000d417274733a3a57696467657400000000010000000c636f6e73747275"
    "63746f720000000005766f69640000000002000000010000000d417274733a3a576964"
    "6765740000000007706172656e74000000000000000000000000020000000863617074"
    "696f6e0000000007737472696e67000000001300000000000000057465787400000000"
    "07737472696e6700000000130000000000000000000000000000000e417274733a3a53"
    "70696e426f7800000000010000000d417274733a3a5769646765740000000001000000"
    "0c636f6e7374727563746f720000000005766f69640000000002000000010000000d41"
    "7274733a3a5769646765740000000007706172656e7400000000000000000000000004"
    "0000000863617074696f6e0000000007737472696e6700000000130000000000000004"
    "6d696e00000000056c6f6e67000000001300000000000000046d617800000000056c6f"
    "6e670000000013000000000000000676616c756500000000056c6f6e67000000001300"
    "00000000000000000000000000000f417274733a3a436f6d626f426f78000000000100"
    "00000d417274733a3a57696467657400000000010000000c636f6e7374727563746f72"
    "0000000005766f69640000000002000000010000000d417274733a3a57696467657400"
    "00000007706172656e74000000000000000000000000030000000863617074696f6e00"
    "00000007737472696e670000000013000000000000000863686f696365730000000008"
    "2a737472696e670000000013000000000000000676616c75650000000007737472696e"
    "6700000000130000000000000000000000000000000c417274733a3a47726170680000"
    "0000010000000d417274733a3a57696467657400000000010000000c636f6e73747275"
    "63746f720000000005766f69640000000002000000010000000d417274733a3a576964"
    "6765740000000007706172656e74000000000000000000000000050000000863617074"
    "696f6e0000000007737472696e67000000001300000000000000056d696e7800000000"
    "06666c6f6174000000001300000000000000056d6178780000000006666c6f61740000"
    "00001300000000000000056d696e790000000006666c6f617400000000130000000000"
    "0000056d6178790000000006666c6f6174000000001300000000000000000000000000"
    "000010417274733a3a47726170684c696e650000000000000000000000000400000006"
    "6772617068000000000c417274733a3a47726170680000000013000000000000000965"
    "64697461626c650000000008626f6f6c65616e00000000130000000000000006636f6c"
    "6f720000000007737472696e6700000000130000000000000007706f696e7473000000"
    "00122a417274733a3a4772617068506f696e7400000000130000000000000000000000"
    "000000000c417274733a3a4c6162656c00000000010000000c417274733a3a4672616d"
    "6500000000000000000500000005746578740000000007737472696e67000000001300"
    "00000000000006616c69676e00000000056c6f6e670000000013000000000000000966"
    "6f6e7473697a6500000000056c6f6e670000000013000000000000000b666f6e746661"
    "6d696c790000000007737472696e6700000000130000000000000007626f74746f6d00"
    "00000011417274733a3a54657874426f74746f6d000000001300000000000000000000"
    "000000000011417274733a3a4c6576656c4d6574657200000000010000000c41727473"
    "3a3a4672616d65000000000000000008000000067374796c650000000016417274733a"
    "3a4c6576656c4d657465725374796c6500000000130000000000000009737562737479"
    "6c6500000000056c6f6e6700000000130000000000000006636f756e7400000000056c"
    "6f6e670000000013000000000000000c7065616b66616c6c6f666600000000056c6f6e"
    "67000000001300000000000000066d696e64420000000006666c6f6174000000001300"
    "000000000000066d617864420000000006666c6f617400000000130000000000000008"
    "696e76616c75650000000006666c6f61740000000013000000000000000a6469726563"
    "74696f6e0000000010417274733a3a446972656374696f6e0000000013000000000000"
    "00000000000000000010417274733a3a5469636b6d61726b7300000000010000000c41"
    "7274733a3a4672616d6500000000010000000c636f6e7374727563746f720000000005"
    "766f696400000000020000000400000006666c6f617400000000046d696e0000000000"
    "00000006666c6f617400000000046d6178000000000000000010417274733a3a446972"
    "656374696f6e00000000046469720000000000000000056c6f6e670000000004706f73"
    "00000000000000000000000006000000046d696e0000000006666c6f61740000000013"
    "00000000000000046d61780000000006666c6f6174000000001300000000000000086d"
    "696e737465700000000006666c6f617400000000130000000000000008737562737465"
    "700000000006666c6f61740000000013000000000000000a646972656374696f6e0000"
    "000010417274733a3a446972656374696f6e00000000130000000000000009706f7369"
    "74696f6e00000000056c6f6e6700000000130000000000000000000000000000001241"
    "7274733a3a566f6c756d65466164657200000000010000000c417274733a3a4672616d"
    "6500000000010000000c636f6e7374727563746f720000000005766f69640000000002"
    "0000000300000006666c6f6174000000000664626d696e000000000000000006666c6f"
    "6174000000000664626d6178000000000000000010417274733a3a446972656374696f"
    "6e0000000004646972000000000000000000000000050000000664626d696e00000000"
    "06666c6f61740000000013000000000000000664626d61780000000006666c6f617400"
    "00000013000000000000000a646972656374696f6e0000000010417274733a3a446972"
    "656374696f6e00000000130000000000000007766f6c756d650000000006666c6f6174"
    "000000001300000000000000096462766f6c756d650000000006666c6f617400000000"
    "1300000000000000000000000000000011417274733a3a477569466163746f72790000"
    "000000000000010000000a637265617465477569000000000d417274733a3a57696467"
    "6574000000000200000001000000076f626a656374000000000e72756e6e696e674f62"
    "6a65637400000000000000000000000000000000000000000000000018417274733a3a"
    "47656e65726963477569466163746f7279000000000100000011417274733a3a477569"
    "466163746f7279000000000000000000000000000000000000000000"
);
