kolibrios/programs/cmm/eolite/include/const.h

272 lines
7.7 KiB
C
Raw Normal View History

//===================================================//
// //
// CYRILLIC //
// //
//===================================================//
#ifdef LANG_RUS
#define T_FILE "<22><><EFBFBD>"
#define T_TYPE "<22><><EFBFBD>"
#define T_SIZE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define T_NEW_FOLDER "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
#define T_NEW_FILE "<22><><EFBFBD><EFBFBD><EFBFBD><>"
#define T_DELETE_FILE "<22><> <20><><EFBFBD><EFBFBD>⢨⥫쭮 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E3A4A0><EFBFBD><EFBFBD>"
#define T_YES "<22><>"
#define T_NO "<22><><EFBFBD>"
#define T_CANCEL "<22><EFBFBD><E2ACA5>"
#define T_CREATE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define T_RENAME "<22><><EFBFBD><E0A5AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define T_GOPATH "<22><><EFBFBD><E0A5A9>"
#define FS_ITEM_ALREADY_EXISTS "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><E2A0AA> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' -E"
#define T_NOTIFY_APP_PARAM_WRONG "'<27><><EFBFBD><E0A0AC><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>᪠ Eolite <20><> <20><>७: <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!' -E"
#define T_COPY_WINDOW_TITLE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
#define T_MOVE_WINDOW_TITLE "<22><><EFBFBD><E0A5AC><EFBFBD><EFBFBD>..."
#define T_DELETE_WINDOW_TITLE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
#define T_ABORT_WINDOW_BUTTON "<22><><EFBFBD><EFBFBD><E0A2A0>"
#define T_REPLACE_WINDOW_BUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define T_SKIP_WINDOW_BUTTON "<22><EFBFBD><E0AEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define T_SELECT_APP_TO_OPEN_WITH "<22><EFBFBD><EBA1A5><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E4A0A9>"
#define DEL_MORE_FILES_1 "<22><><EFBFBD><EFBFBD><E0A0AD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ("
#define DEL_MORE_FILES_2 " <20><>.)?"
#define T_STATUS_EVEMENTS "<22><><EFBFBD><EFBFBD><EFBFBD>: %d <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: %d"
#define T_STATUS_SELECTED "<22><EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD>: %d"
#define COPY_PATH_STR "'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><><E1AAAE><EFBFBD><E0AEA2> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' -I"
#define T_ABOUT "<22> <20>ணࠬ<E0AEA3><E0A0AC>"
#define T_USE_SHIFT_ENTER "'<27><EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Shift+Enter <20><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E4A0A9>.' -I"
char *kfm_func = {
"<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><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
" <20><><EFBFBD><EFBFBD><EFBFBD><E0AEA9>"
};
#define T_DEVICES "<22><><EFBFBD><EFBFBD>⢠"
#define T_ACTIONS "<22><><EFBFBD><EFBFBD><EFBFBD>"
char *actions[] = {
59, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><>", "F9",
57, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>", "F7",
60, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "F10",
0,0,0
};
#define T_PROG "<22>ணࠬ<E0AEA3><E0A0AC> "
#define T_SYS "<22><><EFBFBD><EFBFBD> "
#define T_CD "CD-Rom "
#define T_FD "<22><><EFBFBD><E1AAA5> "
#define T_HD "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> "
#define T_SATA "SATA <20><><EFBFBD><EFBFBD> "
#define T_USB "USB <20><><EFBFBD><EFBFBD> "
#define T_RAM "RAM <20><><EFBFBD><EFBFBD> "
#define T_UNC "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⭮ "
#define WINDOW_TITLE_PROPERTIES "<22><><EFBFBD><EFBFBD><EFBFBD>⢠"
#define T_CLOSE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define T_APPLY "<22><EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>"
#define QUEST_1 "<22><EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD> <20><> <20><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define QUEST_2 "䠩<><E4A0A9><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?"
#define PR_T_NAME "<22><><EFBFBD>:"
#define PR_T_DEST "<22><><EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
#define PR_T_SIZE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
#define CREATED_OPENED_MODIFIED "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
#define SET_6 "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "
#define SET_7 " <20><><EFBFBD><EFBFBD><EFBFBD>: "
#define PR_T_CONTAINS "<22><><EFBFBD><EFBFBD><EFBFBD>: "
#define FLAGS " <20><><EFBFBD><EFBFBD><E0A8A1><EFBFBD> "
#define PR_T_HIDDEN "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define PR_T_SYSTEM "<22><><EFBFBD><EFBFBD><E2A5AC><EFBFBD>"
#define PR_T_ONLY_READ "<22><><EFBFBD><20><EFBFBD><E2A5AD>"
#define SET_BYTE_LANG "<22><><EFBFBD><EFBFBD>"
#define TITLE_SETT "<22><><EFBFBD><EFBFBD><EFBFBD><E0AEA9>"
#define SHOW_DEVICE_CLASS "<22><EFBFBD><EBA2AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E0AEA9><EFBFBD>"
#define SHOW_STATUS_BAR "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EBA2A0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>"
#define BIG_ICONS "<22><EFBFBD><EFBFBD><ECA7AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define COLORED_LINES "<22><><EFBFBD>ᢥ稢<E1A2A5><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> ᯨ᪥"
#define FONT_SIZE_LABEL "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
#define LIST_LINE_HEIGHT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20> ᯨ᪥"
#define SAVE_PATH_AS_DEFAULT "<22><><EFBFBD><EFBFBD><20><><EFBFBD><EFBFBD>"
#define SAVE_START_PATH_AS_DEFAULT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
#define EDIT_FILE_ASSOCIATIONS "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD> <20><><EFBFBD><EFBFBD>樠樨 䠩<><E4A0A9><EFBFBD>"
#define START_PATH " <20><><EFBFBD><EFBFBD><EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD>: "
//===================================================//
// //
// ENGLISH //
// //
//===================================================//
#else
#define T_FILE "Name"
#define T_TYPE "Type"
#define T_SIZE "Size"
#define T_NEW_FOLDER "New folder"
#define T_NEW_FILE "New file"
#define T_DELETE_FILE "Do you really want to delete"
#define T_YES "Yes"
#define T_NO "No"
#define T_CANCEL "Cancel"
#define T_CREATE "Create"
#define T_RENAME "Rename"
#define T_GOPATH "Go to"
#define FS_ITEM_ALREADY_EXISTS "'An item with that name already exists' -E"
#define WAIT_DELETING_FOLDER "Deleting folder. Please, wait..."
#define T_NOTIFY_APP_PARAM_WRONG "'Eolite param is wrong: directory does not exist!' -E"
#define T_COPY_WINDOW_TITLE "Copying..."
#define T_MOVE_WINDOW_TITLE "Moving..."
#define T_DELETE_WINDOW_TITLE "Deleting..."
#define T_ABORT_WINDOW_BUTTON "Abort"
#define T_REPLACE_WINDOW_BUTTON "Replace"
#define T_SKIP_WINDOW_BUTTON "Skip"
#define T_SELECT_APP_TO_OPEN_WITH "Select application to open file"
#define DEL_MORE_FILES_1 "selected items("
#define DEL_MORE_FILES_2 " pcs.)?"
#define T_STATUS_EVEMENTS "Dirs: %d Files: %d"
#define T_STATUS_SELECTED "Selected: %d"
#define COPY_PATH_STR "'Directory path copied to clipboard' -I"
#define T_ABOUT "About"
#define T_USE_SHIFT_ENTER "'Use Shift+Enter to open all selected files.' -I"
char *kfm_func = {
"Info",
"Rename",
"View",
"Edit",
"Copy",
"Move",
"Folder",
"Delete",
"File",
" Settings"
};
#define T_DEVICES "Devices"
#define T_ACTIONS "Actions"
char *actions[] = {
59, "New file", "F9",
57, "New folder", "F7",
60, "Settings", "F10",
0,0,0
};
#define T_PROG "Programs "
#define T_SYS "System "
#define T_CD "CD-Rom "
#define T_FD "Floppy disk "
#define T_HD "Hard disk "
#define T_SATA "SATA disk "
#define T_USB "USB disk "
#define T_RAM "RAM disk "
#define T_UNC "Unknown "
#define WINDOW_TITLE_PROPERTIES "Properties"
#define T_CLOSE "Close"
#define T_APPLY "Apply"
#define QUEST_1 "Apply to all subfolders"
#define QUEST_2 "files and Folders?"
#define PR_T_NAME "Name:"
#define PR_T_DEST "Destination:"
#define PR_T_SIZE "Size:"
#define CREATED_OPENED_MODIFIED "Created:\nOpened:\nModified:"
#define SET_6 "Files: "
#define SET_7 " Folders: "
#define PR_T_CONTAINS "Contains: "
#define FLAGS " Attributes "
#define PR_T_HIDDEN "Hidden"
#define PR_T_SYSTEM "System"
#define PR_T_ONLY_READ "Read-only"
#define SET_BYTE_LANG "byte"
#define TITLE_SETT "Settings"
#define SHOW_DEVICE_CLASS "Show device class name"
#define SHOW_STATUS_BAR "Show status bar"
#define BIG_ICONS "Big icons in list"
#define COLORED_LINES "Highlight even lines in list"
#define FONT_SIZE_LABEL "Font size"
#define LIST_LINE_HEIGHT "List line height"
#define SAVE_PATH_AS_DEFAULT "Current path"
#define SAVE_START_PATH_AS_DEFAULT "Typed path"
#define EDIT_FILE_ASSOCIATIONS "Edit file associations"
#define START_PATH " Start path: "
#endif
//===================================================//
// //
// GLOBAL //
// //
//===================================================//
//Button IDs
enum {
POPUP_BTN1 = 201,
POPUP_BTN2 = 202,
KFM_DEV_DROPDOWN_1 = 205,
KFM_DEV_DROPDOWN_2 = 207,
BTN_PATH = 210,
BTN_BREADCRUMB = 214,
BREADCRUMB_ID = 300,
BACK_BTN = 400,
FWRD_BTN,
GOUP_BTN,
COPY_BTN,
CUT_BTN,
PASTE_BTN,
KFM_FUNC_ID = 450
};
#define B_SETINGS_APPLY_SUBFOLDER 301
#define B_SETINGS_APPLY_NO_SUBFOLDER 302
#define B_APPLY 11
#define B_CLOSE 12
//OpenDir options
enum {
WITH_REDRAW,
ONLY_OPEN
};
//OpenDir options
enum {
POPIN_PATH=1,
POPIN_NEW_FILE,
POPIN_NEW_FOLDER,
POPIN_RENAME,
POPIN_DELETE,
POPIN_DISK,
POPIN_BREADCR
};
char *devinfo = {
"sy", 0, T_SYS,
"rd", 0, T_SYS,
"ko", 1, T_PROG,
"fd", 2, T_FD,
"cd", 3, T_CD,
"hd", 4, T_HD,
"bd", 4, T_HD,
"sd", 4, T_SATA,
"tm", 5, T_RAM,
"us", 6, T_USB,
0
};
#define DEV_H 17
#define DDW 110
#define KFM2_DEVH 20
#define SELECTY 10
#define POPIN_W 260
//Sidebar width
#define SIDEBAR_W 192
//Sidebar padding
#define SBPAD 15
//Block width inside Sidebar
#define SB_BLOCKX SBPAD+2
#define SB_BLOCKW SIDEBAR_W-SBPAD-SB_BLOCKX
int toolbar_buttons_x[7]={9,46,85,134,167,203};