Mercurial > hg > svgui
annotate widgets/ModelDataTableDialog.h @ 399:80c7dd3c8dce
* Add audio device selection to preferences
* Add (not yet functional) insert, delete, edit buttons to data edit window
* Add proper set methods for time fields in data edit window (using general
sparse model base class)
author | Chris Cannam |
---|---|
date | Fri, 13 Jun 2008 21:09:43 +0000 |
parents | 80e279e4f9fe |
children | 32acd578fcba |
rev | line source |
---|---|
Chris@392 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@392 | 2 |
Chris@392 | 3 /* |
Chris@392 | 4 Sonic Visualiser |
Chris@392 | 5 An audio file viewer and annotation editor. |
Chris@392 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@392 | 7 This file copyright 2008 QMUL. |
Chris@392 | 8 |
Chris@392 | 9 This program is free software; you can redistribute it and/or |
Chris@392 | 10 modify it under the terms of the GNU General Public License as |
Chris@392 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@392 | 12 License, or (at your option) any later version. See the file |
Chris@392 | 13 COPYING included with this distribution for more information. |
Chris@392 | 14 */ |
Chris@392 | 15 |
Chris@392 | 16 #ifndef _MODEL_DATA_TABLE_DIALOG_H_ |
Chris@392 | 17 #define _MODEL_DATA_TABLE_DIALOG_H_ |
Chris@392 | 18 |
Chris@396 | 19 #include <QMainWindow> |
Chris@392 | 20 |
Chris@395 | 21 class TabularModel; |
Chris@392 | 22 class ModelDataTableModel; |
Chris@392 | 23 class QTableView; |
Chris@393 | 24 class QModelIndex; |
Chris@393 | 25 class Command; |
Chris@392 | 26 |
Chris@396 | 27 class ModelDataTableDialog : public QMainWindow |
Chris@392 | 28 { |
Chris@392 | 29 Q_OBJECT |
Chris@392 | 30 |
Chris@392 | 31 public: |
Chris@398 | 32 ModelDataTableDialog(TabularModel *model, QString title, QWidget *parent =0); |
Chris@392 | 33 ~ModelDataTableDialog(); |
Chris@392 | 34 |
Chris@394 | 35 signals: |
Chris@394 | 36 void scrollToFrame(unsigned long frame); |
Chris@394 | 37 |
Chris@393 | 38 public slots: |
Chris@394 | 39 void scrollToFrameRequested(unsigned long frame); |
Chris@393 | 40 void executeCommand(Command *); |
Chris@393 | 41 |
Chris@393 | 42 protected slots: |
Chris@393 | 43 void viewClicked(const QModelIndex &); |
Chris@393 | 44 void viewPressed(const QModelIndex &); |
Chris@399 | 45 |
Chris@399 | 46 void insertRow(); |
Chris@399 | 47 void deleteRow(); |
Chris@399 | 48 void editRow(); |
Chris@393 | 49 |
Chris@392 | 50 protected: |
Chris@392 | 51 ModelDataTableModel *m_table; |
Chris@392 | 52 QTableView *m_tableView; |
Chris@392 | 53 }; |
Chris@392 | 54 |
Chris@392 | 55 #endif |