/***************************************************************************
kdiffview.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 KDIFFVIEW_H
#define KDIFFVIEW_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <kapp.h>
#include <qwidget.h>
/**
* This class provides an incomplete base for your application view.
* This also requires a new implementation of resizeEvent so your view is
* displayed correctly. Your View Widget should provide methods to handle
* the users actions on the view and interact with the doc class of the
* application to set the modified flag for the document.
* Example: You decided to use a QMultilineEdit widget in your view. This
* Widget emits a signal textChaged() if the user changes the text. Then, you
* could use this signal to connect to the slot of the doc class to set the
* modified flag (which then enables the save and save as items. */
class KdiffView : public QWidget
{
Q_OBJECT
public:
/** Constructor for the main view */
KdiffView(QWidget *parent = 0, const char *name = 0);
/** Destructor for the main view */
virtual ~KdiffView();
public slots:
/** put the marked text/object into the clipboard and remove
* it from the document */
void slotEditCut();
/** put the marked text/object into the clipboard*/
void slotEditCopy();
/** paste the clipboard into the document*/
void slotEditPaste();
protected:
/** resizeEvent for the main view */
virtual void resizeEvent(QResizeEvent *evt);
private:
////////////////////////////////////////////////////////
// TODO: Add your individual application widgets here
};
#endif // KDIFFVIEW_H
Documentation generated by bantu@scotty on Mon Feb 8 21:33:38 MET 1999