Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Begasus committed Jun 12, 2023
0 parents commit c093e28
Show file tree
Hide file tree
Showing 9 changed files with 488 additions and 0 deletions.
373 changes: 373 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# CudaText-Haiku
Haiku files for CudaText code/text editor

Files placed here:
- CudaText.iom: Icon-O-Matic CudaText icon for Haiku
- CudaText.rdef: RDEF file descriptor for CudaText
- CudaText.rsrc: RSRC resource file (obtained throug 'rc CudaText.rdef')
- CudaTextIcon.rdef: Icon only RDEF file

- Folder 'files' holds the needed files to run CudaText on Haiku
- Folder 'hpkg' holds the files needed to create the Haiku package

## File/folder structure
CudaText already sets the 'config' folder in the right place on Haiku, that is, in /boot/home/config/settings/cudatext.

In that location, the following folders should be added:
- data
- lib
- py
- settings
- settings_default

NOTE: need to certify this and check which other files/folders should be added there


![CudaText Package](/cudatexthpkg.png)

![CudaText Software](/cudatext.png)
Binary file added cudatext.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cudatexthpkg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added files/icons/CudaText.hvif
Binary file not shown.
Binary file added files/icons/CudaText.iom
Binary file not shown.
73 changes: 73 additions & 0 deletions files/icons/CudaText.rdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*--------------------------------------------------------------------
Change the value in quotes to match the signature passed
to the BApplication constructor by your program.
--------------------------------------------------------------------*/
resource app_signature "application/x-vnd.Alexey-T.CudaText";

/*--------------------------------------------------------------------
Value for app flags can be B_SINGLE_LAUNCH, B_MULTIPLE_LAUNCH, or
B_EXCLUSIVE_LAUNCH.

Additionally, you may also add the B_BACKGROUND_APP or
B_ARGV_ONLY flags via a pipe symbol, such as the following:
B_SINGLE_LAUNCH | B_BACKGROUND_APP

B_SINGLE_LAUNCH is the normal OS behavior
--------------------------------------------------------------------*/
resource app_flags B_SINGLE_LAUNCH;

resource("QT:QPA_FLAGS") "Q_REF_TO_ARGV|Q_REF_TO_FORK";

/*--------------------------------------------------------------------
Set the version information about your app here.
The variety can be set to one of the following values
B_APPV_DEVELOPMENT,
B_APPV_ALPHA,
B_APPV_BETA,
B_APPV_GAMMA,
B_APPV_GOLDEN_MASTER,
B_APPV_FINAL
--------------------------------------------------------------------*/

resource file_types message {
"types" = "text/plain",
"types" = "text/x-source-code",
"types" = "text",
"types" = "text/x-makefile",
"types" = "text/x-rez",
"types" = "text/x-jamfile",
"types" = "application/xhtml+xml"
};

/*------------------------------------------------------------------*/

resource app_version {
major = 1,
middle = 133,
minor = 7,

variety = B_APPV_GAMMA,
internal = 1,

short_info = "CudaText, the Cross Platform text and code editor",
long_info = "CudaText is a cross-platform text editor, written in Object Pascal. It is open source project and can be used free of charge, even for business. It starts quite fast: ~0.3 sec with ~30 plugins, on Linux on CPU Intel Core i3 3Hz. It is extensible by Python add-ons: plugins, linters, code tree parsers, external tools. Syntax parser is feature-rich, based on EControl engine (though not as fast as in some competitors). \n \n Features \n * Syntax highlight for lot of languages (250+ lexers). \n * Code tree: structure of functions/classes/etc, if lexer allows it. \n * Code folding. \n * Multi-carets and multi-selections. \n * Find/Replace with regular expressions. \n * Configs in JSON format. Including lexer-specific configs. \n * Tabbed UI. \n * Split view to primary/secondary. Split window to 2/3/4/6 groups of tabs. \n * Command palette, with fuzzy matching. \n * Minimap. Micromap. \n * Show unprinted whitespace. \n * Support for many encodings. \n * Customizable hotkeys. \n * Binary/Hex viewer for files of unlimited size (can show 10 Gb logs). \n * Correctly saves binary files."
};


resource vector_icon array {
$"6E6369660503787A750401C90401C9020012023FE5363BA2BBBBA2BB3FE53646"
$"06F0C5379500FFD2FFFF0003F8A12E060206422349233A2322372332213A2340"
$"223E2442405E395E475E594558475A435A3C5A3E5A3A0604BF415F395F495F5E"
$"4D5C5160495F3E6145CB53BC3E55340605F703425D455D405D574E4B4B4E5247"
$"593BC982BD8E5A3C5A435B40594606057E032338233E233B2341415E3E60C07A"
$"CB7B583149BCF352B758C0980610AEEBEBBA432C3D2B3F2ABE6CB772BD8BB7FC"
$"B9E8BA462F38B8E2BBB8B909BD1AB98DBE393D49434B3E4BC2964B503F4F4151"
$"3D4F394644424545453F453E43363B3537353935353734060BEAAA2B442F4C38"
$"473E4240454040403E3D39373C34413A433CC0A9BDDF443D48384131070A0101"
$"01000A000100000A010102000A030103000A0201001001178200040A04010400"
$"0A04010500"
};




Binary file added files/icons/CudaText.rsrc
Binary file not shown.
14 changes: 14 additions & 0 deletions files/icons/CudaTextIcon.rdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

resource(<your resource id here>) #'VICN' array {
$"6E6369660503787A750401C90401C9020012023FE5363BA2BBBBA2BB3FE53646"
$"06F0C5379500FFD2FFFF0003F8A12E060206422349233A2322372332213A2340"
$"223E2442405E395E475E594558475A435A3C5A3E5A3A0604BF415F395F495F5E"
$"4D5C5160495F3E6145CB53BC3E55340605F703425D455D405D574E4B4B4E5247"
$"593BC982BD8E5A3C5A435B40594606057E032338233E233B2341415E3E60C07A"
$"CB7B583149BCF352B758C0980610AEEBEBBA432C3D2B3F2ABE6CB772BD8BB7FC"
$"B9E8BA462F38B8E2BBB8B909BD1AB98DBE393D49434B3E4BC2964B503F4F4151"
$"3D4F394644424545453F453E43363B3537353935353734060BEAAA2B442F4C38"
$"473E4240454040403E3D39373C34413A433CC0A9BDDF443D48384131070A0101"
$"01000A000100000A010102000A030103000A0201001001178200040A04010400"
$"0A04010500"
};

0 comments on commit c093e28

Please sign in to comment.