Logo Search packages:      
Sourcecode: basket version File versions  Download package

Item Class Reference

#include <item.h>

List of all members.


Detailed Description

Implement all droped objects.
Author:
Sébastien Laoût

Definition at line 79 of file item.h.


Public Types

enum  Type {
  Text = 1, Html, Image, Animation,
  Sound, File, Link, Launcher,
  Color, Unknow
}

Public Slots

void alignChanged (int hAlign, int vAlign)
void delayedEnsureVisible ()
void execAction ()
void execAction (OnClickAction::Action action)
void linkLookChanged ()
void loadContent ()
void lockedChanged (bool lock)
void movieStatus (int status)
void saveAs (const KURL &dest)
void saveProperties ()
void select ()
void showCheckBoxesChanged (bool show)
void slotCopy (bool toSelection=false, bool cutting=false)
void slotCopySelection ()
void slotCut ()
void slotDelete ()
void slotEdit (bool editAnnotations=false)
void slotEditAnnotations ()
void slotOpen ()
void slotOpenWith ()
void slotPaste ()
void slotSaveAs ()
void updateToolTip ()

Signals

void wantDelete (Item *item)
void wantPaste (QClipboard::Mode mode)

Public Member Functions

QString annotations ()
bool autoIcon ()
bool autoTitle ()
QColor color ()
void dragItem ()
QString fileName ()
void fileNameChanged (const QString &fileName)
QString fullPath ()
int heightForWidth (int w=-1) const
QString html ()
QString icon ()
bool isAlternate ()
bool isAMirror ()
bool isChecked ()
bool isDuplicateOf (Item *item)
bool isSelected ()
 Item (const QColor &color, const QString &annotations, bool checked, Basket *parent)
 Item (const QString &fileName, Type type, const QString &annotations, bool checked, Basket *parent)
 Item (const KURL &url, const QString &title, const QString &icon, bool autoTitle, bool autoIcon, const QString &annotations, bool checked, Basket *parent)
 Item (const QString &fileName, const QString &annotations, bool checked, Basket *parent)
 Item (const QString &fileName, int fontType, const QColor &fontColor, const QString &annotations, bool checked, Basket *parent)
QString lowerTypeName ()
bool match (const SearchData &data)
QMovie * movie ()
Itemnext ()
int onClickActionPolicy ()
BasketparentBasket ()
QPixmap * pixmap ()
void plugTo (Item *previous, Item *next)
Itemprevious ()
int realWidthWithCheckbox () const
int realXWithCheckbox () const
KService * service ()
void setAlternate (bool alt)
void setAnnotations (const QString &annotations)
void setAuto (bool autoTitle, bool autoIcon)
void setChecked (bool check)
void setColor (QColor color)
void setFile ()
bool setFileName (const QString &fileName)
void setFocused (bool focused)
void setHtml (const QString &html)
void setLauncher (const QString &name, const QString &icon)
void setNext (Item *item)
void setPaletteBackgroundColor (const QColor &color)
void setPaletteForegroundColor (const QColor &color)
void setPixmap (const QPixmap &pixmap)
void setPrevious (Item *item)
void setSelected (bool selected)
void setText (const QString &text, int type, QColor fontColor)
void setText (const QString &text)
void setTextStyle (int type, QColor fontColor)
void setUrl (const KURL &url, const QString &title, const QString &icon)
void setX (int x)
void setY (int y)
QString text ()
QColor textColor ()
int textFontType ()
QString title ()
QString toHtml (const QString &imageName)
QString toString ()
Type type ()
QString typeName ()
void unmirror ()
KURL url ()
bool useFile ()
bool useLinkLabel ()
int x ()
int y ()

Static Public Member Functions

static bool isAMirror (const QString &fileName)
static QString urlWithoutProtocol (const KURL &url)

Protected Member Functions

virtual void enterEvent (QEvent *)
virtual void leaveEvent (QEvent *)
virtual void mouseDoubleClickEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)

Private Slots

void slotChecked ()
void slotResult (KIO::Job *job)

Private Member Functions

void initItem (bool checked)
bool tiggerableActions (QMouseEvent *event)

Private Attributes

QString m_annotations
bool m_autoIcon
bool m_autoTitle
bool m_canDrag
AlignableCheckBoxm_check
QColor * m_color
QString m_fileName
QString * m_icon
bool m_isAlternate
bool m_isFocused
bool m_isSelected
QLabel * m_item
QHBoxLayout * m_layout
LinkLabelm_linkLabel
Itemm_next
Basketm_parentBasket
KDE::PlayObjectFactory * m_playFactory
KDE::PlayObject * m_playObj
KArtsServer * m_playServer
QPoint m_pressPos
Itemm_previous
QTimer m_selectTimer
QColor m_textColor
int m_textFontType
QString * m_title
Type m_type
KURL * m_url
bool m_wasPressed
int m_x
int m_y

Static Private Attributes

static const int margins = 2

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index