All pastes #627478 Raw Edit

Something

public text v1 · immutable
·published 2007-07-20 10:33 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_ITEM_HEADER
#define UCD_ITEM_HEADER

//#include <QGraphicsItem>
#include <Plasma/Applet>
#include <Plasma/Svg>
#include <KIcon>

/**
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;

class UCD_Item : public Plasma::Applet
{
  Q_OBJECT
    public:
        // Basic Create/Destroy
        UCD_Item(QObject *parent, const QStringList &args);
        ~UCD_Item();
        // 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);
	Plasma::Applet *applet;
	int i;
    private:
        Plasma::Svg m_tutorialTheme;
        KIcon m_tutorialIcon;
	void snapTo(UCD_Item *item);
	//void snapTo(UCD_Pile *pile);
	void activate();
        void deactivate();
/*    protected:
	void mouseMoveEvent( QGraphicsSceneMouseEvent * event );
	void mouseReleaseEvent( QGraphicsSceneMouseEvent * event );
*/
};

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

#endif