| 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 __ABOUTVIEW_H__ |
| 21 | #define __ABOUTVIEW_H__ |
| 22 | |
| 23 | #include <QtWidgets/QLabel> |
| 24 | #include <QtWidgets/QPushButton> |
| 25 | |
| 26 | #include "dialogview.h" |
| 27 | |
| 28 | class AboutView: public DialogView { |
| 29 | |
| 30 | Q_OBJECT |
| 31 | |
| 32 | public: |
| 33 | |
| 34 | explicit |
| 35 | AboutView(QObject *parent=0); |
| 36 | |
| 37 | ~AboutView(); |
| 38 | |
| 39 | public slots: |
| 40 | |
| 41 | void |
| 42 | setMajorVersion(int majorVersion); |
| 43 | |
| 44 | void |
| 45 | setMinorVersion(int minorVersion); |
| 46 | |
| 47 | void |
| 48 | setRevision(int revision); |
| 49 | |
| 50 | private: |
| 51 | |
| 52 | void |
| 53 | updateVersion(); |
| 54 | |
| 55 | QPushButton *closeButton; |
| 56 | int majorVersion; |
| 57 | int minorVersion; |
| 58 | int revision; |
| 59 | QLabel *version; |
| 60 | |
| 61 | }; |
| 62 | |
| 63 | #endif |