Skip to content

Hermelin13/EdiText

Repository files navigation

EdiText

A lightweight, cross-platform text editor built with C++ and Qt6, featuring a modern tabbed interface and essential text editing capabilities.

Features

Core Functionality

  • Tabbed Interface: Work with multiple documents simultaneously using an intuitive tab-based system
  • File Operations: Open, save, and create new text files
  • Find & Replace: Search functionality with support for:
    • Case-sensitive search
    • Whole word matching
    • Find and replace
    • Replace all occurrences
  • Print Support: Print documents directly from the editor with print preview
  • Drag & Drop: Drag files directly into the editor to open them

User Interface

  • Customizable Appearance:
    • Font selection
    • Color customization
  • Modern Design: Clean, light-themed interface using Qt Fusion style
  • Session Persistence: Remembers window geometry between sessions

Internationalization

  • Multi-language support (English and Czech)
  • Automatic language detection based on system locale

Requirements

Build Dependencies

  • CMake 3.16 or higher
  • Qt 5 or Qt 6 (with the following components):
    • Qt Widgets
    • Qt PrintSupport
    • Qt LinguistTools (for translations)
  • C++17 compatible compiler

Building from Source

  1. Clone the repository:
git clone https://github.com/Hermelin13/EdiText.git
cd EdiText
  1. Create a build directory:
mkdir build
cd build
  1. Configure the project with CMake:
cmake ..
  1. Build the application:
cmake --build .
  1. Run the application:
./EdiText

Project Structure

EdiText/
├── main.cpp              # Application entry point
├── mainwindow.*          # Main application window
├── window.*              # Text editor widget implementation
├── tabbedwindow.*        # Tab management system
├── finddialog.*          # Find and replace dialog
├── search.*              # Search functionality
├── resources. qrc         # Qt resource file
├── res/                  # Resources (icons, etc.)
├── EdiText_cs.ts         # Czech translation
├── EdiText_en.ts         # English translation
└── CMakeLists.txt        # Build configuration

Usage

Keyboard Shortcuts

  • Ctrl+N: Create a new file
  • Ctrl+O: Open a file
  • Ctrl+S: Save file
  • Ctrl+F: Open find/replace dialog
  • Ctrl+P: Print document
  • Ctrl+W: Close current tab

Features in Detail

Find and Replace

The integrated find and replace dialog offers:

  • Search with case sensitivity option
  • Whole word matching
  • Replace individual occurrences
  • Replace all matches at once

Tabbed Editing

  • Open multiple files in separate tabs
  • Close individual tabs

Customization

  • Choose from various fonts and font styles
  • Customize text color

License

This project is open source and available for free use, modification, and distribution.

Developed at UTB (University of Technology in Brno).

Author

Developed by Hermelin13

About

Text editor mainly for Win, Uni project in Qt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors