class MyTestDoc

* 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. More...

Definition#include <mytestdoc.h>
InheritsQObject (unknown) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Private Members


Detailed Description

* 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 MyTestView

MyTestView

[private]

 MyTestDoc ()

MyTestDoc

 ~MyTestDoc ()

~MyTestDoc

void  addView (MyTestView *view)

addView

void  removeView (MyTestView *view)

removeView

void  changedViewList ()

changedViewList

MyTestView*  firstView ()

firstView

bool  isLastView ()

isLastView

bool  canCloseFrame (MyTestView* pFrame)

canCloseFrame

This method gets called when the user is about to close a frame window. It checks, if more than one view is connected to the document (then the frame can be closed), if pFrame is the last view and the document is modified, the user gets asked if he wants to save the document.

void  setModified (bool _m=true)

setModified

bool  isModified ()

isModified

void  deleteContents ()

deleteContents

bool  newDocument ()

newDocument

void  closeDocument ()

closeDocument

bool  openDocument (const KURL &url, const char *format=0)

openDocument

bool  saveDocument (const KURL &url, const char *format=0)

saveDocument

const KURL&  URL ()

URL

[const]

void  setURL (const KURL& url)

setURL

void  updateAllViews (MyTestView *sender)

updateAllViews

[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.

bool modified

modified

[private]

KURL doc_url

doc_url

[private]

QList<MyTestView> * pViewList

pViewList

[private]


Generated by: guivol on linux on Thu Mar 4 17:29:43 2004, using kdoc 2.0a54.