Skip to content

Commit

Permalink
Merge pull request sqlitebrowser#260 from sqlitebrowser/qscintilla
Browse files Browse the repository at this point in the history
Use Qscintilla instead of implementing our own code editor
  • Loading branch information
MKleusberg committed Apr 23, 2015
2 parents 029f016 + e714eee commit 506804a
Show file tree
Hide file tree
Showing 172 changed files with 87,366 additions and 677 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ src/translations/*.qm
src/grammar/sqlite3TokenTypes.txt

libs/*/Makefile*
libs/*/*/Makefile*
libs/*/debug/
libs/*/*/debug/
libs/*/release/
libs/*/*/release/
libs/*/*.a
libs/*/*/*.a

# Ignore .DS_Store files on OSX
.DS_Store
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ endif()
set(ANTLR_DIR libs/antlr-2.7.7)
set(QHEXEDIT_DIR libs/qhexedit)
set(QCUSTOMPLOT_DIR libs/qcustomplot-source)
set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5)

add_subdirectory(${ANTLR_DIR})
add_subdirectory(${QHEXEDIT_DIR})
add_subdirectory(${QCUSTOMPLOT_DIR})
add_subdirectory(${QSCINTILLA_DIR})

if(USE_QT5)
find_package(Qt5Widgets REQUIRED)
Expand Down Expand Up @@ -62,7 +64,6 @@ set(SQLB_MOC_HDR
src/ImportCsvDialog.h
src/MainWindow.h
src/PreferencesDialog.h
src/SQLiteSyntaxHighlighter.h
src/SqlExecutionArea.h
src/VacuumDialog.h
src/sqlitetablemodel.h
Expand All @@ -71,6 +72,7 @@ set(SQLB_MOC_HDR
src/Application.h
src/CipherDialog.h
src/ExportSqlDialog.h
src/SqlUiLexer.h
)

set(SQLB_SRC
Expand All @@ -84,7 +86,6 @@ set(SQLB_SRC
src/ImportCsvDialog.cpp
src/MainWindow.cpp
src/PreferencesDialog.cpp
src/SQLiteSyntaxHighlighter.cpp
src/SqlExecutionArea.cpp
src/VacuumDialog.cpp
src/sqlitedb.cpp
Expand All @@ -99,6 +100,7 @@ set(SQLB_SRC
src/Application.cpp
src/CipherDialog.cpp
src/ExportSqlDialog.cpp
src/SqlUiLexer.cpp
)

set(SQLB_FORMS
Expand Down Expand Up @@ -208,6 +210,7 @@ include_directories(
${ANTLR_DIR}
${QHEXEDIT_DIR}
${QCUSTOMPLOT_DIR}
${QSCINTILLA_DIR}
${ADDITIONAL_INCLUDE_PATHS}
src)

Expand All @@ -224,17 +227,19 @@ if(USE_QT5)
qt5_use_modules(${PROJECT_NAME} Gui Widgets Network Test PrintSupport)
set(QT_LIBRARIES "")
endif()
add_dependencies(${PROJECT_NAME} antlr qhexedit qcustomplot)
add_dependencies(${PROJECT_NAME} antlr qhexedit qcustomplot qscintilla2)

link_directories(
"${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}")
"${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}/${QSCINTILLA_DIR}")

target_link_libraries(${PROJECT_NAME}
antlr
qhexedit
qcustomplot
qscintilla2
${QT_LIBRARIES}
${WIN32_STATIC_LINK}
${LIBSQLITE}
Expand Down
Loading

0 comments on commit 506804a

Please sign in to comment.