| 1 | #cxx . . $ `<file>/HercPrinter/DecolationDialog.cpp`/include "DecolationDialog.h"cxx . . $ `<file>/HercPrinter/DecolationDialog.h`/ |
| 2 | #include "ui_DecolationDialog.h"cxx . . $ `<file>/ui/ui_DecolationDialog.h`/ |
| 3 | #include "DecolationRules.h"cxx . . $ `<file>/HercPrinter/DecolationRules.h`/ |
| 4 | #include "Trigger.h"cxx . . $ `<file>/HercPrinter/Trigger.h`/ |
| 5 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 6 | #include "FieldTip.h"cxx . . $ `<file>/HercStudio/FieldTip.h`/ |
| 7 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 8 | |
| 9 | #include <QMessageBox> |
| 10 | |
| 11 | DecolationDialogcxx . . $ DecolationDialog#::DecolationDialogcxx . . $ DecolationDialog#DecolationDialog(d71cd35ae558283).(QWidgetcxx . . $ QWidget# *parent, const QStringcxx . . $ QString# & item) : |
| 12 | QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d).(parent), |
| 13 | uicxx . . $ DecolationDialog#ui.(new Uicxx . . $ Ui/::DecolationDialogcxx . . $ Ui/DecolationDialog#), |
| 14 | mSepModelcxx . . $ DecolationDialog#mSepModel.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!), |
| 15 | mAccModelcxx . . $ DecolationDialog#mAccModel.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 16 | { |
| 17 | uicxx . . $ DecolationDialog#ui.->setupUicxx . . $ Ui_DecolationDialog#setupUi(d194de0c0f68c28b).(this); |
| 18 | |
| 19 | uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->insertItemscxx . . $ QComboBox#insertItems(c6059507b8fd4559).(0, Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().decolationListcxx . . $ Preferences#decolationList(669a05bc42dd57cc).()); |
| 20 | mCurrentNamecxx . . $ DecolationDialog#mCurrentName. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 21 | |
| 22 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(currentIndexChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(nameChanged(int))); |
| 23 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(editTextChanged(QString)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(nameEdited(QString))); |
| 24 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->deleteButtoncxx . . $ Ui_DecolationDialog#deleteButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(deleteClicked())); |
| 25 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->cancelButtoncxx . . $ Ui_DecolationDialog#cancelButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cancelClicked())); |
| 26 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->addSeperatorButtoncxx . . $ Ui_DecolationDialog#addSeperatorButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(insertSeperator())); |
| 27 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->deleteSeperatorButtoncxx . . $ Ui_DecolationDialog#deleteSeperatorButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(deleteSeperator())); |
| 28 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->addAccountingButtoncxx . . $ Ui_DecolationDialog#addAccountingButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(insertAccounting())); |
| 29 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ DecolationDialog#ui.->deleteAccountingButtoncxx . . $ Ui_DecolationDialog#deleteAccountingButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(deleteAccounting())); |
| 30 | addSeperatorcxx . . $ DecolationDialog#addSeperator(49f6e7a06ebc5aa8).(); |
| 31 | addAccountingcxx . . $ DecolationDialog#addAccounting(49f6e7a06ebc5aa8).(); |
| 32 | |
| 33 | if (item.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 0) |
| 34 | { |
| 35 | uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->setCurrentTextcxx . . $ QComboBox#setCurrentText(3520e46b33348bf6).(item); |
| 36 | } |
| 37 | else |
| 38 | { |
| 39 | uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 40 | } |
| 41 | populatecxx . . $ DecolationDialog#populate(49f6e7a06ebc5aa8).(); |
| 42 | if (!Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().balloonDecolationcxx . . $ Preferences#balloonDecolation(50ce9a9e25b4a850).() && builtinDecolationcxx . . $ DecolationDialog#builtinDecolation(7dc6c9a0b6a7270f).(uicxx . . $ QString#QString(e1217c004a86c950).->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).())) |
| 43 | { |
| 44 | Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().setBalloonDecolationcxx . . $ Preferences#setBalloonDecolation(b45ddcbc8423892c).(true); |
| 45 | FieldTipcxx . . $ FieldTip# *baloon = new FieldTipcxx . . $ FieldTip#(this, true); |
| 46 | baloon->setOwnercxx . . $ FieldTip#setOwner(108f35f7aa7f3cf9).(uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.); |
| 47 | baloon->showMessagecxx . . $ FieldTip#showMessage(29ed8fcd127906b1).("Change this name to define you own decolation"cxx . . $ QString#QString(85c52e162fed56f9)., 7000); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | DecolationDialogcxx . . $ DecolationDialog#::~cxx . . $ DecolationDialog#`~DecolationDialog`(49f6e7a06ebc5aa8).DecolationDialogcxx . . $ DecolationDialog#() |
| 52 | { |
| 53 | delete uicxx . . $ DecolationDialog#ui.; |
| 54 | } |
| 55 | |
| 56 | void DecolationDialogcxx . . $ DecolationDialog#::cancelClickedcxx . . $ DecolationDialog#cancelClicked(49f6e7a06ebc5aa8).() |
| 57 | { |
| 58 | if (!builtinDecolationcxx . . $ DecolationDialog#builtinDecolation(7dc6c9a0b6a7270f).(uicxx . . $ QString#QString(e1217c004a86c950).->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).())) |
| 59 | savecxx . . $ DecolationDialog#save(7df51288a9ebd664).(uicxx . . $ QString#QString(e1217c004a86c950).->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()); |
| 60 | deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 61 | } |
| 62 | |
| 63 | bool DecolationDialogcxx . . $ DecolationDialog#::builtinDecolationcxx . . $ DecolationDialog#builtinDecolation(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# decName) |
| 64 | { |
| 65 | if ((decName ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "mvs-legacy") || |
| 66 | (decName ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "mvs38")) |
| 67 | return true; |
| 68 | else |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | void DecolationDialogcxx . . $ DecolationDialog#::deleteClickedcxx . . $ DecolationDialog#deleteClicked(49f6e7a06ebc5aa8).() |
| 73 | { |
| 74 | QStringcxx . . $ QString# decToDelete = uicxx . . $ QString#QString(e1217c004a86c950).->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 75 | Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().deleteDecolationcxx . . $ Preferences#deleteDecolation(3520e46b33348bf6).(uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).()); |
| 76 | mCurrentNamecxx . . $ DecolationDialog#mCurrentName. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 77 | uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).(); |
| 78 | uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->insertItemscxx . . $ QComboBox#insertItems(c6059507b8fd4559).(0,Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().decolationListcxx . . $ Preferences#decolationList(669a05bc42dd57cc).()); |
| 79 | uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 80 | |
| 81 | } |
| 82 | |
| 83 | void DecolationDialogcxx . . $ DecolationDialog#::nameChangedcxx . . $ DecolationDialog#nameChanged(d4f767463ce0a6b3).(int) |
| 84 | { |
| 85 | savecxx . . $ DecolationDialog#save(7df51288a9ebd664).(mCurrentNamecxx . . $ QString#QString(3520e46b33348bf6).); |
| 86 | mCurrentNamecxx . . $ DecolationDialog#mCurrentName. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 87 | addSeperatorcxx . . $ DecolationDialog#addSeperator(49f6e7a06ebc5aa8).(); |
| 88 | addAccountingcxx . . $ DecolationDialog#addAccounting(49f6e7a06ebc5aa8).(); |
| 89 | populatecxx . . $ DecolationDialog#populate(49f6e7a06ebc5aa8).(); |
| 90 | } |
| 91 | |
| 92 | void DecolationDialogcxx . . $ DecolationDialog#::nameEditedcxx . . $ DecolationDialog#nameEdited(7df51288a9ebd664).(QStringcxx . . $ QString# name) |
| 93 | { |
| 94 | setProtectedcxx . . $ DecolationDialog#setProtected(b45ddcbc8423892c).(builtinDecolationcxx . . $ DecolationDialog#builtinDecolation(7dc6c9a0b6a7270f).(namecxx . . $ QString#QString(3520e46b33348bf6).)); |
| 95 | } |
| 96 | |
| 97 | void DecolationDialogcxx . . $ DecolationDialog#::populatecxx . . $ DecolationDialog#populate(49f6e7a06ebc5aa8).() |
| 98 | { |
| 99 | QStringcxx . . $ QString# name = uicxx . . $ QString#QString(e1217c004a86c950).->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).(); |
| 100 | DecolationRulescxx . . $ DecolationRules# * dec = Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().decolationcxx . . $ Preferences#decolation(e36804b59b1617fb).(namecxx . . $ QString#QString(3520e46b33348bf6).); |
| 101 | uicxx . . $ DecolationDialog#ui.->decolationNameComboBoxcxx . . $ Ui_DecolationDialog#decolationNameComboBox.->setCurrentTextcxx . . $ QComboBox#setCurrentText(3520e46b33348bf6).(dec->namecxx . . $ DecolationRules#name(d809795c7eed169c).()); |
| 102 | uicxx . . $ DecolationDialog#ui.->endJobPagesSpinBoxcxx . . $ Ui_DecolationDialog#endJobPagesSpinBox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(dec->mSeperatorcxx . . $ DecolationRules#mSeperator..mPagescxx . . $ Seperator#mPages.); |
| 103 | uicxx . . $ DecolationDialog#ui.->fileNameTemplatecxx . . $ Ui_DecolationDialog#fileNameTemplate.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(dec->filenameTemplatecxx . . $ DecolationRules#filenameTemplate(4365c3963150523e).()); |
| 104 | mSepModelcxx . . $ DecolationDialog#mSepModel.->clearcxx . . $ DecolationModelBase#clear(49f6e7a06ebc5aa8).(); |
| 105 | for (int i=0; i<dec->mSeperatorcxx . . $ DecolationRules#mSeperator..mTriggerscxx . . $ Seperator#mTriggers..countcxx . . $ QList#count(455f465bc33b4cdf).(); i++) |
| 106 | { |
| 107 | mSepModelcxx . . $ DecolationDialog#mSepModel.->insertRowcxx . . $ SepTableModel#insertRow(f73808b27199f0eb).(mSepModelcxx . . $ DecolationDialog#mSepModel.->rowCountcxx . . $ DecolationModelBase#rowCount(e3878d4d6cd9529c).()-1, QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).(), |
| 108 | dec->mSeperatorcxx . . $ DecolationRules#mSeperator..mTriggerscxx . . $ Seperator#mTriggers.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].linecxx . . $ Trigger#line(b126dc7c1de90089).(), |
| 109 | dec->mSeperatorcxx . . $ DecolationRules#mSeperator..mTriggerscxx . . $ Seperator#mTriggers.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].columncxx . . $ Trigger#column(b126dc7c1de90089).(), |
| 110 | dec->mSeperatorcxx . . $ DecolationRules#mSeperator..mTriggerscxx . . $ Seperator#mTriggers.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].textcxx . . $ Trigger#text(4365c3963150523e).(), |
| 111 | dec->mSeperatorcxx . . $ DecolationRules#mSeperator..mTriggerscxx . . $ Seperator#mTriggers.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].triggerTypecxx . . $ Trigger#triggerType(4cc0b1ca9dfa2a03).()); |
| 112 | } |
| 113 | |
| 114 | mAccModelcxx . . $ DecolationDialog#mAccModel.->clearcxx . . $ DecolationModelBase#clear(49f6e7a06ebc5aa8).(); |
| 115 | for (int i=0; i<dec->mAccountingcxx . . $ DecolationRules#mAccounting..mFieldscxx . . $ AccountingFields#mFields..countcxx . . $ QList#count(455f465bc33b4cdf).(); i++) |
| 116 | { |
| 117 | mAccModelcxx . . $ DecolationDialog#mAccModel.->insertRowcxx . . $ AccountingTableModel#insertRow(6b1c50be8592b491).(mAccModelcxx . . $ DecolationDialog#mAccModel.->rowCountcxx . . $ DecolationModelBase#rowCount(e3878d4d6cd9529c).()-1, QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).(), |
| 118 | dec->mAccountingcxx . . $ DecolationRules#mAccounting..mFieldscxx . . $ AccountingFields#mFields.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].mLinecxx . . $ AccountingField#mLine., |
| 119 | dec->mAccountingcxx . . $ DecolationRules#mAccounting..mFieldscxx . . $ AccountingFields#mFields.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].mColumncxx . . $ AccountingField#mColumn., |
| 120 | dec->mAccountingcxx . . $ DecolationRules#mAccounting..mFieldscxx . . $ AccountingFields#mFields.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].mLengthcxx . . $ AccountingField#mLength., |
| 121 | deccxx . . $ QString#QString(3520e46b33348bf6).->mAccountingcxx . . $ DecolationRules#mAccounting..mFieldscxx . . $ AccountingFields#mFields.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i].mNamecxx . . $ AccountingField#mName.); |
| 122 | } |
| 123 | setProtectedcxx . . $ DecolationDialog#setProtected(b45ddcbc8423892c).(builtinDecolationcxx . . $ DecolationDialog#builtinDecolation(7dc6c9a0b6a7270f).(namecxx . . $ QString#QString(3520e46b33348bf6).)); |
| 124 | } |
| 125 | |
| 126 | void DecolationDialogcxx . . $ DecolationDialog#::setProtectedcxx . . $ DecolationDialog#setProtected(b45ddcbc8423892c).(bool protect) |
| 127 | { |
| 128 | uicxx . . $ DecolationDialog#ui.->endJobPagesSpinBoxcxx . . $ Ui_DecolationDialog#endJobPagesSpinBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 129 | uicxx . . $ DecolationDialog#ui.->fileNameTemplatecxx . . $ Ui_DecolationDialog#fileNameTemplate.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 130 | uicxx . . $ DecolationDialog#ui.->accountingTableViewcxx . . $ Ui_DecolationDialog#accountingTableView.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 131 | uicxx . . $ DecolationDialog#ui.->seperatorTableViewcxx . . $ Ui_DecolationDialog#seperatorTableView.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 132 | uicxx . . $ DecolationDialog#ui.->addAccountingButtoncxx . . $ Ui_DecolationDialog#addAccountingButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 133 | uicxx . . $ DecolationDialog#ui.->deleteAccountingButtoncxx . . $ Ui_DecolationDialog#deleteAccountingButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 134 | uicxx . . $ DecolationDialog#ui.->addSeperatorButtoncxx . . $ Ui_DecolationDialog#addSeperatorButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 135 | uicxx . . $ DecolationDialog#ui.->deleteSeperatorButtoncxx . . $ Ui_DecolationDialog#deleteSeperatorButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 136 | uicxx . . $ DecolationDialog#ui.->deleteButtoncxx . . $ Ui_DecolationDialog#deleteButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(!protect); |
| 137 | } |
| 138 | |
| 139 | void DecolationDialogcxx . . $ DecolationDialog#::savecxx . . $ DecolationDialog#save(7df51288a9ebd664).(QStringcxx . . $ QString# name) |
| 140 | { |
| 141 | if (name.lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 0) return ; |
| 142 | DecolationRulescxx . . $ DecolationRules# deccxx . . $ DecolationRules#DecolationRules(49f6e7a06ebc5aa8).; |
| 143 | |
| 144 | mSepModelcxx . . $ DecolationDialog#mSepModel.->addToDecolationcxx . . $ SepTableModel#addToDecolation(c8943bd670c1e1eb).(dec); |
| 145 | mAccModelcxx . . $ DecolationDialog#mAccModel.->addToDecolationcxx . . $ AccountingTableModel#addToDecolation(c8943bd670c1e1eb).(dec); |
| 146 | dec.mSeperatorcxx . . $ DecolationRules#mSeperator..mPagescxx . . $ Seperator#mPages. = uicxx . . $ DecolationDialog#ui.->endJobPagesSpinBoxcxx . . $ Ui_DecolationDialog#endJobPagesSpinBox.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).(); |
| 147 | dec.mFileNameTemplatecxx . . $ DecolationRules#mFileNameTemplate. =cxx . . $ QString#`operator=`(7b76e6691bca1027). uicxx . . $ DecolationDialog#ui.->fileNameTemplatecxx . . $ Ui_DecolationDialog#fileNameTemplate.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); |
| 148 | dec.setNamecxx . . $ DecolationRules#setName(3520e46b33348bf6).(name); |
| 149 | Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().setDecolationcxx . . $ Preferences#setDecolation(c8943bd670c1e1eb).(dec); |
| 150 | } |
| 151 | |
| 152 | |
| 153 | void DecolationDialogcxx . . $ DecolationDialog#::addSeperatorcxx . . $ DecolationDialog#addSeperator(49f6e7a06ebc5aa8).() |
| 154 | { |
| 155 | QItemSelectionModelcxx . . $ QItemSelectionModel# *oldModel = uicxx . . $ DecolationDialog#ui.->seperatorTableViewcxx . . $ Ui_DecolationDialog#seperatorTableView.->selectionModelcxx . . $ QAbstractItemView#selectionModel(cc7a226abaf79c2f).(); |
| 156 | mSepModelcxx . . $ DecolationDialog#mSepModel. = new SepTableModelcxx . . $ SepTableModel#(this); |
| 157 | uicxx . . $ DecolationDialog#ui.->seperatorTableViewcxx . . $ Ui_DecolationDialog#seperatorTableView.->setModelcxx . . $ QTableView#setModel(c6e1f1e42522b780).(mSepModelcxx . . $ DecolationDialog#mSepModel.); |
| 158 | delete oldModel; |
| 159 | uicxx . . $ DecolationDialog#ui.->seperatorTableViewcxx . . $ Ui_DecolationDialog#seperatorTableView.->resizeColumnToContentscxx . . $ QTableView#resizeColumnToContents(d4f767463ce0a6b3).(0); |
| 160 | } |
| 161 | |
| 162 | void DecolationDialogcxx . . $ DecolationDialog#::insertSeperatorcxx . . $ DecolationDialog#insertSeperator(49f6e7a06ebc5aa8).() |
| 163 | { |
| 164 | mSepModelcxx . . $ DecolationDialog#mSepModel.->insertRowcxx . . $ SepTableModel#insertRow(f73808b27199f0eb).(mSepModelcxx . . $ DecolationDialog#mSepModel.->rowCountcxx . . $ DecolationModelBase#rowCount(e3878d4d6cd9529c).()-1, QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).(), |
| 165 | 1, 1,"(value)"cxx . . $ QString#QString(85c52e162fed56f9)., Triggercxx . . $ Trigger#::TriggerStringcxx . . $ Trigger#TriggerString.); |
| 166 | } |
| 167 | |
| 168 | void DecolationDialogcxx . . $ DecolationDialog#::addAccountingcxx . . $ DecolationDialog#addAccounting(49f6e7a06ebc5aa8).() |
| 169 | { |
| 170 | QItemSelectionModelcxx . . $ QItemSelectionModel# *oldModel = uicxx . . $ DecolationDialog#ui.->accountingTableViewcxx . . $ Ui_DecolationDialog#accountingTableView.->selectionModelcxx . . $ QAbstractItemView#selectionModel(cc7a226abaf79c2f).(); |
| 171 | mAccModelcxx . . $ DecolationDialog#mAccModel. = new AccountingTableModelcxx . . $ AccountingTableModel#(this); |
| 172 | uicxx . . $ DecolationDialog#ui.->accountingTableViewcxx . . $ Ui_DecolationDialog#accountingTableView.->setModelcxx . . $ QTableView#setModel(c6e1f1e42522b780).(mAccModelcxx . . $ DecolationDialog#mAccModel.); |
| 173 | delete oldModel; |
| 174 | uicxx . . $ DecolationDialog#ui.->accountingTableViewcxx . . $ Ui_DecolationDialog#accountingTableView.->resizeColumnToContentscxx . . $ QTableView#resizeColumnToContents(d4f767463ce0a6b3).(0); |
| 175 | } |
| 176 | |
| 177 | void DecolationDialogcxx . . $ DecolationDialog#::insertAccountingcxx . . $ DecolationDialog#insertAccounting(49f6e7a06ebc5aa8).() |
| 178 | { |
| 179 | mAccModelcxx . . $ DecolationDialog#mAccModel.->insertRowcxx . . $ AccountingTableModel#insertRow(6b1c50be8592b491).(mAccModelcxx . . $ DecolationDialog#mAccModel.->rowCountcxx . . $ DecolationModelBase#rowCount(e3878d4d6cd9529c).()-1, QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).(), |
| 180 | 1, 1, 8, "Job-name"cxx . . $ QString#QString(e1217c004a86c950).); |
| 181 | } |
| 182 | |
| 183 | void DecolationDialogcxx . . $ DecolationDialog#::deleteSeperatorcxx . . $ DecolationDialog#deleteSeperator(49f6e7a06ebc5aa8).() |
| 184 | { |
| 185 | int i = uicxx . . $ DecolationDialog#ui.->seperatorTableViewcxx . . $ Ui_DecolationDialog#seperatorTableView.->currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).().rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).(); |
| 186 | mSepModelcxx . . $ DecolationDialog#mSepModel.->removeRowcxx . . $ DecolationModelBase#removeRow(eb30e146838e644d).(i, QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).()); |
| 187 | } |
| 188 | |
| 189 | void DecolationDialogcxx . . $ DecolationDialog#::deleteAccountingcxx . . $ DecolationDialog#deleteAccounting(49f6e7a06ebc5aa8).() |
| 190 | { |
| 191 | int i = uicxx . . $ DecolationDialog#ui.->accountingTableViewcxx . . $ Ui_DecolationDialog#accountingTableView.->currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).().rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).(); |
| 192 | mAccModelcxx . . $ DecolationDialog#mAccModel.->removeRowcxx . . $ DecolationModelBase#removeRow(eb30e146838e644d).(i, QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).()); |
| 193 | } |
| 194 | |
| 195 | ////////////////////////////////////// |
| 196 | |
| 197 | DecolationModelBasecxx . . $ DecolationModelBase#::DecolationModelBasecxx . . $ DecolationModelBase#DecolationModelBase(749de1b6ae65bddd).(QObjectcxx . . $ QObject# * o) : |
| 198 | QAbstractTableModelcxx . . $ QAbstractTableModel#(o) |
| 199 | { |
| 200 | |
| 201 | } |
| 202 | |
| 203 | int DecolationModelBasecxx . . $ DecolationModelBase#::rowCountcxx . . $ DecolationModelBase#rowCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# &parent) const |
| 204 | { |
| 205 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(1,"row count:" << zmTable.size()); |
| 206 | if (parent.isValidcxx . . $ QModelIndex#isValid(50ce9a9e25b4a850).()) return 0; |
| 207 | else return zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).(); |
| 208 | } |
| 209 | |
| 210 | |
| 211 | int DecolationModelBasecxx . . $ DecolationModelBase#::columnCountcxx . . $ DecolationModelBase#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# &parent) const |
| 212 | { |
| 213 | if (parent.isValidcxx . . $ QModelIndex#isValid(50ce9a9e25b4a850).()) |
| 214 | return 0; |
| 215 | else return 4; |
| 216 | } |
| 217 | |
| 218 | bool DecolationModelBasecxx . . $ DecolationModelBase#::removeRowcxx . . $ DecolationModelBase#removeRow(eb30e146838e644d). ( int row, const QModelIndexcxx . . $ QModelIndex# & parent) |
| 219 | { |
| 220 | if (parent.isValidcxx . . $ QModelIndex#isValid(50ce9a9e25b4a850).()) return false; |
| 221 | if (row >= zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).()) return false; |
| 222 | DecTableTypecxx . . $ `HercPrinter/DecolationDialog.h:38:9`!::iteratorcxx . . $ QList#iterator# it = zmTablecxx . . $ QList#iterator#iterator(fe70663a9b8f3744)..begincxx . . $ QList#begin(ca2520f641887418).()+cxx . . $ QList#iterator#operator+(4b8eaa8550f5cd4e).row; |
| 223 | |
| 224 | if (row < 0) return false; |
| 225 | beginRemoveRowscxx . . $ QAbstractItemModel#beginRemoveRows(d1f44b3c3a3f9fa).(parent,row, row); |
| 226 | zmTablecxx . . $ DecolationModelBase#zmTable..erasecxx . . $ QList#erase(71808fbec92a204b).(itcxx . . $ QList#iterator#iterator(fe70663a9b8f3744).); |
| 227 | endRemoveRowscxx . . $ QAbstractItemModel#endRemoveRows(49f6e7a06ebc5aa8).(); |
| 228 | return true; |
| 229 | } |
| 230 | |
| 231 | QVariantcxx . . $ QVariant# DecolationModelBasecxx . . $ DecolationModelBase#::datacxx . . $ DecolationModelBase#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex# &index, int role) const |
| 232 | { |
| 233 | if (index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).() >= zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).()) return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(QVariantcxx . . $ QVariant#::Invalidcxx . . $ QVariant#Invalid.); |
| 234 | DecTableTypecxx . . $ `HercPrinter/DecolationDialog.h:38:9`!::const_iteratorcxx . . $ QList#const_iterator# it = zmTablecxx . . $ QList#const_iterator#const_iterator(55f75f4ca60f2214)..begincxx . . $ QList#begin(40053b5cd9814e26).() +cxx . . $ QList#const_iterator#operator+(ea13aa307aab05cc). index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).(); |
| 235 | QStringListcxx . . $ QStringList# list = *cxx . . $ QList#const_iterator#`operator*`(ea465e50d690edfe).it; |
| 236 | if (role != Qtcxx . . $ Qt/::DisplayRolecxx . . $ Qt/DisplayRole.) return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(QVariantcxx . . $ QVariant#::Invalidcxx . . $ QVariant#Invalid.); |
| 237 | Q_ASSERTcxx . . $ `<external>/15045578679651060896/qglobal.h:859:13`!(list.size() > 3); |
| 238 | return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(list[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).index.columncxx . . $ QModelIndex#column(455f465bc33b4cdf).()]); |
| 239 | } |
| 240 | |
| 241 | QVariantcxx . . $ QVariant# DecolationModelBasecxx . . $ DecolationModelBase#::rowDatacxx . . $ DecolationModelBase#rowData(cc12416a8a986c8f).(const QModelIndexcxx . . $ QModelIndex# &index) const |
| 242 | { |
| 243 | if (index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).() >= zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).()) return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(QVariantcxx . . $ QVariant#::Invalidcxx . . $ QVariant#Invalid.); |
| 244 | DecTableTypecxx . . $ `HercPrinter/DecolationDialog.h:38:9`!::const_iteratorcxx . . $ QList#const_iterator# it = zmTablecxx . . $ QList#const_iterator#const_iterator(55f75f4ca60f2214)..begincxx . . $ QList#begin(40053b5cd9814e26).() +cxx . . $ QList#const_iterator#operator+(ea13aa307aab05cc). index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).(); |
| 245 | QStringListcxx . . $ QStringList# list = *cxx . . $ QList#const_iterator#`operator*`(ea465e50d690edfe).it; |
| 246 | return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(list); |
| 247 | } |
| 248 | |
| 249 | Qtcxx . . $ Qt/::ItemFlagscxx . . $ Qt/ItemFlags# DecolationModelBasecxx . . $ DecolationModelBase#::flagscxx . . $ DecolationModelBase#flags(36b38c1b3d3f7b45).(const QModelIndexcxx . . $ QModelIndex# &index) const |
| 250 | { |
| 251 | Qtcxx . . $ Qt/::ItemFlagscxx . . $ Qt/ItemFlags# ret = QAbstractTableModelcxx . . $ QAbstractTableModel#::flagscxx . . $ QAbstractTableModel#flags(36b38c1b3d3f7b45).(index); |
| 252 | return ret |cxx . . $ QFlags#`operator|`(1933792fc5621fd5). Qtcxx . . $ Qt/::ItemIsEditablecxx . . $ Qt/ItemIsEditable.; |
| 253 | } |
| 254 | |
| 255 | bool DecolationModelBasecxx . . $ DecolationModelBase#::setDatacxx . . $ DecolationModelBase#setData(6d1d8401440d0a2c).(const QModelIndexcxx . . $ QModelIndex# &index, const QVariantcxx . . $ QVariant# &value, int) |
| 256 | { |
| 257 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(4,"set data " << index.row()) |
| 258 | if (zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).() <= index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).()) return false; |
| 259 | if (!value.isValidcxx . . $ QVariant#isValid(50ce9a9e25b4a850).() || !value.canConvertcxx . . $ QVariant#canConvert(4a668f6de69bf818).(QVariantcxx . . $ QVariant#::StringListcxx . . $ QVariant#StringList.)) return false; |
| 260 | if (value.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).().lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 0) return false; |
| 261 | DecTableTypecxx . . $ `HercPrinter/DecolationDialog.h:38:9`!::const_iteratorcxx . . $ QList#const_iterator# itcxx . . $ QList#const_iterator#const_iterator(55f75f4ca60f2214). = zmTablecxx . . $ QList#const_iterator#const_iterator(fe70663a9b8f3744)..begincxx . . $ QList#begin(ca2520f641887418).() +cxx . . $ QList#iterator#operator+(4b8eaa8550f5cd4e). index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).(); |
| 262 | |
| 263 | QStringListcxx . . $ QStringList# list = *cxx . . $ QList#const_iterator#`operator*`(ea465e50d690edfe).it; |
| 264 | list[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).index.columncxx . . $ QModelIndex#column(455f465bc33b4cdf).()] =cxx . . $ QString#`operator=`(7b76e6691bca1027). value.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 265 | zmTablecxx . . $ DecolationModelBase#zmTable.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).()] =cxx . . $ QStringList#`operator=`(cb3c3d1614140851). list; |
| 266 | return true; |
| 267 | } |
| 268 | |
| 269 | void DecolationModelBasecxx . . $ DecolationModelBase#::clearcxx . . $ DecolationModelBase#clear(49f6e7a06ebc5aa8).() |
| 270 | { |
| 271 | zmTablecxx . . $ DecolationModelBase#zmTable..clearcxx . . $ QList#clear(49f6e7a06ebc5aa8).(); |
| 272 | } |
| 273 | |
| 274 | //////////////////////////////////////// |
| 275 | SepTableModelcxx . . $ SepTableModel#::SepTableModelcxx . . $ SepTableModel#SepTableModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *o) : DecolationModelBasecxx . . $ DecolationModelBase#(o) |
| 276 | { |
| 277 | |
| 278 | } |
| 279 | |
| 280 | bool SepTableModelcxx . . $ SepTableModel#::insertRowcxx . . $ SepTableModel#insertRow(f73808b27199f0eb).(int row, const QModelIndexcxx . . $ QModelIndex# & index, |
| 281 | int line, int column, const QStringcxx . . $ QString#& value, Triggercxx . . $ Trigger#::TriggerTypecxx . . $ Trigger#TriggerType# type) |
| 282 | { |
| 283 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(1,"insert " << line << " , "<< column << " " << value.toStdString() <<Trigger::decodeTriggerType(type).toStdString()); |
| 284 | |
| 285 | if (row > zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).()) return false; |
| 286 | QStringListcxx . . $ QStringList# listcxx . . $ QStringList#QStringList(49f6e7a06ebc5aa8).; |
| 287 | list <<cxx . . $ QStringList#`operator<<`(85116071a693d053). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(line) <<cxx . . $ QStringList#`operator<<`(85116071a693d053). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(column) <<cxx . . $ QStringList#`operator<<`(85116071a693d053). value <<cxx . . $ QStringList#`operator<<`(85116071a693d053). Triggercxx . . $ Trigger#::decodeTriggerTypecxx . . $ Trigger#decodeTriggerType(17c918784cb078a9).(type); |
| 288 | |
| 289 | int key = zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).(); |
| 290 | beginInsertRowscxx . . $ QAbstractItemModel#beginInsertRows(d1f44b3c3a3f9fa).(index, key+1, key+1); |
| 291 | zmTablecxx . . $ DecolationModelBase#zmTable..appendcxx . . $ QList#append(77d9f17553126ecb).(list); |
| 292 | endInsertRowscxx . . $ QAbstractItemModel#endInsertRows(49f6e7a06ebc5aa8).(); |
| 293 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(1, "new row count " << zmTable.count()); |
| 294 | |
| 295 | return true; |
| 296 | } |
| 297 | |
| 298 | |
| 299 | QVariantcxx . . $ QVariant# SepTableModelcxx . . $ SepTableModel#::headerDatacxx . . $ SepTableModel#headerData(b8cfec0985494997). ( int col, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role ) const |
| 300 | { |
| 301 | static const char * names[] = |
| 302 | { |
| 303 | "line", |
| 304 | "Column", |
| 305 | "Value", |
| 306 | "Type" |
| 307 | }; |
| 308 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3, "header " << col); |
| 309 | if (orientation == Qtcxx . . $ Qt/::Horizontalcxx . . $ Qt/Horizontal. && role == 0) |
| 310 | { |
| 311 | if (col < 4) return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(QStringcxx . . $ QString#QString(85c52e162fed56f9).(names[col])); |
| 312 | else return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("?")); |
| 313 | } |
| 314 | else |
| 315 | { |
| 316 | return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | void SepTableModelcxx . . $ SepTableModel#::addToDecolationcxx . . $ SepTableModel#addToDecolation(c8943bd670c1e1eb).(DecolationRulescxx . . $ DecolationRules# &decolationRules) |
| 321 | { |
| 322 | Seperatorcxx . . $ Seperator#& sep = decolationRules.mSeperatorcxx . . $ DecolationRules#mSeperator.; |
| 323 | sep.mPagescxx . . $ Seperator#mPages.=1; |
| 324 | DecTableTypecxx . . $ `HercPrinter/DecolationDialog.h:38:9`!:: iteratorcxx . . $ QList#iterator# it = zmTablecxx . . $ QList#iterator#iterator(fe70663a9b8f3744)..begincxx . . $ QList#begin(ca2520f641887418).(); |
| 325 | for (; it !=cxx . . $ QList#iterator#`operator!=`(73282c1f1756321a). zmTablecxx . . $ DecolationModelBase#zmTable..endcxx . . $ QList#end(ca2520f641887418).(); it++cxx . . $ QList#iterator#operator++(9f57c9c26280c292).) |
| 326 | { |
| 327 | Triggercxx . . $ Trigger# triggercxx . . $ Trigger#Trigger(49f6e7a06ebc5aa8).; |
| 328 | QStringListcxx . . $ QStringList#& l = *cxx . . $ QList#iterator#`operator*`(c93303b41ac66b6d).it; |
| 329 | trigger.setcxx . . $ Trigger#set(8742dea680450b36).(l[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).0].toIntcxx . . $ QString#toInt(d7972accae11ee1f).(), l[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).1].toIntcxx . . $ QString#toInt(d7972accae11ee1f).(), l[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).3].toIntcxx . . $ QString#toInt(d7972accae11ee1f).(), l[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).2]); |
| 330 | sep.mTriggerscxx . . $ Seperator#mTriggers..push_backcxx . . $ QList#push_back(77d9f17553126ecb).(trigger); |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | |
| 335 | ////////////////////////////////////// |
| 336 | |
| 337 | AccountingTableModelcxx . . $ AccountingTableModel#::AccountingTableModelcxx . . $ AccountingTableModel#AccountingTableModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *o) : DecolationModelBasecxx . . $ DecolationModelBase#(o) |
| 338 | { |
| 339 | |
| 340 | } |
| 341 | |
| 342 | bool AccountingTableModelcxx . . $ AccountingTableModel#::insertRowcxx . . $ AccountingTableModel#insertRow(6b1c50be8592b491).(int row, const QModelIndexcxx . . $ QModelIndex# & index, |
| 343 | int line, int column, int length, QStringcxx . . $ QString# name) |
| 344 | { |
| 345 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(4,"insert " << line << " , "<< column << " " << length <<" " << name.toStdString()); |
| 346 | |
| 347 | if (row > zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).()) return false; |
| 348 | QStringListcxx . . $ QStringList# listcxx . . $ QStringList#QStringList(49f6e7a06ebc5aa8).; |
| 349 | list <<cxx . . $ QStringList#`operator<<`(85116071a693d053). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(line) <<cxx . . $ QStringList#`operator<<`(85116071a693d053). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(column) <<cxx . . $ QStringList#`operator<<`(85116071a693d053). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(length) <<cxx . . $ QStringList#`operator<<`(85116071a693d053). name; |
| 350 | |
| 351 | int key = zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).(); |
| 352 | beginInsertRowscxx . . $ QAbstractItemModel#beginInsertRows(d1f44b3c3a3f9fa).(index, key+1, key+1); |
| 353 | zmTablecxx . . $ DecolationModelBase#zmTable..appendcxx . . $ QList#append(77d9f17553126ecb).(list); |
| 354 | endInsertRowscxx . . $ QAbstractItemModel#endInsertRows(49f6e7a06ebc5aa8).(); |
| 355 | |
| 356 | return true; |
| 357 | } |
| 358 | |
| 359 | QVariantcxx . . $ QVariant# AccountingTableModelcxx . . $ AccountingTableModel#::headerDatacxx . . $ AccountingTableModel#headerData(b8cfec0985494997). ( int col, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role ) const |
| 360 | { |
| 361 | static const char * names[] = |
| 362 | { |
| 363 | "line", |
| 364 | "Column", |
| 365 | "Length", |
| 366 | "Field Name" |
| 367 | }; |
| 368 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3, "header " << col); |
| 369 | if (orientation == Qtcxx . . $ Qt/::Horizontalcxx . . $ Qt/Horizontal. && role == 0) |
| 370 | { |
| 371 | if (col < 4) return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(QStringcxx . . $ QString#QString(85c52e162fed56f9).(names[col])); |
| 372 | else return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("?")); |
| 373 | } |
| 374 | else |
| 375 | { |
| 376 | return QVariantcxx . . $ QVariant#QVariant(7157b2bac2a9068).(); |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | void AccountingTableModelcxx . . $ AccountingTableModel#::addToDecolationcxx . . $ AccountingTableModel#addToDecolation(c8943bd670c1e1eb).(DecolationRulescxx . . $ DecolationRules# &decolationRules) |
| 381 | { |
| 382 | AccountingFieldscxx . . $ AccountingFields#& acc = decolationRules.mAccountingcxx . . $ DecolationRules#mAccounting.; |
| 383 | for (int i=0; i<zmTablecxx . . $ DecolationModelBase#zmTable..sizecxx . . $ QList#size(455f465bc33b4cdf).(); i++) |
| 384 | { |
| 385 | AccountingFieldcxx . . $ AccountingField# oneField; |
| 386 | oneField.mNamecxx . . $ AccountingField#mName. =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). zmTablecxx . . $ DecolationModelBase#zmTable.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i][cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).3]; |
| 387 | oneField.mLinecxx . . $ AccountingField#mLine. = zmTablecxx . . $ DecolationModelBase#zmTable.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i][cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).0].toIntcxx . . $ QString#toInt(d7972accae11ee1f).(); |
| 388 | oneField.mColumncxx . . $ AccountingField#mColumn. = zmTablecxx . . $ DecolationModelBase#zmTable.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i][cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).1].toIntcxx . . $ QString#toInt(d7972accae11ee1f).(); |
| 389 | oneField.mLengthcxx . . $ AccountingField#mLength. = zmTablecxx . . $ DecolationModelBase#zmTable.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i][cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).2].toIntcxx . . $ QString#toInt(d7972accae11ee1f).(); |
| 390 | acc.addcxx . . $ AccountingFields#add(96163d78cb5ed4bd).(oneField); |
| 391 | } |
| 392 | } |