IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
48 | 48 | |
49 | 49 | #include "tty-internal.h" /* mc_tty_normalize_from_utf8() */ |
50 | 50 | #include "tty.h" |
| 51 | #include "color.h" /* tty_setcolor */ |
51 | 52 | #include "color-internal.h" |
52 | 53 | #include "key.h" |
53 | 54 | #include "mouse.h" |
… |
… |
|
531 | 532 | mc_curs_col = x; |
532 | 533 | } |
533 | 534 | |
| 535 | /* --------------------------------------------------------------------------------------------- */ |
| 536 | |
| 537 | void |
| 538 | tty_colorize_area (int y, int x, int rows, int cols, int color) |
| 539 | { |
| 540 | cchar_t *ctext; |
| 541 | wchar_t wch[10]; /* TODO not sure if the length is correct */ |
| 542 | attr_t attrs; |
| 543 | short color_pair; |
| 544 | |
| 545 | if (!use_colors || x < 0 || x >= COLS || y >= LINES) |
| 546 | return; |
| 547 | |
| 548 | tty_setcolor (color); |
| 549 | ctext = malloc (sizeof(cchar_t) * (cols + 1)); |
| 550 | |
| 551 | for (int row = 0; row < rows; row++) |
| 552 | { |
| 553 | mvin_wchnstr (y + row, x, ctext, cols); |
| 554 | |
| 555 | for (int col = 0; col < cols; col++) |
| 556 | { |
| 557 | getcchar (&ctext[col], wch, &attrs, &color_pair, NULL); |
| 558 | setcchar (&ctext[col], wch, attrs, color, NULL); |
| 559 | } |
| 560 | |
| 561 | mvadd_wchnstr (y + row, x, ctext, cols); |
| 562 | } |
| 563 | |
| 564 | free(ctext); |
| 565 | } |
| 566 | |
534 | 567 | /* --------------------------------------------------------------------------------------------- */ |
535 | 568 | |
536 | 569 | void |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
126 | 126 | extern void tty_draw_hline (int y, int x, int ch, int len); |
127 | 127 | extern void tty_draw_vline (int y, int x, int ch, int len); |
128 | 128 | extern void tty_draw_box (int y, int x, int rows, int cols, gboolean single); |
| 129 | extern void tty_draw_box_shadow (int y, int x, int rows, int cols, int shadow_color); |
129 | 130 | extern void tty_fill_region (int y, int x, int rows, int cols, unsigned char ch); |
| 131 | extern void tty_colorize_area (int y, int x, int rows, int cols, int color); |
130 | 132 | |
131 | 133 | extern int tty_resize (int fd); |
132 | 134 | extern void tty_refresh (void); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
622 | 622 | |
623 | 623 | /* --------------------------------------------------------------------------------------------- */ |
624 | 624 | |
| 625 | void |
| 626 | tty_colorize_area (int y, int x, int rows, int cols, int color) |
| 627 | { |
| 628 | if (!use_colors || x < 0 || x >= COLS || y >= LINES) |
| 629 | return; |
| 630 | |
| 631 | SLsmg_set_color_in_region (color, y, x, rows, cols); |
| 632 | } |
| 633 | |
| 634 | /* --------------------------------------------------------------------------------------------- */ |
| 635 | |
625 | 636 | void |
626 | 637 | tty_set_alt_charset (gboolean alt_charset) |
627 | 638 | { |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
39 | 39 | #include "lib/util.h" /* MC_PTR_FREE */ |
40 | 40 | #include "lib/widget.h" |
41 | 41 | |
| 42 | #include "src/setup.h" /* dialog_shadows */ |
| 43 | |
42 | 44 | /*** global variables ****************************************************************************/ |
43 | 45 | |
44 | 46 | /*** file scope macro definitions ****************************************************************/ |
… |
… |
|
76 | 78 | |
77 | 79 | colors = widget_get_colors (w); |
78 | 80 | |
| 81 | if (dialog_shadows) |
| 82 | tty_draw_box_shadow (w->y, w->x, w->lines, w->cols, SHADOW_COLOR); |
| 83 | |
79 | 84 | tty_setcolor (colors[FRAME_COLOR_NORMAL]); |
80 | 85 | tty_fill_region (w->y, w->x, w->lines, w->cols, ' '); |
81 | 86 | tty_draw_box (w->y + d, w->x + d, w->lines - 2 * d, w->cols - 2 * d, f->single); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1967 | 1967 | msgid "Rotating d&ash" |
1968 | 1968 | msgstr "&Točící se dopředné lomítko" |
1969 | 1969 | |
| 1970 | msgid "Dialog shadows" |
| 1971 | msgstr "Okna vrhají stíny" |
| 1972 | |
1970 | 1973 | msgid "Cd follows lin&ks" |
1971 | 1974 | msgstr "cd následuje od&kazy" |
1972 | 1975 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
43 | 43 | #include "lib/widget.h" |
44 | 44 | #include "lib/event.h" /* mc_event_raise() */ |
45 | 45 | |
| 46 | #include "src/setup.h" /* dialog_shadows */ |
| 47 | |
46 | 48 | /*** global variables ****************************************************************************/ |
47 | 49 | |
48 | 50 | const global_keymap_t *menu_map = NULL; |
… |
… |
|
187 | 189 | if (column + menu->max_entry_len + 5 > (gsize) w->cols) |
188 | 190 | column = w->cols - menu->max_entry_len - 5; |
189 | 191 | |
| 192 | if (dialog_shadows) |
| 193 | tty_draw_box_shadow (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, SHADOW_COLOR); |
| 194 | |
190 | 195 | tty_setcolor (MENU_ENTRY_COLOR); |
191 | 196 | tty_draw_box (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE); |
192 | 197 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
73 | 73 | |
74 | 74 | /*** global variables defined in .c file *********************************************************/ |
75 | 75 | |
76 | | /* global paremeters */ |
| 76 | /* global parameters */ |
77 | 77 | extern char *global_profile_name; |
78 | 78 | extern gboolean confirm_delete; |
79 | 79 | extern gboolean confirm_directory_hotlist_delete; |
… |
… |
|
86 | 86 | extern gboolean clear_before_exec; |
87 | 87 | extern gboolean auto_menu; |
88 | 88 | extern gboolean drop_menus; |
| 89 | extern gboolean dialog_shadows; |
89 | 90 | extern gboolean verbose; |
90 | 91 | extern gboolean copymove_persistent_attr; |
91 | 92 | extern gboolean classic_progressbar; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1907 | 1907 | Midnight Commander shows a rotating dash in the upper right corner |
1908 | 1908 | as a work in progress indicator. |
1909 | 1909 | .PP |
| 1910 | .I Dialog shadows. |
| 1911 | If this option is enabled, all dialogs and menus will have a "shadow" |
| 1912 | on the right and bottom side. If disabled, dialogs and menus will be |
| 1913 | just flat. |
| 1914 | .PP |
1910 | 1915 | .I Cd follows links. |
1911 | 1916 | This option, if set, causes Midnight Commander to follow the |
1912 | 1917 | logical chain of directories when changing current directory |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
264 | 264 | |
265 | 265 | /* --------------------------------------------------------------------------------------------- */ |
266 | 266 | |
| 267 | void |
| 268 | tty_draw_box_shadow (int y, int x, int rows, int cols, int shadow_color) |
| 269 | { |
| 270 | if (rows <= 0 || cols <= 0) |
| 271 | return; |
| 272 | |
| 273 | /* draw right shadow */ |
| 274 | tty_colorize_area (y + 1, x + cols, rows - 1, 2, shadow_color); |
| 275 | /* draw bottom shadow */ |
| 276 | tty_colorize_area (y + rows, x + 2, 1, cols, shadow_color); |
| 277 | } |
| 278 | |
| 279 | /* --------------------------------------------------------------------------------------------- */ |
| 280 | |
267 | 281 | char * |
268 | 282 | mc_tty_normalize_from_utf8 (const char *str) |
269 | 283 | { |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
108 | 108 | gboolean auto_menu = FALSE; |
109 | 109 | /* This flag indicates if the pull down menus by default drop down */ |
110 | 110 | gboolean drop_menus = FALSE; |
| 111 | /* If true, dialog and menu window will have a shadow (on the right and bottom side) */ |
| 112 | gboolean dialog_shadows = FALSE; |
111 | 113 | |
112 | 114 | /* Asks for confirmation when using F3 to view a directory and there |
113 | 115 | are tagged files */ |
… |
… |
|
360 | 362 | #endif /* USE_INTERNAL_EDIT */ |
361 | 363 | { "editor_ask_filename_before_edit", &editor_ask_filename_before_edit }, |
362 | 364 | { "nice_rotating_dash", &nice_rotating_dash }, |
| 365 | { "dialog_shadows", &dialog_shadows }, |
363 | 366 | { "mcview_remember_file_position", &mcview_remember_file_position }, |
364 | 367 | { "auto_fill_mkdir_name", &auto_fill_mkdir_name }, |
365 | 368 | { "copymove_persistent_attr", ©move_persistent_attr }, |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
22 | 22 | #define REVERSE_COLOR mc_skin_color__cache[6] |
23 | 23 | #define COMMAND_MARK_COLOR mc_skin_color__cache[7] |
24 | 24 | #define HEADER_COLOR mc_skin_color__cache[8] |
| 25 | #define SHADOW_COLOR mc_skin_color__cache[9] |
25 | 26 | |
26 | 27 | /* Dialog colors */ |
27 | | #define COLOR_NORMAL mc_skin_color__cache[9] |
28 | | #define COLOR_FOCUS mc_skin_color__cache[10] |
29 | | #define COLOR_HOT_NORMAL mc_skin_color__cache[11] |
30 | | #define COLOR_HOT_FOCUS mc_skin_color__cache[12] |
31 | | #define COLOR_TITLE mc_skin_color__cache[13] |
| 28 | #define COLOR_NORMAL mc_skin_color__cache[10] |
| 29 | #define COLOR_FOCUS mc_skin_color__cache[11] |
| 30 | #define COLOR_HOT_NORMAL mc_skin_color__cache[12] |
| 31 | #define COLOR_HOT_FOCUS mc_skin_color__cache[13] |
| 32 | #define COLOR_TITLE mc_skin_color__cache[14] |
32 | 33 | |
33 | 34 | /* Error dialog colors */ |
34 | | #define ERROR_COLOR mc_skin_color__cache[14] |
35 | | #define ERROR_FOCUS mc_skin_color__cache[15] |
36 | | #define ERROR_HOT_NORMAL mc_skin_color__cache[16] |
37 | | #define ERROR_HOT_FOCUS mc_skin_color__cache[17] |
38 | | #define ERROR_TITLE mc_skin_color__cache[18] |
| 35 | #define ERROR_COLOR mc_skin_color__cache[15] |
| 36 | #define ERROR_FOCUS mc_skin_color__cache[16] |
| 37 | #define ERROR_HOT_NORMAL mc_skin_color__cache[17] |
| 38 | #define ERROR_HOT_FOCUS mc_skin_color__cache[18] |
| 39 | #define ERROR_TITLE mc_skin_color__cache[19] |
39 | 40 | |
40 | 41 | /* Menu colors */ |
41 | | #define MENU_ENTRY_COLOR mc_skin_color__cache[19] |
42 | | #define MENU_SELECTED_COLOR mc_skin_color__cache[20] |
43 | | #define MENU_HOT_COLOR mc_skin_color__cache[21] |
44 | | #define MENU_HOTSEL_COLOR mc_skin_color__cache[22] |
45 | | #define MENU_INACTIVE_COLOR mc_skin_color__cache[23] |
| 42 | #define MENU_ENTRY_COLOR mc_skin_color__cache[20] |
| 43 | #define MENU_SELECTED_COLOR mc_skin_color__cache[21] |
| 44 | #define MENU_HOT_COLOR mc_skin_color__cache[22] |
| 45 | #define MENU_HOTSEL_COLOR mc_skin_color__cache[23] |
| 46 | #define MENU_INACTIVE_COLOR mc_skin_color__cache[24] |
46 | 47 | |
47 | 48 | /* Popup menu colors */ |
48 | | #define PMENU_ENTRY_COLOR mc_skin_color__cache[24] |
49 | | #define PMENU_SELECTED_COLOR mc_skin_color__cache[25] |
50 | | #define PMENU_HOT_COLOR mc_skin_color__cache[26] /* unused: not implemented yet */ |
51 | | #define PMENU_HOTSEL_COLOR mc_skin_color__cache[27] /* unused: not implemented yet */ |
52 | | #define PMENU_TITLE_COLOR mc_skin_color__cache[28] |
| 49 | #define PMENU_ENTRY_COLOR mc_skin_color__cache[25] |
| 50 | #define PMENU_SELECTED_COLOR mc_skin_color__cache[26] |
| 51 | #define PMENU_HOT_COLOR mc_skin_color__cache[27] /* unused: not implemented yet */ |
| 52 | #define PMENU_HOTSEL_COLOR mc_skin_color__cache[28] /* unused: not implemented yet */ |
| 53 | #define PMENU_TITLE_COLOR mc_skin_color__cache[29] |
53 | 54 | |
54 | | #define BUTTONBAR_HOTKEY_COLOR mc_skin_color__cache[29] |
55 | | #define BUTTONBAR_BUTTON_COLOR mc_skin_color__cache[30] |
| 55 | #define BUTTONBAR_HOTKEY_COLOR mc_skin_color__cache[30] |
| 56 | #define BUTTONBAR_BUTTON_COLOR mc_skin_color__cache[31] |
56 | 57 | |
57 | | #define STATUSBAR_COLOR mc_skin_color__cache[31] |
| 58 | #define STATUSBAR_COLOR mc_skin_color__cache[32] |
58 | 59 | |
59 | 60 | /* |
60 | 61 | * This should be selectable independently. Default has to be black background |
61 | 62 | * foreground does not matter at all. |
62 | 63 | */ |
63 | | #define GAUGE_COLOR mc_skin_color__cache[32] |
64 | | #define INPUT_COLOR mc_skin_color__cache[33] |
65 | | #define INPUT_UNCHANGED_COLOR mc_skin_color__cache[34] |
66 | | #define INPUT_MARK_COLOR mc_skin_color__cache[35] |
67 | | #define INPUT_HISTORY_COLOR mc_skin_color__cache[36] |
68 | | #define COMMAND_HISTORY_COLOR mc_skin_color__cache[37] |
| 64 | #define GAUGE_COLOR mc_skin_color__cache[33] |
| 65 | #define INPUT_COLOR mc_skin_color__cache[34] |
| 66 | #define INPUT_UNCHANGED_COLOR mc_skin_color__cache[35] |
| 67 | #define INPUT_MARK_COLOR mc_skin_color__cache[36] |
| 68 | #define INPUT_HISTORY_COLOR mc_skin_color__cache[37] |
| 69 | #define COMMAND_HISTORY_COLOR mc_skin_color__cache[38] |
69 | 70 | |
70 | | #define HELP_NORMAL_COLOR mc_skin_color__cache[38] |
71 | | #define HELP_ITALIC_COLOR mc_skin_color__cache[39] |
72 | | #define HELP_BOLD_COLOR mc_skin_color__cache[40] |
73 | | #define HELP_LINK_COLOR mc_skin_color__cache[41] |
74 | | #define HELP_SLINK_COLOR mc_skin_color__cache[42] |
75 | | #define HELP_TITLE_COLOR mc_skin_color__cache[43] |
| 71 | #define HELP_NORMAL_COLOR mc_skin_color__cache[39] |
| 72 | #define HELP_ITALIC_COLOR mc_skin_color__cache[40] |
| 73 | #define HELP_BOLD_COLOR mc_skin_color__cache[41] |
| 74 | #define HELP_LINK_COLOR mc_skin_color__cache[42] |
| 75 | #define HELP_SLINK_COLOR mc_skin_color__cache[43] |
| 76 | #define HELP_TITLE_COLOR mc_skin_color__cache[44] |
76 | 77 | |
77 | 78 | |
78 | | #define VIEW_NORMAL_COLOR mc_skin_color__cache[44] |
79 | | #define VIEW_BOLD_COLOR mc_skin_color__cache[45] |
80 | | #define VIEW_UNDERLINED_COLOR mc_skin_color__cache[46] |
81 | | #define VIEW_SELECTED_COLOR mc_skin_color__cache[47] |
| 79 | #define VIEW_NORMAL_COLOR mc_skin_color__cache[45] |
| 80 | #define VIEW_BOLD_COLOR mc_skin_color__cache[46] |
| 81 | #define VIEW_UNDERLINED_COLOR mc_skin_color__cache[47] |
| 82 | #define VIEW_SELECTED_COLOR mc_skin_color__cache[48] |
82 | 83 | |
83 | 84 | /* |
84 | 85 | * editor colors - only 4 for normal, search->found, select, and whitespace |
85 | 86 | * respectively |
86 | 87 | * Last is defined to view color. |
87 | 88 | */ |
88 | | #define EDITOR_NORMAL_COLOR mc_skin_color__cache[48] |
89 | | #define EDITOR_BOLD_COLOR mc_skin_color__cache[49] |
90 | | #define EDITOR_MARKED_COLOR mc_skin_color__cache[50] |
91 | | #define EDITOR_WHITESPACE_COLOR mc_skin_color__cache[51] |
92 | | #define EDITOR_RIGHT_MARGIN_COLOR mc_skin_color__cache[52] |
93 | | #define EDITOR_BACKGROUND mc_skin_color__cache[53] |
94 | | #define EDITOR_FRAME mc_skin_color__cache[54] |
95 | | #define EDITOR_FRAME_ACTIVE mc_skin_color__cache[55] |
96 | | #define EDITOR_FRAME_DRAG mc_skin_color__cache[56] |
| 89 | #define EDITOR_NORMAL_COLOR mc_skin_color__cache[49] |
| 90 | #define EDITOR_BOLD_COLOR mc_skin_color__cache[50] |
| 91 | #define EDITOR_MARKED_COLOR mc_skin_color__cache[51] |
| 92 | #define EDITOR_WHITESPACE_COLOR mc_skin_color__cache[52] |
| 93 | #define EDITOR_RIGHT_MARGIN_COLOR mc_skin_color__cache[53] |
| 94 | #define EDITOR_BACKGROUND mc_skin_color__cache[54] |
| 95 | #define EDITOR_FRAME mc_skin_color__cache[55] |
| 96 | #define EDITOR_FRAME_ACTIVE mc_skin_color__cache[56] |
| 97 | #define EDITOR_FRAME_DRAG mc_skin_color__cache[57] |
97 | 98 | /* color of left 8 char status per line */ |
98 | | #define LINE_STATE_COLOR mc_skin_color__cache[57] |
99 | | #define BOOK_MARK_COLOR mc_skin_color__cache[58] |
100 | | #define BOOK_MARK_FOUND_COLOR mc_skin_color__cache[59] |
| 99 | #define LINE_STATE_COLOR mc_skin_color__cache[58] |
| 100 | #define BOOK_MARK_COLOR mc_skin_color__cache[59] |
| 101 | #define BOOK_MARK_FOUND_COLOR mc_skin_color__cache[60] |
101 | 102 | |
102 | 103 | /* Diff colors */ |
103 | | #define DFF_ADD_COLOR mc_skin_color__cache[60] |
104 | | #define DFF_CHG_COLOR mc_skin_color__cache[61] |
105 | | #define DFF_CHH_COLOR mc_skin_color__cache[62] |
106 | | #define DFF_CHD_COLOR mc_skin_color__cache[63] |
107 | | #define DFF_DEL_COLOR mc_skin_color__cache[64] |
108 | | #define DFF_ERROR_COLOR mc_skin_color__cache[65] |
| 104 | #define DFF_ADD_COLOR mc_skin_color__cache[61] |
| 105 | #define DFF_CHG_COLOR mc_skin_color__cache[62] |
| 106 | #define DFF_CHH_COLOR mc_skin_color__cache[63] |
| 107 | #define DFF_CHD_COLOR mc_skin_color__cache[64] |
| 108 | #define DFF_DEL_COLOR mc_skin_color__cache[65] |
| 109 | #define DFF_ERROR_COLOR mc_skin_color__cache[66] |
109 | 110 | |
110 | | #define MC_SKIN_COLOR_CACHE_COUNT 66 |
| 111 | #define MC_SKIN_COLOR_CACHE_COUNT 67 |
111 | 112 | |
112 | 113 | /*** enums ***************************************************************************************/ |
113 | 114 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
249 | 249 | REVERSE_COLOR = mc_skin_color_get ("core", "reverse"); |
250 | 250 | HEADER_COLOR = mc_skin_color_get ("core", "header"); |
251 | 251 | COMMAND_MARK_COLOR = mc_skin_color_get ("core", "commandlinemark"); |
| 252 | SHADOW_COLOR = mc_skin_color_get ("core", "shadow"); |
252 | 253 | |
253 | 254 | COLOR_NORMAL = mc_skin_color_get ("dialog", "_default_"); |
254 | 255 | COLOR_FOCUS = mc_skin_color_get ("dialog", "dfocus"); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
545 | 545 | QUICK_CHECKBOX (N_("Co&mplete: show all"), |
546 | 546 | &mc_global.widget.show_all_if_ambiguous, NULL), |
547 | 547 | QUICK_CHECKBOX (N_("Rotating d&ash"), &nice_rotating_dash, NULL), |
| 548 | QUICK_CHECKBOX (N_("Dialog shadows"), &dialog_shadows, NULL), |
548 | 549 | QUICK_CHECKBOX (N_("Cd follows lin&ks"), &mc_global.vfs.cd_symlinks, NULL), |
549 | 550 | QUICK_CHECKBOX (N_("Sa&fe delete"), &safe_delete, NULL), |
550 | 551 | QUICK_CHECKBOX (N_("Safe overwrite"), &safe_overwrite, NULL), /* w/o hotkey */ |