• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • widgets
draglistbox.h
Go to the documentation of this file.
1 /***************************************************************************
2  draglistbox.h - description
3  -------------------
4  begin : Sun May 29 2005
5  copyright : (C) 2005 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef DRAGLISTBOX_H
19 #define DRAGLISTBOX_H
20 
21 #include <klistwidget.h>
22 //Added by qt3to4:
23 #include <QDragEnterEvent>
24 #include <QMouseEvent>
25 #include <QDropEvent>
26 
27 class QDragEnterEvent;
28 
36 class DragListBox : public KListWidget {
37  Q_OBJECT
38 public:
41  explicit DragListBox( QWidget *parent = 0, const char* name = 0 );
42 
45  ~DragListBox();
46 
47  int ignoreIndex() const { return IgnoreIndex; }
48  bool contains( const QString &s ) const;
49 
50  void dragEnterEvent( QDragEnterEvent *evt );
51  void dragMoveEvent( QDragMoveEvent *evt );
52  void dropEvent( QDropEvent *evt );
53  void mousePressEvent( QMouseEvent *evt );
54  void mouseMoveEvent( QMouseEvent * );
55  void mouseReleaseEvent( QMouseEvent * );
56 private:
57  bool leftButtonDown;
58  int IgnoreIndex;
59 
60 };
61 
62 #endif //DRAGLISTBOX_H
DragListBox::contains
bool contains(const QString &s) const
Definition: draglistbox.cpp:40
DragListBox::dropEvent
void dropEvent(QDropEvent *evt)
Definition: draglistbox.cpp:64
QWidget
DragListBox::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *)
Definition: draglistbox.cpp:105
DragListBox
Extension of KListWidget that allows Drag-and-Drop with other DragListBoxes.
Definition: draglistbox.h:36
DragListBox::dragMoveEvent
void dragMoveEvent(QDragMoveEvent *evt)
Definition: draglistbox.cpp:55
DragListBox::mousePressEvent
void mousePressEvent(QMouseEvent *evt)
Definition: draglistbox.cpp:97
DragListBox::DragListBox
DragListBox(QWidget *parent=0, const char *name=0)
Default constructor.
Definition: draglistbox.cpp:28
DragListBox::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *)
Definition: draglistbox.cpp:113
DragListBox::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *evt)
Definition: draglistbox.cpp:46
KListWidget
DragListBox::ignoreIndex
int ignoreIndex() const
Definition: draglistbox.h:47
DragListBox::~DragListBox
~DragListBox()
Default destructor.
Definition: draglistbox.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal