1 /********************************************************************************************** 2 Copyright (C) 2018 Oliver Eichler <oliver.eichler@gmx.de> 3 4 This program is free software: you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation, either version 3 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17 **********************************************************************************************/ 18 19 #ifndef CTOOLEXPORT_H 20 #define CTOOLEXPORT_H 21 22 #include "items/IItem.h" 23 #include "tool/ITool.h" 24 #include "tool/IToolGui.h" 25 #include "ui_IToolExport.h" 26 27 class CToolExport : public IToolGui, public ITool, private Ui::IToolExport 28 { 29 Q_OBJECT 30 public: 31 CToolExport(QWidget* parent); 32 virtual ~CToolExport(); 33 34 void setupChanged() override; 35 36 FORWARD_TREE_ALL(itemTree) 37 38 private slots: 39 void slotMapSelectionChanged(); 40 void slotSomethingChanged(); 41 void slotStart(); 42 void slotFinished(qint32 id); 43 44 void slotSelectFilename(); 45 46 private: 47 void buildCmd(QList<CShellCmd>& cmds, const IItem* iitem) override; 48 void buildCmdFinal(QList<CShellCmd>& cmds) override; 49 50 void buildCmdFinalJnx(QList<CShellCmd>& cmds); 51 void buildCmdFinalRmap(QList<CShellCmd>& cmds); 52 53 enum type_e 54 { 55 eTypeJnx = 0 56 , eTypeRmap = 1 57 }; 58 59 QStringList inputFiles; 60 }; 61 62 #endif //CTOOLEXPORT_H 63 64