kolibrios/programs/cmm/quark/data.h
Kirill Lipatov (Leency) 36735bb190 Quark: edit text, ability to make font bigger
git-svn-id: svn://kolibrios.org@8584 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-02-06 17:26:52 +00:00

151 lines
3.9 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//===================================================//
// //
// TRANSLATIONS //
// //
//===================================================//
char short_app_name[] = "Quark";
#ifdef LANG_RUS
char intro[] = "<EFBFBD>â® ¯à®á⮩ ¯à®á¬®âà騪 ¨ । ªâ®à ⥪áâ .
<EFBFBD>®¯à®¡ã©â¥ ®âªàëâì ⥪áâ®¢ë© ä ©«.";
char copied_chars[] = "%i ᨬ¢®«®¢ ᪮¯¨à®¢ ­®";
char chars_selected[] = "%i ᨬ¢®«®¢ ¢ë¤¥«¥­®";
char about[] = "Quark Text v0.95
¢â®à: Š¨à¨«« ¨¯ â®¢ aka Leency
 ©â: http://aspero.pro
ƒ®àï稥 ª« ¢¨è¨:
Ctrl+O - ®âªàëâì ä ©«
Ctrl+I - ¯®ª § âì ¨­ä®à¬ æ¨î ® ä ©«¥
Ctrl+<EFBFBD>«îá - 㢥«¨ç¨âì èà¨äâ
Ctrl+Œ¨­ãá - 㬥­ìè¨âì èà¨äâ
Ctrl+Tab - ¢ë¡à âì ª®¤¨à®¢ªã ⥪áâ 
Ctrl+E - ®âªàëâì ä ©« ¢ ¤à㣮© ¯à®£à ¬¬¥
<EFBFBD>®¨áª:
Ctrl+F - ®âªàëâì ¯ ­¥«ì ¯®¨áª 
F3 - ¨áª âì ¤ «¥¥
Esc - áªàëâì ¯ ­¥«ì ¯®¨áª ";
char color_scheme_names[] = "’¢®à®¦¥ª\nŠ®á¬®á ";
?define FILE_SAVED_WELL "'” ©« ãᯥ譮 á®åà ­¥­'O"
?define FILE_NOT_SAVED "'Žè¨¡ª  ¯à¨ á®åà ­¥­¨¨ ä ©« !'E"
char rmb_menu[] =
"‚ë१ âì|Ctrl+X
Š®¯¨à®¢ âì|Ctrl+C
áâ ¢¨âì|Ctrl+V
-
Žâªàëâì ¢ ¯ ¯ª¥
Š®¯¨à®¢ âì ¯ãâì ä ©« ";
?define T_MATCHES "<EFBFBD> ©¤¥­®: %i "
?define T_FIND_NEXT "<EFBFBD> ©â¨ ¤ «¥¥"
#else
char intro[] = "Quark is a simple text viewer and editor.
Try to open some text file.";
char copied_chars[] = "%i characters copied";
char chars_selected[] = "%i characters selected";
char about[] = "Quark Text v0.95
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";
?define T_MATCHES "Matches: %i "
?define T_FIND_NEXT " Find next "
#endif
//===================================================//
// //
// DATA //
// //
//===================================================//
dword color_schemes[] = {
//bg, text, scroll, selected, cursor
0xFCF0DA, 0x171501, 0xB2ACA0, 0xD8CAA7, 0xFF0000, 0xFEC53A, //Dairy
0x282923, 0xD8D8D2, 0x555551, 0x5A574A, 0xFFFfff, 0x9D7E00 //Cosmos
};
struct THEME
{
dword bg, text, cursor, found;
} theme;
char default_dir[] = "/rd/1";
od_filter filter2 = { 37, "TXT\0INI\0ASM\0HTM\0HTML\0C\0H\0C--\0H--\0CPP\0\0" };
CANVAS canvas;
dword cursor_pos=0;
collection_int lines = {0};
#define file_path param
//===================================================//
// //
// SETTINGS //
// //
//===================================================//
_ini ini = { "/sys/settings/app.ini", "Quark" };
void LoadIniSettings()
{
font_size = ini.GetInt("FontSize", 1);
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", 563);
}
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);
}