You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.0 KiB
59 lines
2.0 KiB
15 years ago
|
//============================================================================
|
||
|
//
|
||
|
// KRotation screen saver for KDE
|
||
|
// Copyright (C) 2004 Georg Drenkhahn
|
||
|
// $Id$
|
||
|
//
|
||
|
//============================================================================
|
||
|
|
||
|
#ifndef SSPREVIEWAREA_H
|
||
|
#define SSPREVIEWAREA_H
|
||
|
|
||
15 years ago
|
#include <tqwidget.h>
|
||
15 years ago
|
|
||
15 years ago
|
/** @brief Reimplementation of TQWidget emitting a signal if resized.
|
||
15 years ago
|
*
|
||
15 years ago
|
* This class is equalt to TQWidget except for the fact that the signal resized()
|
||
15 years ago
|
* 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
|
||
15 years ago
|
* function calls the reimplemented TQGLWidget::resizeGL() method of the GL
|
||
15 years ago
|
* widgets (PendulumGLWidget::resizeGL(), RotationGLWidget::resizeGL()) which
|
||
|
* really resizes the GL scenery. */
|
||
14 years ago
|
class SsPreviewArea : public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
|
/** @brief Constructor for SsPreviewArea
|
||
14 years ago
|
* @param parent Pointer tp parent widget, forwarded to the TQWidget
|
||
15 years ago
|
* constructor
|
||
15 years ago
|
* @param name Pointer to widget name, forwarded to the TQWidget constructor
|
||
15 years ago
|
*
|
||
15 years ago
|
* The constructor just calls TQWidget::TQWidget() with the given arguments.
|
||
15 years ago
|
*/
|
||
15 years ago
|
SsPreviewArea(TQWidget* parent = NULL, const char* name = NULL);
|
||
15 years ago
|
|
||
|
protected:
|
||
|
/** @brief Called if widget gets resized.
|
||
15 years ago
|
* @param e Pointer to the corresponding TQResizeEvent object containing the
|
||
15 years ago
|
* resize information
|
||
|
*
|
||
15 years ago
|
* Reimplemented event handler from TQWidget. Only the signal resized() is
|
||
15 years ago
|
* emitted. */
|
||
15 years ago
|
virtual void resizeEvent(TQResizeEvent* e);
|
||
15 years ago
|
|
||
|
signals:
|
||
|
/** @brief Signal which is emitted in the resizeEvent() method.
|
||
15 years ago
|
* @param e Pointer to the corresponding TQResizeEvent object */
|
||
|
void resized(TQResizeEvent* e);
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|