You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegraphics/kpovmodeler/pmpartiface.h

120 lines
3.3 KiB

//-*-C++-*-
/*
**************************************************************************
description
--------------------
copyright : (C) 2004 by Luis Carvalho
email : lpassos@oninetspeed.pt
**************************************************************************
**************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
**************************************************************************/
#ifndef PMPARTIFACE_H
#define PMPARTIFACE_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <dcopobject.h>
#include "pmvariant.h"
/**
* DCOP Interface for kpovmodeler
*/
class PMPartIface : virtual public DCOPObject
{
K_DCOP
k_dcop:
/**
* deletes the document's contents
*/
virtual void deleteContents( ) = 0;
/**
* initializes the document generally
*/
virtual bool newDocument( ) = 0;
/**
* closes the actual document
*/
virtual void closeDocument( ) = 0;
/**
* Inserts a new PMObject of type type
*/
virtual void slotNewObject( const TQString& type, const TQString& pos ) = 0;
/**
* initializes the documents contents
*/
virtual void initDocument( ) = 0;
/**
* clears the selection
*/
virtual void clearSelection( ) = 0;
/**
* puts the marked text/object into the clipboard and removes the objects
*/
virtual void slotEditCut( ) = 0;
/**
* removes the selected object
*/
virtual void slotEditDelete( ) = 0;
/**
* puts the marked text/object into the clipboard
*/
virtual void slotEditCopy( ) = 0;
/**
* paste the clipboard into the document
*/
virtual void slotEditPaste( ) = 0;
/**
* render the current scene
*/
virtual void slotRender( ) = 0;
/**
* returns the currently selected object
*/
virtual TQString activeObjectName( ) = 0;
/**
* set the current selected object.
* returns true if successful or false otherwise
*/
virtual bool setActiveObject( const TQString& name ) = 0;
/**
* Get known properties of the currently active object
*/
virtual TQStringList getProperties( ) = 0;
/**
* set a property on the currently active object
*/
virtual bool setProperty( const TQString& property, const PMVariant& value ) = 0;
/**
* set a property on the currently active object
*/
virtual bool setProperty( const TQString& property, const TQString& value ) = 0;
/**
* Get the value of the given property
*/
virtual const PMVariant getProperty( const TQString& property ) = 0;
/**
* Get the value of the given property
*/
virtual const TQString getPropertyStr( const TQString& property ) = 0;
/**
* Get a list of known object types.
*/
virtual TQStringList getObjectTypes( ) = 0;
};
#endif