Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
ddSpreadsheetView.h
Go to the documentation of this file.
1 #ifndef __ddSpreadsheetView_h
2 #define __ddSpreadsheetView_h
3 
4 #include "ddViewBase.h"
5 #include "ddAppConfigure.h"
6 
7 
8 class QAbstractItemModel;
9 class QModelIndex;
10 
12 {
13  Q_OBJECT
14 
15 public:
16 
17  ddSpreadsheetView(QWidget* parent=0);
18  virtual ~ddSpreadsheetView();
19 
20 
21  QAbstractItemModel* model();
22 
23  QString headerString(QString sep=", ") const;
24  QString rowString(int row, QString sep=", ") const;
25  QStringList rowData(int index) const;
26  int rowCount() const;
27  int columnCount() const;
28 
29  void appendRow(const QStringList& rowData);
30  void removeRow(int index);
31 
32  virtual bool eventFilter(QObject* obj, QEvent* event);
33 
34 public slots:
35 
36  void clear();
37 
38 
39 protected:
40 
41  void addSelectedCellsToClipboard();
42 
43  QString textFromIndexes(QList<QModelIndex> indexes);
44 
45  class ddInternal;
46  ddInternal* Internal;
47 
49 };
50 
51 #endif
Q_DISABLE_COPY(ddViewBase)
ddInternal * Internal
#define DD_APP_EXPORT