Add extra window as default extension, and reorganize build

This commit is contained in:
Akash Mozumdar 2019-01-25 22:49:50 -05:00
parent f52104009e
commit 7e4cc13bcf
7 changed files with 11 additions and 4 deletions

View File

@ -26,8 +26,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_FINAL_OUTPUT_DIRECTORY})
set(CMAKE_CONFIGURATION_TYPES Debug Release) set(CMAKE_CONFIGURATION_TYPES Debug Release)
file(GLOB MISC_FILES "release/*.dll") file(GLOB LIBS lib/*)
file(COPY ${MISC_FILES} DESTINATION ${CMAKE_FINAL_OUTPUT_DIRECTORY}) file(COPY ${LIBS} DESTINATION ${CMAKE_FINAL_OUTPUT_DIRECTORY})
add_subdirectory(GUI) add_subdirectory(GUI)
add_subdirectory(vnrhook) add_subdirectory(vnrhook)

View File

@ -78,11 +78,13 @@ ExtenWindow::ExtenWindow(QWidget* parent) :
ui(new Ui::ExtenWindow) ui(new Ui::ExtenWindow)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->vboxLayout->addWidget(new QLabel(EXTEN_WINDOW_INSTRUCTIONS, this)); ui->vboxLayout->addWidget(new QLabel(EXTEN_WINDOW_INSTRUCTIONS, this));
setWindowTitle(EXTENSIONS); setWindowTitle(EXTENSIONS);
ui->extenList->installEventFilter(this); ui->extenList->installEventFilter(this);
if (!QFile::exists(EXTEN_SAVE_FILE)) QTextFile(EXTEN_SAVE_FILE, QIODevice::WriteOnly).write(DEFAULT_EXTENSIONS);
for (auto extenName : QString(QTextFile(EXTEN_SAVE_FILE, QIODevice::ReadOnly).readAll()).split(">")) Load(extenName); for (auto extenName : QString(QTextFile(EXTEN_SAVE_FILE, QIODevice::ReadOnly).readAll()).split(">")) Load(extenName);
Sync(); Sync();
} }

View File

@ -4,10 +4,12 @@ foreach ($arch in @("86", "64")) {
$folder = "Textractor$($arch)"; $folder = "Textractor$($arch)";
$targets = @( $targets = @(
"Textractor.exe", "Textractor.exe",
"vnrhook.dll",
"Qt5Core.dll", "Qt5Core.dll",
"Qt5Gui.dll", "Qt5Gui.dll",
"Qt5Widgets.dll", "Qt5Widgets.dll",
"vnrhook.dll", "LoaderDll.dll",
"LocaleEmulator.dll",
"Bing Translate.dll", "Bing Translate.dll",
"Copy to Clipboard.dll", "Copy to Clipboard.dll",
"Extra Newlines.dll", "Extra Newlines.dll",

View File

@ -27,6 +27,10 @@ constexpr auto GAME_SAVE_FILE = u8"SavedGames.txt";
constexpr auto EXTEN_SAVE_FILE = u8"SavedExtensions.txt"; constexpr auto EXTEN_SAVE_FILE = u8"SavedExtensions.txt";
constexpr auto REPLACE_SAVE_FILE = u8"SavedReplacements.txt"; constexpr auto REPLACE_SAVE_FILE = u8"SavedReplacements.txt";
// Misc
constexpr auto DEFAULT_EXTENSIONS = u8"Remove Repetition>Copy to Clipboard>Google Translate>Extra Window>Extra Newlines";
// Functions // Functions
template <typename... Args> template <typename... Args>

View File

@ -1 +0,0 @@
Remove Repetition>Copy to Clipboard>Google Translate>Extra Newlines>