Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Edit Class Reference

Class providing various editing features. More...

#include <Edit.h>

Inheritance diagram for Edit::

List of all members.

Public Methods

 Edit (QWidget *parent=0, const char *name=0)
 Constructor.

void deleteSelection (Selection *, Machine *)
 Deletes all selected objects. More...

bool copy (Selection *, Project *, Machine *, QString &data)
 Serializes the selected objects into a string (to be put in the clipboard). More...

bool paste (Selection *, Project *, Machine *, QString data)
 Pastes objects into the the current machine. More...


Detailed Description

Class providing various editing features.


Member Function Documentation

bool Edit::copy Selection * ,
Project * p,
Machine * m,
QString & s
 

Serializes the selected objects into a string (to be put in the clipboard).

The string is in the same format as a .fsm file (XML).

Parameters:
p   Pointer to the project that contains the objects to copy.
m   Pointer to the machine that contains the objects to copy.
s   String that contains the XML data
Returns:
TRUE if successful

void Edit::deleteSelection Selection * sel,
Machine * m
 

Deletes all selected objects.

Parameters:
sel   selection object containing all selected objects
m   machine containing the selected objects

bool Edit::paste Selection * sel,
Project * p,
Machine * m,
QString data
 

Pastes objects into the the current machine.

Parameters:
sel   Pointer to the selection object.
p   Project to paste the objects into
m   Machine to paste the objects into
data   XML string (produced by Edit::copy())
Returns:
TRUE if successful


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:15 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001