cutter => Cutter

This commit is contained in:
xarkes 2018-03-04 18:42:02 +01:00 committed by Florian Märkl
parent ad1946cae4
commit 08c2ac54c4
42 changed files with 56 additions and 56 deletions

View File

@ -1,5 +1,5 @@
#include <QDebug>
#include "cutter.h"
#include "Cutter.h"
#include "AnalThread.h"
#include "MainWindow.h"
#include "dialogs/OptionsDialog.h"

View File

@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.1)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(DisallowInSource)
project(cutter VERSION 1.2)
project(Cutter VERSION 1.2)
option(CUTTER_ENABLE_JUPYTER "Enable Jupyter integration. Requires Python >= 3.3." ON)
option(CUTTER_ENABLE_QTWEBENGINE "Use QtWebEngine for in-app Jupyter Browser. Unused if CUTTER_ENABLE_JUPYTER=OFF." ON)
@ -64,21 +64,21 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
endif()
# Parse cutter.pro to get filenames
# Parse Cutter.pro to get filenames
include(QMakeProParse)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cutter.pro"
"${CMAKE_CURRENT_BINARY_DIR}/cutter.pro"
COPYONLY) # trigger reconfigure if cutter.pro changes
parse_qmake_pro("${CMAKE_CURRENT_BINARY_DIR}/cutter.pro" CUTTER_PRO)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Cutter.pro"
"${CMAKE_CURRENT_BINARY_DIR}/Cutter.pro"
COPYONLY) # trigger reconfigure if Cutter.pro changes
parse_qmake_pro("${CMAKE_CURRENT_BINARY_DIR}/Cutter.pro" CUTTER_PRO)
set(SOURCE_FILES ${CUTTER_PRO_SOURCES})
set(HEADER_FILES ${CUTTER_PRO_HEADERS})
set(UI_FILES ${CUTTER_PRO_FORMS})
set(QRC_FILES ${CUTTER_PRO_RESOURCES})
message(STATUS "sources from cutter.pro: ${SOURCE_FILES}")
message(STATUS "headers from cutter.pro: ${HEADER_FILES}")
message(STATUS "forms from cutter.pro: ${UI_FILES}")
message(STATUS "resources from cutter.pro: ${QRC_FILES}")
message(STATUS "sources from Cutter.pro: ${SOURCE_FILES}")
message(STATUS "headers from Cutter.pro: ${HEADER_FILES}")
message(STATUS "forms from Cutter.pro: ${UI_FILES}")
message(STATUS "resources from Cutter.pro: ${QRC_FILES}")
set(CUTTER_VERSION_SUFFIX "-dev")
@ -87,13 +87,13 @@ message(STATUS "Building Cutter version ${CUTTER_VERSION_FULL}")
add_definitions("-DAPP_VERSION=\"${CUTTER_VERSION_FULL}\"")
add_executable(cutter ${UI_FILES} ${QRC_FILES} ${SOURCE_FILES} ${HEADER_FILES})
qt5_use_modules(cutter Core Widgets Gui Svg)
target_link_libraries(cutter ${RADARE2_LIBRARIES})
add_executable(Cutter ${UI_FILES} ${QRC_FILES} ${SOURCE_FILES} ${HEADER_FILES})
qt5_use_modules(Cutter Core Widgets Gui Svg)
target_link_libraries(Cutter ${RADARE2_LIBRARIES})
if(CUTTER_ENABLE_JUPYTER)
target_link_libraries(cutter ${PYTHON_LIBRARIES})
target_link_libraries(Cutter ${PYTHON_LIBRARIES})
if(CUTTER_ENABLE_QTWEBENGINE)
qt5_use_modules(cutter WebEngineWidgets)
qt5_use_modules(Cutter WebEngineWidgets)
endif()
endif()

View File

@ -2,7 +2,7 @@
#include <QJsonObject>
#include <utils/TempConfig.h>
#include "utils/Configuration.h"
#include "cutter.h"
#include "Cutter.h"
#include "sdb.h"
Q_GLOBAL_STATIC(ccClass, uniqueInstance)

View File

@ -69,8 +69,8 @@ unix:CUTTER_ENABLE_JUPYTER|macx:CUTTER_ENABLE_JUPYTER {
}
SOURCES += \
main.cpp \
cutter.cpp \
Main.cpp \
Cutter.cpp \
widgets/DisassemblerGraphView.cpp \
utils/RichTextPainter.cpp \
dialogs/OptionsDialog.cpp \
@ -133,7 +133,7 @@ SOURCES += \
utils/NestedIPyKernel.cpp
HEADERS += \
cutter.h \
Cutter.h \
widgets/DisassemblerGraphView.h \
utils/RichTextPainter.h \
utils/CachedFontMetrics.h \
@ -238,7 +238,7 @@ RESOURCES += \
themes/qdarkstyle/style.qrc
DISTFILES += cutter.astylerc
DISTFILES += Cutter.astylerc
# 'make install' for AppImage
unix {
@ -252,7 +252,7 @@ unix {
share_pixmaps.files = $$icon_file
desktop_file = cutter.desktop
desktop_file = Cutter.desktop
# built-in no need for files atm
target.path = $$PREFIX/bin

View File

@ -3,7 +3,7 @@
#include <memory>
#include "cutter.h" // only needed for ut64
#include "Cutter.h" // only needed for ut64
#include "widgets/DisassemblyWidget.h"
#include "widgets/SidebarWidget.h"
#include "widgets/HexdumpWidget.h"

View File

@ -1,4 +1,4 @@
#include <cutter.h>
#include <Cutter.h>
#include "AboutDialog.h"
#include "ui_AboutDialog.h"
#include "r_version.h"

View File

@ -3,7 +3,7 @@
#include <QDialog>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
namespace Ui
{

View File

@ -6,7 +6,7 @@
#include <QTimer>
#include <QElapsedTimer>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
#include "AnalThread.h"
#include "ui_OptionsDialog.h"

View File

@ -1,7 +1,7 @@
#include <QFileDialog>
#include <cutter.h>
#include <Cutter.h>
#include "SaveProjectDialog.h"
#include "ui_SaveProjectDialog.h"

View File

@ -5,7 +5,7 @@
#include <QTreeWidgetItem>
#include <memory>
#include "utils/Highlighter.h"
#include "cutter.h"
#include "Cutter.h"
class MainWindow;

View File

@ -6,7 +6,7 @@
#include <QPushButton>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
class PreferencesDialog;

View File

@ -6,7 +6,7 @@
#include <QPushButton>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
class PreferencesDialog;

View File

@ -6,7 +6,7 @@
#include <QPushButton>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
class PreferencesDialog;

View File

@ -6,7 +6,7 @@
#include <QPushButton>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
namespace Ui
{

View File

@ -1,7 +1,7 @@
#ifndef DISASSEMBLYCONTEXTMENU_H
#define DISASSEMBLYCONTEXTMENU_H
#include "cutter.h"
#include "Cutter.h"
#include <QMenu>
#include <QKeySequence>

View File

@ -1,5 +1,5 @@
#TODO: icon
project('cutter', 'cpp', default_options: 'cpp_std=c++11')
project('Cutter', 'cpp', default_options: 'cpp_std=c++11')
feature_define_args = []
if get_option('enable_jupyter')

View File

@ -1,7 +1,7 @@
#ifndef COLORS_H
#define COLORS_H
#include "cutter.h"
#include "Cutter.h"
#include "utils/RichTextPainter.h"
#include <r_anal.h>

View File

@ -3,7 +3,7 @@
#include <QSettings>
#include <QFont>
#include <cutter.h>
#include <Cutter.h>
#define Config() (Configuration::instance())
#define ConfigColor(x) Config()->getColor(x)

View File

@ -1,7 +1,7 @@
#ifndef HIGHLIGHTER_H
#define HIGHLIGHTER_H
#include "cutter.h"
#include "Cutter.h"
#include <QSyntaxHighlighter>
#include <QHash>

View File

@ -6,7 +6,7 @@
#include <QFile>
#include <csignal>
#include "cutter.h"
#include "Cutter.h"
#include "NestedIPyKernel.h"
NestedIPyKernel *NestedIPyKernel::start(const QStringList &argv)

View File

@ -2,7 +2,7 @@
#ifdef CUTTER_ENABLE_JUPYTER
#include "PythonAPI.h"
#include "cutter.h"
#include "Cutter.h"
#include "JupyterConnection.h"
#include "NestedIPyKernel.h"

View File

@ -1,7 +1,7 @@
#include <cassert>
#include "cutter.h"
#include "Cutter.h"
#include "TempConfig.h"
TempConfig::~TempConfig()

View File

@ -3,7 +3,7 @@
#include <memory>
#include "cutter.h"
#include "Cutter.h"
#include <QAbstractListModel>
#include <QSortFilterProxyModel>

View File

@ -4,7 +4,7 @@
#include <QAction>
#include <QShortcut>
#include <QStringListModel>
#include "cutter.h"
#include "Cutter.h"
#include "ConsoleWidget.h"
#include "ui_ConsoleWidget.h"
#include "utils/Helpers.h"

View File

@ -11,7 +11,7 @@
#include <QFileDialog>
#include <QFile>
#include "cutter.h"
#include "Cutter.h"
#include "utils/Colors.h"
#include "utils/Configuration.h"
#include "utils/CachedFontMetrics.h"

View File

@ -1,7 +1,7 @@
#ifndef DISASSEMBLYWIDGET_H
#define DISASSEMBLYWIDGET_H
#include "cutter.h"
#include "Cutter.h"
#include <QDockWidget>
#include <QTextEdit>
#include <QPlainTextEdit>

View File

@ -3,7 +3,7 @@
#include <memory>
#include "cutter.h"
#include "Cutter.h"
#include <QAbstractListModel>
#include <QSortFilterProxyModel>

View File

@ -7,7 +7,7 @@
#include <QSortFilterProxyModel>
#include <QDockWidget>
#include "cutter.h"
#include "Cutter.h"
class MainWindow;
class QTreeWidgetItem;

View File

@ -7,7 +7,7 @@
#include <QTreeView>
#include <QDockWidget>
#include "cutter.h"
#include "Cutter.h"
class MainWindow;
class QTreeWidgetItem;

View File

@ -13,7 +13,7 @@
#include <unordered_set>
#include <queue>
#include "cutter.h"
#include "Cutter.h"
class GraphView : public QAbstractScrollArea
{

View File

@ -9,7 +9,7 @@
#include <array>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
#include "utils/Highlighter.h"
#include "utils/HexAsciiHighlighter.h"
#include "utils/HexHighlighter.h"

View File

@ -38,7 +38,7 @@
**
****************************************************************************/
#include "cutter.h"
#include "Cutter.h"
#include <math.h>
#include <QtWidgets>
#include <QDebug>

View File

@ -4,7 +4,7 @@
#include <QDockWidget>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
namespace Ui
{

View File

@ -1,7 +1,7 @@
#ifndef RESOURCESWIDGET_H
#define RESOURCESWIDGET_H
#include "cutter.h"
#include "Cutter.h"
#include <QDockWidget>
#include <QAbstractListModel>

View File

@ -12,7 +12,7 @@
#include <QPlainTextEdit>
#include <QMouseEvent>
#include <memory>
#include "cutter.h"
#include "Cutter.h"
#include "utils/Highlighter.h"
#include "utils/HexAsciiHighlighter.h"
#include "utils/HexHighlighter.h"

View File

@ -3,7 +3,7 @@
#include <memory>
#include "cutter.h"
#include "Cutter.h"
#include <QAbstractListModel>
#include <QSortFilterProxyModel>

View File

@ -7,7 +7,7 @@
#include <QSortFilterProxyModel>
#include <QDockWidget>
#include "cutter.h"
#include "Cutter.h"
namespace Ui
{

View File

@ -4,7 +4,7 @@
#include <QToolBar>
#include <QGraphicsScene>
#include "cutter.h"
#include "Cutter.h"
class MainWindow;
class QGraphicsView;