• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

dialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 by Alexis Ménard <darktears31@gmail.com>           *
00003  *   Copyright (C) 2007 Sebastian Kuegler <sebas@kde.org>                  *
00004  *   Copyright (C) 2006 Aaron Seigo <aseigo@kde.org>                       *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  *   This program is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU General Public License for more details.                          *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this program; if not, write to the                         *
00018  *   Free Software Foundation, Inc.,                                       *
00019  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
00020  ***************************************************************************/
00021 
00022 #ifndef PLASMA_DIALOG_H
00023 #define PLASMA_DIALOG_H
00024 
00025 #include <QtGui/QWidget>
00026 #include <QtGui/QGraphicsSceneEvent>
00027 #include <QtGui/QGraphicsView>
00028 
00029 #include <plasma/plasma_export.h>
00030 
00031 
00032 
00033 namespace Plasma
00034 {
00035     class Svg;
00036 
00048 class PLASMA_EXPORT Dialog : public QWidget
00049 {
00050     Q_OBJECT
00051 
00052     public:
00057         explicit Dialog( QWidget * parent = 0,Qt::WindowFlags f =  Qt::Window );
00058         virtual ~Dialog();
00065         void position(QGraphicsSceneEvent *event, const QRectF boundingRect, QPointF scenePos);
00066     
00072         void position(QGraphicsView * view,const QRectF boundingRect,QPointF scenePos);
00073 
00074     protected:
00078         void paintEvent( QPaintEvent *e );
00079 
00080     private:
00084         void paintBackground(QPainter* painter, const QRect &exposedRect);
00089         Plasma::Svg *m_background;
00094         QPixmap *m_cachedBackground;
00095 };
00096 
00097 } // Plasma namespace
00098 
00099 #endif

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal