mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-12 09:57:05 +03:00
141 lines
3.6 KiB
C
141 lines
3.6 KiB
C
|
//===================================================//
|
|||
|
// //
|
|||
|
// TRANSLATIONS //
|
|||
|
// //
|
|||
|
//===================================================//
|
|||
|
|
|||
|
char short_app_name[] = "Quark";
|
|||
|
|
|||
|
#ifdef LANG_RUS
|
|||
|
|
|||
|
char intro[] = "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮩ <20><><EFBFBD>ᬮ<EFBFBD><E1ACAE>騪 ⥪<><E2A5AA><EFBFBD>.
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD>⮢<EFBFBD><EFBFBD> 䠩<EFBFBD>.";
|
|||
|
|
|||
|
char copied_chars[] = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨢ<><E1A8A2><EFBFBD><EFBFBD>: %i";
|
|||
|
|
|||
|
char about[] = "Quark Text v0.2
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD>ਫ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢ aka Leency
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: http://aspero.pro
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>稥 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
|||
|
Ctrl+O - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD>
|
|||
|
Ctrl+I - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ଠ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|||
|
Ctrl+<EFBFBD><EFBFBD><EFBFBD><EFBFBD> - 㢥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Ctrl+<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - 㬥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Ctrl+Tab - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥪<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Ctrl+E - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>㣮<EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
|||
|
Ctrl+F - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>᪠
|
|||
|
F3 - <EFBFBD>᪠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
Esc - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>᪠";
|
|||
|
|
|||
|
char color_scheme_names[] = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<EFBFBD><EFBFBD>ᬮ<EFBFBD> ";
|
|||
|
#define FILE_SAVED_WELL "'<27><><EFBFBD><EFBFBD> <20>ᯥ譮 <20><><EFBFBD>࠭<EFBFBD><E0A0AD>'O"
|
|||
|
#define FILE_NOT_SAVED "'<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> 䠩<><E4A0A9>!'E"
|
|||
|
|
|||
|
char rmb_menu[] =
|
|||
|
"<EFBFBD><EFBFBD>१<EFBFBD><EFBFBD><EFBFBD>|Ctrl+X
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>|Ctrl+C
|
|||
|
<EFBFBD><EFBFBD>⠢<EFBFBD><EFBFBD><EFBFBD>|Ctrl+V
|
|||
|
-
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>";
|
|||
|
|
|||
|
#else
|
|||
|
|
|||
|
char intro[] = "Quark will be a nice Code Editor one day.
|
|||
|
Try to open some text file.";
|
|||
|
|
|||
|
char copied_chars[] = "Copied %i chars";
|
|||
|
|
|||
|
char about[] = "Quark Text v0.2
|
|||
|
Author: Kiril Lipatov aka Leency
|
|||
|
Website: http://aspero.pro
|
|||
|
|
|||
|
Hotkeys:
|
|||
|
Ctrl+O - open file
|
|||
|
Ctrl+I - show file properties
|
|||
|
Ctrl+Plus - bigger font
|
|||
|
Ctrl+Down - smaller font
|
|||
|
Ctrl+Tab - select charset
|
|||
|
Ctrl+E - reopen current file in another app
|
|||
|
|
|||
|
Search:
|
|||
|
Ctrl+F - open search
|
|||
|
F3 - search next
|
|||
|
Esc - hide search bar";
|
|||
|
|
|||
|
char color_scheme_names[] = "Dairy\nCosmos ";
|
|||
|
#define FILE_SAVED_WELL "'File saved'O"
|
|||
|
#define FILE_NOT_SAVED "'Error saving file!'E"
|
|||
|
|
|||
|
char rmb_menu[] =
|
|||
|
"Cut|Ctrl+X
|
|||
|
Copy|Ctrl+C
|
|||
|
Paste|Ctrl+V
|
|||
|
-
|
|||
|
Reveal in folder
|
|||
|
Copy file path";
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
//===================================================//
|
|||
|
// //
|
|||
|
// DATA //
|
|||
|
// //
|
|||
|
//===================================================//
|
|||
|
|
|||
|
dword color_schemes[] = {
|
|||
|
//bg, text, scroll, selected, cursor
|
|||
|
0xFCF0DA, 0x171501, 0xB2ACA0, 0xD8CAA7, 0xFF0000, //Dairy
|
|||
|
0x282923, 0xD8D8D2, 0x555551, 0x5A574A, 0xFFFfff //Cosmos
|
|||
|
};
|
|||
|
|
|||
|
struct THEME
|
|||
|
{
|
|||
|
dword bg, text, cursor;
|
|||
|
} theme;
|
|||
|
|
|||
|
char default_dir[] = "/rd/1";
|
|||
|
od_filter filter2 = { 33, "TXT\0ASM\0HTM\0HTML\0C\0H\0C--\0H--\0CPP\0\0" };
|
|||
|
|
|||
|
DrawBufer DrawBuf;
|
|||
|
|
|||
|
dword cursor_pos=0;
|
|||
|
|
|||
|
collection_int lines = {0};
|
|||
|
|
|||
|
//===================================================//
|
|||
|
// //
|
|||
|
// SETTINGS //
|
|||
|
// //
|
|||
|
//===================================================//
|
|||
|
|
|||
|
|
|||
|
_ini ini = { "/sys/settings/app.ini", "Quark" };
|
|||
|
|
|||
|
void LoadIniSettings()
|
|||
|
{
|
|||
|
font_size = ini.GetInt("FontSize", 'M');
|
|||
|
user_encoding = ini.GetInt("Encoding", CH_AUTO);
|
|||
|
curcol_scheme = ini.GetInt("ColorScheme", 0);
|
|||
|
Form.left = ini.GetInt("WinX", 150);
|
|||
|
Form.top = ini.GetInt("WinY", 50);
|
|||
|
Form.width = ini.GetInt("WinW", 640);
|
|||
|
Form.height = ini.GetInt("WinH", 560);
|
|||
|
}
|
|||
|
|
|||
|
void SaveIniSettings()
|
|||
|
{
|
|||
|
ini.SetInt("FontSize", font_size);
|
|||
|
ini.SetInt("Encoding", user_encoding);
|
|||
|
ini.SetInt("ColorScheme", curcol_scheme);
|
|||
|
ini.SetInt("WinX", Form.left);
|
|||
|
ini.SetInt("WinY", Form.top);
|
|||
|
ini.SetInt("WinW", Form.width);
|
|||
|
ini.SetInt("WinH", Form.height);
|
|||
|
}
|
|||
|
|
|||
|
|