summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmview.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /kpovmodeler/pmview.h
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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