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

kdgantt1

KDGanttViewItemDrag Class Reference

#include <KDGanttViewItemDrag.h>

Inheritance diagram for KDGanttViewItemDrag:

Inheritance graph
[legend]

List of all members.


Detailed Description

Drag and drop of KD Gantt items.

This class implements drag and drop of KD Gantt items within a Gantt chart. It is mainly used for internal purposes, but made a part of the public API nevertheless, as you may want to subclass it for some specialized functionality.

Definition at line 39 of file KDGanttViewItemDrag.h.


Public Member Functions

QByteArray encodedData (const char *c) const
KDGanttViewItem * getItem ()
 KDGanttViewItemDrag (KDGanttViewItem *item, QWidget *source, const char *name)

Static Public Member Functions

static bool canDecode (const QMimeSource *e)
static bool decode (const QMimeSource *e, QString &)

Constructor & Destructor Documentation

KDGanttViewItemDrag::KDGanttViewItemDrag ( KDGanttViewItem *  item,
QWidget *  source,
const char *  name 
)

The constructor. Creates a KDGanttViewItemDrag object and initializes the drag data in the form of an XML document.

Parameters:
item the item that is dragged
source the source widget
name the internal object name

Definition at line 56 of file KDGanttViewItemDrag.cpp.


Member Function Documentation

bool KDGanttViewItemDrag::canDecode ( const QMimeSource *  e  )  [static]

Returns whether this drag object class can decode the data passed in e.

Parameters:
e the mime source that has been dragged
Returns:
true if KDGanttViewItemDrag can decode the data in e.

Definition at line 122 of file KDGanttViewItemDrag.cpp.

bool KDGanttViewItemDrag::decode ( const QMimeSource *  e,
QString &  string 
) [static]

Decodes the data passed in e into an XML string that is written into string.

Parameters:
e the data to decode
string the resulting XML string
Returns:
true if the operation succeeded

Definition at line 139 of file KDGanttViewItemDrag.cpp.

QByteArray KDGanttViewItemDrag::encodedData ( const char *  c  )  const

Returns the encoded data of the drag object.

Parameters:
c the format of the data
Returns:
the encoded data of the drag object

Definition at line 96 of file KDGanttViewItemDrag.cpp.

KDGanttViewItem * KDGanttViewItemDrag::getItem (  ) 

Returns the dragged item

Returns:
the dragged item

Definition at line 110 of file KDGanttViewItemDrag.cpp.


The documentation for this class was generated from the following files:
  • KDGanttViewItemDrag.h
  • KDGanttViewItemDrag.cpp

kdgantt1

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim 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