/***************************************************************************
kdiffdoc.h - description
-------------------
begin : Mon Feb 8 21:33:37 MET 1999
copyright : (C) 1999 by M. Hipp
email : Matthias.Hipp@gmx.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef KDIFFDOC_H
#define KDIFFDOC_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <qobject.h>
#include <qfile.h>
#include <kfiledialog.h>
/**
* This class provides base functionality for your application document
* such as file creation, saving and closing by serialization of a QFile
* Object.
*/
class KdiffDoc : public QObject
{
Q_OBJECT
public:
/** Constructor for the fileclass of the application */
KdiffDoc(QObject*, const char *filename=0L);
/** Destructor for the fileclass of the application */
~KdiffDoc();
/** returns the value of the modified flag*/
bool isModified() {return bModified;};
/** deletes the current document contents */
void deleteContents();
/** saves the document to a file. If a file already exists and is created, it
* saves directly to the file; otherwise it asks for a filename. */
void saveFile();
/** opens the file after a file is selected */
void openFile();
public slots:
/** sets the modified flag */
void setModified(bool m= true);
private:
/** modified flag: true, if actual view is modified */
bool bModified;
};
#endif // KDIFFDOC_H
Documentation generated by bantu@scotty on Mon Feb 8 21:33:38 MET 1999