| 1 | /*************************************************************************** |
| 2 | aloholtool.h |
| 3 | ------------------- |
| 4 | An Alcohol Percentage Calculator utility for QBrew |
| 5 | ------------------- |
| 6 | Copyright 2004-2008, David Johnson <[email protected]> |
| 7 | Based on code Copyright 2004, Michal Palczewski <[email protected]> |
| 8 | All rights reserved. |
| 9 | |
| 10 | Redistribution and use in source and binary forms, with or without |
| 11 | modification, are permitted provided that the following conditions |
| 12 | are met: |
| 13 | |
| 14 | 1. Redistributions of source code must retain the above copyright |
| 15 | notice, this list of conditions and the following disclaimer. |
| 16 | |
| 17 | 2. Redistributions in binary form must reproduce the above copyright |
| 18 | notice, this list of conditions and the following disclaimer in the |
| 19 | documentation and/or other materials provided with the distribution. |
| 20 | |
| 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 24 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 25 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 26 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 27 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 28 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 29 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 | ***************************************************************************/ |
| 33 | |
| 34 | #include <QDialog> |
| 35 | #include "ui_alcoholtool.h" |
| 36 | |
| 37 | class AlcoholTool : public QDialog { |
| 38 | Q_OBJECT |
| 39 | public: |
| 40 | // constructor |
| 41 | AlcoholTool(QWidget* parent=0); |
| 42 | |
| 43 | public slots: |
| 44 | // for calculating the actual SG |
| 45 | void recalc(); |
| 46 | |
| 47 | private: |
| 48 | Ui::AlcoholTool ui; |
| 49 | }; |