mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
Add extra window as default extension, and reorganize build
This commit is contained in:
parent
f52104009e
commit
7e4cc13bcf
@ -26,8 +26,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_FINAL_OUTPUT_DIRECTORY})
|
||||
|
||||
set(CMAKE_CONFIGURATION_TYPES Debug Release)
|
||||
|
||||
file(GLOB MISC_FILES "release/*.dll")
|
||||
file(COPY ${MISC_FILES} DESTINATION ${CMAKE_FINAL_OUTPUT_DIRECTORY})
|
||||
file(GLOB LIBS lib/*)
|
||||
file(COPY ${LIBS} DESTINATION ${CMAKE_FINAL_OUTPUT_DIRECTORY})
|
||||
|
||||
add_subdirectory(GUI)
|
||||
add_subdirectory(vnrhook)
|
||||
|
@ -78,11 +78,13 @@ ExtenWindow::ExtenWindow(QWidget* parent) :
|
||||
ui(new Ui::ExtenWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->vboxLayout->addWidget(new QLabel(EXTEN_WINDOW_INSTRUCTIONS, this));
|
||||
setWindowTitle(EXTENSIONS);
|
||||
|
||||
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);
|
||||
Sync();
|
||||
}
|
||||
|
@ -4,10 +4,12 @@ foreach ($arch in @("86", "64")) {
|
||||
$folder = "Textractor$($arch)";
|
||||
$targets = @(
|
||||
"Textractor.exe",
|
||||
"vnrhook.dll",
|
||||
"Qt5Core.dll",
|
||||
"Qt5Gui.dll",
|
||||
"Qt5Widgets.dll",
|
||||
"vnrhook.dll",
|
||||
"LoaderDll.dll",
|
||||
"LocaleEmulator.dll",
|
||||
"Bing Translate.dll",
|
||||
"Copy to Clipboard.dll",
|
||||
"Extra Newlines.dll",
|
||||
|
@ -27,6 +27,10 @@ constexpr auto GAME_SAVE_FILE = u8"SavedGames.txt";
|
||||
constexpr auto EXTEN_SAVE_FILE = u8"SavedExtensions.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
|
||||
|
||||
template <typename... Args>
|
||||
|
@ -1 +0,0 @@
|
||||
Remove Repetition>Copy to Clipboard>Google Translate>Extra Newlines>
|
Loading…
x
Reference in New Issue
Block a user