| 1 | /* |
| 2 | * midisnoop - MIDI monitor and prober |
| 3 | * Copyright (C) 2012 Devin Anderson |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by the Free |
| 7 | * Software Foundation; either version 2 of the License, or (at your option) |
| 8 | * any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 13 | * more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along with |
| 16 | * this program; if not, write to the Free Software Foundation, Inc., 675 Mass |
| 17 | * Ave, Cambridge, MA 02139, USA. |
| 18 | */ |
| 19 | |
| 20 | #ifndef __MAINVIEW_H__ |
| 21 | #define __MAINVIEW_H__cxx . . $ `src/mainview.h:21:9`! |
| 22 | |
| 23 | #include <QtGui/QStandardItemModel> |
| 24 | #include <QtWidgets/QAction> |
| 25 | #include <QtWidgets/QMainWindow> |
| 26 | #include <QtWidgets/QTableView> |
| 27 | |
| 28 | #include "designerview.h"cxx . . $ `<file>/src/designerview.h`/ |
| 29 | #include "messagetabledelegate.h"cxx . . $ `<file>/src/messagetabledelegate.h`/ |
| 30 | |
| 31 | class MainViewcxx . . $ MainView#: public DesignerViewcxx . . $ DesignerView# { |
| 32 | |
| 33 | Q_OBJECTcxx . . $ MainView#staticMetaObject. |
| 34 | |
| 35 | public: |
| 36 | |
| 37 | explicit |
| 38 | MainViewcxx . . $ MainView#MainView(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent=0); |
| 39 | |
| 40 | ~cxx . . $ MainView#`~MainView`(ced63f7c635d850d).MainViewcxx . . $ MainView#(); |
| 41 | |
| 42 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 43 | |
| 44 | void |
| 45 | addReceivedMessagecxx . . $ MainView#addReceivedMessage(e22750454831b9e4).(quint64cxx . . $ quint64# timeStamp, const QStringcxx . . $ QString# &statusDescription, |
| 46 | const QStringcxx . . $ QString# &dataDescription, bool valid); |
| 47 | |
| 48 | void |
| 49 | addSentMessagecxx . . $ MainView#addSentMessage(e22750454831b9e4).(quint64cxx . . $ quint64# timeStamp, const QStringcxx . . $ QString# &statusDescription, |
| 50 | const QStringcxx . . $ QString# &dataDescription, bool valid); |
| 51 | |
| 52 | void |
| 53 | clearMessagescxx . . $ MainView#clearMessages(49f6e7a06ebc5aa8).(); |
| 54 | |
| 55 | void |
| 56 | setMessageSendEnabledcxx . . $ MainView#setMessageSendEnabled(b45ddcbc8423892c).(bool enabled); |
| 57 | |
| 58 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 59 | |
| 60 | void |
| 61 | aboutRequestcxx . . $ MainView#aboutRequest(49f6e7a06ebc5aa8).(); |
| 62 | |
| 63 | void |
| 64 | addMessageRequestcxx . . $ MainView#addMessageRequest(49f6e7a06ebc5aa8).(); |
| 65 | |
| 66 | void |
| 67 | clearMessagesRequestcxx . . $ MainView#clearMessagesRequest(49f6e7a06ebc5aa8).(); |
| 68 | |
| 69 | void |
| 70 | configureRequestcxx . . $ MainView#configureRequest(49f6e7a06ebc5aa8).(); |
| 71 | |
| 72 | private: |
| 73 | |
| 74 | enum MessageTableColumncxx . . $ MainView#MessageTableColumn# { |
| 75 | MESSAGETABLECOLUMN_TIMESTAMPcxx . . $ MainView#MESSAGETABLECOLUMN_TIMESTAMP. = 0, |
| 76 | MESSAGETABLECOLUMN_STATUScxx . . $ MainView#MESSAGETABLECOLUMN_STATUS. = 1, |
| 77 | MESSAGETABLECOLUMN_DATAcxx . . $ MainView#MESSAGETABLECOLUMN_DATA. = 2, |
| 78 | |
| 79 | MESSAGETABLECOLUMN_TOTALcxx . . $ MainView#MESSAGETABLECOLUMN_TOTAL. = 3 |
| 80 | }; |
| 81 | |
| 82 | int |
| 83 | addMessagecxx . . $ MainView#addMessage(5a5f492b7abd2693).(quint64cxx . . $ quint64# timeStamp, const QStringcxx . . $ QString# &statusDescription, |
| 84 | const QStringcxx . . $ QString# &dataDescription, bool valid); |
| 85 | |
| 86 | void |
| 87 | setModelDatacxx . . $ MainView#setModelData(6f4589bb1ee65142).(int row, int column, const QVariantcxx . . $ QVariant# &value, |
| 88 | int role=Qtcxx . . $ Qt/::DisplayRolecxx . . $ Qt/DisplayRole.); |
| 89 | |
| 90 | QActioncxx . . $ QAction# *aboutActioncxx . . $ MainView#aboutAction.; |
| 91 | QActioncxx . . $ QAction# *addActioncxx . . $ MainView#addAction.; |
| 92 | QActioncxx . . $ QAction# *clearActioncxx . . $ MainView#clearAction.; |
| 93 | QActioncxx . . $ QAction# *configureActioncxx . . $ MainView#configureAction.; |
| 94 | MessageTableDelegatecxx . . $ MessageTableDelegate# tableDelegatecxx . . $ MainView#tableDelegate.; |
| 95 | QActioncxx . . $ QAction# *quitActioncxx . . $ MainView#quitAction.; |
| 96 | QStandardItemModelcxx . . $ QStandardItemModel# tableModelcxx . . $ MainView#tableModel.; |
| 97 | QTableViewcxx . . $ QTableView# *tableViewcxx . . $ MainView#tableView.; |
| 98 | |
| 99 | }; |
| 100 | |
| 101 | #endif |