|
|
* 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. * * *************************************************************************
| friend class ClassImport | ClassImport |
| friend class UMLDrag | UMLDrag |
| UMLDoc (QWidget *parent, const char *name=0)
| UMLDoc |
Constructor for the fileclass of the application
| ~UMLDoc ()
| ~UMLDoc |
Destructor for the fileclass of the application
| void addView (UMLView *view)
| addView |
adds a view to the document which represents the document contents. Usually this is your main view.
| void removeView (UMLView *view)
| removeView |
removes a view from the list of currently connected views
| void setModified (bool _m=true)
| setModified |
sets the modified flag for the document after a modifying action on the view connected to the document.
| bool isModified ()
| isModified |
returns if the document is modified or not. Use this to determine if your document needs saving by the user on closing.
| bool saveModified ()
| saveModified |
"save modified" - asks the user for saving if the document is modified
| void deleteContents ()
| deleteContents |
deletes the document's contents
| bool newDocument ()
| newDocument |
initializes the document generally
| void closeDocument ()
| closeDocument |
closes the acutal document
| bool openDocument (const KURL& url, const char *format=0)
| openDocument |
loads the document by filename and format and emits the updateViews() signal
| bool saveDocument (const KURL& url, const char *format=0)
| saveDocument |
saves the document under filename and format.
| const KURL& URL ()
| URL |
[const]
returns the KURL of the document
| void setURL (const KURL& url)
| setURL |
sets the URL of the document
| void setupSignals ()
| setupSignals |
Sets up the signals needed by the program for it to work.
| void setupListView (MyListView *lv)
| setupListView |
Gains a link to the list view so that it can set the signals up required by this class.
| void createUMLObject (UMLObject_Type type)
| createUMLObject |
Creates a UMLObject of the given type.
Parameters:
| type | The type of UMLObject to create. Used to create Actors, Use Cases and concepts. |
| void createUMLObject (UMLObject * o, UMLObject_Type type)
| createUMLObject |
Creates either an operation or attribute for the parent concept.
Parameters:
| o | The parent object |
| type | The type to create, either an operation or attribute. |
| void createDiagram (Diagram_Type type, bool askForName = true)
| createDiagram |
Creates a diagram of the given type.
Parameters:
| type | The type of diagram to create. |
| askForName | If true shows a dialog box asking for name, else uses a default name. |
| void renameDiagram (int id)
| renameDiagram |
Used to rename a document. This method takes care of everything. You just need to give the ID of the diagram to the method.
Parameters:
| id | The ID of the diagram to rename. |
| void renameUMLObject (UMLObject *o)
| renameUMLObject |
Used to rename a UMLObject. The UMLObject is to be an actor, use case or concept.
Parameters:
| o | The object to rename. |
| void renameChildUMLObject (UMLObject *o)
| renameChildUMLObject |
Used to rename an operation or attribute of a concept.
Parameters:
| o | The attribute or operation to rename. |
| void changeCurrentView (int id)
| changeCurrentView |
Changes the current view (diagram) to the view with the given ID.
Parameters:
| id | The ID of the view to change to. |
| void removeDiagram (int id)
| removeDiagram |
Deletes a diagram from the current file.
Parameters:
| id | The ID of the diagram to delete. |
| void removeUMLObject (UMLObject*o)
| removeUMLObject |
Removes an UMLObject from the current file. If this object is being represented on a diagram it will also delete all those representations.
Parameters:
| o | The object to delete. |
| UMLObject* findUMLObject (int id)
| findUMLObject |
Used to find a reference to a UMLObject by its ID.
Parameters:
| id | The UMLObject to find. |
Returns: Returns a reference to the UMLObject found. If not found it returns 0.
| UMLObject* findUMLObject (UMLObject_Type type, QString name)
| findUMLObject |
Used to find a UMLObject by its' type and name.
Parameters:
| type | The type of UMLObject to find. |
| name | The name of the UMLObject to find. |
Returns: Returns a reference to the UMLObject found. If not found it returns 0.
| UMLView * findView (int id)
| findView |
Finds a view (diagram) by the ID given to method.
Parameters:
| id | The ID of the view to search for. |
Returns: Returns a reference to the view found. If not found returns 0.
| UMLView * findView (Diagram_Type type, QString name)
| findView |
Finds a view (diagram) by the type and name given.
Parameters:
| type | The type of view to find. |
| name | The name of the view to find. |
Returns: Returns a reference to the view found. If not found returns 0.
| int getUniqueID ()
| getUniqueID |
Used to give a unique ID to any sort of object.
Returns: Returns a unique ID.
| void showProperties (UMLObject *o, int page = 0, bool assoc = false)
| showProperties |
This method is called if you wish to see the properties of a UMLObject. A dialog box will be displayed from which you can change the objects properties.
Parameters:
| o | The object to show properties for. |
| page | The page to show. |
| assoc | Whether to show association page. |
| bool serialize (QDataStream *s, bool archive)
| serialize |
Use to save or load this classes information
Parameters:
| s | Pointer to the datastream (file) to save/load from. |
| archive | If true will save the classes information, else will load the information. |
| bool saveToXMI ( QFile &file )
| saveToXMI |
| bool loadFromXMI ( QFile & file )
| loadFromXMI |
| bool loadUMLObjectsFromXMI ( QDomNode & node )
| loadUMLObjectsFromXMI |
| bool loadDiagramsFromXMI ( QDomNode & node )
| loadDiagramsFromXMI |
| void signalChildUMLObjectUpdate (UMLObject *o)
| signalChildUMLObjectUpdate |
This method is called when a child UMLObject has been updated. This will cause the document to emit the relevant signals.
Parameters:
| o | The object that has been updated. |
| void signalChildUMLObjectCreated (UMLObject *o)
| signalChildUMLObjectCreated |
This method is called when a child UMLObject has been created. This will cause the document to emit the relevant signals.
Parameters:
| o | The object that has been created. |
| void signalDiagramRenamed (UMLView * pView )
| signalDiagramRenamed |
Signal a view/diagram has been renamed.
| void removeAllViews ()
| removeAllViews |
Call to remove all the views (diagrams) in the current file.
| void signalUMLObjectCreated (UMLObject * o)
| signalUMLObjectCreated |
Signal that a UMLObject has been created.
Parameters:
| o | The object that has been created. |
| void signalUMLObjectChanged (UMLObject * o)
| signalUMLObjectChanged |
Signal that a UMLObject has been changed.
Parameters:
| o | The object that has been changed. |
| void showProperties (ObjectWidget * o)
| showProperties |
Show a properties dialog for an ObjectWidget.
Parameters:
| o | The ObjectWidget to represent. |
| void showProperties (UMLWidget * o)
| showProperties |
Show a properties dialog for an UMLWidget.
Parameters:
| o | The UMLWidget to represent. |
| UMLView * getCurrentView ()
| getCurrentView |
Returns the current view.
Returns: Returns the current view.
| MyListView * getListView ()
| getListView |
Returns the list view.
Returns: Returns the list view.
| QList<UMLConcept> getConcepts ()
| getConcepts |
Returns a list of concepts
Returns: Returns a list of concepts
| void print (KPrinter * pPrinter)
|
Controls the printing of the program.
Parameters:
| pPrinter | The printer (object) to use. |
| const QList<UMLView> & getViewIterator ()
| getViewIterator |
[const]
Return the list of views for this document
| bool AddUMLObject (UMLObject* Obj)
| AddUMLObject |
Adds an already created UMLObject to the document, it gets assigned a new ID, if its name is already in use then the function appends a number to it to differentiate it from the others; this number is incremental so if number 1 is in use then it tries 2 and then 3 and so on
| bool AddUMLView (UMLViewData * pViewData )
| AddUMLView |
Adds an already created UMLView to the document, it gets assigned a new ID, if its name is already in use then the function appends a number to it to differentiate it from the others; this number is incremental so if number 1 is in use then it tries 2 and then 3 and so on
| IDChangeLog* getChangeLog ()
| getChangeLog |
[virtual]
Read property of IDChangeLog* m_pChangeLog.
| void EndPaste ()
| EndPaste |
Closes a Paste session, Deletes the ChangeLog
| void BeginPaste ()
| BeginPaste |
Opens a Paste session, Deletes the Old ChangeLog and Creates an empty one
| int AssignNewID (int OldID)
| AssignNewID |
Assigns a New ID to an Object, and also logs the assignment to its internal ChangeLog
| DocWindow * getDocWindow ()
| getDocWindow |
Returns the document window.
| QString getDoc ()
| getDoc |
Returns the documentation for the project.
| void setDoc ( QString doc )
| setDoc |
Sets the documentation for the project.
| bool activateView ( int viewID )
| activateView |
Activate a diagram after loading a new document
Parameters:
| viewID | View's ID to Activate |
Returns: Return true on success Activation
| bool activateAllViews ()
| activateAllViews |
Activate all the diagrams/views after loading so all their widgets keep their ids.
| void getAssciationListAllViews ( UMLView * view, UMLObject * object, AssociationWidgetDataList & list )
| getAssciationListAllViews |
Puts into the list variable a list of associations on all diagrams that contain the given object. The view is given so it doesn't check it's association list to save time.
| void EditCopy ()
| EditCopy |
Passes onto UMLApp that an event equivalent to edit copy has occured.
| void EditCut ()
| EditCut |
Passes onto UMLApp that an event equivalent to edit cut has occured.
| void EditPaste ()
| EditPaste |
Passes onto UMLApp that an event equivalent to edit paste has occured.
| bool getPasteState ()
| getPasteState |
Returns the paste state
| bool getCutCopyState ()
| getCutCopyState |
Returns the state on Cut/Copy
| void addUMLObject ( UMLObject * object )
| addUMLObject |
Adds a UMLObject thats already created but doesn't change any ids or signal. Used by the list view. Use the other AddUMLObject if pasting.
| QSplitter * getSplitter ()
| getSplitter |
Returns the splitter widget used between the views and the listview.
| void settingsChanged (SettingsDlg::OptionState optionState)
| settingsChanged |
Sets the default settings to the given settings.
| static QList<UMLView> * pViewList | pViewList |
| InfoWidget * infoWidget | infoWidget |
| MyListView * listView | listView |
| void slotUpdateAllViews (UMLView *sender)
| slotUpdateAllViews |
[slot]
calls repaint() on all views connected to the document object and is called by the view by which the document has been changed. As this view normally repaints itself, it is excluded from the paintEvent.
| void slotAutoSave ()
| slotAutoSave |
[slot]
Called after a specified time to autosave the document.
| void sigChildObjectChanged (UMLObject *)
| sigChildObjectChanged |
[signal]
| void sigObjectChanged (UMLObject *)
| sigObjectChanged |
[signal]
| void sigDiagramRenamed (int t)
| sigDiagramRenamed |
[signal]
| void sigDiagramChanged (Uml::Diagram_Type)
| sigDiagramChanged |
[signal]
| void sigUpdateItem (int id)
| sigUpdateItem |
[signal]
| void sigChildObjectCreated (UMLObject *)
| sigChildObjectCreated |
[signal]
| void sigDiagramRemoved (int id)
| sigDiagramRemoved |
[signal]
| void sigObjectRemoved (UMLObject *)
| sigObjectRemoved |
[signal]
| void sigDiagramCreated (int id)
| sigDiagramCreated |
[signal]
| void sigObjectCreated (UMLObject *)
| sigObjectCreated |
[signal]
| void sigWidgetUpdated (UMLObject *)
| sigWidgetUpdated |
[signal]
| void sigResetStatusbarProgress ()
| sigResetStatusbarProgress |
[signal]
Reset the status bar
| void sigSetStatusbarProgressSteps (int totalSteps)
| sigSetStatusbarProgressSteps |
[signal]
| void sigSetStatusbarProgress (int stepPosition)
| sigSetStatusbarProgress |
[signal]
| void sigWriteToStatusBar (const QString &text)
| sigWriteToStatusBar |
[signal]
Write text to the status bar
| Generated by: jr on radge on Wed Sep 25 00:11:47 2002, using kdoc 2.0a54. |