Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
64 changes: 64 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
cmake_minimum_required(VERSION 3.14)

project(
Geist
VERSION 0.1.0
LANGUAGES CXX
)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR})
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR})

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(NO_CACHEGEN "NO_CACHEGEN")
endif()

include(FeatureSummary)

find_package(
QT NAMES Qt6 Qt5
COMPONENTS Core
REQUIRED
)

find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Widgets)

include_directories(src)

set(PROJECT_SOURCES
src/files.cpp
src/highlighter.cpp
src/files.h
src/highlighter.h
src/main.cpp
src/mainwindow.cpp
src/mainwindow.ui
src/mainwindow.h
src/search.cpp
src/utils/conversion.cpp
src/utils/templates.cpp
src/utils/conversion.h
src/utils/templates.h
src/widgets/geisttextedit.cpp
src/widgets/geisttextedit.h
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(${PROJECT_NAME}
MANUAL_FINALIZATION
)
else()
add_executable(${PROJECT_NAME})
endif()

target_sources(${PROJECT_NAME} PUBLIC ${PROJECT_SOURCES})
target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Widgets)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Try it online](https://img.shields.io/badge/Try%20it%20online!-informational)](https://wasm-apps.netlify.app/geist/)

Geist is an all purpose text/code editor written in C++ and using the Qt framework.
Geist is an all purpose text/code editor written in C++ and using the Qt6 framework.

## Screenshot
![Geist](https://github.com/jubal-R/Geist/blob/master/Screenshots/geist.png)
Expand All @@ -20,26 +20,33 @@ Note: Font settings to be added in the future
- Anonymous Pro - http://www.marksimonson.com/fonts/view/anonymous-pro

## Dependencies
qt5-default qt5-qmake

- Qt5.15 or Qt6
- CMake

## Building Geist
`git clone https://github.com/jubal-R/Geist.git`
`mkdir build`
`cd build`
`qmake ../Geist/Geist.pro`
`make`

```bash
git clone https://github.com/jubal-R/Geist.git
cd Geist
cmake -B build -DCMAKE_BUILD_TYPE=RelMinSize
cmake --build build --config release --parallel
```

## Features To Be Added

- Additional preference options
- Auto-completion

## License

Geist - All purpose text/code editor Copyright (C) 2017
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

## Acknowledgements

highlighter.cpp and highlighter.h
Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
Full copyright notice is maintained within these files.
35 changes: 0 additions & 35 deletions src/Geist.pro

This file was deleted.

338 changes: 0 additions & 338 deletions src/Geist.pro.user

This file was deleted.

271 changes: 0 additions & 271 deletions src/Geist.pro.user.2cbb2e6.4.8-pre1

This file was deleted.

Loading