VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
projectTreeWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: projectTreeWidget.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef DtProjectTreeWidget_H
9 #define DtProjectTreeWidget_H
10 
11 #include <QTreeWidget>
12 
13 class QDragEnterEvent;
14 class QDropEvent;
15 class QMimeData;
16 
18 {
19  Q_OBJECT
20 
21 public:
22 
23  DtProjectTreeWidget(QWidget * parent = 0 );
24 
25  virtual ~DtProjectTreeWidget();
26 
27 public:
28 
29  virtual QString cleanPath(const QString& sPath) const;
30  virtual QStringList scenarioFilePathsForDirectory(const QString& sDir) const;
31 
32 signals:
33 
34  void notifyContextEvent(QTreeWidgetItem*, int, int);
35  void notifyDropEvent(const QStringList&);
36 
37 protected:
38 
39  virtual bool canAcceptFile(const QString& filePath) const;
40  virtual bool canAcceptFiles(const QStringList& fileList) const;
41 
42  virtual void contextMenuEvent ( QContextMenuEvent * event );
43 
44  virtual void dragEnterEvent ( QDragEnterEvent * event );
45  virtual void dragMoveEvent ( QDragMoveEvent * event ) ;
46  virtual void dropEvent ( QDropEvent * event );
47 
48  virtual bool dropMimeData ( QTreeWidgetItem * parent,
49  int index,
50  const QMimeData * data,
51  Qt::DropAction action );
52 
53  virtual QStringList parseMimeData(const QMimeData& mdata) const;
54 
55 protected:
56 
57 };
58 
59 #endif // UI_MAINWINDOWUI_H

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)