class KFileCoderDoc

* 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 <kfilecoderdoc.h>
InheritsQObject
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Public Members

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

 KFileCoderDoc (QWidget *parent, const char *name=0)

Constructor for the fileclass of the application

KFileCoderDoc ()

Destructor for the fileclass of the application

void  addView (KFileCoderView *view)

adds a view to the document which represents the document contents. Usually this is your main view.

void  removeView (KFileCoderView *view)

removes a view from the list of currently connected views

void  setModified (bool _m=true)

sets the modified flag for the document after a modifying action on the view connected to the document.

bool  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 ()

"save modified" - asks the user for saving if the document is modified

void  deleteContents ()

deletes the document's contents

bool  newDocument ()

initializes the document generally

void  closeDocument ()

closes the acutal document

bool  openDocument (const QString &filename, const char *format=0)

loads the document by filename and format and emits the updateViews() signal

bool  saveDocument (const QString &filename, const char *format=0)

saves the document under filename and format.

void  setAbsFilePath (const QString &filename)

sets the path to the file connected with the document

const QString & getAbsFilePath ()

[const]

returns the pathname of the current document file

void  setTitle (const QString &_t)

sets the filename of the document

const QString & getTitle ()

[const]

returns the title of the document

void  slotUpdateAllViews (KFileCoderView *sender)

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

static QList<KFileCoderView> * pViewList

the list of the views currently connected to the document

bool modified

[private]

the modified flag of the current document


Generated by: root@celeron433 on Mon Mar 13 18:03:01 2000, using kdoc 2.0a35.