Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

MechanicsDocument Class Reference

#include <mechanicsdocument.h>

Inheritance diagram for MechanicsDocument:

ItemDocument Document

List of all members.

Detailed Description

David Saxton

Definition at line 27 of file mechanicsdocument.h.

Public Types

enum  DocumentType {
  dt_none, dt_flowcode, dt_circuit, dt_mechanics,
  dt_text, dt_pinMapEditor

Public Slots

void alignHorizontally ()
void alignVertically ()
void cancelCurrentOperation ()
virtual void cut ()
void distributeHorizontally ()
void distributeVertically ()
void exportToImage ()
void lowerZ ()
virtual void paste ()
void processItemDocumentEvents ()
void raiseZ ()
virtual void redo ()
virtual void slotInitItemActions (Item *item=0l)
void slotSetDrawAction (int da)
void slotSetRepeatedItemId (const QString &id)
void slotUnsetRepeatedItemId ()
virtual void slotUpdateConfiguration ()
void slotUpdateZOrdering ()
virtual void undo ()


void fileNameChanged (const KURL &url)
void itemSelected (Item *item)
void itemUnselected (Item *item=0l)
void modifiedStateChanged ()
void undoRedoStateChanged ()
void viewFocused (View *view)
void viewUnfocused ()

Public Member Functions

ViewactiveView () const
virtual ItemaddItem (const QString &id, const QPoint &p, bool newItem)
virtual void appendDeleteList (QCanvasItem *qcanvasItem)
Canvascanvas () const
QRect canvasBoundingRect () const
virtual void canvasRightClick (const QPoint &pos, QCanvasItem *item)
QString caption () const
void clearHistory ()
virtual void convertToAssembly ()
virtual void convertToHex ()
virtual void convertToMicrobe ()
virtual void convertToPIC ()
virtual void copy ()
virtual ViewcreateView (ViewContainer *viewContainer, uint viewAreaId, const char *name=0l)
unsigned dcopID () const
DCOPObject * dcopObject () const
virtual void debugInterrupt ()
virtual void debugRun ()
virtual void debugStep ()
virtual void debugStop ()
virtual void deleteSelection ()
virtual bool fileClose ()
virtual void fileSave ()
virtual void fileSaveAs ()
virtual void flushDeleteList ()
QString generateUID (QString name)
int getActionTicket () const
bool getURL (const QString &types)
bool isDeleted () const
virtual bool isModified () const
virtual bool isRedoAvailable () const
virtual bool isUndoAvailable () const
virtual bool isValidItem (Item *item)
virtual bool isValidItem (const QString &itemId)
QCanvasItem * itemAtTop (const QPoint &pos) const
ItemList itemList () const
ItemitemWithID (const QString &)
KTechlabktechlab () const
void lowerZ (const ItemList &itemList)
 MechanicsDocument (const QString &caption, KTechlab *ktechlab, const char *name=0)
MechanicsItemmechanicsItemWithID (const QString &id)
uint numberOfViews () const
virtual bool openURL (const KURL &url)
virtual void print ()
void raiseZ (const ItemList &itemList)
virtual bool registerItem (QCanvasItem *qcanvasItem)
bool registerUID (const QString &uid)
void requestEvent (ItemDocumentEvent::type type)
void requestStateSave (int actionTicket=-1)
void select (QCanvasItem *item)
void select (const QCanvasItemList &list)
virtual void selectAll ()
virtual ItemGroupselectList () const
void setAddToProjectOnSave (bool add)
void setCaption (const QString &caption)
void setDCOPID (unsigned id)
virtual void setModified (bool modified)
void setURL (const KURL &url)
DocumentType type () const
void unregisterUID (const QString &uid)
void unselect (QCanvasItem *qcanvasItem)
void unselectAll ()
virtual void update ()
const KURL & url () const
ViewList viewList () const

Protected Member Functions

virtual void fillContextMenu (const QPoint &pos)
virtual void handleNewView (View *view)
virtual void itemAdded (Item *item)
void resizeCanvasToItems ()
void setSVGExport (bool svgExport)
void updateBackground ()
void writeFile ()

Protected Attributes

bool b_modified
bool m_bAddToProjectOnSave
bool m_bDeleted
bool m_bIsLoading
QString m_caption
int m_currentActionTicket
unsigned m_dcopID
QString m_fileExtensionInfo
QStringList m_idList
ItemList m_itemDeleteList
ItemList m_itemList
uint m_nextIdNum
unsigned m_nextViewID
QSize m_oldCanvasSize
KActionMenu * m_pAlignmentAction
QTimer * m_pEventTimer
unsigned m_queuedEvents
IDDStack m_redoStack
DocumentType m_type
IDDStack m_undoStack
ViewList m_viewList
IntItemMap m_zOrder
QGuardedPtr< Viewp_activeView

Static Protected Attributes

static int m_nextActionTicket = 0


class ICNView
class ItemView

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index