| 1 | /* |
| 2 | * File: TapeSplt.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 31, 2010 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * tapesplt utility object |
| 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 | #ifndef TAPESPLT_H |
| 27 | #define TAPESPLT_Hcxx . . $ `HercUtilities/TapeSplt.h:27:9`! |
| 28 | |
| 29 | #include "GenericUtility.h"cxx . . $ `<file>/HercUtilities/GenericUtility.h`/ |
| 30 | #include "ui_TapeSplt.h"cxx . . $ `<file>/ui/ui_TapeSplt.h`/ |
| 31 | #include <QtWidgets/QDialog> |
| 32 | #include <QTableView> |
| 33 | #include <QStandardItemModel> |
| 34 | #include <QAbstractTableModel> |
| 35 | #include <QLabel> |
| 36 | #include <QSpinBox> |
| 37 | |
| 38 | #include <vector> |
| 39 | |
| 40 | class TapeSpltSubDlgcxx . . $ TapeSpltSubDlg# : public QDialogcxx . . $ QDialog# |
| 41 | { |
| 42 | Q_OBJECTcxx . . $ TapeSpltSubDlg#staticMetaObject. |
| 43 | public: |
| 44 | TapeSpltSubDlgcxx . . $ TapeSpltSubDlg#TapeSpltSubDlg(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 45 | virtual ~cxx . . $ TapeSpltSubDlg#`~TapeSpltSubDlg`(49f6e7a06ebc5aa8).TapeSpltSubDlgcxx . . $ TapeSpltSubDlg#(); |
| 46 | |
| 47 | private: |
| 48 | QLabelcxx . . $ QLabel# *labelcxx . . $ TapeSpltSubDlg#label.; |
| 49 | QLineEditcxx . . $ QLineEdit# *lineEditcxx . . $ TapeSpltSubDlg#lineEdit.; |
| 50 | QPushButtoncxx . . $ QPushButton# *selOutputButtoncxx . . $ TapeSpltSubDlg#selOutputButton.; |
| 51 | QSpinBoxcxx . . $ QSpinBox# *spinBoxcxx . . $ TapeSpltSubDlg#spinBox.; |
| 52 | QLabelcxx . . $ QLabel# *label_2cxx . . $ TapeSpltSubDlg#label_2.; |
| 53 | QPushButtoncxx . . $ QPushButton# *addButtoncxx . . $ TapeSpltSubDlg#addButton.; |
| 54 | QPushButtoncxx . . $ QPushButton# *cancelButtoncxx . . $ TapeSpltSubDlg#cancelButton.; |
| 55 | QTableViewcxx . . $ QTableView# *tableViewcxx . . $ TapeSpltSubDlg#tableView.; |
| 56 | |
| 57 | void setupUicxx . . $ TapeSpltSubDlg#setupUi(49f6e7a06ebc5aa8).(); |
| 58 | |
| 59 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 60 | void selectOutputSlotcxx . . $ TapeSpltSubDlg#selectOutputSlot(49f6e7a06ebc5aa8).(); |
| 61 | void addSlotcxx . . $ TapeSpltSubDlg#addSlot(49f6e7a06ebc5aa8).(); |
| 62 | void cancelSlotcxx . . $ TapeSpltSubDlg#cancelSlot(49f6e7a06ebc5aa8).(); |
| 63 | |
| 64 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 65 | void fileNameSetcxx . . $ TapeSpltSubDlg#fileNameSet(f2e9810b37c242c3).(QStringcxx . . $ QString#, int); |
| 66 | }; |
| 67 | |
| 68 | #define HTableTypecxx . . $ `HercUtilities/TapeSplt.h:68:9`! std::vector<QStringList> |
| 69 | class HTableModelcxx . . $ HTableModel# : public QAbstractTableModelcxx . . $ QAbstractTableModel# |
| 70 | { |
| 71 | public: |
| 72 | HTableModelcxx . . $ HTableModel#HTableModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject# * parent = 0); |
| 73 | virtual ~cxx . . $ HTableModel#`~HTableModel`(49f6e7a06ebc5aa8).HTableModelcxx . . $ HTableModel#(); |
| 74 | |
| 75 | virtual int rowCountcxx . . $ HTableModel#rowCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# &parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).()) const; |
| 76 | virtual int columnCountcxx . . $ HTableModel#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# &parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).()) const; |
| 77 | bool insertRowcxx . . $ HTableModel#insertRow(12e0bfc71059d1cd).(int row, const QModelIndexcxx . . $ QModelIndex# &, QStringcxx . . $ QString#, QStringcxx . . $ QString#); |
| 78 | bool removeRowcxx . . $ HTableModel#removeRow(eb30e146838e644d). ( int row, const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(49f6e7a06ebc5aa8).() ); |
| 79 | virtual QVariantcxx . . $ QVariant# datacxx . . $ HTableModel#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex# &index, int role = Qtcxx . . $ Qt/::DisplayRolecxx . . $ Qt/DisplayRole.) const; |
| 80 | virtual QVariantcxx . . $ QVariant# rowDatacxx . . $ HTableModel#rowData(cc12416a8a986c8f).(const QModelIndexcxx . . $ QModelIndex# &index) const; |
| 81 | virtual QVariantcxx . . $ QVariant# headerDatacxx . . $ HTableModel#headerData(b8cfec0985494997).( int section, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role = Qtcxx . . $ Qt/::DisplayRolecxx . . $ Qt/DisplayRole. ) const; |
| 82 | bool setDatacxx . . $ HTableModel#setData(6d1d8401440d0a2c).(const QModelIndexcxx . . $ QModelIndex# &index, const QVariantcxx . . $ QVariant# &value, int role = Qtcxx . . $ Qt/::EditRolecxx . . $ Qt/EditRole.); |
| 83 | private: |
| 84 | HTableTypecxx . . $ std/vector# mTablecxx . . $ HTableModel#mTable.; |
| 85 | |
| 86 | }; |
| 87 | |
| 88 | class TapeSpltcxx . . $ TapeSplt# : public GenericUtilitycxx . . $ GenericUtility# |
| 89 | { |
| 90 | Q_OBJECTcxx . . $ TapeSplt#staticMetaObject. |
| 91 | |
| 92 | public: |
| 93 | TapeSpltcxx . . $ TapeSplt#TapeSplt(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 94 | ~cxx . . $ TapeSplt#`~TapeSplt`(49f6e7a06ebc5aa8).TapeSpltcxx . . $ TapeSplt#(); |
| 95 | |
| 96 | private: |
| 97 | Uicxx . . $ Ui/::TapeSpltClasscxx . . $ Ui/TapeSpltClass# uicxx . . $ TapeSplt#ui.; |
| 98 | HTableModelcxx . . $ HTableModel# *mModelcxx . . $ TapeSplt#mModel.; |
| 99 | int mMaxFilecxx . . $ TapeSplt#mMaxFile.; |
| 100 | |
| 101 | virtual void finishedSlotcxx . . $ TapeSplt#finishedSlot(49f6e7a06ebc5aa8).(); |
| 102 | QStringcxx . . $ QString# genLinecxx . . $ TapeSplt#genLine(93f2bd76dfa71479).(QStringcxx . . $ QString# file, int blocks); |
| 103 | |
| 104 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 105 | void runClickedcxx . . $ TapeSplt#runClicked(49f6e7a06ebc5aa8).(); |
| 106 | void cancelClickedcxx . . $ TapeSplt#cancelClicked(49f6e7a06ebc5aa8).(); |
| 107 | void selectInputClickedcxx . . $ TapeSplt#selectInputClicked(49f6e7a06ebc5aa8).(); |
| 108 | void addClickedcxx . . $ TapeSplt#addClicked(49f6e7a06ebc5aa8).(); |
| 109 | void deleteClickedcxx . . $ TapeSplt#deleteClicked(49f6e7a06ebc5aa8).(); |
| 110 | void downClickedcxx . . $ TapeSplt#downClicked(49f6e7a06ebc5aa8).(); |
| 111 | void upClickedcxx . . $ TapeSplt#upClicked(49f6e7a06ebc5aa8).(); |
| 112 | void fileNameSetSlotcxx . . $ TapeSplt#fileNameSetSlot(f2e9810b37c242c3).(QStringcxx . . $ QString#, int); |
| 113 | }; |
| 114 | |
| 115 | #endif // TAPESPLT_H |