summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/kdesavers/sspreviewarea.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
commit7e09b5c2efae58399621a938de26b9675b8ba621 (patch)
treede2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/kdesavers/sspreviewarea.h
parent159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff)
downloadtdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz
tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/kdesavers/sspreviewarea.h')
-rw-r--r--tdescreensaver/kdesavers/sspreviewarea.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/tdescreensaver/kdesavers/sspreviewarea.h b/tdescreensaver/kdesavers/sspreviewarea.h
new file mode 100644
index 00000000..ab36c4b8
--- /dev/null
+++ b/tdescreensaver/kdesavers/sspreviewarea.h
@@ -0,0 +1,58 @@
+//============================================================================
+//
+// KRotation screen saver for KDE
+// Copyright (C) 2004 Georg Drenkhahn
+// $Id$
+//
+//============================================================================
+
+#ifndef SSPREVIEWAREA_H
+#define SSPREVIEWAREA_H
+
+#include <tqwidget.h>
+
+/** @brief Reimplementation of TQWidget emitting a signal if resized.
+ *
+ * This class is equalt to TQWidget except for the fact that the signal resized()
+ * is emitted if the widget gets resized. By this signaling mechanism it is
+ * possible to resize the embedded GL area object within the screen saver setup
+ * dialog.
+ *
+ * In the constructor of the dialog widget (KPendulumSetup::KPendulumSetup(),
+ * KRotationSetup::KRotationSetup()) the signal SsPreviewArea::resized() is
+ * connected with a slot of the screensaver class
+ * (KPendulumSaver::resizeGlArea(), KRotationSaver::resizeGlArea()). This slot
+ * function calls the reimplemented TQGLWidget::resizeGL() method of the GL
+ * widgets (PendulumGLWidget::resizeGL(), RotationGLWidget::resizeGL()) which
+ * really resizes the GL scenery. */
+class SsPreviewArea : public TQWidget
+{
+ Q_OBJECT
+
+
+ public:
+ /** @brief Constructor for SsPreviewArea
+ * @param parent Pointer tp parent widget, forwarded to the TQWidget
+ * constructor
+ * @param name Pointer to widget name, forwarded to the TQWidget constructor
+ *
+ * The constructor just calls TQWidget::TQWidget() with the given arguments.
+ */
+ SsPreviewArea(TQWidget* parent = NULL, const char* name = NULL);
+
+ protected:
+ /** @brief Called if widget gets resized.
+ * @param e Pointer to the corresponding TQResizeEvent object containing the
+ * resize information
+ *
+ * Reimplemented event handler from TQWidget. Only the signal resized() is
+ * emitted. */
+ virtual void resizeEvent(TQResizeEvent* e);
+
+ signals:
+ /** @brief Signal which is emitted in the resizeEvent() method.
+ * @param e Pointer to the corresponding TQResizeEvent object */
+ void resized(TQResizeEvent* e);
+};
+
+#endif