| 1 | /*************************************************************************** |
| 2 | databasetool.h |
| 3 | ------------------- |
| 4 | Database editor for QBrew |
| 5 | ------------------- |
| 6 | Copyright 2005-2008, David Johnson |
| 7 | All rights reserved. |
| 8 | |
| 9 | Redistribution and use in source and binary forms, with or without |
| 10 | modification, are permitted provided that the following conditions |
| 11 | are met: |
| 12 | |
| 13 | 1. Redistributions of source code must retain the above copyright |
| 14 | notice, this list of conditions and the following disclaimer. |
| 15 | |
| 16 | 2. Redistributions in binary form must reproduce the above copyright |
| 17 | notice, this list of conditions and the following disclaimer in the |
| 18 | documentation and/or other materials provided with the distribution. |
| 19 | |
| 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 21 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 24 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 25 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 26 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 27 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 28 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | ***************************************************************************/ |
| 32 | |
| 33 | #ifndef DATABASETOOL_H |
| 34 | #define DATABASETOOL_Hcxx . . $ `src/databasetool.h:34:9`! |
| 35 | |
| 36 | #include <QMainWindow> |
| 37 | |
| 38 | #include "ui_databasetool.h"cxx . . $ `<file>/build/ui_databasetool.h`/ |
| 39 | #include "ui_ingredientpage.h"cxx . . $ `<file>/build/ui_ingredientpage.h`/ |
| 40 | |
| 41 | #include "grainmodel.h"cxx . . $ `<file>/src/grainmodel.h`/ |
| 42 | #include "hopmodel.h"cxx . . $ `<file>/src/hopmodel.h`/ |
| 43 | #include "miscmodel.h"cxx . . $ `<file>/src/miscmodel.h`/ |
| 44 | #include "stylemodel.h"cxx . . $ `<file>/src/stylemodel.h`/ |
| 45 | |
| 46 | class QTableViewcxx . . $ QTableView#; |
| 47 | class Datacxx . . $ Data#; |
| 48 | |
| 49 | class DatabaseToolcxx . . $ DatabaseTool# : public QMainWindowcxx . . $ QMainWindow# { |
| 50 | Q_OBJECTcxx . . $ DatabaseTool#QPrivateSignal# |
| 51 | public: |
| 52 | // constructor |
| 53 | DatabaseToolcxx . . $ DatabaseTool#DatabaseTool(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent=0); |
| 54 | // destructor |
| 55 | ~cxx . . $ DatabaseTool#`~DatabaseTool`(ced63f7c635d850d).DatabaseToolcxx . . $ DatabaseTool#(); |
| 56 | |
| 57 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 58 | // save the database |
| 59 | void fileSavecxx . . $ DatabaseTool#fileSave(49f6e7a06ebc5aa8).(); |
| 60 | // received if data has changed |
| 61 | void dataModifiedcxx . . $ DatabaseTool#dataModified(49f6e7a06ebc5aa8).(); |
| 62 | |
| 63 | private: |
| 64 | Uicxx . . $ Ui/::DatabaseToolcxx . . $ Ui/DatabaseTool# uicxx . . $ DatabaseTool#ui.; |
| 65 | Uicxx . . $ Ui/::IngredientPagecxx . . $ Ui/IngredientPage# grainpagecxx . . $ DatabaseTool#grainpage.; |
| 66 | Uicxx . . $ Ui/::IngredientPagecxx . . $ Ui/IngredientPage# hoppagecxx . . $ DatabaseTool#hoppage.; |
| 67 | Uicxx . . $ Ui/::IngredientPagecxx . . $ Ui/IngredientPage# miscpagecxx . . $ DatabaseTool#miscpage.; |
| 68 | Uicxx . . $ Ui/::IngredientPagecxx . . $ Ui/IngredientPage# stylepagecxx . . $ DatabaseTool#stylepage.; |
| 69 | |
| 70 | GrainListcxx . . $ GrainList# grains_cxx . . $ DatabaseTool#grains_.; |
| 71 | HopListcxx . . $ HopList# hops_cxx . . $ DatabaseTool#hops_.; |
| 72 | MiscListcxx . . $ MiscList# miscs_cxx . . $ DatabaseTool#miscs_.; |
| 73 | StyleListcxx . . $ StyleList# styles_cxx . . $ DatabaseTool#styles_.; |
| 74 | |
| 75 | GrainModelcxx . . $ GrainModel# *grainmodel_cxx . . $ DatabaseTool#grainmodel_.; |
| 76 | HopModelcxx . . $ HopModel# *hopmodel_cxx . . $ DatabaseTool#hopmodel_.; |
| 77 | MiscModelcxx . . $ MiscModel# *miscmodel_cxx . . $ DatabaseTool#miscmodel_.; |
| 78 | StyleModelcxx . . $ StyleModel# *stylemodel_cxx . . $ DatabaseTool#stylemodel_.; |
| 79 | |
| 80 | bool modified_cxx . . $ DatabaseTool#modified_.; |
| 81 | }; |
| 82 | |
| 83 | #endif // DATABASETOOL_H |