| 1 | /* |
| 2 | * File: DecolationRules.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: May 10, 2014 |
| 6 | * |
| 7 | * Copyright (c) 2009-2014 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object represents the decolation rules for the Hercules Studio printer |
| 11 | * |
| 12 | * This program is free software: you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by |
| 14 | * the Free Software Foundation, either version 3 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | #ifndef DECOLATIONRULES_H |
| 28 | #define DECOLATIONRULES_Hcxx . . $ `HercPrinter/DecolationRules.h:28:9`! |
| 29 | |
| 30 | #include "Trigger.h"cxx . . $ `<file>/HercPrinter/Trigger.h`/ |
| 31 | |
| 32 | #include <QList> |
| 33 | #include <QList> |
| 34 | |
| 35 | typedef QListcxx . . $ QList#<Triggercxx . . $ Trigger#> Triggerscxx . . $ Triggers#; |
| 36 | |
| 37 | struct Seperatorcxx . . $ Seperator# |
| 38 | { |
| 39 | public: |
| 40 | int mPagescxx . . $ Seperator#mPages.; // number of consequtive pages which make a separator |
| 41 | Triggerscxx . . $ Triggers# mTriggerscxx . . $ Seperator#mTriggers.; // sum of triggers that make a separator page |
| 42 | }; |
| 43 | |
| 44 | struct AccountingFieldcxx . . $ AccountingField# |
| 45 | { |
| 46 | QStringcxx . . $ QString# mNamecxx . . $ AccountingField#mName.; |
| 47 | int mLinecxx . . $ AccountingField#mLine.; |
| 48 | int mColumncxx . . $ AccountingField#mColumn.; |
| 49 | int mLengthcxx . . $ AccountingField#mLength.; |
| 50 | }; |
| 51 | |
| 52 | class AccountingFieldscxx . . $ AccountingFields# |
| 53 | { |
| 54 | public: |
| 55 | void addcxx . . $ AccountingFields#add(96163d78cb5ed4bd).(const AccountingFieldcxx . . $ AccountingField#& fld) { mFieldscxx . . $ AccountingFields#mFields..push_backcxx . . $ QList#push_back(77d9f17553126ecb).(fld);} |
| 56 | public: |
| 57 | QListcxx . . $ QList#<AccountingFieldcxx . . $ AccountingField#> mFieldscxx . . $ AccountingFields#mFields.; |
| 58 | }; |
| 59 | |
| 60 | |
| 61 | |
| 62 | class DecolationRulescxx . . $ DecolationRules# |
| 63 | { |
| 64 | public: |
| 65 | DecolationRulescxx . . $ DecolationRules#DecolationRules(49f6e7a06ebc5aa8).(); |
| 66 | |
| 67 | const QStringcxx . . $ QString#& namecxx . . $ DecolationRules#name(d809795c7eed169c).(); |
| 68 | void setNamecxx . . $ DecolationRules#setName(3520e46b33348bf6).(const QStringcxx . . $ QString# &name); |
| 69 | void setFileNameTemplatecxx . . $ DecolationRules#setFileNameTemplate(3520e46b33348bf6).(const QStringcxx . . $ QString# & name); |
| 70 | QStringcxx . . $ QString# filenameTemplatecxx . . $ DecolationRules#filenameTemplate(4365c3963150523e).(); |
| 71 | |
| 72 | public: |
| 73 | Seperatorcxx . . $ Seperator# mSeperatorcxx . . $ DecolationRules#mSeperator.; |
| 74 | AccountingFieldscxx . . $ AccountingFields# mAccountingcxx . . $ DecolationRules#mAccounting.; |
| 75 | QStringcxx . . $ QString# mFileNameTemplatecxx . . $ DecolationRules#mFileNameTemplate.; |
| 76 | |
| 77 | private: |
| 78 | QStringcxx . . $ QString# mNamecxx . . $ DecolationRules#mName.; |
| 79 | }; |
| 80 | |
| 81 | #endif // DECOLATIONRULES_H |