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

ItemDocument Class Reference

#include <itemdocument.h>

Inheritance diagram for ItemDocument:

Document ICNDocument MechanicsDocument CircuitICNDocument FlowICNDocument CircuitDocument PinMapDocument FlowCodeDocument

List of all members.


Detailed Description

Author:
David Saxton

Definition at line 46 of file itemdocument.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 ()
virtual void deleteSelection ()
void distributeHorizontally ()
void distributeVertically ()
void exportToImage ()
void lowerZ ()
virtual void paste ()
void processItemDocumentEvents ()
void raiseZ ()
virtual void redo ()
void requestCanvasResize ()
virtual void selectAll ()=0
virtual void slotInitItemActions ()
void slotSetDrawAction (int da)
void slotSetRepeatedItemId (const QString &id)
void slotUnsetRepeatedItemId ()
virtual void slotUpdateConfiguration ()
void slotUpdateZOrdering ()
virtual void undo ()

Signals

void fileNameChanged (const KURL &url)
void modifiedStateChanged ()
void selectionChanged ()
void undoRedoStateChanged ()
void viewFocused (View *view)
void viewUnfocused ()

Public Member Functions

ViewactiveView () const
virtual ItemaddItem (const QString &id, const QPoint &p, bool newItem)=0
virtual void appendDeleteList (QCanvasItem *)=0
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)=0
unsigned dcopID () const
DCOPObject * dcopObject () const
virtual void debugInterrupt ()
virtual void debugRun ()
virtual void debugStep ()
virtual void debugStop ()
virtual bool fileClose ()
virtual void fileSave ()
virtual void fileSaveAs ()
virtual void flushDeleteList ()=0
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 (const QString &itemId)=0
virtual bool isValidItem (Item *item)=0
QCanvasItem * itemAtTop (const QPoint &pos) const
 ItemDocument (const QString &caption, const char *name=0)
ItemList itemList () const
ItemitemWithID (const QString &)
void lowerZ (const ItemList &itemList)
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 ItemGroupselectList () const =0
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
virtual void unregisterUID (const QString &uid)
void unselect (QCanvasItem *qcanvasItem)
void unselectAll ()
virtual void update ()
const KURL & url () const
ViewList viewList () const

Protected Slots

void updateItemViewScrollbars ()

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_bDeleted
Canvasm_canvas
CanvasTipm_canvasTip
CMManagerm_cmManager
QString m_fileExtensionInfo
ItemList m_itemDeleteList
ItemMap m_itemList
DocumentIfacem_pDocumentIface
DocumentType m_type
ViewList m_viewList

Private Member Functions

void cleanClearStack (IDDStack &stack)

Private Attributes

bool m_bIsLoading
int m_currentActionTicket
ItemDocumentDatam_currentState
std::set< QString > m_idList
unsigned m_nextIdNum
KActionMenu * m_pAlignmentAction
QTimer * m_pEventTimer
QTimer * m_pUpdateItemViewScrollbarsTimer
unsigned m_queuedEvents
IDDStack m_redoStack
ItemDocumentDatam_savedState
IDDStack m_undoStack
IntItemMap m_zOrder

Static Private Attributes

static int m_nextActionTicket = 0

Friends

class ICNView
class ItemView

Classes

class  ItemDocumentEvent
class  Z

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

Generated by  Doxygen 1.6.0   Back to index