All pastes #627477 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-07-20 10:32 UTC
rendered paste body
//
// C++ Interface: ucd_desktop
//
// Description: 
//
//
// Author:  <Johannes Neugschwentner>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef UCD_DESKTOP_HEADER
#define UCD_DESKTOP_HEADER

#include <QGraphicsItem>
#include <Plasma/Applet>
#include <Plasma/Svg>
#include <KIcon>
#include <vector>
//#include "../ucd_item/ucd_item.h"

class UCD_Item;
class UCD_Pile;

/**
This is to be the central file of the UCD-Plasmoid, handling the following:
Lasso Mouse Selection
Mouse Tool
Interface
KConfig
AutoSave

	@author Johannes Neugschwentner
*/

class UCD_Desktop : public Plasma::Applet
{
  Q_OBJECT
    public:
        // Basic Create/Destroy
        UCD_Desktop(QObject *parent, const QStringList &args);
        ~UCD_Desktop();
 
        // This function returns the size of your applet
        QRectF boundingRect() const;
 
        // The paintInterface procedure paints the applet to screen
        void paintInterface(QPainter *painter,
                const QStyleOptionGraphicsItem *option,
                QWidget *widget =0);
	std::vector<Plasma::Applet*> *items;
	std::vector<Plasma::Applet*> *piles;
    private:
        Plasma::Svg m_tutorialTheme;
        KIcon m_tutorialIcon;
	Plasma::Applet* applet;
    protected:
	void mousePressEvent( QGraphicsSceneMouseEvent * event );
};

// This is the command that links your applet to the .desktop file
K_EXPORT_PLASMA_APPLET(ucd_desktop, UCD_Desktop);

#endif