-
Notifications
You must be signed in to change notification settings - Fork 17
/
mainwindow.h
49 lines (41 loc) · 2.01 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <boost/filesystem.hpp>
#include "genie/dat/DatFile.h"
#include "genie/lang/LangFile.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
int run();
private:
Ui::MainWindow *ui;
void changeLanguage(std::string);
void copyHDMaps(boost::filesystem::path inputDir, boost::filesystem::path outputDir, bool replace = false);
void terrainSwap(genie::DatFile *hdDat, genie::DatFile *aocDat, int tNew, int tOld, int slpID);
void recCopy(boost::filesystem::path const &src, boost::filesystem::path const &dst, bool skip = false, bool force = false);
void indexDrsFiles(boost::filesystem::path const &src);
void indexTerrainFiles(boost::filesystem::path const &src);
void convertLanguageFile(std::ifstream *in, std::ofstream *iniOut, genie::LangFile *dllOut, bool generateLangDll, std::map<int, std::string> *langReplacement);
void makeDrs(std::ofstream *out);
void uglyHudHack(boost::filesystem::path);
void copyCivIntroSounds(boost::filesystem::path inputDir, boost::filesystem::path outputDir);
void copyWallFiles(boost::filesystem::path inputDir);
std::string tolower(std::string line);
void createMusicPlaylist(std::string inputDir, std::string const outputDir);
void transferHdDatElements(genie::DatFile *hdDat, genie::DatFile *aocDat);
void patchArchitectures(genie::DatFile *aocDat);
bool checkGraphics(genie::DatFile *aocDat, short graphicID, std::vector<int> checkedGraphics);
void replaceGraphic(genie::DatFile *aocDat, short* graphicID, short compareID, short c, std::map<short,short>& replacedGraphics, std::map<int,int> slps = std::map<int,int>());
short duplicateGraphic(genie::DatFile *aocDat, std::vector<int> duplicatedGraphics, short graphicID, short compareID, short offset, std::map<int,int> slps = std::map<int,int>());
void hotkeySetup();
bool copyData(QIODevice &inFile, QIODevice &outFile);
};
#endif // MAINWINDOW_H