summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpovmodeler/pmview.h')
-rw-r--r--kpovmodeler/pmview.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/kpovmodeler/pmview.h b/kpovmodeler/pmview.h
new file mode 100644
index 00000000..8a216663
--- /dev/null
+++ b/kpovmodeler/pmview.h
@@ -0,0 +1,76 @@
+//-*-C++-*-
+/*
+**************************************************************************
+ description
+ --------------------
+ copyright : (C) 2000-2001 by Andreas Zehender
+ email : zehender@kde.org
+**************************************************************************
+
+**************************************************************************
+* *
+* 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 PMVIEW_H
+#define PMVIEW_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+// include files for Qt
+#include <qwidget.h>
+
+class PMTreeView;
+class PMDialogView;
+class PMPart;
+class QSplitter;
+class KConfig;
+
+/**
+ * The PMView class provides the view widget for the PMPart document class.
+ */
+class PMView : public QWidget
+{
+ Q_OBJECT
+public:
+ /**
+ * Constructor for the main view
+ */
+ PMView( PMPart* part, QWidget* parent = 0, const char* name = 0 );
+ /**
+ * Destructor for the main view
+ */
+ ~PMView( );
+
+ /**
+ * returns a pointer to the part
+ */
+ PMPart* part( ) const { return m_pPart; }
+
+ /**
+ * contains the implementation for printing functionality TODO*/
+ void print( QPrinter* pPrinter );
+ /**
+ * saves settings
+ */
+ void saveConfig( KConfig* cfg );
+ /**
+ * loads settings
+ */
+ void restoreConfig( KConfig* cfg );
+private:
+ PMTreeView* m_pTreeView;
+ PMPart* m_pPart;
+ PMDialogView* m_pDialogView;
+ QSplitter* m_pMainSplitter;
+ QSplitter* m_pTreeEditSplitter;
+};
+
+#endif