Commit dacfd76f authored by Jan Möbius's avatar Jan Möbius

Added missing dllexport

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5027 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 960d5e7c
//============================================================================= //=============================================================================
// //
// OpenFlipper // OpenFlipper
// Copyright (C) 2008 by Computer Graphics Group, RWTH Aachen // Copyright (C) 2008 by Computer Graphics Group, RWTH Aachen
// www.openflipper.org // www.openflipper.org
// //
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// License // License
// //
// OpenFlipper is free software: you can redistribute it and/or modify // OpenFlipper is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by // it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// //
// OpenFlipper is distributed in the hope that it will be useful, // OpenFlipper is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details. // GNU Lesser General Public License for more details.
// //
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with OpenFlipper. If not, see <http://www.gnu.org/licenses/>. // along with OpenFlipper. If not, see <http://www.gnu.org/licenses/>.
// //
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Revision: $ // $Revision: $
// $Author: $ // $Author: $
// $Date: $ // $Date: $
// //
//============================================================================= //=============================================================================
#ifndef QT_SLIDE_WINDOW_ #ifndef QT_SLIDE_WINDOW_
#define QT_SLIDE_WINDOW_ #define QT_SLIDE_WINDOW_
//============================================================================= //=============================================================================
// //
// CLASS QtSlideWindow // CLASS QtSlideWindow
// //
//============================================================================= //=============================================================================
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include <QGraphicsProxyWidget> #include <QGraphicsProxyWidget>
#include <OpenFlipper/common/GlobalDefines.hh>
//== FORWARDDECLARATIONS ======================================================
//== FORWARDDECLARATIONS ======================================================
class QtGraphicsButton;
class QTimeLine; class QtGraphicsButton;
class QGraphicsItemAnimation; class QTimeLine;
class QGraphicsItemAnimation;
//== CLASS DEFINITION =========================================================
//== CLASS DEFINITION =========================================================
/** \class QtSlideWindow QtSlideWindow.hh <OpenFlipper/widgets/glWidget/QtSlideWindow.hh>
/** \class QtSlideWindow QtSlideWindow.hh <OpenFlipper/widgets/glWidget/QtSlideWindow.hh>
A graphics scene widget that has a hover slide effect and detach functionality
for a child widget A graphics scene widget that has a hover slide effect and detach functionality
**/ for a child widget
**/
class QtSlideWindow : public QGraphicsProxyWidget
{ class DLLEXPORT QtSlideWindow : public QGraphicsProxyWidget
Q_OBJECT {
Q_OBJECT
public:
/** Create a glViewer. public:
\param _name displayed titlebar name /** Create a glViewer.
\param _parent parent graphics item \param _name displayed titlebar name
*/ \param _parent parent graphics item
QtSlideWindow (QString _name = 0, QGraphicsItem *_parent = 0); */
QtSlideWindow (QString _name = 0, QGraphicsItem *_parent = 0);
/// recalculate geometry
void updateGeometry (); /// recalculate geometry
void updateGeometry ();
/// attach a child widget
void attachWidget (QWidget *_m); /// attach a child widget
void attachWidget (QWidget *_m);
/// detach child widget
void detachWidget (); /// detach child widget
void detachWidget ();
private:
private:
/// paints decoration
virtual void paintWindowFrame(QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget = 0); /// paints decoration
virtual void paintWindowFrame(QPainter *_painter, const QStyleOptionGraphicsItem *_option, QWidget *_widget = 0);
/// track frame events
virtual bool windowFrameEvent(QEvent *_e); /// track frame events
virtual bool windowFrameEvent(QEvent *_e);
/// categorize frame area
virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF &_pos) const; /// categorize frame area
virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF &_pos) const;
/// hove event tracking
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event); /// hove event tracking
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event); virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event);
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event);
/// size & position event tracking
virtual void resizeEvent (QGraphicsSceneResizeEvent *_event); /// size & position event tracking
virtual void moveEvent (QGraphicsSceneMoveEvent *_event); virtual void resizeEvent (QGraphicsSceneResizeEvent *_event);
virtual void moveEvent (QGraphicsSceneMoveEvent *_event);
private slots:
/// detach button pressed private slots:
void detachPressed (); /// detach button pressed
void detachPressed ();
/// detached dialog closed
void dialogClosed (); /// detached dialog closed
void dialogClosed ();
/// autohide button presed
void autohidePressed (); /// autohide button presed
void autohidePressed ();
private:
private:
// name
QString name_; // name
QString name_;
// child widget
QWidget *mainWidget_; // child widget
QWidget *mainWidget_;
// buttons
QtGraphicsButton *autohideButton_; // buttons
QtGraphicsButton *detachButton_; QtGraphicsButton *autohideButton_;
QtGraphicsButton *detachButton_;
// animation
QTimeLine *hideTimeLine_; // animation
QGraphicsItemAnimation *hideAnimation_; QTimeLine *hideTimeLine_;
QGraphicsItemAnimation *hideAnimation_;
// detached dialog
QDialog *dialog_; // detached dialog
}; QDialog *dialog_;
};
//=============================================================================
//============================================================================= //=============================================================================
#endif // QT_SLIDE_WINDOW_ defined //=============================================================================
#endif // QT_SLIDE_WINDOW_ defined
//============================================================================= //=============================================================================
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment