/***************************************************************************
                          kdddlldoc.h  -  description                              
                             -------------------                                         

    version              : 0.1pre-alpha                                  
    begin                : Tue Mar  2 19:33:11 CET 1999
                                           
    copyright            : (C) 1999 by Uwe Böhme                         
    email                : uwe@hof.baynet.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 KDDDLLDOC_H 
#define KDDDLLDOC_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 KDDDLLDoc : public QObject
{
  Q_OBJECT

 public:
  /** Constructor for the fileclass of the application */
  KDDDLLDoc(QObject*, const char *filename=0L);
  /** Destructor for the fileclass of the application */
  ~KDDDLLDoc();
  /** 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 // KDDDLLDOC_H



Documentation generated by dboffice@home on Tue Mar 2 19:33:13 CET 1999