| 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 | #include "messageview.h"cxx . . $ `<file>/src/messageview.h`/ |
| 21 | #include "util.h"cxx . . $ `<file>/src/util.h`/ |
| 22 | |
| 23 | MessageViewcxx . . $ MessageView#::MessageViewcxx . . $ MessageView#MessageView(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent): |
| 24 | DesignerViewcxx . . $ DesignerView#(":/midisnoop/messageview.ui"cxx . . $ QString#QString(85c52e162fed56f9)., parent) |
| 25 | { |
| 26 | QWidgetcxx . . $ QWidget# *rootWidget = getRootWidgetcxx . . $ View#getRootWidget(9b769eeb00a33a04).(); |
| 27 | |
| 28 | closeButtoncxx . . $ MessageView#closeButton. = getChildcxx . . $ getChild(4f9d5d769841a92).<QPushButtoncxx . . $ QPushButton#>(rootWidget, "closeButton"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 29 | connectcxx . . $ QObject#connect(f4332061c7e4ca89).(closeButtoncxx . . $ MessageView#closeButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(closeRequest())); |
| 30 | |
| 31 | messagecxx . . $ MessageView#message. = getChildcxx . . $ getChild(4f9d5d769841a92).<QPlainTextEditcxx . . $ QPlainTextEdit#>(rootWidget, "message"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 32 | |
| 33 | sendButtoncxx . . $ MessageView#sendButton. = getChildcxx . . $ getChild(4f9d5d769841a92).<QPushButtoncxx . . $ QPushButton#>(rootWidget, "sendButton"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 34 | connectcxx . . $ QObject#connect(f4332061c7e4ca89).(sendButtoncxx . . $ MessageView#sendButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(handleSendButtonClick())); |
| 35 | } |
| 36 | |
| 37 | MessageViewcxx . . $ MessageView#::~cxx . . $ MessageView#`~MessageView`(ced63f7c635d850d).MessageViewcxx . . $ MessageView#() |
| 38 | { |
| 39 | // Empty |
| 40 | } |
| 41 | |
| 42 | void |
| 43 | MessageViewcxx . . $ MessageView#::handleSendButtonClickcxx . . $ MessageView#handleSendButtonClick(49f6e7a06ebc5aa8).() |
| 44 | { |
| 45 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! sendRequestcxx . . $ MessageView#sendRequest(3520e46b33348bf6).(messagecxx . . $ MessageView#message.->toPlainTextcxx . . $ QPlainTextEdit#toPlainText(6ef7b6c27b00b43d).()); |
| 46 | } |