/***************************************************************************
kdbxview.h - description
-------------------
begin : Sat May 12 19:36:13 BST 2001
copyright : (C) 2001 by
email :
***************************************************************************/
/***************************************************************************
* *
* 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 KDBXVIEW_H
#define KDBXVIEW_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// include files for Qt
#include <qwidget.h>
#include "dbxtree.h"
class KdbxDoc;
class KListView;
class QListViewItem;
/** The KdbxView class provides the view widget for the KdbxApp instance.
* The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As KdbxView is part of the
* docuement-view model, it needs a reference to the document object connected with it by the KdbxApp class to manipulate and display
* the document structure provided by the KdbxDoc class.
*
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 0.4 code generation
*/
class KdbxView : public QWidget
{
Q_OBJECT
public:
/** Constructor for the main view */
KdbxView(QWidget *parent = 0, const char *name=0);
/** Destructor for the main view */
~KdbxView();
/** returns a pointer to the document connected to the view instance. Mind that this method requires a KdbxApp instance as a parent
* widget to get to the window document pointer by calling the KdbxApp::getDocument() method.
*
* @see KdbxApp#getDocument
*/
KdbxDoc *getDocument() const;
/** contains the implementation for printing functionality */
void print(QPrinter *pPrinter);
void loadData();
protected:
// void paintEvent(QPaintEvent*);
private:
void buildTree(DBXTREE*, QListViewItem*);
KListView *folderlist;
};
#endif // KDBXVIEW_H
| Generated by: dave@davepc on Sun May 13 17:03:35 2001, using kdoc 2.0a42. |