summaryrefslogtreecommitdiffstats
path: root/kviewshell/pageSizeWidget.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 /kviewshell/pageSizeWidget.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 'kviewshell/pageSizeWidget.h')
-rw-r--r--kviewshell/pageSizeWidget.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/kviewshell/pageSizeWidget.h b/kviewshell/pageSizeWidget.h
new file mode 100644
index 00000000..76cc0d02
--- /dev/null
+++ b/kviewshell/pageSizeWidget.h
@@ -0,0 +1,52 @@
+// -*- C++ -*-
+// pageSizeWidget.h
+//
+// Part of KVIEWSHELL - A framework for multipage text/gfx viewers
+//
+// (C) 2002 Stefan Kebekus
+// Distributed under the GPL
+
+// Add header files alphabetically
+
+#ifndef PAGESIZEWIDGET_H
+#define PAGESIZEWIDGET_H
+
+#include "pageSize.h"
+#include "pageSizeWidget_base.h"
+
+class QDoubleValidator;
+
+class pageSizeWidget : public pageSizeWidget_base
+{
+ Q_OBJECT
+
+public:
+ pageSizeWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+
+ // Sets the page size. If the dialog is already shown, updates all
+ // the GUI. Accepts the same strings as input as the setPageSize()
+ // method of the pageSize() class.
+ void setPageSize(const QString&);
+
+ void setOrientation(int ori);
+
+ const pageSize &pageSizeData() const {return chosenSize;}
+
+protected slots:
+ void paperSize(int);
+ void fillTextFields();
+
+ // Dummy function, for convenience. Ignores the argument and calls
+ // the fillTextFields() slot.
+ void unitsChanged(int);
+ void orientationChanged(int = 0);
+ void input(const QString &);
+
+private:
+ pageSize chosenSize;
+
+ QDoubleValidator *widthValidator;
+ QDoubleValidator *heightValidator;
+};
+
+#endif // PAGESIZEWIDGET_H