fix: 修复代码填充无法填充注册函数;完善代码协议声明;
This commit is contained in:
parent
75a7a8b262
commit
435056a2af
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is LGPL from Andres6936/QHexEdit. I have modified a lot
|
||||
** so I decide to change the Open Source License. You can use the original
|
||||
** library under LGPL. Thanks for Andres6936's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "chunks.h"
|
||||
|
||||
#define BUFFER_SIZE 0x10000
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is LGPL from Andres6936/QHexEdit. I have modified a lot
|
||||
** so I decide to change the Open Source License. You can use the original
|
||||
** library under LGPL. Thanks for Andres6936's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef CHUNKS_H
|
||||
#define CHUNKS_H
|
||||
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
** =============================================================================
|
||||
*/
|
||||
#include "qfilebuffer.h"
|
||||
#include "QHexEdit2/chunks.h"
|
||||
|
||||
/*
|
||||
* this file is implemented by wingsummer,
|
||||
* 使用 QHexEdit2 的代码来实现轻松访问上 GB 的文件,
|
||||
* 该类作者并未实现
|
||||
*/
|
||||
|
||||
QFileBuffer::QFileBuffer(QObject *parent) : QHexBuffer(parent) {
|
||||
_chunks = new Chunks(parent);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
** =============================================================================
|
||||
*/
|
||||
#ifndef QFILEBUFFER_H
|
||||
#define QFILEBUFFER_H
|
||||
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
#include "qfileregionbuffer.h"
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef QFILEREGIONBUFFER_H
|
||||
#define QFILEREGIONBUFFER_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qhexbuffer.h"
|
||||
#include <QBuffer>
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef QHEXBUFFER_H
|
||||
#define QHEXBUFFER_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qmemorybuffer.h"
|
||||
|
||||
QMemoryBuffer::QMemoryBuffer(QObject *parent) : QHexBuffer(parent) {}
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef QMEMORYBUFFER_H
|
||||
#define QMEMORYBUFFER_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qmemoryrefbuffer.h"
|
||||
|
||||
#include <QObject>
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef QMEMORYREFBUFFER_H
|
||||
#define QMEMORYREFBUFFER_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "baseaddrcommand.h"
|
||||
|
||||
BaseAddrCommand::BaseAddrCommand(QHexDocument *doc, quint64 oldaddr,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef BASEADDRCOMMAND_H
|
||||
#define BASEADDRCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "bookmarkaddcommand.h"
|
||||
|
||||
BookMarkAddCommand::BookMarkAddCommand(QHexDocument *doc, qsizetype pos,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef BOOKMARKADDCOMMAND_H
|
||||
#define BOOKMARKADDCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "bookmarkclearcommand.h"
|
||||
|
||||
BookMarkClearCommand::BookMarkClearCommand(
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef BOOKMARKCLEARCOMMAND_H
|
||||
#define BOOKMARKCLEARCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "bookmarkcommand.h"
|
||||
|
||||
BookMarkCommand::BookMarkCommand(QHexDocument *doc, qsizetype pos,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef BOOKMARKCOMMAND_H
|
||||
#define BOOKMARKCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "bookmarkremovecommand.h"
|
||||
|
||||
BookMarkRemoveCommand::BookMarkRemoveCommand(QHexDocument *doc, qsizetype pos,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef BOOKMARKREMOVECOMMAND_H
|
||||
#define BOOKMARKREMOVECOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "bookmarkreplacecommand.h"
|
||||
|
||||
BookMarkReplaceCommand::BookMarkReplaceCommand(QHexDocument *doc, qsizetype pos,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef BOOKMARKREPLACECOMMAND_H
|
||||
#define BOOKMARKREPLACECOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "appendcommand.h"
|
||||
|
||||
AppendCommand::AppendCommand(QHexDocument *doc, QHexCursor *cursor,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef APPENDCOMMAND_H
|
||||
#define APPENDCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "hexcommand.h"
|
||||
|
||||
HexCommand::HexCommand(QHexDocument *doc, QHexCursor *cursor, int nibbleindex,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef HEXCOMMAND_H
|
||||
#define HEXCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "insertcommand.h"
|
||||
|
||||
InsertCommand::InsertCommand(QHexDocument *doc, QHexCursor *cursor,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef INSERTCOMMAND_H
|
||||
#define INSERTCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "removecommand.h"
|
||||
|
||||
RemoveCommand::RemoveCommand(QHexDocument *doc, qsizetype offset,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef REMOVECOMMAND_H
|
||||
#define REMOVECOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "replacecommand.h"
|
||||
#include "document/qhexdocument.h"
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef REPLACECOMMAND_H
|
||||
#define REPLACECOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "metaaddcommand.h"
|
||||
|
||||
MetaAddCommand::MetaAddCommand(QHexMetadata *hexmeta,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef METAADDCOMMAND_H
|
||||
#define METAADDCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "metaclearcommand.h"
|
||||
|
||||
MetaClearCommand::MetaClearCommand(QHexMetadata *hexmeta,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef METACLEARCOMMAND_H
|
||||
#define METACLEARCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "metacommand.h"
|
||||
|
||||
MetaCommand::MetaCommand(QHexMetadata *hexmeta, const QHexMetadataItem &meta,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef METACOMMAND_H
|
||||
#define METACOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "metaremovecommand.h"
|
||||
|
||||
MetaRemoveCommand::MetaRemoveCommand(QHexMetadata *hexmeta,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef METAREMOVECOMMAND_H
|
||||
#define METAREMOVECOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "metaremoveposcommand.h"
|
||||
|
||||
MetaRemovePosCommand::MetaRemovePosCommand(QHexMetadata *hexmeta, qsizetype pos,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef METAREMOVEPOSCOMMAND_H
|
||||
#define METAREMOVEPOSCOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "metareplacecommand.h"
|
||||
|
||||
MetaReplaceCommand::MetaReplaceCommand(QHexMetadata *hexmeta,
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef METAREPLACECOMMAND_H
|
||||
#define METAREPLACECOMMAND_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qhexcursor.h"
|
||||
#include <QWidget>
|
||||
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
#ifndef QHEXCURSOR_H
|
||||
#define QHEXCURSOR_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is LPGL from Andres6936/QHexEdit. I have modified a lot
|
||||
** so I decide to change the Open Source License. You can use the original
|
||||
** library under LPGL. Thanks for Andres6936's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qhexdocument.h"
|
||||
#include "buffer/qfilebuffer.h"
|
||||
#include "buffer/qfileregionbuffer.h"
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is LPGL from Andres6936/QHexEdit. I have modified a lot
|
||||
** so I decide to change the Open Source License. You can use the original
|
||||
** library under LPGL. Thanks for Andres6936's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
#ifndef QHEXDOCUMENT_H
|
||||
#define QHEXDOCUMENT_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qhexmetadata.h"
|
||||
#include "commands/meta/metaaddcommand.h"
|
||||
#include "commands/meta/metaclearcommand.h"
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef QHEXMETADATA_H
|
||||
#define QHEXMETADATA_H
|
||||
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
** =============================================================================
|
||||
*/
|
||||
#ifndef QHEXREGIONOBJECT_H
|
||||
#define QHEXREGIONOBJECT_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qhexrenderer.h"
|
||||
#include <QAbstractTextDocumentLayout>
|
||||
#include <QApplication>
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
#ifndef QHEXRENDERER_H
|
||||
#define QHEXRENDERER_H
|
||||
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qstoragedevice.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
** =============================================================================
|
||||
*/
|
||||
#ifndef QSTORAGEDEVICE_H
|
||||
#define QSTORAGEDEVICE_H
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "qhexview.h"
|
||||
#include "document/buffer/qmemorybuffer.h"
|
||||
#include <QApplication>
|
||||
|
|
|
@ -1,7 +1,28 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
**
|
||||
** The original License is MIT from Dax89/QHexView. I have modified a lot so I
|
||||
** decide to change the Open Source License. You can use the original library
|
||||
** under MIT. Thanks for Dax89's efforts.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef QHEXVIEW_H
|
||||
#define QHEXVIEW_H
|
||||
|
||||
#define QHEXVIEW_VERSION 3.0
|
||||
#define QHEXVIEW_VERSION 3.1
|
||||
|
||||
#include "document/qhexdocument.h"
|
||||
#include "document/qhexrenderer.h"
|
||||
|
|
|
@ -270,7 +270,9 @@ set(CLASS_SRC
|
|||
src/class/showinshell.h
|
||||
src/class/showinshell.cpp
|
||||
src/class/dockcomponentsfactory.h
|
||||
src/class/dockcomponentsfactory.cpp)
|
||||
src/class/dockcomponentsfactory.cpp
|
||||
src/class/diffutil.h
|
||||
src/class/diffutil.cpp)
|
||||
|
||||
set(INTERNAL_PLG_SRC
|
||||
src/class/wingangelapi.h src/class/wingangelapi.cpp
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,20 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#include "diffutil.h"
|
||||
|
||||
DiffUtil::DiffUtil() {}
|
|
@ -0,0 +1,26 @@
|
|||
/*==============================================================================
|
||||
** Copyright (C) 2024-2027 WingSummer
|
||||
**
|
||||
** This program is free software: you can redistribute it and/or modify it under
|
||||
** the terms of the GNU Affero General Public License as published by the Free
|
||||
** Software Foundation, version 3.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
** FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
** details.
|
||||
**
|
||||
** You should have received a copy of the GNU Affero General Public License
|
||||
** along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
** =============================================================================
|
||||
*/
|
||||
|
||||
#ifndef DIFFUTIL_H
|
||||
#define DIFFUTIL_H
|
||||
|
||||
class DiffUtil {
|
||||
public:
|
||||
DiffUtil();
|
||||
};
|
||||
|
||||
#endif // DIFFUTIL_H
|
|
@ -220,15 +220,24 @@ MainWindow::MainWindow(SplashDialog *splash) : FramelessMainWindow() {
|
|||
if (splash)
|
||||
splash->setInfoText(tr("LoadingPlg:") + plgName);
|
||||
});
|
||||
connect(&plg, &PluginSystem::scriptBaseInited, this, [=, &plg]() {
|
||||
|
||||
plg.setMainWindow(this);
|
||||
plg.loadAllPlugin();
|
||||
|
||||
// Don't setup it too early, because the plugin can register script
|
||||
// functions. Code completions of them will be not worked out.
|
||||
if (set.scriptEnabled()) {
|
||||
// At this time, AngelScript service plugin has started
|
||||
if (splash)
|
||||
splash->setInfoText(tr("SetupConsole"));
|
||||
|
||||
m_scriptConsole->init();
|
||||
if (splash)
|
||||
splash->setInfoText(tr("SetupScriptManager"));
|
||||
ScriptManager::instance().attach(m_scriptConsole);
|
||||
|
||||
plg.angelApi()->setBindingConsole(m_scriptConsole);
|
||||
|
||||
if (splash)
|
||||
splash->setInfoText(tr("SetupScriptService"));
|
||||
auto &langins = LangService::instance();
|
||||
|
@ -240,20 +249,15 @@ MainWindow::MainWindow(SplashDialog *splash) : FramelessMainWindow() {
|
|||
m_scriptConsole->initOutput();
|
||||
m_scriptConsole->machine()->setInsteadFoundDisabled(true);
|
||||
|
||||
plg.angelApi()->setBindingConsole(m_scriptConsole);
|
||||
});
|
||||
if (splash)
|
||||
splash->setInfoText(tr("SetupScriptEditor"));
|
||||
m_scriptDialog = new ScriptingDialog(this);
|
||||
m_scriptDialog->initConsole();
|
||||
|
||||
plg.setMainWindow(this);
|
||||
plg.loadAllPlugin();
|
||||
|
||||
if (splash)
|
||||
splash->setInfoText(tr("SetupScriptEditor"));
|
||||
m_scriptDialog = new ScriptingDialog(this);
|
||||
m_scriptDialog->initConsole();
|
||||
|
||||
// load the model
|
||||
Q_ASSERT(m_scriptConsole && m_scriptConsole->machine());
|
||||
m_varshowtable->setModel(m_scriptConsole->consoleMachine()->model());
|
||||
// load the model
|
||||
Q_ASSERT(m_scriptConsole && m_scriptConsole->machine());
|
||||
m_varshowtable->setModel(m_scriptConsole->consoleMachine()->model());
|
||||
}
|
||||
|
||||
// connect settings signals
|
||||
connect(&set, &SettingManager::sigEditorfontSizeChanged, this,
|
||||
|
|
|
@ -3050,8 +3050,6 @@ void PluginSystem::loadAllPlugin() {
|
|||
auto meta = parsePluginMetadata(doc.object());
|
||||
retranslateMetadata(_angelplg, meta);
|
||||
loadPlugin(_angelplg, meta, std::nullopt);
|
||||
|
||||
emit scriptBaseInited();
|
||||
}
|
||||
|
||||
Logger::newLine();
|
||||
|
|
|
@ -347,8 +347,6 @@ private:
|
|||
signals:
|
||||
void pluginLoading(const QString &plgName);
|
||||
|
||||
void scriptBaseInited();
|
||||
|
||||
private:
|
||||
PluginSystem(QObject *parent = nullptr);
|
||||
~PluginSystem();
|
||||
|
|
Loading…
Reference in New Issue